Add ?F:!try and cleanup whitespace.
Note that this *adds* warnings to metalint 3.x :(
p4raw-id: //depot/metaconfig@32917
?RCS: $Id: intsize.U,v 3.0.1.2 1997/02/28 15:55:26 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define LONGSIZE $longsize /**/
?H:#define SHORTSIZE $shortsize /**/
?H:.
+?F:!try
: check for lengths of integral types
echo " "
case "$intsize" in
?RCS: $Id: Csym.U,v 3.0.1.4 1995/07/25 13:36:29 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?S:.
?V:csym
?T:tval tx tlook tf tdc extern_C
+?F:!try
: is a C symbol defined?
csym='tlook=$1;
case "$3" in
?RCS: $Id: alignbytes.U,v 3.0.1.2 1994/10/29 16:02:28 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:?%<:#define MEM_ALIGNBYTES $alignbytes
?H:?%<:#endif
?H:.
+?F:!try
: check for alignment requirements
echo " "
case "$usecrosscompile$multiarch" in
?RCS: $Id: bitpbyte.U,v 3.0.1.1 1994/10/29 16:02:54 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define BITS_PER_BYTE $bitpbyte /**/
?H:.
+?F:!try
: check for length of byte
echo " "
case "$bitpbyte" in
?RCS: $Id: byteorder.U,v 3.0.1.2 1997/02/28 15:24:55 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:?%<:#endif /* NeXT */
?H:.
?T:xxx_prompt
+?F:!try
: check for ordering of bytes in a UV
echo " "
case "$usecrosscompile$multiarch" in
?RCS: $Id: charsize.U,v 3.0.1.1 1994/10/29 16:07:13 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define CHARSIZE $charsize /**/
?H:.
+?F:!try
: check for length of character
echo " "
case "$charsize" in
?RCS: $Id: d_casti32.U,v 3.0.1.3 1995/05/12 12:10:45 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C: This symbol is defined if the C compiler can cast negative
?C: or large floating point numbers to 32-bit ints.
?C:.
-?T:xxx yyy
?H:#$d_casti32 CASTI32 /**/
?H:.
+?T:xxx yyy
+?F:!try
?LINT:set d_casti32
: check for ability to cast large floats to 32-bit ints.
echo " "
?RCS: $Id: d_castneg.U,v 3.0.1.2 1995/05/12 12:11:21 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_castneg CASTNEGFLOAT /**/
?H:#define CASTFLAGS $castflags /**/
?H:.
+?F:!try
?LINT:set d_castneg
: check for ability to cast negative floats to unsigned
echo " "
?C:.
?H:#$d_void_closedir VOID_CLOSEDIR /**/
?H:.
+?F:!try
?LINT:set d_closedir d_void_closedir
: see if closedir exists
set closedir d_closedir
?RCS: $Id: d_fd_set.U,v 3.0.1.3 1997/02/28 15:33:16 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_fd_macros HAS_FD_MACROS /**/
?H:#$d_fds_bits HAS_FDS_BITS /**/
?H:.
+?F:!try
: check for fd_set items
$cat <<EOM
?RCS: $Id: d_gconvert.U,v 3.0.1.3 1997/02/28 15:33:38 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Gconvert(x,n,t,b) $d_Gconvert
?H:.
?T: xxx_list xxx_convert xxx_ld_list
+?F:!try
?LINT:extern gconvert_preference
?LINT:extern gconvert_ld_preference
: Check how to convert floats to strings.
?RCS: Copyright (c) 1996,1998 Andy Dougherty
?RCS: Copyright (c) 1996, Sven Verdoolaege
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C: the GNU C library is being used. A better check is to use
?C: the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
?C:.
-?F:!glibc.ver
?H:#$d_gnulibc HAS_GNULIBC /**/
?H:?%<:#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
?H:?%<:# define _GNU_SOURCE
?H:?%<:#endif
?H:.
+?F:!glibc.ver !try
?LINT: set d_gnulibc
?X: gnulibc can be executed by calling __libc_main().
?X: Ulrich Drepper doesn't think any other libc does that,
?RCS: $Id: d_keepsig.U,v 3.0.1.4 1995/07/25 13:57:56 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_keepsig SIGNALS_KEPT /**/
?H:.
+?F:!try
?LINT:set d_keepsig
: see if signals are kept
val="$undef";
?RCS: $Id: d_open3.U,v 3.0.1.2 1997/02/28 15:37:12 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:.
?W:%<:O_RDONLY O_WRONLY O_RDWR O_NDELAY O_APPEND O_SYNC O_CREAT O_TRUNC
?W:%<:O_EXCL O_NONBLOCK
+?F:!try
?LINT:set d_open3
?LINT:change h_fcntl h_sysfile
: Locate the flags for 'open()'
?RCS: $Id: d_safebcpy.U,v 3.0.1.4 1997/02/28 15:40:58 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_safebcpy HAS_SAFE_BCOPY /**/
?H:.
+?F:!try
?LINT: set d_safebcpy
: can bcopy handle overlapping blocks?
echo " "
?RCS: $Id: d_safemcpy.U,v 3.0.1.5 1997/02/28 15:41:12 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_safemcpy HAS_SAFE_MEMCPY /**/
?H:.
+?F:!try
?LINT: set d_safemcpy
: can memcpy handle overlapping blocks?
echo " "
?RCS: $Id: d_sanemcmp.U,v 3.0.1.1 1997/02/28 15:41:19 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_sanemcmp HAS_SANE_MEMCMP /**/
?H:.
+?F:!try
?LINT: set d_sanemcmp
: can memcmp be trusted to compare relative magnitude?
?X: assume the worst
?RCS: $Id: d_scannl.U,v 3.0.1.2 1997/02/28 15:41:27 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_scannl SCAN_NL /* scanf("%d\n") works */
?H:.
+?F:!try
?LINT:set d_scannl
: does scanf handle "\n" correctly ?
echo " "
?RCS: $Id: d_sgndchr.U,v 3.0.1.2 1997/02/28 15:44:25 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_sgndchr SIGNEDCHAR /**/
?H:.
+?F:!try
?LINT:set d_sgndchr
: check for signed chars
echo " "
?RCS:
?RCS: Copyright (c) 1996,1998 Andy Dougherty
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:?%<:#endif
?H:.
?W:%<:Sigjmp_buf Sigsetjmp Siglongjmp
+?F:!try
?LINT:set d_sigsetjmp
: see if sigsetjmp exists
?X: We can't check for these symbols with Inlibc because sigsetjmp
?RCS: $Id: d_stdstdio.U,v 3.0.1.3 1997/02/28 15:46:32 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:?d_stdiobase:#endif
?H:.
?W:d_stdiobase:FILE_base FILE_bufsiz
-?LINT:set d_stdstdio d_stdiobase
?T:ptr_lval cnt_lval filbuf xxx
+?F:!try
+?LINT:set d_stdstdio d_stdiobase
: see if _ptr and _cnt from stdio act std
echo " "
?RCS: $Id: d_vprintf.U,v 3.0 1993/08/18 12:07:59 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_charvspr USE_CHAR_VSPRINTF /**/
?H:.
?T:val2
+?F:!try
?LINT:set d_vprintf d_charvspr
: see if vprintf exists
echo " "
?RCS: $Id: doublesize.U,v 3.0.1.1 1994/10/29 16:17:06 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define DOUBLESIZE $doublesize /**/
?H:.
+?F:!try
: check for length of double
echo " "
case "$doublesize" in
?RCS: $Id: floatsize.U,v 3.0.1.1 1994/10/29 16:17:09 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define FLOATSIZE $floatsize /**/
?H:.
+?F:!try
: check for length of float
echo " "
case "$floatsize" in
?RCS: $Id: nblock_io.U,v 3.0.1.2 1997/02/28 16:17:14 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define RD_NODATA $rd_nodata
?H:#$d_eofnblk EOF_NONBLOCK
?H:.
-?F:!try.out !try.ret !try.err
?T:status
+?F:!try.out !try.ret !try.err !try
?LINT:use d_open3
: check for non-blocking I/O stuff
case "$h_sysfile" in
?RCS: $Id: ptrsize.U,v 3.0.1.1 1994/10/29 16:28:19 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define PTRSIZE $ptrsize /**/
?H:.
+?F:!try
?LINT:extern use64bitint
: check for length of pointer
echo " "
?RCS: $Id: ssizetype.U,v 3.0.1.3 1997/02/28 16:24:21 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#define SSize_t $ssizetype /* signed count of bytes */
?H:.
+?F:!try
: see what type is used for signed size_t
set ssize_t ssizetype int stdio.h sys/types.h
eval $typedef
?C:.
?H:#$ebcdic EBCDIC /**/
?H:.
+?F:!try
?LINT:set ebcdic
: Determine if this is an EBCDIC system
echo " "
?RCS: $Id: d_getpgrp.U,v 3.0.1.1 1997/02/28 15:34:28 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
?H:.
?T:xxx
+?F:!try
?LINT:set d_getpgrp d_bsdgetpgrp
: see if getpgrp exists
set getpgrp d_getpgrp
?H:?LONG_DOUBLESIZE:#define LONG_DOUBLESIZE $longdblsize /**/
?H:?LONG_DOUBLESIZE:#endif
?H:.
+?F:!try
?LINT:set d_longdbl
: check for long doubles
echo " "
?H:?LONGLONGSIZE:#define LONGLONGSIZE $longlongsize /**/
?H:?LONGLONGSIZE:#endif
?H:.
+?F:!try
?LINT:set d_longlong
: check for long long
echo " "
?RCS: $Id: d_setpgrp.U,v 3.0.1.3 1997/02/28 15:44:16 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
?H:.
?T:xxx
+?F:!try
?LINT:set d_setpgrp d_bsdsetpgrp
: see if setpgrp exists
set setpgrp d_setpgrp
?RCS:
?RCS: Copyright (c) 1996, Andy Dougherty
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?C:.
?H:#$d_strtoul HAS_STRTOUL /**/
?H:.
+?F:!try
?LINT:set d_strtoul
: see if strtoul exists
set strtoul d_strtoul
$cat >try.c <<'EOCP'
#include <errno.h>
#include <stdio.h>
-extern unsigned long int strtoul(char *s, char **, int);
+extern unsigned long int strtoul(char *s, char **, int);
static int bad = 0;
void check(char *s, unsigned long eul, int een) {
unsigned long gul;
?H:#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
?H:.
?T:xxx also
+?F:!try
?LINT: set d_union_semun d_semctl_semun d_semctl_semid_ds
: see whether sys/sem.h defines union semun
echo " "
?C:.
?H:#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
?H:.
+?F:!try
: see if the Compiler supports C99 variadic macros
case "$i_stdarg$i_stdlib" in
"$define$define")
?C:.
?H:#$d_cplusplus USE_CPLUSPLUS /**/
?H:.
+?F:!try
?LINT:set d_cplusplus
-
+: Check if we are using C++
echo " "
echo "Checking for C++..." >&4
$cat >try.c <<'EOCP'
?C:.
?H:#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
?H:.
+?F:!try
?LINT: set d_fcntl_can_lock
?X: fcntl may not be fully functional. As of November 2000, on VMS and
?X: DOS/DJGPP, fctnl-based locking doesn't work.
?X: Thanks to Craig A. Berry <craig.berry@psinetcs.com> for this test.
-echo " "
: See if fcntl-based locking works.
+echo " "
$cat >try.c <<EOCP
#$i_stdlib I_STDLIB
#ifdef I_STDLIB
?H:#$d_futimes HAS_FUTIMES /**/
?H:.
?T:rc
+?F:!try
: check for a working futimes
d_futimes="$undef"
echo " "
?H:#$d_libm_lib_version LIBM_LIB_VERSION /**/
?H:.
?T:foo
+?F:!try
: check to see if math.h defines _LIB_VERSION
d_libm_lib_version="$undef"
case $i_math in
?H:#$d_modflproto HAS_MODFL_PROTO /**/
?H:#$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
?H:.
-?T:foo saveccflags
+?T:foo saveccflags message
+?F:!try
?LINT:set d_modflproto
?LINT:change ccflags
-?T: message
: see if modfl exists
set modfl d_modfl
eval $inlibc
?C:.
?H:#define PRINTF_EXP_DIGITS $d_printf_exp_digits
?H:.
+?F:!try
: Check sprintf exponent digits
echo " "
echo "Checking how many exponent digits your sprintf formats use..."
$cat >try.c <<'EOSC'
-#include <stdio.h>
+#include <stdio.h>
int main() {
char b[10];
exit(sprintf(b, "%0.1e", 1.2) - 5);
?C:.
?H:#$d_signbit HAS_SIGNBIT /**/
?H:.
+?F:!try
?LINT:set d_signbit d_use_signbit
: see if signbit exists
$echo $n "Checking to see if you have signbit() available to work on $nvtype... $c" >&4
?RCS: Copyright (c) 2006-2007, H.Merijn Brand
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$d_snprintf HAS_SNPRINTF /**/
?H:#$d_vsnprintf HAS_VSNPRINTF /**/
?H:.
-?F:try
+?F:!try
: see if snprintf exists
set snprintf d_snprintf
eval $inlibc
?H:#$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
?H:.
?T:xxx
+?F:!try
: see if sprintf returns the length of the string in the buffer as per ANSI
$echo "Checking whether sprintf returns the length of the string..." >&4
$cat <<EOP >try.c
?H:#$d_strtoll HAS_STRTOLL /**/
?H:.
?T:yyy
+?F:!try
?LINT:set d_strtoll
: see if strtoll exists
set strtoll d_strtoll
#define strtoll _strtoll
#endif
#include <stdio.h>
-extern long long int strtoll(char *s, char **, int);
+extern long long int strtoll(char *s, char **, int);
static int bad = 0;
int check(char *s, long long ell, int een) {
long long gll;
?C:.
?H:#$d_strtoull HAS_STRTOULL /**/
?H:.
+?F:!try
?LINT:set d_strtoull
: see if strtoull exists
set strtoull d_strtoull
#define strtoull __strtoull
#endif
#include <stdio.h>
-extern unsigned long long int strtoull(char *s, char **, int);
+extern unsigned long long int strtoull(char *s, char **, int);
static int bad = 0;
int check(char *s, long long eull, int een) {
long long gull;
?C:.
?H:#$d_strtouq HAS_STRTOUQ /**/
?H:.
+?F:!try
?LINT:set d_strtouq
: see if strtouq exists
set strtouq d_strtouq
$cat >try.c <<'EOCP'
#include <errno.h>
#include <stdio.h>
-extern unsigned long long int strtouq(char *s, char **, int);
+extern unsigned long long int strtouq(char *s, char **, int);
static int bad = 0;
void check(char *s, unsigned long long eull, int een) {
unsigned long long gull;
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 2001, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:?%<:#$d_u32align U32_ALIGNMENT_REQUIRED /**/
?H:?%<:#endif
?H:.
+?F:!try
+: Checking 32bit aligndness
$cat <<EOM
Checking to see whether you can access character data unalignedly...
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$fflushall FFLUSH_ALL /**/
?H:.
?T:output code
-?F:!try.out
+?F:!try.out !try
+: Check how to flush
echo " "
$cat >&4 <<EOM
Checking how to flush all pending stdio output...
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Fpos_t_size $fpossize /* FPOS size */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set fpossize
+: Check size for Fpos_t
echo " "
case "$fpostype" in
*_t) zzz="$fpostype" ;;
*) zzz="fpos_t" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?S: -ansi and -pedantic ccflags for building core files (through
?S: cflags script). (See Porting/pumpkin.pod for full description).
?S:.
+?D:gccversion=''
+?D:gccansipedantic=''
?T:gccshortvers
?T:incdir
?T:warn
-?D:gccversion=''
-?D:gccansipedantic=''
+?F:!try
?LINT:change cpp
?LINT:extern ccflags
?LINT:extern ldflags
?LINT:change ccname
?LINT:change locincpth
?X: Check if they have gcc in any guise.
+: Check if we are using GNU gcc and what its version is
echo " "
echo "Checking for GNU cc in disguise and/or its version number..." >&4
$cat >try.c <<EOM
?RCS: $Id: i_db.U,v 3.0.1.3 1995/07/25 14:10:22 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define DB_VERSION_MINOR_CFG $db_version_minor /**/
?H:#define DB_VERSION_PATCH_CFG $db_version_patch /**/
?H:.
+?F:!try
?LINT:set i_db
?LINT:change libs
: see if this is a db.h system
?H:#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
?H:.
?T:yyy
+?F:!try
+: Check print/scan long double stuff
echo " "
if $test X"$d_longdbl" = X"$define"; then
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 2000, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#$need_va_copy NEED_VA_COPY /**/
?H:.
?T:okay
+?F:!try
?LINT:set need_va_copy
: see if we need va_copy
echo " "
?T:volatile
?T:xxx
?T:d
-
+?F:!try
+: Check basic sizes
echo " "
$echo "Choosing the C types to be used for Perl's internal types..." >&4
?H:#$d_PRIx64 PERL_PRIXU64 $sPRIXU64 /**/
?H:.
?T:yyy
+?F:!try
+: Check 64bit sizes
echo " "
if $test X"$quadtype" != X; then
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 1998, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:.
?T:bits
?T:safebits
+?F:!try
: check for the select 'width'
case "$selectminbits" in
'') safebits=`expr $ptrsize \* 8`
?RCS: $Id$
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#endif
?H:.
?T:s
+?F:!try
?LINT:set d_stdio_stream_array
+: Check stream access
$cat >&4 <<EOM
Checking how to access stdio streams by file descriptor number...
EOM
?H:?%<:#$uselargefiles USE_LARGE_FILES /**/
?H:?%<:#endif
?H:.
-?F:!uselargefiles.cbu
?INIT:ccflags_uselargefiles=''
?INIT:ldflags_uselargefiles=''
?INIT:libswanted_uselargefiles=''
?T:yyy zzz
+?F:!uselargefiles.cbu !try
?LINT:set uselargefiles
?LINT:change lseeksize
?LINT:change fpossize
?LINT:use uselfs
?LINT:use use64bitint
?LINT:use use64bitall
+: Check for large file support
# Backward compatibility (uselfs is deprecated).
case "$uselfs" in
"$define"|true|[yY]*)
?H:#define LOCALTIME_R_PROTO $localtime_r_proto /**/
?H:.
?T:try hdrs d_localtime_r_proto
+?F:!try
?LINT:set d_localtime_r
?LINT:set d_localtime_r_needs_tzset
?LINT:set localtime_r_proto
?MAKE: -pick add $@ %<
?S:d_pthreads_created_joinable:
?S: This variable conditionally defines the PTHREADS_CREATED_JOINABLE
-?S: symbol if pthreads are created in the joinable (aka undetached)
+?S: symbol if pthreads are created in the joinable (aka undetached)
?S: state.
?S:.
?C:PTHREADS_CREATED_JOINABLE:
?H:#$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
?H:.
?T:yyy
+?F:!try
?LINT: set d_pthreads_created_joinable
: test whether pthreads are created in joinable -- aka undetached -- state
if test "X$usethreads" = "X$define" -a "X$i_pthread" = "X$define"; then
- echo "Checking whether pthreads are created joinable..." >&4
+ echo "Checking whether pthreads are created joinable..." >&4
$cat >try.c <<'EOCP'
#include <pthread.h>
#ifdef PTHREAD_CREATE_UNDETACHED
detached) echo "No, they aren't." ;;
*) echo "Yes, they are." ;;
esac
- else
+ else
echo " "
echo "(I can't execute the test program--assuming they are.)" >&4
yyy=joinable
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Gid_t_sign $gidsign /* GID sign */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set gidsign
+: Check if GID is signed
echo " "
case "$gidtype" in
*_t) zzz="$gidtype" ;;
*) zzz="gid" ;;
esac
-echo "Checking the sign of $zzz..." >&4
+echo "Checking the sign of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Gid_t_size $gidsize /* GID size */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set gidsize
+: Check the size of GID
echo " "
case "$gidtype" in
*_t) zzz="$gidtype" ;;
*) zzz="gid" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS: $Id: lseektype.U,v 3.0.1.1 1994/08/29 16:30:10 ram Exp $
?RCS:
?RCS: Copyright (c) 1991-1993, Raphael Manfredi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define LSEEKSIZE $lseeksize /* <offset> size */
?H:#define Off_t_size $lseeksize /* <offset> size */
?H:.
+?F:!try
?LINT:set lseektype
?LINT:set lseeksize
: see what type lseek is declared as in the kernel
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Pid_t_sign $pidsign /* PID sign */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set pidsign
+: Check if PID is signed
echo " "
case "$pidtype" in
*_t) zzz="$pidtype" ;;
*) zzz="pid" ;;
esac
-echo "Checking the sign of $zzz..." >&4
+echo "Checking the sign of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Pid_t_size $pidsize /* PID size */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set pidsize
+: Check size of PID
echo " "
case "$pidtype" in
*_t) zzz="$pidtype" ;;
*) zzz="pid" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Size_t_size $sizesize /* */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set sizesize
+: Check size of size
echo " "
case "$sizetype" in
*_t) zzz="$sizetype" ;;
*) zzz="filesize" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Ssize_t_size $ssizesize /* */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set ssizesize
+: Check size of Ssize_t
echo " "
case "$ssizetype" in
*_t) zzz="$ssizetype" ;;
*) zzz="signed filesize" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Uid_t_sign $uidsign /* UID sign */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set uidsign
+: Check if UID is signed
echo " "
case "$uidtype" in
*_t) zzz="$uidtype" ;;
?RCS:
?RCS: Copyright (c) 1999, Jarkko Hietaniemi
-?RCS:
+?RCS:
?RCS: You may redistribute only under the terms of the Artistic Licence,
?RCS: as specified in the README file that comes with the distribution.
?RCS: You may reuse parts of this distribution only within the terms of
?H:#define Uid_t_size $uidsize /* UID size */
?H:.
?T:yyy zzz
+?F:!try
?LINT: set uidsize
+: Check size of UID
echo " "
case "$uidtype" in
*_t) zzz="$uidtype" ;;
*) zzz="uid" ;;
esac
-echo "Checking the size of $zzz..." >&4
+echo "Checking the size of $zzz..." >&4
cat > try.c <<EOCP
#include <sys/types.h>
#include <stdio.h>