annotate configure @ 4566:6403c94de50d legacy-trunk

Added safeguard against failure in __del__.
author Guido van Rossum <guido@python.org>
date Wed, 27 Nov 1996 19:39:58 +0000
parents 38c8a1ccc16c
children 53ef5b51a48b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1 #! /bin/sh
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3 # From configure.in Revision: 1.39
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
4
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 # Guess values for system-dependent variables and create Makefiles.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
6 # Generated automatically using autoconf version 2.10
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
8 #
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
9 # This configure script is free software; the Free Software Foundation
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
10 # gives unlimited permission to copy, distribute and modify it.
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
11
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
12 # Defaults:
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
13 ac_help=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
14 ac_default_prefix=/usr/local
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
15 # Any additions from configure.in:
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
16 ac_help="$ac_help
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
17 --with-next-archs='arch1 arch2 ..' build MAB binary"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
18 ac_help="$ac_help
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
19 --without-gcc never use gcc"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
20 ac_help="$ac_help
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
21 --with-libs='lib1 ...' link against additional libs"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
22 ac_help="$ac_help
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
23 --with-readline[=DIRECTORY] use GNU readline library"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
24 ac_help="$ac_help
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
25 --with-thread[=DIRECTORY] make interpreter thread-safe"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
26 ac_help="$ac_help
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
27 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
28 ac_help="$ac_help
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
29 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
30 ac_help="$ac_help
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
31 --with-libm=STRING math library"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
32 ac_help="$ac_help
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
33 --with-libc=STRING C library"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
34
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
35 # Initialize some variables set by options.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
36 # The variables have the same names as the options, with
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
37 # dashes changed to underlines.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
38 build=NONE
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
39 cache_file=./config.cache
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
40 exec_prefix=NONE
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
41 host=NONE
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
42 no_create=
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
43 nonopt=NONE
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
44 no_recursion=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
45 prefix=NONE
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
46 program_prefix=NONE
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
47 program_suffix=NONE
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
48 program_transform_name=s,x,x,
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
49 silent=
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
50 site=
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
51 srcdir=
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
52 target=NONE
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
53 verbose=
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
54 x_includes=NONE
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
55 x_libraries=NONE
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
56 bindir='${exec_prefix}/bin'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
57 sbindir='${exec_prefix}/sbin'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
58 libexecdir='${exec_prefix}/libexec'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
59 datadir='${prefix}/share'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
60 sysconfdir='${prefix}/etc'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
61 sharedstatedir='${prefix}/com'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
62 localstatedir='${prefix}/var'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
63 libdir='${exec_prefix}/lib'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
64 includedir='${prefix}/include'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
65 oldincludedir='/usr/include'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
66 infodir='${prefix}/info'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
67 mandir='${prefix}/man'
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
68
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
69 # Initialize some other variables.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
70 subdirs=
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
71 MFLAGS= MAKEFLAGS=
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
72
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
73 ac_prev=
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
74 for ac_option
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
75 do
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
76
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
77 # If the previous option needs an argument, assign it.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
78 if test -n "$ac_prev"; then
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
79 eval "$ac_prev=\$ac_option"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
80 ac_prev=
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
81 continue
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
82 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
83
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
84 case "$ac_option" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
86 *) ac_optarg= ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
87 esac
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
88
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
89 # Accept the important Cygnus configure options, so we can diagnose typos.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
90
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
91 case "$ac_option" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
92
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
94 ac_prev=bindir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
96 bindir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
97
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
98 -build | --build | --buil | --bui | --bu)
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
99 ac_prev=build ;;
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
101 build="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
102
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
105 ac_prev=cache_file ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
108 cache_file="$ac_optarg" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
109
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
111 ac_prev=datadir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
113 | --da=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
114 datadir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
115
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
116 -disable-* | --disable-*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
118 # Reject names that are not valid shell variable names.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
121 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
123 eval "enable_${ac_feature}=no" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
124
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
125 -enable-* | --enable-*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
127 # Reject names that are not valid shell variable names.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
130 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
132 case "$ac_option" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
133 *=*) ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
134 *) ac_optarg=yes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
135 esac
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
137
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
140 | --exec | --exe | --ex)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
141 ac_prev=exec_prefix ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
144 | --exec=* | --exe=* | --ex=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
145 exec_prefix="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
146
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
147 -gas | --gas | --ga | --g)
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
148 # Obsolete; use --with-gas.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
149 with_gas=yes ;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
150
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
151 -help | --help | --hel | --he)
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
152 # Omit some internal or obsolete options to make the list less imposing.
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
153 # This message is too long to be a string in the A/UX 3.1 sh.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
154 cat << EOF
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
155 Usage: configure [options] [host]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
156 Options: [defaults in brackets after descriptions]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
157 Configuration:
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
158 --cache-file=FILE cache test results in FILE
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
159 --help print this message
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
160 --no-create do not create output files
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
161 --quiet, --silent do not print \`checking...' messages
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
162 --version print the version of autoconf that created configure
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
163 Directory and file names:
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
164 --prefix=PREFIX install architecture-independent files in PREFIX
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
165 [$ac_default_prefix]
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
167 [same as prefix]
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
171 --datadir=DIR read-only architecture-independent data in DIR
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
172 [PREFIX/share]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
175 [PREFIX/com]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
178 --includedir=DIR C header files in DIR [PREFIX/include]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
180 --infodir=DIR info documentation in DIR [PREFIX/info]
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
181 --mandir=DIR man documentation in DIR [PREFIX/man]
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
183 --program-prefix=PREFIX prepend PREFIX to installed program names
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
184 --program-suffix=SUFFIX append SUFFIX to installed program names
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
185 --program-transform-name=PROGRAM
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
186 run sed PROGRAM on installed program names
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
187 EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
188 cat << EOF
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
189 Host type:
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
191 --host=HOST configure for HOST [guessed]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
192 --target=TARGET configure for TARGET [TARGET=HOST]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
193 Features and packages:
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
198 --x-includes=DIR X include files are in DIR
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
199 --x-libraries=DIR X library files are in DIR
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
200 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
201 if test -n "$ac_help"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
202 echo "--enable and --with options recognized:$ac_help"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
203 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
204 exit 0 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
205
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
206 -host | --host | --hos | --ho)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
207 ac_prev=host ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
208 -host=* | --host=* | --hos=* | --ho=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
209 host="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
210
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
211 -includedir | --includedir | --includedi | --included | --include \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
212 | --includ | --inclu | --incl | --inc)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
213 ac_prev=includedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
216 includedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
217
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
219 ac_prev=infodir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
221 infodir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
222
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
223 -libdir | --libdir | --libdi | --libd)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
224 ac_prev=libdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
226 libdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
227
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
229 | --libexe | --libex | --libe)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
230 ac_prev=libexecdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
232 | --libexe=* | --libex=* | --libe=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
233 libexecdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
234
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
236 | --localstate | --localstat | --localsta | --localst \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
237 | --locals | --local | --loca | --loc | --lo)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
238 ac_prev=localstatedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
242 localstatedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
243
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
245 ac_prev=mandir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
247 mandir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
248
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
249 -nfp | --nfp | --nf)
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
250 # Obsolete; use --without-fp.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
251 with_fp=no ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
252
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
254 | --no-cr | --no-c)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
255 no_create=yes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
256
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
259 no_recursion=yes ;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
260
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
263 | --oldin | --oldi | --old | --ol | --o)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
264 ac_prev=oldincludedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
268 oldincludedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
269
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
271 ac_prev=prefix ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
273 prefix="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
274
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
276 | --program-pre | --program-pr | --program-p)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
277 ac_prev=program_prefix ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
280 program_prefix="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
281
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
283 | --program-suf | --program-su | --program-s)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
284 ac_prev=program_suffix ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
287 program_suffix="$ac_optarg" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
288
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
289 -program-transform-name | --program-transform-name \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
290 | --program-transform-nam | --program-transform-na \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
291 | --program-transform-n | --program-transform- \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
292 | --program-transform | --program-transfor \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
293 | --program-transfo | --program-transf \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
294 | --program-trans | --program-tran \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
295 | --progr-tra | --program-tr | --program-t)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
296 ac_prev=program_transform_name ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
297 -program-transform-name=* | --program-transform-name=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
298 | --program-transform-nam=* | --program-transform-na=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
299 | --program-transform-n=* | --program-transform-=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
300 | --program-transform=* | --program-transfor=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
301 | --program-transfo=* | --program-transf=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
302 | --program-trans=* | --program-tran=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
303 | --progr-tra=* | --program-tr=* | --program-t=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
304 program_transform_name="$ac_optarg" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
305
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
307 | -silent | --silent | --silen | --sile | --sil)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
308 silent=yes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
309
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
311 ac_prev=sbindir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
313 | --sbi=* | --sb=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
314 sbindir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
315
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
318 | --sharedst | --shareds | --shared | --share | --shar \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
319 | --sha | --sh)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
320 ac_prev=sharedstatedir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
324 | --sha=* | --sh=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
325 sharedstatedir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
326
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
327 -site | --site | --sit)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
328 ac_prev=site ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
329 -site=* | --site=* | --sit=*)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
330 site="$ac_optarg" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
331
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
333 ac_prev=srcdir ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
335 srcdir="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
336
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
338 | --syscon | --sysco | --sysc | --sys | --sy)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
339 ac_prev=sysconfdir ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
342 sysconfdir="$ac_optarg" ;;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
343
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
344 -target | --target | --targe | --targ | --tar | --ta | --t)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
345 ac_prev=target ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
347 target="$ac_optarg" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
348
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
350 verbose=yes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
351
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
352 -version | --version | --versio | --versi | --vers)
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
353 echo "configure generated by autoconf version 2.10"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
354 exit 0 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
355
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
356 -with-* | --with-*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
358 # Reject names that are not valid shell variable names.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
361 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
363 case "$ac_option" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
364 *=*) ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
365 *) ac_optarg=yes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
366 esac
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
367 eval "with_${ac_package}='$ac_optarg'" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
368
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
369 -without-* | --without-*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
371 # Reject names that are not valid shell variable names.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
374 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
376 eval "with_${ac_package}=no" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
377
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
378 --x)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
379 # Obsolete; use --with-x.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
380 with_x=yes ;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
381
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
383 | --x-incl | --x-inc | --x-in | --x-i)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
384 ac_prev=x_includes ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
387 x_includes="$ac_optarg" ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
388
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
391 ac_prev=x_libraries ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
394 x_libraries="$ac_optarg" ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
395
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
397 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
398
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
399 *)
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
402 fi
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
403 if test "x$nonopt" != xNONE; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
405 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
406 nonopt="$ac_option"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
407 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
408
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
409 esac
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
410 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
411
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
412 if test -n "$ac_prev"; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
414 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
415
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
417
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
418 # File descriptor usage:
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
419 # 0 standard input
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
420 # 1 file creation
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
421 # 2 errors and warnings
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
422 # 3 some systems may open it to /dev/tty
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
423 # 4 used on the Kubota Titan
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
424 # 6 checking for... messages and results
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
425 # 5 compiler messages saved in config.log
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
426 if test "$silent" = yes; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
427 exec 6>/dev/null
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
428 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
429 exec 6>&1
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
430 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
431 exec 5>./config.log
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
432
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
433 echo "\
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
434 This file contains any messages produced by compilers while
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
435 running configure, to aid debugging if configure makes a mistake.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
436 " 1>&5
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
437
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
438 # Strip out --no-create and --no-recursion so they do not pile up.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
439 # Also quote any args containing shell metacharacters.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
440 ac_configure_args=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
441 for ac_arg
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
442 do
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
443 case "$ac_arg" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
445 | --no-cr | --no-c) ;;
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
451 esac
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
452 done
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
454 # NLS nuisances.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
455 # Only set LANG and LC_ALL to C if already set.
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
456 # These must not be set unconditionally because not all systems understand
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
457 # e.g. LANG=C (notably SCO).
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
460
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
462 rm -rf conftest* confdefs.h
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
464 echo > confdefs.h
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
465
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
466 # A filename unique to this package, relative to the directory that
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
467 # configure is in, which we can look for to find out if srcdir is correct.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
468 ac_unique_file=Include/object.h
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
469
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
470 # Find the source files, if location was not specified.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
471 if test -z "$srcdir"; then
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
472 ac_srcdir_defaulted=yes
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
473 # Try the directory containing this script, then its parent.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
474 ac_prog=$0
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
475 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
477 srcdir=$ac_confdir
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
478 if test ! -r $srcdir/$ac_unique_file; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
479 srcdir=..
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
480 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
481 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
482 ac_srcdir_defaulted=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
483 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
484 if test ! -r $srcdir/$ac_unique_file; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
485 if test "$ac_srcdir_defaulted" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
487 else
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
489 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
490 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
491 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
492
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
493 # Prefer explicitly selected file to automatically selected ones.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
494 if test -z "$CONFIG_SITE"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
495 if test "x$prefix" != xNONE; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
496 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
497 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
498 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
499 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
500 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
501 for ac_site_file in $CONFIG_SITE; do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
502 if test -r "$ac_site_file"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
503 echo "loading site script $ac_site_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
504 . "$ac_site_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
505 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
506 done
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
507
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
508 if test -r "$cache_file"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
509 echo "loading cache $cache_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
510 . $cache_file
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
511 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
512 echo "creating cache $cache_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
513 > $cache_file
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
514 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
515
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
516 ac_ext=c
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
518 ac_cpp='$CPP $CPPFLAGS'
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
520 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
521
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
522 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
523 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
524 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
525 ac_n= ac_c='
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
526 ' ac_t=' '
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
527 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
528 ac_n=-n ac_c= ac_t=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
529 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
530 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
531 ac_n= ac_c='\c' ac_t=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
532 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
533
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
534
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
535
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
536
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
537 # NEXTSTEP stuff
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
538 if test -f /usr/lib/NextStep/software_version; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
539
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
540 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
541 # Check whether --with-next-archs or --without-next-archs was given.
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
542 if test "${with_next_archs+set}" = set; then
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
543 withval="$with_next_archs"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
544
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
545 if test -n "$withval"; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
546 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
547 # GCC does not currently support multi archs on the NeXT
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
548 with_gcc=no
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
549 fi
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
550 echo "$ac_t""$with_next_archs" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
551
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
552 else
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
553 echo "$ac_t""none: using `arch`" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
554 fi
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
555
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
556
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
557 if test -z "$MACHDEP"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
558 then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
559 set X `hostinfo | grep 'NeXT Mach.*:' | \
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
560 sed -e 's/://' -e 's/\./_/'` && \
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
561 ac_sys_system=next && ac_sys_release=$4
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
562
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
563 MACHDEP="$ac_sys_system$ac_sys_release"
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
564 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
565 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
566
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
567 # Set name for machine-dependent library files
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
568
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
569 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
570 if test -z "$MACHDEP"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
571 then
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
572 ac_sys_system=`uname -s`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
573 if test "$ac_sys_system" = "AIX" ; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
574 ac_sys_release=`uname -v`
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
575 else
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
576 ac_sys_release=`uname -r`
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
577 fi
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
578 ac_md_system=`echo $ac_sys_system |
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
579 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
580 ac_md_release=`echo $ac_sys_release |
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
581 tr -d '/ ' | sed 's/\..*//'`
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
582 MACHDEP="$ac_md_system$ac_md_release"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
583
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
584 case MACHDEP in
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
585 '') MACHDEP=unknown;;
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
586 esac
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
587 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
588 echo "$ac_t""$MACHDEP" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
589
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
590 # checks for alternative programs
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
591 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
592 # Check whether --with-gcc or --without-gcc was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
593 if test "${with_gcc+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
594 withval="$with_gcc"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
595
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
596 case $withval in
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
597 no) CC=cc
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
598 without_gcc=yes;;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
599 yes) CC=gcc
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
600 without_gcc=no;;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
601 *) CC=$withval
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
602 without_gcc=$withval;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
603 esac
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
604 else
3092
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
605
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
606 case $ac_sys_system in
3092
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
607 OSF1) CC=cc
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
608 without_gcc=;;
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
609 *) without_gcc=no;;
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
610 esac
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
611 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
612
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
613 echo "$ac_t""$without_gcc" 1>&6
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
614
2509
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
615 # If the user switches compilers, we can't believe the cache
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
616 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
617 then
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
618 { echo "configure: error: cached CC is different -- throw away $cache_file
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
619 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
620 fi
c6e482870ec3 the usual
Guido van Rossum <guido@python.org>
parents: 2329
diff changeset
621
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
622 # Extract the first word of "gcc", so it can be a program name with args.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
623 set dummy gcc; ac_word=$2
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
625 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
626 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
627 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
628 if test -n "$CC"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
629 ac_cv_prog_CC="$CC" # Let the user override the test.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
630 else
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
632 for ac_dir in $PATH; do
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
633 test -z "$ac_dir" && ac_dir=.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
634 if test -f $ac_dir/$ac_word; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
635 ac_cv_prog_CC="gcc"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
636 break
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
637 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
638 done
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
639 IFS="$ac_save_ifs"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
640 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
641 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
642 CC="$ac_cv_prog_CC"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
643 if test -n "$CC"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
644 echo "$ac_t""$CC" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
645 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
646 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
647 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
648
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
649 if test -z "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
650 # Extract the first word of "cc", so it can be a program name with args.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
651 set dummy cc; ac_word=$2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
654 echo $ac_n "(cached) $ac_c" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
655 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
656 if test -n "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
657 ac_cv_prog_CC="$CC" # Let the user override the test.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
658 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
660 ac_prog_rejected=no
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
661 for ac_dir in $PATH; do
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
662 test -z "$ac_dir" && ac_dir=.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
663 if test -f $ac_dir/$ac_word; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
664 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
665 ac_prog_rejected=yes
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
666 continue
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
667 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
668 ac_cv_prog_CC="cc"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
669 break
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
670 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
671 done
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
672 IFS="$ac_save_ifs"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
673 if test $ac_prog_rejected = yes; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
674 # We found a bogon in the path, so make sure we never use it.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
675 set dummy $ac_cv_prog_CC
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
676 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
677 if test $# -gt 0; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
678 # We chose a different compiler from the bogus one.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
679 # However, it has the same basename, so the bogon will be chosen
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
680 # first if we set CC to just the basename; use the full file name.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
681 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
682 set dummy "$ac_dir/$ac_word" "$@"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
683 shift
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
684 ac_cv_prog_CC="$@"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
685 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
686 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
687 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
688 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
689 CC="$ac_cv_prog_CC"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
690 if test -n "$CC"; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
691 echo "$ac_t""$CC" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
692 else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
693 echo "$ac_t""no" 1>&6
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
694 fi
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
695
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
696 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
697 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
698
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
700 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
701 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
702 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
703 cat > conftest.c <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
704 #ifdef __GNUC__
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
705 yes;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
706 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
707 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
708 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
709 ac_cv_prog_gcc=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
710 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
711 ac_cv_prog_gcc=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
712 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
713 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
714
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
715 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
716 if test $ac_cv_prog_gcc = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
717 GCC=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
718 if test "${CFLAGS+set}" != set; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
719 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
720 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
721 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
722 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
723 echo 'void f(){}' > conftest.c
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
724 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
725 ac_cv_prog_gcc_g=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
726 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
727 ac_cv_prog_gcc_g=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
728 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
729 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
730
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
731 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
732
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
733 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
734 if test $ac_cv_prog_gcc_g = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
735 CFLAGS="-g -O"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
736 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
737 CFLAGS="-O"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
738 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
739 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
740 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
741 GCC=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
742 test "${CFLAGS+set}" = set || CFLAGS="-g"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
743 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
744
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
745 # Extract the first word of "ranlib", so it can be a program name with args.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
746 set dummy ranlib; ac_word=$2
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
748 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
749 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
750 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
751 if test -n "$RANLIB"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
753 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
755 for ac_dir in $PATH; do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
756 test -z "$ac_dir" && ac_dir=.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
757 if test -f $ac_dir/$ac_word; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
758 ac_cv_prog_RANLIB="ranlib"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
759 break
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
760 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
761 done
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
762 IFS="$ac_save_ifs"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
763 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
764 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
765 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
766 RANLIB="$ac_cv_prog_RANLIB"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
767 if test -n "$RANLIB"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
768 echo "$ac_t""$RANLIB" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
769 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
770 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
771 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
772
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
773
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
774 for ac_prog in ar aal
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
775 do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
776 # Extract the first word of "$ac_prog", so it can be a program name with args.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
777 set dummy $ac_prog; ac_word=$2
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
779 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
780 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
781 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
782 if test -n "$AR"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
783 ac_cv_prog_AR="$AR" # Let the user override the test.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
784 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
786 for ac_dir in $PATH; do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
787 test -z "$ac_dir" && ac_dir=.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
788 if test -f $ac_dir/$ac_word; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
789 ac_cv_prog_AR="$ac_prog"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
790 break
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
791 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
792 done
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
793 IFS="$ac_save_ifs"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
794 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
795 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
796 AR="$ac_cv_prog_AR"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
797 if test -n "$AR"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
798 echo "$ac_t""$AR" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
799 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
800 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
801 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
802
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
803 test -n "$AR" && break
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
804 done
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
805 test -n "$AR" || AR="ar"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
806
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
807
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
808
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
809
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
810 # Install just never works :-(
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
811 if test -z "$INSTALL"
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
812 then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
813 INSTALL=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
814 INSTALL_PROGRAM=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
815 INSTALL_DATA=cp
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
816 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
817 INSTALL_PROGRAM="$INSTALL"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
818 INSTALL_DATA="$INSTALL -m 644"
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
819 fi
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
820
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
821 # Optimizer/debugger flags passed between Makefiles
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
822
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
823 if test -z "$OPT"
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
824 then
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
825 case $ac_sys_system in
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
826 *) OPT="-O";;
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
827 esac
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
828 fi
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
829
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
830 if test "$ac_arch_flags"
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
831 then
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
832 OPT="$OPT $ac_arch_flags"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
833 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
834 # checks for UNIX variants that set C preprocessor variables
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
835 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
836 # On Suns, sometimes $CPP names a directory.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
837 if test -n "$CPP" && test -d "$CPP"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
838 CPP=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
839 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
840 if test -z "$CPP"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
841 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
842 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
843 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
844 # This must be in double quotes, not single quotes, because CPP may get
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
845 # substituted into the Makefile and "${CC-cc}" will confuse make.
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
846 CPP="${CC-cc} -E"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
847 # On the NeXT, cc -E runs the code through the compiler's parser,
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
848 # not just through cpp.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
849 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
850 #line 851 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
851 #include "confdefs.h"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
852 #include <assert.h>
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
853 Syntax Error
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
854 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
856 { (eval echo configure:857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
857 ac_err=`grep -v '^ *+' conftest.out`
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
858 if test -z "$ac_err"; then
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
859 :
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
860 else
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
861 echo "$ac_err" >&5
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
862 rm -rf conftest*
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
863 CPP="${CC-cc} -E -traditional-cpp"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
864 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
865 #line 866 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
866 #include "confdefs.h"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
867 #include <assert.h>
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
868 Syntax Error
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
869 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
871 { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
872 ac_err=`grep -v '^ *+' conftest.out`
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
873 if test -z "$ac_err"; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
874 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
875 else
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
876 echo "$ac_err" >&5
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
877 rm -rf conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
878 CPP=/lib/cpp
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
879 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
880 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
881 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
882 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
883 ac_cv_prog_CPP="$CPP"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
884 fi
3092
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
885 CPP="$ac_cv_prog_CPP"
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
886 else
1ff12619a14c new version from configure.in
Guido van Rossum <guido@python.org>
parents: 2741
diff changeset
887 ac_cv_prog_CPP="$CPP"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
888 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
889 echo "$ac_t""$CPP" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
890
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
891 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
892 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
893 #line 894 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
894 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
895 #ifdef _AIX
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
896 yes
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
897 #endif
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
898
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
899 EOF
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
901 egrep "yes" >/dev/null 2>&1; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
902 rm -rf conftest*
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
903 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
904 #define _ALL_SOURCE 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
905 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
906
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
907 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
908 rm -rf conftest*
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
909 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
910 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
911 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
912
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
913
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
914 ac_safe=`echo "minix/config.h" | tr './\055' '___'`
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
915 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
917 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
918 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
919 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
920 #line 921 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
921 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
922 #include <minix/config.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
923 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
925 { (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
926 ac_err=`grep -v '^ *+' conftest.out`
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
927 if test -z "$ac_err"; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
928 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
929 eval "ac_cv_header_$ac_safe=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
930 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
931 echo "$ac_err" >&5
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
932 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
933 eval "ac_cv_header_$ac_safe=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
934 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
935 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
936 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
938 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
939 MINIX=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
940 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
941 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
942 MINIX=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
943 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
944
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
945 if test "$MINIX" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
946 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
947 #define _POSIX_SOURCE 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
948 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
949
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
950 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
951 #define _POSIX_1_SOURCE 2
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
952 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
953
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
954 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
955 #define _MINIX 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
956 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
957
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
958 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
959
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
960
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
961 # check for ANSI or K&R ("traditional") preprocessor
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
962 echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
963 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
964 #line 965 "configure"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
965 #include "confdefs.h"
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
966
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
967 #define spam(name, doc) {#name, &name, #name "() -- " doc}
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
968 int foo;
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
969 struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
970
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
971 int main() { return 0; }
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
972 int t() {
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
973 ;
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
974 ; return 0; }
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
975 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
976 if { (eval echo configure:977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
977 rm -rf conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
978 cpp_type=ansi
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
979 else
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
980 rm -rf conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
981 cat >> confdefs.h <<\EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
982 #define HAVE_OLD_CPP 1
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
983 EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
984 cpp_type=traditional
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
985 fi
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
986 rm -f conftest*
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
987
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
988 echo "$ac_t""$cpp_type" 1>&6
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
989
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
990 # checks for header files
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
991 # If we cannot run a trivial program, we must be cross compiling.
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
992 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
993 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
994 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
995 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
996 if test "$cross_compiling" = yes; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
997 ac_cv_c_cross=yes
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
998 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
999 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1000 #line 1001 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1001 #include "confdefs.h"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1002 main(){return(0);}
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1003 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1004 { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1005 if test -s conftest && (./conftest; exit) 2>/dev/null; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1006 ac_cv_c_cross=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1007 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1008 ac_cv_c_cross=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1009 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1010 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1011 rm -fr conftest*
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1012 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1013
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1014 echo "$ac_t""$ac_cv_c_cross" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1015 cross_compiling=$ac_cv_c_cross
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1016
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1017 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1018 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1019 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1020 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1021 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1022 #line 1023 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1023 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1024 #include <stdlib.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1025 #include <stdarg.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1026 #include <string.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1027 #include <float.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1028 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1030 { (eval echo configure:1031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1031 ac_err=`grep -v '^ *+' conftest.out`
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1032 if test -z "$ac_err"; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1033 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1034 ac_cv_header_stdc=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1035 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1036 echo "$ac_err" >&5
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1037 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1038 ac_cv_header_stdc=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1039 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1040 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1041
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1042 if test $ac_cv_header_stdc = yes; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1044 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1045 #line 1046 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1046 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1047 #include <string.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1048 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1050 egrep "memchr" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1051 :
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1052 else
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1053 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1054 ac_cv_header_stdc=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1055 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1056 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1057
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1058 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1059
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1060 if test $ac_cv_header_stdc = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1062 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1063 #line 1064 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1064 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1065 #include <stdlib.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1066 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1068 egrep "free" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1069 :
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1070 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1071 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1072 ac_cv_header_stdc=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1073 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1074 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1075
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1076 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1077
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1078 if test $ac_cv_header_stdc = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1080 if test "$cross_compiling" = yes; then
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1081 :
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1082 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1083 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1084 #line 1085 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1085 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1086 #include <ctype.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1087 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1088 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1090 int main () { int i; for (i = 0; i < 256; i++)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1091 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1092 exit (0); }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1093
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1094 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1095 { (eval echo configure:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1096 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1097 :
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1098 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1099 ac_cv_header_stdc=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1100 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1101 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1102 rm -fr conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1103 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1104 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1105
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1106 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1107 if test $ac_cv_header_stdc = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1108 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1109 #define STDC_HEADERS 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1110 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1111
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1112 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1113
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1114 for ac_hdr in dlfcn.h fcntl.h limits.h ncurses.h \
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1115 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
3740
e4807a0c1092 added plock
Guido van Rossum <guido@python.org>
parents: 3723
diff changeset
1116 sys/audioio.h sys/lock.h sys/param.h sys/select.h sys/time.h sys/times.h \
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1117 sys/un.h sys/utsname.h sys/wait.h
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1118 do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1119 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1122 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1123 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1124 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1125 #line 1126 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1126 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1127 #include <$ac_hdr>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1128 EOF
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1130 { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1131 ac_err=`grep -v '^ *+' conftest.out`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1132 if test -z "$ac_err"; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1133 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1134 eval "ac_cv_header_$ac_safe=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1135 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1136 echo "$ac_err" >&5
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1137 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1138 eval "ac_cv_header_$ac_safe=no"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1139 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1140 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1141 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1142 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1143 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1144 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1145 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1146 #define $ac_tr_hdr 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1147 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1148
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1149 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1150 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1151 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1152 done
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1153
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1154 ac_header_dirent=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1156 do
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1157 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1158 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1159 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1160 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1161 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1162 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1163 #line 1164 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1164 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1165 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1166 #include <$ac_hdr>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1167 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1168 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1169 DIR *dirp = 0;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1170 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1171 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1172 if { (eval echo configure:1173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1173 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1174 eval "ac_cv_header_dirent_$ac_safe=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1175 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1176 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1177 eval "ac_cv_header_dirent_$ac_safe=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1178 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1179 rm -f conftest*
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1180
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1181 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1182 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1183 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1184 ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1185 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1186 #define $ac_tr_hdr 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1187 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1188 ac_header_dirent=$ac_hdr; break
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1189 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1190 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1191 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1192 done
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1193 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1194 if test $ac_header_dirent = dirent.h; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1195 echo $ac_n "checking for -ldir""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1196 ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1198 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1199 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1200 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1201 LIBS="-ldir $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1202 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1203 #line 1204 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1204 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1205 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1206 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1207 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1208 char opendir();
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1209
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1210 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1211 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1212 opendir()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1213 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1214 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1216 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1217 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1218 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1219 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1220 eval "ac_cv_lib_$ac_lib_var=no"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1221 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1222 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1223 LIBS="$ac_save_LIBS"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1224
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1225 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1227 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1228 LIBS="$LIBS -ldir"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1229 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1230 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1231 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1232
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1233 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1234 echo $ac_n "checking for -lx""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1235 ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1236 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1237 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1238 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1239 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1240 LIBS="-lx $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1241 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1242 #line 1243 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1243 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1244 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1245 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1246 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1247 char opendir();
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1248
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1249 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1250 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1251 opendir()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1252 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1253 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1254 if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1255 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1256 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1257 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1258 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1259 eval "ac_cv_lib_$ac_lib_var=no"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1260 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1261 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1262 LIBS="$ac_save_LIBS"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1263
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1264 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1266 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1267 LIBS="$LIBS -lx"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1268 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1269 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1270 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1271
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1272 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1273
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1274
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1275 # checks for typedefs
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1276 was_it_defined=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1277 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1278 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1279 #line 1280 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1280 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1281 #include <time.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1282 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1284 egrep "clock_t" >/dev/null 2>&1; then
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1285 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1286 was_it_defined=yes
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1287 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1288 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1289 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1290 #define clock_t long
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1291 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1292
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1293 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1294 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1295
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1296 echo "$ac_t""$was_it_defined" 1>&6
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1297
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1298 # Add some code to confdefs.h so that the test for off_t works on SCO
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1299 cat >> confdefs.h <<\EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1300 #if defined(SCO_DS)
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1301 #undef _OFF_T
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1302 #endif
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1303 EOF
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1304
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1305 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1306 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1307 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1308 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1309 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1310 #line 1311 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1311 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1312 #include <sys/types.h>
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1313 #if STDC_HEADERS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1314 #include <stdlib.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1315 #endif
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1316 EOF
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1318 egrep "mode_t" >/dev/null 2>&1; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1319 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1320 ac_cv_type_mode_t=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1321 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1322 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1323 ac_cv_type_mode_t=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1324 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1325 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1326
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1327 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1328 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1329 if test $ac_cv_type_mode_t = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1330 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1331 #define mode_t int
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1332 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1333
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1334 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1335
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1336 echo $ac_n "checking for off_t""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1337 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1338 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1339 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1340 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1341 #line 1342 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1342 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1343 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1344 #if STDC_HEADERS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1345 #include <stdlib.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1346 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1347 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1349 egrep "off_t" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1350 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1351 ac_cv_type_off_t=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1352 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1353 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1354 ac_cv_type_off_t=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1355 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1356 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1357
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1358 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1359 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1360 if test $ac_cv_type_off_t = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1361 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1362 #define off_t long
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1363 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1364
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1365 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1366
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1367 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1368 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1369 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1370 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1371 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1372 #line 1373 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1373 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1374 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1375 #if STDC_HEADERS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1376 #include <stdlib.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1377 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1378 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1380 egrep "pid_t" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1381 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1382 ac_cv_type_pid_t=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1383 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1384 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1385 ac_cv_type_pid_t=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1386 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1387 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1388
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1389 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1390 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1391 if test $ac_cv_type_pid_t = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1392 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1393 #define pid_t int
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1394 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1395
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1396 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1397
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1398 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1399 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1400 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1401 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1402 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1403 #line 1404 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1404 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1405 #include <sys/types.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1406 #include <signal.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1407 #ifdef signal
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1408 #undef signal
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1409 #endif
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1410 #ifdef __cplusplus
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1411 extern "C" void (*signal (int, void (*)(int)))(int);
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1412 #else
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1413 void (*signal ()) ();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1414 #endif
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1415
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1416 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1417 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1418 int i;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1419 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1420 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1421 if { (eval echo configure:1422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1422 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1423 ac_cv_type_signal=void
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1424 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1425 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1426 ac_cv_type_signal=int
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1427 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1428 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1429
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1430 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1431
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1432 echo "$ac_t""$ac_cv_type_signal" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1433 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1434 #define RETSIGTYPE $ac_cv_type_signal
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1435 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1436
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1437
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1438 echo $ac_n "checking for size_t""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1439 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1440 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1441 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1442 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1443 #line 1444 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1444 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1445 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1446 #if STDC_HEADERS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1447 #include <stdlib.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1448 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1449 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1451 egrep "size_t" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1452 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1453 ac_cv_type_size_t=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1454 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1455 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1456 ac_cv_type_size_t=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1457 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1458 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1459
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1460 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1461 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1462 if test $ac_cv_type_size_t = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1463 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1464 #define size_t unsigned
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1465 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1466
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1467 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1468
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1469 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1470 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1471 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1472 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1473 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1474 #line 1475 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1475 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1476 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1477 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1479 egrep "uid_t" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1480 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1481 ac_cv_type_uid_t=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1482 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1483 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1484 ac_cv_type_uid_t=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1485 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1486 rm -f conftest*
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1487
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1488 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1489
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1490 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1491 if test $ac_cv_type_uid_t = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1492 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1493 #define uid_t int
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1494 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1495
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1496 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1497 #define gid_t int
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1498 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1499
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1500 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1501
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1502
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1503
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1504 # Set info about shared libraries.
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
1505
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
1506
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
1507
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
1508
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1509 # SO is the extension of shared libraries `(including the dot!)
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1510 # -- usually .so, .sl on HP-UX
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1511 echo $ac_n "checking SO""... $ac_c" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1512 if test -z "$SO"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1513 then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1514 case $ac_sys_system in
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1515 hp*|HP*) SO=.sl;;
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1516 *) SO=.so;;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1517 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1518 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1519 echo "$ac_t""$SO" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1520 # LDSHARED is the ld *command* used to create shared library
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1521 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1522 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1523 if test -z "$LDSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1524 then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1525 case $ac_sys_system/$ac_sys_release in
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1526 AIX*) LDSHARED="ld_so_aix \$(CC)";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1527 IRIX*) LDSHARED="ld -shared";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1528 SunOS/4*) LDSHARED="ld";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1529 SunOS/5*) LDSHARED="ld -G";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1530 hp*|HP*) LDSHARED="ld -b";;
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1531 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1532 DYNIX/ptx*) LDSHARED="ld -G";;
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1533 next/*) LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';;
3782
3eb1694edce6 Use gcc, not gcc-elf on Linux
Guido van Rossum <guido@python.org>
parents: 3740
diff changeset
1534 Linux*) LDSHARED="gcc -shared";;
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1535 FreeBSD*) LDSHARED="ld -Bshareable";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1536 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1537 *) LDSHARED="ld";;
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1538 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1539 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1540 echo "$ac_t""$LDSHARED" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1541 # CCSHARED are the C *flags* used to create objects to go into a shared
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1542 # library -- this is only needed for a few systems
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1543 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1544 if test -z "$CCSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1545 then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1546 case $ac_sys_system in
2329
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1547 hp*|HP*) if test "$GCC" = yes;
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1548 then CCSHARED="-fpic";
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1549 else CCSHARED="+z";
1b262d190a4a the usual
Guido van Rossum <guido@python.org>
parents: 2247
diff changeset
1550 fi;;
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1551 Linux*) CCSHARED="-fpic";;
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1552 FreeBSD*) CCSHARED="-fpic";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1553 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1554 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1555 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1556 echo "$ac_t""$CCSHARED" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1557 # LINKFORSHARED are the flags passed to the $(CC) command that links
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1558 # the python executable -- this is only needed for a few systems
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1559 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1560 if test -z "$LINKFORSHARED"
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1561 then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1562 case $ac_sys_system in
3909
6d5096b7038d The usual
Guido van Rossum <guido@python.org>
parents: 3894
diff changeset
1563 AIX*) LINKFORSHARED="-Wl,-bE:python.exp";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1564 hp*|HP*) LINKFORSHARED="-Wl,-E";;
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1565 Linux*) LINKFORSHARED="-rdynamic";;
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1566 next) LINKFORSHARED="-u libsys_s";;
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1567 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1568 esac
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1569 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1570 echo "$ac_t""$LINKFORSHARED" 1>&6
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
1571
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1572 # checks for libraries
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1573 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1574 ac_lib_var=`echo dl'_'dlopen | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1576 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1577 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1578 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1579 LIBS="-ldl $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1580 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1581 #line 1582 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1582 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1583 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1584 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1585 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1586 char dlopen();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1587
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1588 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1589 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1590 dlopen()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1591 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1592 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1594 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1595 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1596 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1597 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1598 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1599 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1600 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1601 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1602
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1603 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1605 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1606 ac_tr_lib=HAVE_LIB`echo dl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1607 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1608 #define $ac_tr_lib 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1609 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1610
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1611 LIBS="-ldl $LIBS"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1612
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1613 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1614 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1615 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1616 # Dynamic linking for SunOS/Solaris and SYSV
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1617 echo $ac_n "checking for -ldld""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1618 ac_lib_var=`echo dld'_'shl_load | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1619 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1620 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1621 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1622 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1623 LIBS="-ldld $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1624 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1625 #line 1626 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1626 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1627 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1628 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1629 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1630 char shl_load();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1631
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1632 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1633 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1634 shl_load()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1635 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1636 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1638 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1639 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1640 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1641 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1642 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1643 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1644 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1645 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1646
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1647 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1649 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1650 ac_tr_lib=HAVE_LIB`echo dld | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1651 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1652 #define $ac_tr_lib 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1653 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1654
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1655 LIBS="-ldld $LIBS"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1656
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1657 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1658 echo "$ac_t""no" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1659 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1660 # Dynamic linking for HP-UX
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1661 echo $ac_n "checking for -lsun""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1662 ac_lib_var=`echo sun'_'getpwnam | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1664 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1665 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1666 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1667 LIBS="-lsun $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1668 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1669 #line 1670 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1670 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1671 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1672 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1673 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1674 char getpwnam();
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1675
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1676 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1677 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1678 getpwnam()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1679 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1680 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1682 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1683 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1684 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1685 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1686 eval "ac_cv_lib_$ac_lib_var=no"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1687 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1688 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1689 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1690
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1691 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1693 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1694 ac_tr_lib=HAVE_LIB`echo sun | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1695 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1696 #define $ac_tr_lib 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1697 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1698
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1699 LIBS="-lsun $LIBS"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1700
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1701 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1702 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1703 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1704 # NIS (== YP) interface for IRIX 4
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1705 # The following three (nsl,inet,socket) are needed on Sequent;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1706 # the order of checking must be this. Most SVR4 platforms will
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1707 # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1708 # broken. I see no elegant solution (probably CHECK_LIB should be
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1709 # fixed to only add the library if the given entry point is not
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1710 # satisfied without it).
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
1711 if test "$ac_sys_system" != IRIX
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1712 then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1713 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1714 ac_lib_var=`echo nsl'_'t_open | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1716 echo $ac_n "(cached) $ac_c" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1717 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1718 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1719 LIBS="-lnsl $LIBS"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1720 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1721 #line 1722 "configure"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1722 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1723 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1724 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1725 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1726 char t_open();
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1727
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1728 int main() { return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1729 int t() {
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1730 t_open()
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1731 ; return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1732 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1734 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1735 eval "ac_cv_lib_$ac_lib_var=yes"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1736 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1737 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1738 eval "ac_cv_lib_$ac_lib_var=no"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1739 fi
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1740 rm -f conftest*
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1741 LIBS="$ac_save_LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1742
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1743 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1745 echo "$ac_t""yes" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1746 LIBS="-lnsl $LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1747 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1748 echo "$ac_t""no" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1749 fi
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1750 # SVR4
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1751 echo $ac_n "checking for -linet""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1752 ac_lib_var=`echo inet'_'gethostbyname | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1754 echo $ac_n "(cached) $ac_c" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1755 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1756 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1757 LIBS="-linet -lnsl $LIBS"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1758 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1759 #line 1760 "configure"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1760 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1761 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1762 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1763 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1764 char gethostbyname();
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1765
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1766 int main() { return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1767 int t() {
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1768 gethostbyname()
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1769 ; return 0; }
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1770 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1772 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1773 eval "ac_cv_lib_$ac_lib_var=yes"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1774 else
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1775 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1776 eval "ac_cv_lib_$ac_lib_var=no"
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1777 fi
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1778 rm -f conftest*
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1779 LIBS="$ac_save_LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1780
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1781 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1783 echo "$ac_t""yes" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1784 LIBS="-linet $LIBS"
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1785 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1786 echo "$ac_t""no" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1787 fi
2164
459bf7d04e05 the usual
Guido van Rossum <guido@python.org>
parents: 2132
diff changeset
1788 # Sequent
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1789 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1790 ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1792 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1793 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1794 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1795 LIBS="-lsocket $LIBS $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1796 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1797 #line 1798 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1798 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1799 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1800 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1801 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1802 char socket();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1803
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1804 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1805 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1806 socket()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1807 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1808 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1810 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1811 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1812 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1813 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1814 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1815 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1816 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1817 LIBS="$ac_save_LIBS"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1818
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1819 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1821 echo "$ac_t""yes" 1>&6
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1822 LIBS="-lsocket $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1823 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1824 echo "$ac_t""no" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1825 fi
2132
4ddf554457ad the usual
Guido van Rossum <guido@python.org>
parents: 2057
diff changeset
1826 # SVR4 sockets
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1827 fi
3894
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1828 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1829 # Check whether --with-libs or --without-libs was given.
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1830 if test "${with_libs+set}" = set; then
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1831 withval="$with_libs"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1832
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1833 echo "$ac_t""$withval" 1>&6
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1834 LIBS="$withval $LIBS"
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1835
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1836 else
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1837 echo "$ac_t""no" 1>&6
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1838 fi
a50ae8393d37 The usual
Guido van Rossum <guido@python.org>
parents: 3853
diff changeset
1839
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1840
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1841 echo $ac_n "checking for --with-readline""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1842 # Check whether --with-readline or --without-readline was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1843 if test "${with_readline+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1844 withval="$with_readline"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1845
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1846 echo "$ac_t""$withval" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1847 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1848 #define WITH_READLINE 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1849 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1850
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1851 if test -d "$withval"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
1852 then LDFLAGS="$LDFLAGS -L$withval"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1853 fi
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1854 # first check if we can compile without lib termcap
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1855 echo $ac_n "checking for -lreadline without -ltermcap""... $ac_c" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1856 # check if a libreadline exists
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1857 LIBS="$LIBS -lreadline"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1858 cat > conftest.$ac_ext <<EOF
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1859 #line 1860 "configure"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1860 #include "confdefs.h"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1861 extern char *readline();
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1862 int main() { return 0; }
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1863 int t() {
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1864 char *line=readline();
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1865 ; return 0; }
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1866 EOF
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1868 rm -rf conftest*
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1869
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1870 echo "$ac_t""yes" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1871 else
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1872 rm -rf conftest*
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1873
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1874 echo "$ac_t""no" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1875 echo "checking for -lreadline that needs -ltermcap" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1876 termcap=
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1877 echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1878 ac_lib_var=`echo termcap'_'tgetent | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1880 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1881 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1882 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1883 LIBS="-ltermcap $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1884 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1885 #line 1886 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1886 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1887 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1888 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1889 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1890 char tgetent();
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1891
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1892 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1893 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1894 tgetent()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1895 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1896 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1897 if { (eval echo configure:1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1898 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1899 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1900 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1901 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1902 eval "ac_cv_lib_$ac_lib_var=no"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1903 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1904 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1905 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1906
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1907 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1909 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1910 termcap=termcap
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1911 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1912 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1913
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1914 echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1915 ac_lib_var=`echo termlib'_'tgetent | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1917 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1918 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1919 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1920 LIBS="-ltermlib $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1921 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1922 #line 1923 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1923 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1924 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1925 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1926 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1927 char tgetent();
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1928
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1929 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1930 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1931 tgetent()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1932 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1933 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1935 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1936 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1937 else
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1938 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1939 eval "ac_cv_lib_$ac_lib_var=no"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1940 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1941 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1942 LIBS="$ac_save_LIBS"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1943
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1944 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1946 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1947 termcap=termlib
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1948 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1949 echo "$ac_t""no" 1>&6
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1950
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1951 { echo "configure: error: no working -ltermcap/termlib found -- do not use --with-readline" 1>&2; exit 1; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1952 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1953
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1954 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
1955
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1956 # Avoid possible conflict between shared libraries termcap and gl
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1957 # on IRIX 5: both contain a routine called clear.
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1958 if test -f /usr/lib/lib$termcap.a
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1959 then LIBS="$LIBS /usr/lib/lib$termcap.a"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1960 else LIBS="$LIBS -l$termcap"
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1961 fi
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1962 echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1963 cat > conftest.$ac_ext <<EOF
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1964 #line 1965 "configure"
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1965 #include "confdefs.h"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1966 extern char *readline();
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1967 int main() { return 0; }
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1968 int t() {
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1969 char *line=readline();
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1970 ; return 0; }
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1971 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1972 if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1973 rm -rf conftest*
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1974
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1975 echo "$ac_t""yes" 1>&6
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1976 else
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1977 rm -rf conftest*
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1978
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1979 { echo "configure: error: no working GNU readline library found -- do not use --with-readline" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1980 fi
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1981 rm -f conftest*
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1982
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1983
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1984 fi
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1985 rm -f conftest*
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
1986
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
1987
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
1988 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1989 echo "$ac_t""no" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1990 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1991
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1992
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1993 echo $ac_n "checking for --with-thread""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
1994 # Check whether --with-thread or --without-thread was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1995 if test "${with_thread+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
1996 withval="$with_thread"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1997
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
1998 echo "$ac_t""$withval" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
1999 if test -d "$withval"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
2000 then LDFLAGS="$LDFLAGS -L$withval"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2001 fi
3911
a9a92dc2b374 Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents: 3909
diff changeset
2002 cat >> confdefs.h <<\EOF
a9a92dc2b374 Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents: 3909
diff changeset
2003 #define _REENTRANT 1
a9a92dc2b374 Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents: 3909
diff changeset
2004 EOF
a9a92dc2b374 Put definition of _REENTRANT in config.h
Guido van Rossum <guido@python.org>
parents: 3909
diff changeset
2005
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2006 ac_safe=`echo "mach/cthreads.h" | tr './\055' '___'`
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2007 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2009 echo $ac_n "(cached) $ac_c" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2010 else
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2011 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2012 #line 2013 "configure"
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2013 #include "confdefs.h"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2014 #include <mach/cthreads.h>
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2015 EOF
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2017 { (eval echo configure:2018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2018 ac_err=`grep -v '^ *+' conftest.out`
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2019 if test -z "$ac_err"; then
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2020 rm -rf conftest*
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2021 eval "ac_cv_header_$ac_safe=yes"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2022 else
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2023 echo "$ac_err" >&5
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2024 rm -rf conftest*
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2025 eval "ac_cv_header_$ac_safe=no"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2026 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2027 rm -f conftest*
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2028 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2030 echo "$ac_t""yes" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2031 cat >> confdefs.h <<\EOF
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2032 #define WITH_THREAD 1
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2033 EOF
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2034
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2035 cat >> confdefs.h <<\EOF
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2036 #define C_THREADS 1
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2037 EOF
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2038
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2039 LIBOBJS="$LIBOBJS thread.o"
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2040 else
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2041 echo "$ac_t""no" 1>&6
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2042
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2043 echo $ac_n "checking for -lpthreads""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2044 ac_lib_var=`echo pthreads'_'pthread_create | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2045 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2046 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2047 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2048 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2049 LIBS="-lpthreads $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2050 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2051 #line 2052 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2052 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2053 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2054 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2055 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2056 char pthread_create();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2057
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2058 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2059 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2060 pthread_create()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2061 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2062 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2063 if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2064 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2065 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2066 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2067 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2068 eval "ac_cv_lib_$ac_lib_var=no"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2069 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2070 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2071 LIBS="$ac_save_LIBS"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2072
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2073 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2075 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2076 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2077 #define WITH_THREAD 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2078 EOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2079
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2080 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2081 #define _POSIX_THREADS 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2082 EOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2083
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2084 LIBS="$LIBS -lpthreads"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2085 LIBOBJS="$LIBOBJS thread.o"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2086 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2087 echo "$ac_t""no" 1>&6
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2088
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2089 echo $ac_n "checking for -lpthread""... $ac_c" 1>&6
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2090 ac_lib_var=`echo pthread'_'pthread_create | tr './+\055' '__p_'`
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2092 echo $ac_n "(cached) $ac_c" 1>&6
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2093 else
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2094 ac_save_LIBS="$LIBS"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2095 LIBS="-lpthread $LIBS"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2096 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2097 #line 2098 "configure"
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2098 #include "confdefs.h"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2099 /* Override any gcc2 internal prototype to avoid an error. */
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2100 /* We use char because int might match the return type of a gcc2
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2101 builtin and then its argument prototype would still apply. */
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2102 char pthread_create();
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2103
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2104 int main() { return 0; }
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2105 int t() {
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2106 pthread_create()
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2107 ; return 0; }
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2108 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2110 rm -rf conftest*
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2111 eval "ac_cv_lib_$ac_lib_var=yes"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2112 else
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2113 rm -rf conftest*
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2114 eval "ac_cv_lib_$ac_lib_var=no"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2115 fi
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2116 rm -f conftest*
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2117 LIBS="$ac_save_LIBS"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2118
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2119 fi
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2121 echo "$ac_t""yes" 1>&6
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2122 cat >> confdefs.h <<\EOF
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2123 #define WITH_THREAD 1
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2124 EOF
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2125
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2126 cat >> confdefs.h <<\EOF
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2127 #define _POSIX_THREADS 1
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2128 EOF
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2129
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2130 LIBS="$LIBS -lpthread"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2131 LIBOBJS="$LIBOBJS thread.o"
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2132 else
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2133 echo "$ac_t""no" 1>&6
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2134 fi
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2135
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2136
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2137 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2138
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2139 fi
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2140
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2141 echo $ac_n "checking for -lmpc""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2142 ac_lib_var=`echo mpc'_'usconfig | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2144 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2145 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2146 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2147 LIBS="-lmpc $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2148 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2149 #line 2150 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2150 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2151 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2152 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2153 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2154 char usconfig();
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2155
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2156 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2157 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2158 usconfig()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2159 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2160 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2162 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2163 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2164 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2165 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2166 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2167 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2168 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2169 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2170
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2171 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2173 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2174 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2175 #define WITH_THREAD 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2176 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2177
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2178 LIBS="$LIBS -lmpc"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2179 LIBOBJS="$LIBOBJS thread.o"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2180 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2181 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2182 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2183
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2184 echo $ac_n "checking for -lthread""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2185 ac_lib_var=`echo thread'_'thr_create | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2187 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2188 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2189 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2190 LIBS="-lthread $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2191 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2192 #line 2193 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2193 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2194 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2195 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2196 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2197 char thr_create();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2198
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2199 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2200 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2201 thr_create()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2202 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2203 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2205 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2206 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2207 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2208 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2209 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2210 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2211 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2212 LIBS="$ac_save_LIBS"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2213
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2214 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2216 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2217 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2218 #define WITH_THREAD 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2219 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2220
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2221 LIBS="$LIBS -lthread"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2222 LIBOBJS="$LIBOBJS thread.o"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2223 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2224 echo "$ac_t""no" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2225 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2226
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2227
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2228 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2229 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2230 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2231
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2232
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2233 # -I${DLINCLDIR} is added to the compile rule for importdl.o
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2234
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2235 DLINCLDIR=/
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2236
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2237 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2238 # Check whether --with-sgi-dl or --without-sgi-dl was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2239 if test "${with_sgi_dl+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2240 withval="$with_sgi_dl"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2241
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2242 echo "$ac_t""$withval" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2243 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2244 #define WITH_SGI_DL 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2245 EOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2246
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2247 dldir=$withval
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2248 if test -d "$dldir"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
2249 then LDFLAGS="$LDFLAGS -L$dldir"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2250 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2251 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2252 DLINCLDIR=${dldir}
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2253 LIBS="$LIBS -ldl -lmld"
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2254 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2255 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2256 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2257
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2258
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2259 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2260 # Check whether --with-dl-dld or --without-dl-dld was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2261 if test "${with_dl_dld+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2262 withval="$with_dl_dld"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2263
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2264 echo "$ac_t""$withval" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2265 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2266 #define WITH_DL_DLD 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2267 EOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2268
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2269 dldir=`echo "$withval" | sed 's/,.*//'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2270 dlddir=`echo "$withval" | sed 's/.*,//'`
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2271 if test -d "$dldir" -a -d "$dlddir"
4030
e77faf55697b The usual...
Guido van Rossum <guido@python.org>
parents: 3911
diff changeset
2272 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2273 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2274 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2275 DLINCLDIR=${dldir}
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2276 LIBS="$LIBS -ldl -ldld"
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2277 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2278 echo "$ac_t""no" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2279 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2280
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2281
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2282 # checks for library functions
3723
43a37e6b6469 result of new configure.in
Guido van Rossum <guido@python.org>
parents: 3627
diff changeset
2283 for ac_func in chown clock dlopen flock ftime ftruncate \
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2284 gethostname_r getpeername getpgrp getpid gettimeofday getwd \
3810
Guido van Rossum <guido@python.org>
parents: 3782
diff changeset
2285 link lstat mkfifo nice plock putenv readlink \
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2286 select setgid setuid setsid setpgid setpgrp setvbuf \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2287 sigaction siginterrupt sigrelse strftime symlink \
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2288 tcgetpgrp tcsetpgrp times truncate uname waitpid
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2289 do
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2292 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2293 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2294 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2295 #line 2296 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2296 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2297 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2298 which can conflict with char $ac_func(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2299 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2300 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2301 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2302 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2303 char $ac_func();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2304
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2305 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2306 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2307
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2308 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2309 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2310 something starting with __ and the normal name is an alias. */
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2312 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2313 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2314 $ac_func();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2315 #endif
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2316
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2317 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2318 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2319 if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2320 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2321 eval "ac_cv_func_$ac_func=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2322 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2323 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2324 eval "ac_cv_func_$ac_func=no"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2325 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2326 rm -f conftest*
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2327
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2328 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2330 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2332 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2333 #define $ac_tr_func 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2334 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2335
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2336 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2337 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2338 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2339 done
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
2340
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
2341 for ac_func in dup2 getcwd strdup strerror memmove
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2342 do
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2345 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2346 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2347 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2348 #line 2349 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2349 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2350 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2351 which can conflict with char $ac_func(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2352 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2353 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2354 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2355 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2356 char $ac_func();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2357
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2358 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2359 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2360
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2361 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2362 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2363 something starting with __ and the normal name is an alias. */
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2365 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2366 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2367 $ac_func();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2368 #endif
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2369
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2370 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2371 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2372 if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2373 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2374 eval "ac_cv_func_$ac_func=yes"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2375 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2376 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2377 eval "ac_cv_func_$ac_func=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2378 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2379 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2380
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2381 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2383 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2384 :
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2385 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2386 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2387 LIBOBJS="$LIBOBJS ${ac_func}.o"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2388 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2389
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2390 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2391
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2392 echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2393 if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2394 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2395 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2396 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2397 #line 2398 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2398 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2399 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2400 which can conflict with char getpgrp(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2401 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2402 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2403 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2404 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2405 char getpgrp();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2406
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2407 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2408 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2409
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2410 /* The GNU C library defines this for functions which it implements
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2411 to always fail with ENOSYS. Some functions are actually named
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2412 something starting with __ and the normal name is an alias. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2413 #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2414 choke me
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2415 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2416 getpgrp();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2417 #endif
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2418
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2419 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2420 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2422 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2423 eval "ac_cv_func_getpgrp=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2424 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2425 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2426 eval "ac_cv_func_getpgrp=no"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2427 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2428 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2429
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2430 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2431 if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2432 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2433 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2434 #line 2435 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2435 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2436 #include <unistd.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2437 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2438 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2439 getpgrp(0);
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2440 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2441 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2443 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2444 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2445 #define GETPGRP_HAVE_ARG 1
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2446 EOF
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2447
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2448 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2449 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2450
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2451 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2452 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2453 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2454
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2455 echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2456 if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2457 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2458 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2459 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2460 #line 2461 "configure"
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2461 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2462 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2463 which can conflict with char setpgrp(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2464 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2465 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2466 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2467 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2468 char setpgrp();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2469
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2470 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2471 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2472
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2473 /* The GNU C library defines this for functions which it implements
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2474 to always fail with ENOSYS. Some functions are actually named
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2475 something starting with __ and the normal name is an alias. */
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2476 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2477 choke me
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2478 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2479 setpgrp();
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2480 #endif
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2481
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2482 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2483 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2485 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2486 eval "ac_cv_func_setpgrp=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2487 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2488 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2489 eval "ac_cv_func_setpgrp=no"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2490 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2491 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2492
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2493 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2494 if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2495 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2496 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2497 #line 2498 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2498 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2499 #include <unistd.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2500 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2501 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2502 setpgrp(0,0);
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2503 ; return 0; }
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2504 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2505 if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2506 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2507 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2508 #define SETPGRP_HAVE_ARG 1
1995
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2509 EOF
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2510
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2511 fi
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2512 rm -f conftest*
1dab99b86fa8 the usual
Guido van Rossum <guido@python.org>
parents: 1974
diff changeset
2513
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2514 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2515 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2516 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2517
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2518 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2519 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2520 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2521 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2522 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2523 #line 2524 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2524 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2525 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2526 which can conflict with char gettimeofday(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2527 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2528 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2529 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2530 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2531 char gettimeofday();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2532
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2533 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2534 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2535
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2536 /* The GNU C library defines this for functions which it implements
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2537 to always fail with ENOSYS. Some functions are actually named
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2538 something starting with __ and the normal name is an alias. */
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2539 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2540 choke me
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2541 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2542 gettimeofday();
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2543 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2544
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2545 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2546 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2548 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2549 eval "ac_cv_func_gettimeofday=yes"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2550 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2551 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2552 eval "ac_cv_func_gettimeofday=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2553 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2554 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2555
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2556 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2557 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2558 echo "$ac_t""yes" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2559 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2560 #line 2561 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2561 #include "confdefs.h"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2562 #include <sys/time.h>
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2563 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2564 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2565 gettimeofday((struct timeval*)0,(struct timezone*)0);
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2566 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2567 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2568 if { (eval echo configure:2569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2569 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2570 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2571 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2572 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2573 #define GETTIMEOFDAY_NO_TZ 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2574 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2575
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2576 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2577 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2578
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2579 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2580 echo "$ac_t""no" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2581 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2582
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2583
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2584 # checks for structures
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2585 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2586 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2587 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2588 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2589 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2590 #line 2591 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2591 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2592 #include <sys/types.h>
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2593 #include <sys/time.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2594 #include <time.h>
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2595 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2596 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2597 struct tm *tp;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2598 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2599 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2600 if { (eval echo configure:2601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2601 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2602 ac_cv_header_time=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2603 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2604 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2605 ac_cv_header_time=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2606 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2607 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2608
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2609 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2610
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2611 echo "$ac_t""$ac_cv_header_time" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2612 if test $ac_cv_header_time = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2613 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2614 #define TIME_WITH_SYS_TIME 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2615 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2616
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2617 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2618
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2619 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2620 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2621 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2622 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2623 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2624 #line 2625 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2625 #include "confdefs.h"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2626 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2627 #include <time.h>
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2628 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2629 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2630 struct tm *tp; tp->tm_sec;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2631 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2632 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2633 if { (eval echo configure:2634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2634 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2635 ac_cv_struct_tm=time.h
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2636 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2637 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2638 ac_cv_struct_tm=sys/time.h
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2639 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2640 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2641
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2642 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2643
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2644 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2645 if test $ac_cv_struct_tm = sys/time.h; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2646 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2647 #define TM_IN_SYS_TIME 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2648 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2649
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2650 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2651
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2652 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2653 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2654 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2655 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2656 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2657 #line 2658 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2658 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2659 #include <sys/types.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2660 #include <$ac_cv_struct_tm>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2661 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2662 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2663 struct tm tm; tm.tm_zone;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2664 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2665 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2666 if { (eval echo configure:2667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2667 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2668 ac_cv_struct_tm_zone=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2669 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2670 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2671 ac_cv_struct_tm_zone=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2672 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2673 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2674
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2675 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2676
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2677 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2678 if test "$ac_cv_struct_tm_zone" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2679 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2680 #define HAVE_TM_ZONE 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2681 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2682
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2683 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2684 echo $ac_n "checking for tzname""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2685 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2686 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2687 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2688 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2689 #line 2690 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2690 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2691 #include <time.h>
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2692 #ifndef tzname /* For SGI. */
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2693 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2694 #endif
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2695 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2696 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2697 atoi(*tzname);
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2698 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2699 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2701 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2702 ac_cv_var_tzname=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2703 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2704 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2705 ac_cv_var_tzname=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2706 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2707 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2708
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2709 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2710
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2711 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2712 if test $ac_cv_var_tzname = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2713 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2714 #define HAVE_TZNAME 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2715 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2716
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2717 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2718 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2719
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2720
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2721 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2722 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2723 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2724 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2725 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2726 #line 2727 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2727 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2728 #include <time.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2729 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2730 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2731 return altzone;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2732 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2733 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2734 if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2735 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2736 ac_cv_header_time_altzone=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2737 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2738 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2739 ac_cv_header_time_altzone=no
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2740 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2741 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2742
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2743 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2744
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2745 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2746 if test $ac_cv_header_time_altzone = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2747 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2748 #define HAVE_ALTZONE 1
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2749 EOF
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2750
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2751 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2752
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2753 was_it_defined=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2754 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2755 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2756 #line 2757 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2757 #include "confdefs.h"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2758
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2759 #include <sys/types.h>
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2760 #include <sys/select.h>
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2761 #include <sys/time.h>
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2762
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2763 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2764 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2765 ;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2766 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2767 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2768 if { (eval echo configure:2769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2769 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2770 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2771 #define SYS_SELECT_WITH_SYS_TIME 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2772 EOF
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2773 was_it_defined=yes
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2774 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2775 rm -f conftest*
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2776
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2777 echo "$ac_t""$was_it_defined" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2778
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2779 # checks for compiler characteristics
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2780
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2781 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2782 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2783 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2784 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2785 if test "$GCC" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2786 # GCC predefines this symbol on systems where it applies.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2787 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2788 #line 2789 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2789 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2790 #ifdef __CHAR_UNSIGNED__
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2791 yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2792 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2793
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2794 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2796 egrep "yes" >/dev/null 2>&1; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2797 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2798 ac_cv_c_char_unsigned=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2799 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2800 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2801 ac_cv_c_char_unsigned=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2802 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2803 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2804
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2805 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2806 if test "$cross_compiling" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2807 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2808 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2809 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2810 #line 2811 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2811 #include "confdefs.h"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2812 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2813 #if !defined(__STDC__) || __STDC__ != 1
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2814 #define volatile
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2815 #endif
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2816 main() {
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2817 volatile char c = 255; exit(c < 0);
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2818 }
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2819 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2820 { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2821 if test -s conftest && (./conftest; exit) 2>/dev/null; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2822 ac_cv_c_char_unsigned=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2823 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2824 ac_cv_c_char_unsigned=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2825 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2826 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2827 rm -fr conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2828 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2829 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2830
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2831 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2832 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2833 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2834 #define __CHAR_UNSIGNED__ 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2835 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2836
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2837 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2838
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2839
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2840 echo $ac_n "checking for working const""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2841 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2842 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2843 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2844 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2845 #line 2846 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2846 #include "confdefs.h"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2847
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2848 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2849 int t() {
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2850
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2851 /* Ultrix mips cc rejects this. */
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2852 typedef int charset[2]; const charset x;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2853 /* SunOS 4.1.1 cc rejects this. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2854 char const *const *ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2855 char **p;
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2856 /* NEC SVR4.0.2 mips cc rejects this. */
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2857 struct point {int x, y;};
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2858 static struct point const zero = {0,0};
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2859 /* AIX XL C 1.02.0.0 rejects this.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2860 It does not let you subtract one const X* pointer from another in an arm
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2861 of an if-expression whose if-part is not a constant expression */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2862 const char *g = "string";
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2863 ccp = &g + (g ? g-g : 0);
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2864 /* HPUX 7.0 cc rejects these. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2865 ++ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2866 p = (char**) ccp;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2867 ccp = (char const *const *) p;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2868 { /* SCO 3.2v4 cc rejects this. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2869 char *t;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2870 char const *s = 0 ? (char *) 0 : (char const *) 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2871
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2872 *t++ = 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2873 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2875 int x[] = {25, 17};
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2876 const int *foo = &x[0];
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2877 ++foo;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2878 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2880 typedef const int *iptr;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2881 iptr p = 0;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2882 ++p;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2883 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2884 { /* AIX XL C 1.02.0.0 rejects this saying
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2885 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2886 struct s { int j; const int *ap[3]; };
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2887 struct s *b; b->j = 5;
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2888 }
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2890 const int foo = 10;
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2891 }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2892
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2893 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2894 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2895 if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2896 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2897 ac_cv_c_const=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2898 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2899 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2900 ac_cv_c_const=no
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2901 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2902 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2903
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2904 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
2905
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2906 echo "$ac_t""$ac_cv_c_const" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2907 if test $ac_cv_c_const = no; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2908 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2909 #define const
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2910 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2911
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2912 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2913
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2914
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2915 works=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2916 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2917 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2918 #line 2919 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2919 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2920
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2921 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2922 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2923 volatile int x; x = 0;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2924 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2925 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2926 if { (eval echo configure:2927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2927 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2928 works=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2929 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2930 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2931 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2932 #define volatile
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2933 EOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2934
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2935 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2936 rm -f conftest*
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2937
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2938 echo "$ac_t""$works" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2939
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2940 works=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2941 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2942 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2943 #line 2944 "configure"
1974
f95c193bfe65 add test for volatile
Guido van Rossum <guido@python.org>
parents: 1882
diff changeset
2944 #include "confdefs.h"
f95c193bfe65 add test for volatile
Guido van Rossum <guido@python.org>
parents: 1882
diff changeset
2945
f95c193bfe65 add test for volatile
Guido van Rossum <guido@python.org>
parents: 1882
diff changeset
2946 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2947 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2948 signed char c;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2949 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2950 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2951 if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2952 rm -rf conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2953 works=yes
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2954 else
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2955 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2956 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2957 #define signed
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2958 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2959
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2960 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2961 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2962
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2963 echo "$ac_t""$works" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2964
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2965 have_prototypes=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2966 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2967 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2968 #line 2969 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2969 #include "confdefs.h"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2970 int foo(int x) { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2971 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2972 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2973 return foo(10);
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2974 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
2975 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2976 if { (eval echo configure:2977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2977 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2978 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2979 #define HAVE_PROTOTYPES 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2980 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2981 have_prototypes=yes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2982 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2983 rm -f conftest*
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2984
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2985 echo "$ac_t""$have_prototypes" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2986
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
2987 works=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
2988 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
2989 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
2990 #line 2991 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2991 #include "confdefs.h"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2992
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
2993 #include <stdarg.h>
4185
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2994 int foo(int x, ...) {
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2995 va_list va;
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2996 va_start(va, x);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2997 va_arg(va, int);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2998 va_arg(va, char *);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
2999 va_arg(va, double);
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3000 return 0;
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3001 }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3002
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3003 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3004 int t() {
4185
a23f4f46727b The usual
Guido van Rossum <guido@python.org>
parents: 4181
diff changeset
3005 return foo(10, "", 3.14);
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3006 ; return 0; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3007 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3009 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3010 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3011 #define HAVE_STDARG_PROTOTYPES 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3012 EOF
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3013 works=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3014 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3015 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3016
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3017 echo "$ac_t""$works" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3018
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3019 if test "$have_prototypes" = yes; then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3020 bad_prototypes=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3021 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3022 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3023 #line 3024 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3024 #include "confdefs.h"
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3025 #include <unistd.h>
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3026 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3027 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3028 char **t;execve("@",t,t);
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3029 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3030 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3031 if { (eval echo configure:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3032 :
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3033 else
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3034 rm -rf conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3035 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3036 #define BAD_EXEC_PROTOTYPES 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3037 EOF
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3038 bad_prototypes=yes
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3039 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3040 rm -f conftest*
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3041
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3042 echo "$ac_t""$bad_prototypes" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3043 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3044
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3045 bad_forward=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3046 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3047 if test "$cross_compiling" = yes; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3048 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3049 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3050 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3051 #line 3052 "configure"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3052 #include "confdefs.h"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3053
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3054 struct s { int a; int b; };
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3055 static struct s foo;
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3056 int foobar() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3057 static int random;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3058 random = (int) &foo;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3059 return random;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3060 }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3061 static struct s foo = { 1, 2 };
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3062 main() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3063 exit(!((int)&foo == foobar()));
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3064 }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3065
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3066 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3067 { (eval echo configure:3068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3068 if test -s conftest && (./conftest; exit) 2>/dev/null; then
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3069 :
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3070 else
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3071 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3072 #define BAD_STATIC_FORWARD 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3073 EOF
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3074 bad_forward=yes
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3075 fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3076 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3077 rm -fr conftest*
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3078 echo "$ac_t""$bad_forward" 1>&6
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3079
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3080 va_list_is_array=no
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3081 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3082 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3083 #line 3084 "configure"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3084 #include "confdefs.h"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3085
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3086 #ifdef HAVE_STDARG_PROTOTYPES
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3087 #include <stdarg.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3088 #else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3089 #include <varargs.h>
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3090 #endif
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3091
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3092 int main() { return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3093 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3094 va_list list1, list2; list1 = list2;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3095 ; return 0; }
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3096 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3098 :
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3099 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3100 rm -rf conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3101 cat >> confdefs.h <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3102 #define VA_LIST_IS_ARRAY 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3103 EOF
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3104 va_list_is_array=yes
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3105 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3106 rm -f conftest*
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3107
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3108 echo "$ac_t""$va_list_is_array" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3109
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3110 # checks for system services
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3111 # (none yet)
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3112
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3113 # Linux requires this for correct f.p. operations
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3114 echo $ac_n "checking for -lieee""... $ac_c" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3115 ac_lib_var=`echo ieee'_'__fpu_control | tr './+\055' '__p_'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3117 echo $ac_n "(cached) $ac_c" 1>&6
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3118 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3119 ac_save_LIBS="$LIBS"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3120 LIBS="-lieee $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3121 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3122 #line 3123 "configure"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3123 #include "confdefs.h"
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3124 /* Override any gcc2 internal prototype to avoid an error. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3125 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3126 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3127 char __fpu_control();
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3128
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3129 int main() { return 0; }
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3130 int t() {
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3131 __fpu_control()
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3132 ; return 0; }
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3133 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3134 if { (eval echo configure:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3135 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3136 eval "ac_cv_lib_$ac_lib_var=yes"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3137 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3138 rm -rf conftest*
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3139 eval "ac_cv_lib_$ac_lib_var=no"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3140 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3141 rm -f conftest*
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3142 LIBS="$ac_save_LIBS"
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3143
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3144 fi
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3146 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3147 ac_tr_lib=HAVE_LIB`echo ieee | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3148 cat >> confdefs.h <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3149 #define $ac_tr_lib 1
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3150 EOF
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3151
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3152 LIBS="-lieee $LIBS"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3153
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3154 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3155 echo "$ac_t""no" 1>&6
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3156 fi
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3157
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3158
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3159 # check for --with-libm=...
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3160
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3161 case $ac_sys_system in
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3162 next) ;;
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3163 *) LIBM=-lm
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3164 esac
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3165 # Check whether --with-libm or --without-libm was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3166 if test "${with_libm+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3167 withval="$with_libm"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3168
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3169 if test "$withval" != yes
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3170 then LIBM=$withval
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3171 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3172 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3173 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3174
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3175
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3176 # check for --with-libc=...
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3177
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3178 # Check whether --with-libc or --without-libc was given.
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3179 if test "${with_libc+set}" = set; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3180 withval="$with_libc"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3181
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3182 if test "$withval" != yes
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3183 then LIBC=$withval
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3184 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3185 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3186 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3187
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3188
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3189 # check for hypot() in math library
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3190 LIBS_SAVE=$LIBS
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3191 LIBS="$LIBS $LIBM"
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3192 for ac_func in hypot
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3193 do
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3196 echo $ac_n "(cached) $ac_c" 1>&6
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3197 else
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3198 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3199 #line 3200 "configure"
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3200 #include "confdefs.h"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3201 /* System header to define __stub macros and hopefully few prototypes,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3202 which can conflict with char $ac_func(); below. */
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3203 #include <assert.h>
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3204 /* Override any gcc2 internal prototype to avoid an error. */
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3205 /* We use char because int might match the return type of a gcc2
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3206 builtin and then its argument prototype would still apply. */
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3207 char $ac_func();
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3208
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3209 int main() { return 0; }
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3210 int t() {
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3211
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3212 /* The GNU C library defines this for functions which it implements
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3213 to always fail with ENOSYS. Some functions are actually named
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3214 something starting with __ and the normal name is an alias. */
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3216 choke me
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3217 #else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3218 $ac_func();
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3219 #endif
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3220
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3221 ; return 0; }
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3222 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3224 rm -rf conftest*
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3225 eval "ac_cv_func_$ac_func=yes"
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3226 else
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3227 rm -rf conftest*
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3228 eval "ac_cv_func_$ac_func=no"
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3229 fi
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3230 rm -f conftest*
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3231
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3232 fi
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3233 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3234 echo "$ac_t""yes" 1>&6
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3235 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3236 cat >> confdefs.h <<EOF
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3237 #define $ac_tr_func 1
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3238 EOF
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3239
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3240 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3241 echo "$ac_t""no" 1>&6
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3242 fi
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3243 done
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3244
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3245 for ac_func in hypot
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3246 do
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3249 echo $ac_n "(cached) $ac_c" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3250 else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3251 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3252 #line 3253 "configure"
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3253 #include "confdefs.h"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3254 /* System header to define __stub macros and hopefully few prototypes,
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3255 which can conflict with char $ac_func(); below. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3256 #include <assert.h>
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3257 /* Override any gcc2 internal prototype to avoid an error. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3258 /* We use char because int might match the return type of a gcc2
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3259 builtin and then its argument prototype would still apply. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3260 char $ac_func();
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3261
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3262 int main() { return 0; }
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3263 int t() {
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3264
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3265 /* The GNU C library defines this for functions which it implements
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3266 to always fail with ENOSYS. Some functions are actually named
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3267 something starting with __ and the normal name is an alias. */
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3269 choke me
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3270 #else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3271 $ac_func();
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3272 #endif
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3273
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3274 ; return 0; }
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3275 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3276 if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4181
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3277 rm -rf conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3278 eval "ac_cv_func_$ac_func=yes"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3279 else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3280 rm -rf conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3281 eval "ac_cv_func_$ac_func=no"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3282 fi
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3283 rm -f conftest*
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3284
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3285 fi
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3287 echo "$ac_t""yes" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3288 :
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3289 else
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3290 echo "$ac_t""no" 1>&6
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3291 LIBOBJS="$LIBOBJS ${ac_func}.o"
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3292 fi
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3293
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3294 done
3d53cfab8821 The usual
Guido van Rossum <guido@python.org>
parents: 4030
diff changeset
3295
2057
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3296 LIBS=$LIBS_SAVE
79c171f581fc README: changed URL format to <URL:...>; added section on Tk.
Guido van Rossum <guido@python.org>
parents: 2049
diff changeset
3297
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3298 # check for getopt
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3299 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3300 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3301 echo $ac_n "(cached) $ac_c" 1>&6
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3302 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3303 if test "$cross_compiling" = yes; then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3304 ac_cv_func_getopt=no
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3305 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3306 cat > conftest.$ac_ext <<EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3307 #line 3308 "configure"
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3308 #include "confdefs.h"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3309 #include <stdio.h>
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3310 extern int optind, opterr, getopt();
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3311 extern char* optarg;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3312 int main() {
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3313 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3314 opterr = 0;
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3315 if (getopt(3, av, "f:") == 'f') { exit(1); }
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3316 exit(0);
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3317 }
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3318 EOF
4269
38c8a1ccc16c the usual
Guido van Rossum <guido@python.org>
parents: 4185
diff changeset
3319 { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3320 if test -s conftest && (./conftest; exit) 2>/dev/null; then
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3321 ac_cv_func_getopt=yes
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3322 else
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3323 ac_cv_func_getopt=no
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3324 fi
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3325 fi
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3326 rm -fr conftest*
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3327 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3328 echo "$ac_t""$ac_cv_func_getopt" 1>&6
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3329 test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3330
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3331 # generate output files
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3332 trap '' 1 2 15
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3333 cat > confcache <<\EOF
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3334 # This file is a shell script that caches the results of configure
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3335 # tests run on this system so they can be shared between configure
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3336 # scripts and configure runs. It is not useful on other systems.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3337 # If it contains results you don't want to keep, you may remove or edit it.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3338 #
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3339 # By default, configure uses ./config.cache as the cache file,
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3340 # creating it if it does not exist already. You can give configure
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3341 # the --cache-file=FILE option to use a different cache file; that is
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3342 # what configure does when it calls configure scripts in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3343 # subdirectories, so they share the cache.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3344 # Giving --cache-file=/dev/null disables caching, for debugging configure.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3345 # config.status only pays attention to the cache file if you give it the
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3346 # --recheck option to rerun configure.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3347 #
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3348 EOF
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3349 # Ultrix sh set writes to stderr and can't be redirected directly,
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3350 # and sets the high bit in the cache file unless we assign to the vars.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3351 (set) 2>&1 |
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3352 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3353 >> confcache
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3354 if cmp -s $cache_file confcache; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3355 :
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3356 else
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3357 if test -w $cache_file; then
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3358 echo "updating cache $cache_file"
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3359 cat confcache > $cache_file
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3360 else
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3361 echo "not updating unwritable cache $cache_file"
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3362 fi
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3363 fi
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3364 rm -f confcache
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3365
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3366 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3367
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3369 # Let make expand exec_prefix.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3371
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3372 # Any assignment to VPATH causes Sun make to only execute
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3373 # the first set of double-colon rules, so remove it if not needed.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3374 # If there is a colon in the path, we need to keep it.
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3375 if test "x$srcdir" = x.; then
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3376 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3377 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3378
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3379 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3380
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3381 DEFS=-DHAVE_CONFIG_H
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3382
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3383 # Without the "./", some shells look in PATH for config.status.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3384 : ${CONFIG_STATUS=./config.status}
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3385
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3386 echo creating $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3387 rm -f $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3388 cat > $CONFIG_STATUS <<EOF
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3389 #! /bin/sh
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3390 # Generated automatically by configure.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3391 # Run this file to recreate the current configuration.
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3392 # This directory was configured as follows,
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3393 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3394 #
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3395 # $0 $ac_configure_args
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3396 #
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3397 # Compiler output produced by configure, useful for debugging
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3398 # configure, is in ./config.log if it exists.
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3399
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3400 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3401 for ac_option
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3402 do
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3403 case "\$ac_option" in
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3405 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3406 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3407 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3408 echo "$CONFIG_STATUS generated by autoconf version 2.10"
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3409 exit 0 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3410 -help | --help | --hel | --he | --h)
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3411 echo "\$ac_cs_usage"; exit 0 ;;
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3412 *) echo "\$ac_cs_usage"; exit 1 ;;
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3413 esac
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3414 done
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3415
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3416 ac_given_srcdir=$srcdir
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3417
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3418 trap 'rm -fr `echo "Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3419 Objects/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3420 Parser/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3421 Python/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3422 Modules/Makefile.pre config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3423 EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3424 cat >> $CONFIG_STATUS <<EOF
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3425
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3426 # Protect against being on the right side of a sed subst in config.status.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3427 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3428 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3429 $ac_vpsub
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3430 $extrasub
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3431 s%@CFLAGS@%$CFLAGS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3432 s%@CPPFLAGS@%$CPPFLAGS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3433 s%@CXXFLAGS@%$CXXFLAGS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3434 s%@DEFS@%$DEFS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3435 s%@LDFLAGS@%$LDFLAGS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3436 s%@LIBS@%$LIBS%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3437 s%@exec_prefix@%$exec_prefix%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3438 s%@prefix@%$prefix%g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3439 s%@program_transform_name@%$program_transform_name%g
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3440 s%@bindir@%$bindir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3441 s%@sbindir@%$sbindir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3442 s%@libexecdir@%$libexecdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3443 s%@datadir@%$datadir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3444 s%@sysconfdir@%$sysconfdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3445 s%@sharedstatedir@%$sharedstatedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3446 s%@localstatedir@%$localstatedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3447 s%@libdir@%$libdir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3448 s%@includedir@%$includedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3449 s%@oldincludedir@%$oldincludedir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3450 s%@infodir@%$infodir%g
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3451 s%@mandir@%$mandir%g
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3452 s%@MACHDEP@%$MACHDEP%g
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3453 s%@CC@%$CC%g
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3454 s%@RANLIB@%$RANLIB%g
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3455 s%@AR@%$AR%g
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
3456 s%@INSTALL@%$INSTALL%g
2247
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3457 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8ad1363287aa the usual
Guido van Rossum <guido@python.org>
parents: 2164
diff changeset
3458 s%@INSTALL_DATA@%$INSTALL_DATA%g
1804
b408d6a63819 Match new configure.in
Guido van Rossum <guido@python.org>
parents: 1779
diff changeset
3459 s%@OPT@%$OPT%g
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3460 s%@CPP@%$CPP%g
1882
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3461 s%@SO@%$SO%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3462 s%@LDSHARED@%$LDSHARED%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3463 s%@CCSHARED@%$CCSHARED%g
f84b64df09c3 The usual junk
Guido van Rossum <guido@python.org>
parents: 1804
diff changeset
3464 s%@LINKFORSHARED@%$LINKFORSHARED%g
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3465 s%@DLINCLDIR@%$DLINCLDIR%g
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3466 s%@LIBOBJS@%$LIBOBJS%g
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3467 s%@LIBM@%$LIBM%g
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3468 s%@LIBC@%$LIBC%g
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3469
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3470 CEOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3471 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3472 cat >> $CONFIG_STATUS <<EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3473
3853
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3474 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3475 Objects/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3476 Parser/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3477 Python/Makefile \
3b114f0315c1 Follow new configure.in
Guido van Rossum <guido@python.org>
parents: 3810
diff changeset
3478 Modules/Makefile.pre"}
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3479 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3480 cat >> $CONFIG_STATUS <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3481 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3482 # Support "outfile[:infile]", defaulting infile="outfile.in".
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3483 case "$ac_file" in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3484 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3485 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3486 *) ac_file_in="${ac_file}.in" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3487 esac
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3488
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3489 # Adjust relative srcdir, etc. for subdirectories.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3490
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3491 # Remove last slash and all that follows it. Not all systems have dirname.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3492 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3494 # The file is in a subdirectory.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3495 test ! -d "$ac_dir" && mkdir "$ac_dir"
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3496 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3497 # A "../" for each directory in $ac_dir_suffix.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3498 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3499 else
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3500 ac_dir_suffix= ac_dots=
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3501 fi
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3502
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3503 case "$ac_given_srcdir" in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3504 .) srcdir=.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3505 if test -z "$ac_dots"; then top_srcdir=.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3506 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3507 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3508 *) # Relative path.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3509 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3510 top_srcdir="$ac_dots$ac_given_srcdir" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3511 esac
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3512
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3513 echo creating "$ac_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3514 rm -f "$ac_file"
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3515 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3516 case "$ac_file" in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3517 *Makefile*) ac_comsub="1i\\
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3518 # $configure_input" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3519 *) ac_comsub= ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3520 esac
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3521 sed -e "$ac_comsub
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3522 s%@configure_input@%$configure_input%g
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3523 s%@srcdir@%$srcdir%g
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3524 s%@top_srcdir@%$top_srcdir%g
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3525 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3526 fi; done
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3527 rm -f conftest.subs
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3528
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3529 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3530 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3531 #
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3532 # ac_d sets the value in "#define NAME VALUE" lines.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3533 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3534 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3535 ac_dC='\3'
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3536 ac_dD='%g'
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3537 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3538 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3539 ac_uB='\([ ]\)%\1#\2define\3'
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3540 ac_uC=' '
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3541 ac_uD='\4%g'
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3542 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3543 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3544 ac_eB='$%\1#\2define\3'
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3545 ac_eC=' '
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3546 ac_eD='%g'
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3547
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3548 CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3549 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3550 # Support "outfile[:infile]", defaulting infile="outfile.in".
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3551 case "$ac_file" in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3552 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3553 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3554 *) ac_file_in="${ac_file}.in" ;;
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3555 esac
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3556
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3557 echo creating $ac_file
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3558
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3559 rm -f conftest.frag conftest.in conftest.out
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3560 cp $ac_given_srcdir/$ac_file_in conftest.in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3561
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3562 EOF
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3563
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3564 # Transform confdefs.h into a sed script conftest.vals that substitutes
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3565 # the proper values into config.h.in to produce config.h. And first:
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3566 # Protect against being on the right side of a sed subst in config.status.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3567 # Protect against being in an unquoted here document in config.status.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3568 rm -f conftest.vals
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3569 cat > conftest.hdr <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3570 s/[\\&%]/\\&/g
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3571 s%[\\$`]%\\&%g
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3572 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3573 s%ac_d%ac_u%gp
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3574 s%ac_u%ac_e%gp
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3575 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3576 sed -n -f conftest.hdr confdefs.h > conftest.vals
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3577 rm -f conftest.hdr
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3578
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3579 # This sed command replaces #undef with comments. This is necessary, for
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3580 # example, in the case of _POSIX_SOURCE, which is predefined and required
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3581 # on some systems where configure will not decide to define it.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3582 cat >> conftest.vals <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3583 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3584 EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3585
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3586 # Break up conftest.vals because some shells have a limit on
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3587 # the size of here documents, and old seds have small limits too.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3588 # Maximum number of lines to put in a single here document.
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3589 ac_max_here_lines=12
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3590
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3591 rm -f conftest.tail
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3592 while :
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3593 do
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3594 ac_lines=`grep -c . conftest.vals`
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3595 # grep -c gives empty output for an empty file on some AIX systems.
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3596 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3597 # Write a limited-size here document to conftest.frag.
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3598 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3599 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3600 echo 'CEOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3601 sed -f conftest.frag conftest.in > conftest.out
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3602 rm -f conftest.in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3603 mv conftest.out conftest.in
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3604 ' >> $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3605 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3606 rm -f conftest.vals
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3607 mv conftest.tail conftest.vals
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3608 done
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3609 rm -f conftest.vals
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3610
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3611 cat >> $CONFIG_STATUS <<\EOF
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3612 rm -f conftest.frag conftest.h
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3613 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3614 cat conftest.in >> conftest.h
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3615 rm -f conftest.in
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3616 if cmp -s $ac_file conftest.h 2>/dev/null; then
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3617 echo "$ac_file is unchanged"
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3618 rm -f conftest.h
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3619 else
3627
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3620 # Remove last slash and all that follows it. Not all systems have dirname.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3621 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3622 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3623 # The file is in a subdirectory.
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3624 test ! -d "$ac_dir" && mkdir "$ac_dir"
d195b871e704 see new configure.in
Guido van Rossum <guido@python.org>
parents: 3113
diff changeset
3625 fi
1749
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3626 rm -f $ac_file
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3627 mv conftest.h $ac_file
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3628 fi
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3629 fi; done
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3630
bceb720ee362 Merge rev alpha100 bck into main trunk
Guido van Rossum <guido@python.org>
parents: 1456
diff changeset
3631
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3632
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3633 exit 0
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3634 EOF
2049
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3635 chmod +x $CONFIG_STATUS
07cf3b3baf16 The usual changes when a release is nearing...
Guido van Rossum <guido@python.org>
parents: 1997
diff changeset
3636 rm -fr confdefs* $ac_clean_files
2741
982a5bd6d46d derived from new configure.in
Guido van Rossum <guido@python.org>
parents: 2509
diff changeset
3637 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1453
d773a5f89426 New files
Guido van Rossum <guido@python.org>
parents:
diff changeset
3638