From: Jarkko Hietaniemi Date: Thu, 7 Jan 1999 16:38:03 +0000 (+0000) Subject: Configure update: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5a411a32e4c18cbe40a6ed1a4de4dafa8a4c0d7a;p=p5sagit%2Fp5-mst-13.2.git Configure update: - usethreads, use64bits, and usemultiplicity are no more interactively asked by Configure - "int main()" (vs bare "main()") enforced in test programs p4raw-id: //depot/cfgperl@2581 --- diff --git a/Configure b/Configure index 7070d4f..1dc7bae 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Thu Dec 3 10:57:23 EET 1998 [metaconfig 3.0 PL70] +# Generated on Thu Jan 7 13:54:35 EET 1999 [metaconfig 3.0 PL70] # (with additional metaconfig patches by jhi@iki.fi) cat >/tmp/c1$$ <&4 $cat >prototype.c <<'EOCP' -main(int argc, char *argv[]) { +int main(int argc, char *argv[]) { exit(0);} EOCP if $cc $ccflags -c prototype.c >prototype.out 2>&1 ; then @@ -4476,8 +4426,7 @@ echo " " echo "Checking for GNU C Library..." >&4 cat >gnulibc.c < -int -main() +int main() { #ifdef __GLIBC__ exit(0); @@ -5038,7 +4987,7 @@ EOM /* Test for whether ELF binaries are produced */ #include #include -main() { +int main() { char b[4]; int i = open("a.out",O_RDONLY); if(i == -1) @@ -6177,8 +6126,7 @@ char *got; } } -int -main() +int main() { char buf[64]; buf[63] = '\0'; @@ -6344,7 +6292,7 @@ case "$d_getpgrp" in #ifdef I_UNISTD # include #endif -main() +int main() { if (getuid() == 0) { printf("(I see you are running Configure as super-user...)\n"); @@ -6406,7 +6354,7 @@ case "$d_setpgrp" in #ifdef I_UNISTD # include #endif -main() +int main() { if (getuid() == 0) { printf("(I see you are running Configure as super-user...)\n"); @@ -6899,7 +6847,7 @@ echo " " echo 'Checking to see if your C compiler knows about "const"...' >&4 $cat >const.c <<'EOCP' typedef struct spug { int drokk; } spug; -main() +int main() { const char *foo; const spug y; @@ -7303,7 +7251,7 @@ $cat >fred.c<try.c < -main() { +int main() { static int32_t foo32 = 0x12345678; } EOCP @@ -8403,7 +8351,7 @@ $define) $echo $n "Checking to see how big your long doubles are...$c" >&4 $cat >try.c <<'EOCP' #include -main() +int main() { printf("%d\n", sizeof(long double)); } @@ -8449,7 +8397,7 @@ $define) $echo $n "Checking to see how big your long longs are...$c" >&4 $cat >try.c <<'EOCP' #include -main() +int main() { printf("%d\n", sizeof(long long)); } @@ -8646,7 +8594,7 @@ eval $inlibc $cat >try.c < #include -main() { +int main() { #ifdef SCHED_YIELD sched_yield(); #else @@ -9722,7 +9670,7 @@ eval $inlibc echo " " echo "Checking to see if your C compiler can copy structs..." >&4 $cat >try.c <<'EOCP' -main() +int main() { struct blurfl { int dyick; @@ -10030,7 +9978,7 @@ $rm -f closedir* echo " " echo 'Checking to see if your C compiler knows about "volatile"...' >&4 $cat >try.c <<'EOCP' -main() +int main() { typedef struct _goo_struct goo_struct; goo_struct * volatile goo = ((goo_struct *)0); @@ -10698,7 +10646,7 @@ $echo $n "Checking to see how big your file offsets are...$c" >&4 $cat >try.c < #include -main() +int main() { printf("%d\n", sizeof($lseektype)); }