This commit was manufactured by cvs2svn to create tag 'r22a4-fork'.
[python/dscho.git] / configure
blob84e1e6070f94cf53fd668fa04a4449fed2a542ff
1 #! /bin/sh
3 # From configure.in Revision: 1.260
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.13
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Defaults:
13 ac_help=
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
16 ac_help="$ac_help
17 --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework"
18 ac_help="$ac_help
19 --without-gcc never use gcc"
20 ac_help="$ac_help
21 --with-cxx=<compiler> enable C++ support"
22 ac_help="$ac_help
23 --with-suffix=.exe set executable suffix"
24 ac_help="$ac_help
25 --with-pydebug build with Py_DEBUG defined"
26 ac_help="$ac_help
27 --enable-toolbox-glue disable/enable MacOSX glue code for extensions"
28 ac_help="$ac_help
29 --with-libs='lib1 ...' link against additional libs"
30 ac_help="$ac_help
31 --with-signal-module disable/enable signal module"
32 ac_help="$ac_help
33 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
34 ac_help="$ac_help
35 --with(out)-threads[=DIRECTORY] disable/enable thread support"
36 ac_help="$ac_help
37 --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads"
38 ac_help="$ac_help
39 --with-pth use GNU pth threading libraries"
40 ac_help="$ac_help
41 --enable-ipv6 Enable ipv6 (with ipv4) support
42 --disable-ipv6 Disable ipv6 support"
43 ac_help="$ac_help
44 --with(out)-cycle-gc disable/enable garbage collection"
45 ac_help="$ac_help
46 --with(out)-pymalloc disable/enable specialized mallocs"
47 ac_help="$ac_help
48 --with-wctype-functions use wctype.h functions"
49 ac_help="$ac_help
50 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
51 ac_help="$ac_help
52 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
53 ac_help="$ac_help
54 --with-fpectl enable SIGFPE catching"
55 ac_help="$ac_help
56 --with-libm=STRING math library"
57 ac_help="$ac_help
58 --with-libc=STRING C library"
59 ac_help="$ac_help
60 --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
65 build=NONE
66 cache_file=./config.cache
67 exec_prefix=NONE
68 host=NONE
69 no_create=
70 nonopt=NONE
71 no_recursion=
72 prefix=NONE
73 program_prefix=NONE
74 program_suffix=NONE
75 program_transform_name=s,x,x,
76 silent=
77 site=
78 srcdir=
79 target=NONE
80 verbose=
81 x_includes=NONE
82 x_libraries=NONE
83 bindir='${exec_prefix}/bin'
84 sbindir='${exec_prefix}/sbin'
85 libexecdir='${exec_prefix}/libexec'
86 datadir='${prefix}/share'
87 sysconfdir='${prefix}/etc'
88 sharedstatedir='${prefix}/com'
89 localstatedir='${prefix}/var'
90 libdir='${exec_prefix}/lib'
91 includedir='${prefix}/include'
92 oldincludedir='/usr/include'
93 infodir='${prefix}/info'
94 mandir='${prefix}/man'
96 # Initialize some other variables.
97 subdirs=
98 MFLAGS= MAKEFLAGS=
99 SHELL=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
101 ac_max_here_lines=12
103 ac_prev=
104 for ac_option
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
110 ac_prev=
111 continue
114 case "$ac_option" in
115 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 *) ac_optarg= ;;
117 esac
119 # Accept the important Cygnus configure options, so we can diagnose typos.
121 case "$ac_option" in
123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
124 ac_prev=bindir ;;
125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126 bindir="$ac_optarg" ;;
128 -build | --build | --buil | --bui | --bu)
129 ac_prev=build ;;
130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131 build="$ac_optarg" ;;
133 -cache-file | --cache-file | --cache-fil | --cache-fi \
134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135 ac_prev=cache_file ;;
136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138 cache_file="$ac_optarg" ;;
140 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141 ac_prev=datadir ;;
142 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143 | --da=*)
144 datadir="$ac_optarg" ;;
146 -disable-* | --disable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* | --enable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 case "$ac_option" in
163 *=*) ;;
164 *) ac_optarg=yes ;;
165 esac
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170 | --exec | --exe | --ex)
171 ac_prev=exec_prefix ;;
172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174 | --exec=* | --exe=* | --ex=*)
175 exec_prefix="$ac_optarg" ;;
177 -gas | --gas | --ga | --g)
178 # Obsolete; use --with-gas.
179 with_gas=yes ;;
181 -help | --help | --hel | --he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
184 cat << EOF
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
187 Configuration:
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
195 [$ac_default_prefix]
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197 [same as prefix]
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
202 [PREFIX/share]
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
205 [PREFIX/com]
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
218 cat << EOF
219 Host type:
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
234 exit 0 ;;
236 -host | --host | --hos | --ho)
237 ac_prev=host ;;
238 -host=* | --host=* | --hos=* | --ho=*)
239 host="$ac_optarg" ;;
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
249 ac_prev=infodir ;;
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
254 ac_prev=libdir ;;
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275 ac_prev=mandir ;;
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
279 -nfp | --nfp | --nf)
280 # Obsolete; use --without-fp.
281 with_fp=no ;;
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284 | --no-cr | --no-c)
285 no_create=yes ;;
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 no_recursion=yes ;;
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301 ac_prev=prefix ;;
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
338 silent=yes ;;
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341 ac_prev=sbindir ;;
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343 | --sbi=* | --sb=*)
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
349 | --sha | --sh)
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354 | --sha=* | --sh=*)
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
358 ac_prev=site ;;
359 -site=* | --site=* | --sit=*)
360 site="$ac_optarg" ;;
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363 ac_prev=srcdir ;;
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir="$ac_optarg" ;;
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir="$ac_optarg" ;;
374 -target | --target | --targe | --targ | --tar | --ta | --t)
375 ac_prev=target ;;
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target="$ac_optarg" ;;
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 verbose=yes ;;
382 -version | --version | --versio | --versi | --vers)
383 echo "configure generated by autoconf version 2.13"
384 exit 0 ;;
386 -with-* | --with-*)
387 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 case "$ac_option" in
394 *=*) ;;
395 *) ac_optarg=yes ;;
396 esac
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
408 --x)
409 # Obsolete; use --with-x.
410 with_x=yes ;;
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes="$ac_optarg" ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 nonopt="$ac_option"
439 esac
440 done
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
449 # 0 standard input
450 # 1 file creation
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
457 exec 6>/dev/null
458 else
459 exec 6>&1
461 exec 5>./config.log
463 echo "\
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
466 " 1>&5
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
470 ac_configure_args=
471 for ac_arg
473 case "$ac_arg" in
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c) ;;
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481 esac
482 done
484 # NLS nuisances.
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 echo > confdefs.h
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file=Include/object.h
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted=yes
506 # Try the directory containing this script, then its parent.
507 ac_prog=$0
508 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510 srcdir=$ac_confdir
511 if test ! -r $srcdir/$ac_unique_file; then
512 srcdir=..
514 else
515 ac_srcdir_defaulted=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 else
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE; then
529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530 else
531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
537 . "$ac_site_file"
539 done
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
543 . $cache_file
544 else
545 echo "creating cache $cache_file"
546 > $cache_file
549 ac_ext=c
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp='$CPP $CPPFLAGS'
552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling=$ac_cv_prog_cc_cross
556 ac_exeext=
557 ac_objext=o
558 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='
562 ' ac_t=' '
563 else
564 ac_n=-n ac_c= ac_t=
566 else
567 ac_n= ac_c='\c' ac_t=
573 # Set VERSION so we only need to edit in one place (i.e., here)
575 VERSION=2.2
577 # Arguments passed to configure.
579 CONFIG_ARGS="$ac_configure_args"
582 # Check whether --enable-framework or --disable-framework was given.
583 if test "${enable_framework+set}" = set; then
584 enableval="$enable_framework"
586 case $enableval in
587 yes)
588 enableval=/Library/Frameworks
589 esac
590 case $enableval in
592 PYTHONFRAMEWORK=
593 PYTHONFRAMEWORKDIR=no-framework
594 PYTHONFRAMEWORKPREFIX=
595 PYTHONFRAMEWORKINSTALLDIR=
596 enable_framework=
599 PYTHONFRAMEWORK=Python
600 PYTHONFRAMEWORKDIR=Python.framework
601 PYTHONFRAMEWORKPREFIX=$enableval
602 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
603 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
604 esac
606 else
608 PYTHONFRAMEWORK=
609 PYTHONFRAMEWORKDIR=no-framework
610 PYTHONFRAMEWORKPREFIX=
611 PYTHONFRAMEWORKINSTALLDIR=
612 enable_framework=
621 ##AC_ARG_WITH(dyld,
622 ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,)
624 # Set name for machine-dependent library files
626 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
627 echo "configure:628: checking MACHDEP" >&5
628 if test -z "$MACHDEP"
629 then
630 ac_sys_system=`uname -s`
631 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
632 ac_sys_release=`uname -v`
633 else
634 ac_sys_release=`uname -r`
636 ac_md_system=`echo $ac_sys_system |
637 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
638 ac_md_release=`echo $ac_sys_release |
639 tr -d '/ ' | sed 's/\..*//'`
640 MACHDEP="$ac_md_system$ac_md_release"
642 case $MACHDEP in
643 cygwin*) MACHDEP="cygwin";;
644 '') MACHDEP="unknown";;
645 esac
649 # SGI compilers allow the specification of the both the ABI and the
650 # ISA on the command line. Depending on the values of these switches,
651 # different and often incompatable code will be generated.
653 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
654 # thus supply support for various ABI/ISA combinations. The MACHDEP
655 # variable is also adjusted.
658 if test ! -z "$SGI_ABI"
659 then
660 CC="cc $SGI_ABI"
661 LDFLAGS="$SGI_ABI $LDFLAGS"
662 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
664 echo "$ac_t""$MACHDEP" 1>&6
666 # checks for alternative programs
667 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
668 echo "configure:669: checking for --without-gcc" >&5
669 # Check whether --with-gcc or --without-gcc was given.
670 if test "${with_gcc+set}" = set; then
671 withval="$with_gcc"
673 case $withval in
674 no) CC=cc
675 without_gcc=yes;;
676 yes) CC=gcc
677 without_gcc=no;;
678 *) CC=$withval
679 without_gcc=$withval;;
680 esac
681 else
683 case $ac_sys_system in
684 AIX*) CC=cc_r
685 without_gcc=;;
686 BeOS*)
687 case $BE_HOST_CPU in
688 ppc)
689 CC=mwcc
690 without_gcc=yes
691 OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
692 CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
693 LDFLAGS="$LDFLAGS -nodup"
695 x86)
696 CC=gcc
697 without_gcc=no
698 OPT=-O
701 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
703 esac
704 AR="\$(srcdir)/Modules/ar_beos"
705 RANLIB=:
707 Monterey*)
708 RANLIB=:
709 without_gcc=;;
710 *) without_gcc=no;;
711 esac
714 echo "$ac_t""$without_gcc" 1>&6
718 MAINOBJ=python.o
719 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
720 echo "configure:721: checking for --with-cxx=<compiler>" >&5
721 # Check whether --with-cxx or --without-cxx was given.
722 if test "${with_cxx+set}" = set; then
723 withval="$with_cxx"
725 check_cxx=no
726 case $withval in
727 no) CXX=
728 with_cxx=no;;
729 *) CXX=$withval
730 MAINOBJ=ccpython.o
731 with_cxx=$withval;;
732 esac
733 else
735 with_cxx=no
736 check_cxx=yes
740 echo "$ac_t""$with_cxx" 1>&6
743 if test "$check_cxx" = "yes"
744 then
745 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
747 # Extract the first word of "$ac_prog", so it can be a program name with args.
748 set dummy $ac_prog; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 if test -n "$CXX"; then
755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
756 else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CXX="$ac_prog"
763 break
765 done
766 IFS="$ac_save_ifs"
769 CXX="$ac_cv_prog_CXX"
770 if test -n "$CXX"; then
771 echo "$ac_t""$CXX" 1>&6
772 else
773 echo "$ac_t""no" 1>&6
776 test -n "$CXX" && break
777 done
778 test -n "$CXX" || CXX="notfound"
780 if test "$CXX" = "notfound"
781 then
782 CXX=
783 else
784 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
787 ac_ext=C
788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789 ac_cpp='$CXXCPP $CPPFLAGS'
790 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792 cross_compiling=$ac_cv_prog_cxx_cross
794 cat > conftest.$ac_ext << EOF
796 #line 797 "configure"
797 #include "confdefs.h"
799 int main(){return(0);}
801 if { (eval echo configure:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
802 ac_cv_prog_cxx_works=yes
803 # If we can't run a trivial program, we are probably using a cross compiler.
804 if (./conftest; exit) 2>/dev/null; then
805 ac_cv_prog_cxx_cross=no
806 else
807 ac_cv_prog_cxx_cross=yes
809 else
810 echo "configure: failed program was:" >&5
811 cat conftest.$ac_ext >&5
812 ac_cv_prog_cxx_works=no
814 rm -fr conftest*
815 ac_ext=c
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp='$CPP $CPPFLAGS'
818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling=$ac_cv_prog_cc_cross
822 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
823 if test $ac_cv_prog_cxx_works = no; then
824 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
826 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
827 echo "configure:828: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
828 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
829 cross_compiling=$ac_cv_prog_cxx_cross
834 # If the user switches compilers, we can't believe the cache
835 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
836 then
837 { echo "configure: error: cached CC is different -- throw away $cache_file
838 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
841 # Extract the first word of "gcc", so it can be a program name with args.
842 set dummy gcc; ac_word=$2
843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
844 echo "configure:845: checking for $ac_word" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
847 else
848 if test -n "$CC"; then
849 ac_cv_prog_CC="$CC" # Let the user override the test.
850 else
851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
856 ac_cv_prog_CC="gcc"
857 break
859 done
860 IFS="$ac_save_ifs"
863 CC="$ac_cv_prog_CC"
864 if test -n "$CC"; then
865 echo "$ac_t""$CC" 1>&6
866 else
867 echo "$ac_t""no" 1>&6
870 if test -z "$CC"; then
871 # Extract the first word of "cc", so it can be a program name with args.
872 set dummy cc; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 if test -n "$CC"; then
879 ac_cv_prog_CC="$CC" # Let the user override the test.
880 else
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 ac_prog_rejected=no
883 ac_dummy="$PATH"
884 for ac_dir in $ac_dummy; do
885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 ac_prog_rejected=yes
889 continue
891 ac_cv_prog_CC="cc"
892 break
894 done
895 IFS="$ac_save_ifs"
896 if test $ac_prog_rejected = yes; then
897 # We found a bogon in the path, so make sure we never use it.
898 set dummy $ac_cv_prog_CC
899 shift
900 if test $# -gt 0; then
901 # We chose a different compiler from the bogus one.
902 # However, it has the same basename, so the bogon will be chosen
903 # first if we set CC to just the basename; use the full file name.
904 shift
905 set dummy "$ac_dir/$ac_word" "$@"
906 shift
907 ac_cv_prog_CC="$@"
912 CC="$ac_cv_prog_CC"
913 if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915 else
916 echo "$ac_t""no" 1>&6
919 if test -z "$CC"; then
920 case "`uname -s`" in
921 *win32* | *WIN32*)
922 # Extract the first word of "cl", so it can be a program name with args.
923 set dummy cl; ac_word=$2
924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925 echo "configure:926: checking for $ac_word" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
928 else
929 if test -n "$CC"; then
930 ac_cv_prog_CC="$CC" # Let the user override the test.
931 else
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
933 ac_dummy="$PATH"
934 for ac_dir in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir=.
936 if test -f $ac_dir/$ac_word; then
937 ac_cv_prog_CC="cl"
938 break
940 done
941 IFS="$ac_save_ifs"
944 CC="$ac_cv_prog_CC"
945 if test -n "$CC"; then
946 echo "$ac_t""$CC" 1>&6
947 else
948 echo "$ac_t""no" 1>&6
951 esac
953 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
957 echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
959 ac_ext=c
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling=$ac_cv_prog_cc_cross
966 cat > conftest.$ac_ext << EOF
968 #line 969 "configure"
969 #include "confdefs.h"
971 main(){return(0);}
973 if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
974 ac_cv_prog_cc_works=yes
975 # If we can't run a trivial program, we are probably using a cross compiler.
976 if (./conftest; exit) 2>/dev/null; then
977 ac_cv_prog_cc_cross=no
978 else
979 ac_cv_prog_cc_cross=yes
981 else
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
984 ac_cv_prog_cc_works=no
986 rm -fr conftest*
987 ac_ext=c
988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
989 ac_cpp='$CPP $CPPFLAGS'
990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
992 cross_compiling=$ac_cv_prog_cc_cross
994 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
995 if test $ac_cv_prog_cc_works = no; then
996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
999 echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1000 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1001 cross_compiling=$ac_cv_prog_cc_cross
1003 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether we are using GNU C" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 cat > conftest.c <<EOF
1009 #ifdef __GNUC__
1010 yes;
1011 #endif
1013 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1014 ac_cv_prog_gcc=yes
1015 else
1016 ac_cv_prog_gcc=no
1020 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1022 if test $ac_cv_prog_gcc = yes; then
1023 GCC=yes
1024 else
1025 GCC=
1028 ac_test_CFLAGS="${CFLAGS+set}"
1029 ac_save_CFLAGS="$CFLAGS"
1030 CFLAGS=
1031 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1032 echo "configure:1033: checking whether ${CC-cc} accepts -g" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036 echo 'void f(){}' > conftest.c
1037 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1038 ac_cv_prog_cc_g=yes
1039 else
1040 ac_cv_prog_cc_g=no
1042 rm -f conftest*
1046 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1047 if test "$ac_test_CFLAGS" = set; then
1048 CFLAGS="$ac_save_CFLAGS"
1049 elif test $ac_cv_prog_cc_g = yes; then
1050 if test "$GCC" = yes; then
1051 CFLAGS="-g -O2"
1052 else
1053 CFLAGS="-g"
1055 else
1056 if test "$GCC" = yes; then
1057 CFLAGS="-O2"
1058 else
1059 CFLAGS=
1064 # checks for UNIX variants that set C preprocessor variables
1065 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1066 echo "configure:1067: checking how to run the C preprocessor" >&5
1067 # On Suns, sometimes $CPP names a directory.
1068 if test -n "$CPP" && test -d "$CPP"; then
1069 CPP=
1071 if test -z "$CPP"; then
1072 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1074 else
1075 # This must be in double quotes, not single quotes, because CPP may get
1076 # substituted into the Makefile and "${CC-cc}" will confuse make.
1077 CPP="${CC-cc} -E"
1078 # On the NeXT, cc -E runs the code through the compiler's parser,
1079 # not just through cpp.
1080 cat > conftest.$ac_ext <<EOF
1081 #line 1082 "configure"
1082 #include "confdefs.h"
1083 #include <assert.h>
1084 Syntax Error
1086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1087 { (eval echo configure:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1089 if test -z "$ac_err"; then
1091 else
1092 echo "$ac_err" >&5
1093 echo "configure: failed program was:" >&5
1094 cat conftest.$ac_ext >&5
1095 rm -rf conftest*
1096 CPP="${CC-cc} -E -traditional-cpp"
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1100 #include <assert.h>
1101 Syntax Error
1103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1104 { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1106 if test -z "$ac_err"; then
1108 else
1109 echo "$ac_err" >&5
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1112 rm -rf conftest*
1113 CPP="${CC-cc} -nologo -E"
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1117 #include <assert.h>
1118 Syntax Error
1120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1121 { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1123 if test -z "$ac_err"; then
1125 else
1126 echo "$ac_err" >&5
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1129 rm -rf conftest*
1130 CPP=/lib/cpp
1132 rm -f conftest*
1134 rm -f conftest*
1136 rm -f conftest*
1137 ac_cv_prog_CPP="$CPP"
1139 CPP="$ac_cv_prog_CPP"
1140 else
1141 ac_cv_prog_CPP="$CPP"
1143 echo "$ac_t""$CPP" 1>&6
1145 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1146 echo "configure:1147: checking for AIX" >&5
1147 cat > conftest.$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1150 #ifdef _AIX
1152 #endif
1155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1156 egrep "yes" >/dev/null 2>&1; then
1157 rm -rf conftest*
1158 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1159 #define _ALL_SOURCE 1
1162 else
1163 rm -rf conftest*
1164 echo "$ac_t""no" 1>&6
1166 rm -f conftest*
1169 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1170 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1171 echo "configure:1172: checking for minix/config.h" >&5
1172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1174 else
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1178 #include <minix/config.h>
1180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181 { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1183 if test -z "$ac_err"; then
1184 rm -rf conftest*
1185 eval "ac_cv_header_$ac_safe=yes"
1186 else
1187 echo "$ac_err" >&5
1188 echo "configure: failed program was:" >&5
1189 cat conftest.$ac_ext >&5
1190 rm -rf conftest*
1191 eval "ac_cv_header_$ac_safe=no"
1193 rm -f conftest*
1195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1197 MINIX=yes
1198 else
1199 echo "$ac_t""no" 1>&6
1200 MINIX=
1203 if test "$MINIX" = yes; then
1204 cat >> confdefs.h <<\EOF
1205 #define _POSIX_SOURCE 1
1208 cat >> confdefs.h <<\EOF
1209 #define _POSIX_1_SOURCE 2
1212 cat >> confdefs.h <<\EOF
1213 #define _MINIX 1
1219 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1220 echo "configure:1221: checking for Cygwin environment" >&5
1221 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1223 else
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1228 int main() {
1230 #ifndef __CYGWIN__
1231 #define __CYGWIN__ __CYGWIN32__
1232 #endif
1233 return __CYGWIN__;
1234 ; return 0; }
1236 if { (eval echo configure:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1237 rm -rf conftest*
1238 ac_cv_cygwin=yes
1239 else
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1242 rm -rf conftest*
1243 ac_cv_cygwin=no
1245 rm -f conftest*
1246 rm -f conftest*
1249 echo "$ac_t""$ac_cv_cygwin" 1>&6
1250 CYGWIN=
1251 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1252 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1253 echo "configure:1254: checking for mingw32 environment" >&5
1254 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1261 int main() {
1262 return __MINGW32__;
1263 ; return 0; }
1265 if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1266 rm -rf conftest*
1267 ac_cv_mingw32=yes
1268 else
1269 echo "configure: failed program was:" >&5
1270 cat conftest.$ac_ext >&5
1271 rm -rf conftest*
1272 ac_cv_mingw32=no
1274 rm -f conftest*
1275 rm -f conftest*
1278 echo "$ac_t""$ac_cv_mingw32" 1>&6
1279 MINGW32=
1280 test "$ac_cv_mingw32" = yes && MINGW32=yes
1283 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1284 echo "configure:1285: checking for executable suffix" >&5
1285 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1289 ac_cv_exeext=.exe
1290 else
1291 rm -f conftest*
1292 echo 'int main () { return 0; }' > conftest.$ac_ext
1293 ac_cv_exeext=
1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1295 for file in conftest.*; do
1296 case $file in
1297 *.c | *.o | *.obj) ;;
1298 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1299 esac
1300 done
1301 else
1302 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1304 rm -f conftest*
1305 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1309 EXEEXT=""
1310 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1311 echo "$ac_t""${ac_cv_exeext}" 1>&6
1312 ac_exeext=$EXEEXT
1314 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1315 echo "configure:1316: checking for --with-suffix" >&5
1316 # Check whether --with-suffix or --without-suffix was given.
1317 if test "${with_suffix+set}" = set; then
1318 withval="$with_suffix"
1320 case $withval in
1321 no) EXEEXT=;;
1322 yes) EXEEXT=.exe;;
1323 *) EXEEXT=$withval;;
1324 esac
1327 echo "$ac_t""$EXEEXT" 1>&6
1328 # Test whether we're running on a non-case-sensitive system, in which
1329 # case we give a warning if no ext is given
1330 if test -d "python" -a -z "$EXEEXT"
1331 then
1332 echo "configure: warning: This filesystem is not case-sensitive so you should probably use --with-suffix" 1>&2
1335 case $MACHDEP in
1336 bsdos*)
1337 case $CC in
1338 gcc) CC="$CC -D_HAVE_BSDI";;
1339 esac;;
1340 esac
1342 case $ac_sys_system in
1343 hp*|HP*)
1344 case $CC in
1345 cc|*/cc) CC="$CC -Ae";;
1346 esac;;
1347 Monterey*)
1348 case $CC in
1349 cc) CC="$CC -Wl,-Bexport";;
1350 esac;;
1351 SunOS*)
1352 # Some functions have a prototype only with that define, e.g. confstr
1353 cat >> confdefs.h <<\EOF
1354 #define __EXTENSIONS__ 1
1358 esac
1362 echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
1363 echo "configure:1364: checking LIBRARY" >&5
1364 if test -z "$LIBRARY"
1365 then
1366 LIBRARY='libpython$(VERSION).a'
1368 echo "$ac_t""$LIBRARY" 1>&6
1370 # LDLIBRARY is the name of the library to link against (as opposed to the
1371 # name of the library into which to insert object files). BLDLIBRARY is also
1372 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
1373 # is blank as the main program is not linked directly against LDLIBRARY.
1374 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
1375 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
1376 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
1377 # DLLLIBRARY is the shared (i.e., DLL) library.
1383 LDLIBRARY="$LIBRARY"
1384 BLDLIBRARY='$(LDLIBRARY)'
1385 DLLLIBRARY=''
1386 LDLIBRARYDIR=''
1388 # LINKCC is the command that links the python executable -- default is $(CC).
1389 # This is altered for AIX in order to build the export list before
1390 # linking.
1392 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1393 echo "configure:1394: checking LINKCC" >&5
1394 if test -z "$LINKCC"
1395 then
1396 case $ac_sys_system in
1397 AIX*)
1398 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1399 dgux*)
1400 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1401 Monterey64*)
1402 LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1403 *) LINKCC="\$(PURIFY) \$(CC)";;
1404 esac
1406 echo "$ac_t""$LINKCC" 1>&6
1408 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1409 echo "configure:1410: checking LDLIBRARY" >&5
1411 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1412 case $MACHDEP in
1413 dguxR4)
1414 LDLIBRARY='libpython$(VERSION).so'
1415 OPT="$OPT -pic"
1417 beos*)
1418 LDLIBRARY='libpython$(VERSION).so'
1420 cygwin*)
1421 LDLIBRARY='libpython$(VERSION).dll.a'
1422 DLLLIBRARY='libpython$(VERSION).dll'
1424 esac
1426 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
1427 # library that we build, but we do not want to link against it (we
1428 # will find it with a -framework option). For this reason there is an
1429 # extra variable BLDLIBRARY against which Python and the extension
1430 # modules are linked, BLDLIBRARY. This is normally the same as
1431 # LDLIBRARY, but empty for MacOSX framework builds.
1432 if test "$enable_framework"
1433 then
1434 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
1435 LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)'
1436 BLDLIBRARY=''
1437 else
1438 BLDLIBRARY='$(LDLIBRARY)'
1441 echo "$ac_t""$LDLIBRARY" 1>&6
1443 # Extract the first word of "ranlib", so it can be a program name with args.
1444 set dummy ranlib; ac_word=$2
1445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1446 echo "configure:1447: checking for $ac_word" >&5
1447 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1449 else
1450 if test -n "$RANLIB"; then
1451 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1452 else
1453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1454 ac_dummy="$PATH"
1455 for ac_dir in $ac_dummy; do
1456 test -z "$ac_dir" && ac_dir=.
1457 if test -f $ac_dir/$ac_word; then
1458 ac_cv_prog_RANLIB="ranlib"
1459 break
1461 done
1462 IFS="$ac_save_ifs"
1463 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1466 RANLIB="$ac_cv_prog_RANLIB"
1467 if test -n "$RANLIB"; then
1468 echo "$ac_t""$RANLIB" 1>&6
1469 else
1470 echo "$ac_t""no" 1>&6
1474 for ac_prog in ar aal
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy $ac_prog; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 if test -n "$AR"; then
1484 ac_cv_prog_AR="$AR" # Let the user override the test.
1485 else
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1487 ac_dummy="$PATH"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_AR="$ac_prog"
1492 break
1494 done
1495 IFS="$ac_save_ifs"
1498 AR="$ac_cv_prog_AR"
1499 if test -n "$AR"; then
1500 echo "$ac_t""$AR" 1>&6
1501 else
1502 echo "$ac_t""no" 1>&6
1505 test -n "$AR" && break
1506 done
1507 test -n "$AR" || AR="ar"
1510 case $MACHDEP in
1511 bsdos*)
1512 # install -d does not work on BSDI
1513 if test -z "$INSTALL"
1514 then
1515 INSTALL="${srcdir}/install-sh -c"
1517 esac
1518 ac_aux_dir=
1519 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1529 done
1530 if test -z "$ac_aux_dir"; then
1531 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1533 ac_config_guess=$ac_aux_dir/config.guess
1534 ac_config_sub=$ac_aux_dir/config.sub
1535 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1537 # Find a good install program. We prefer a C program (faster),
1538 # so one script is as good as another. But avoid the broken or
1539 # incompatible versions:
1540 # SysV /etc/install, /usr/sbin/install
1541 # SunOS /usr/etc/install
1542 # IRIX /sbin/install
1543 # AIX /bin/install
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1553 else
1554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1555 for ac_dir in $PATH; do
1556 # Account for people who put trailing slashes in PATH elements.
1557 case "$ac_dir/" in
1558 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1562 # by default.
1563 for ac_prog in ginstall scoinst install; do
1564 if test -f $ac_dir/$ac_prog; then
1565 if test $ac_prog = install &&
1566 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1569 else
1570 ac_cv_path_install="$ac_dir/$ac_prog -c"
1571 break 2
1574 done
1576 esac
1577 done
1578 IFS="$ac_save_IFS"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL="$ac_cv_path_install"
1583 else
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL="$ac_install_sh"
1591 echo "$ac_t""$INSTALL" 1>&6
1593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1594 # It thinks the first close brace ends the variable substitution.
1595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1599 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1602 # Not every filesystem supports hard links
1604 if test -z "$LN" ; then
1605 case $ac_sys_system in
1606 BeOS*) LN="ln -s";;
1607 CYGWIN*) LN="ln -s";;
1608 *) LN=ln;;
1609 esac
1612 # Check for --with-pydebug
1613 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
1614 echo "configure:1615: checking for --with-pydebug" >&5
1615 # Check whether --with-pydebug or --without-pydebug was given.
1616 if test "${with_pydebug+set}" = set; then
1617 withval="$with_pydebug"
1619 if test "$withval" != no
1620 then cat >> confdefs.h <<\EOF
1621 #define Py_DEBUG 1
1623 echo "$ac_t""yes" 1>&6; Py_DEBUG='true'
1624 else echo "$ac_t""no" 1>&6; Py_DEBUG='false'
1626 else
1627 echo "$ac_t""no" 1>&6
1631 # Optimizer/debugger flags
1633 if test -z "$OPT"
1634 then
1635 case $GCC in
1636 yes)
1637 case $ac_cv_prog_cc_g in
1638 yes)
1639 if test "$Py_DEBUG" = 'true' ; then
1640 # Optimization messes up debuggers, so turn it off for
1641 # debug builds.
1642 OPT="-g -Wall -Wstrict-prototypes"
1643 else
1644 OPT="-g -O3 -Wall -Wstrict-prototypes"
1645 fi;;
1647 OPT="-O3 -Wall -Wstrict-prototypes";;
1648 esac
1651 case $ac_sys_system in
1652 UnixWare*)
1653 OPT="-O -K pentium,host,inline,loop_unroll,alloca ";;
1655 OPT="-O";;
1656 esac
1657 esac
1658 case $ac_sys_system in
1659 Darwin*)
1660 OPT="$OPT -no-cpp-precomp";;
1661 esac
1664 # The current (beta) Monterey compiler dies with optimizations
1665 case $ac_sys_system in
1666 Monterey*) OPT="";;
1667 esac
1669 if test "$ac_arch_flags"
1670 then
1671 OPT="$OPT $ac_arch_flags"
1674 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether $CC accepts -OPT:Olimit=0" >&5
1676 if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1678 else
1679 ac_save_cc="$CC"
1680 CC="$CC -OPT:Olimit=0"
1681 if test "$cross_compiling" = yes; then
1682 ac_cv_opt_olimit_ok=no
1683 else
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 int main() { return 0; }
1689 if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1690 then
1691 ac_cv_opt_olimit_ok=yes
1692 else
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -fr conftest*
1696 ac_cv_opt_olimit_ok=no
1698 rm -fr conftest*
1701 CC="$ac_save_cc"
1704 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1705 if test $ac_cv_opt_olimit_ok = yes; then
1706 case $ac_sys_system in
1707 Darwin*) OPT="$OPT" ;;
1708 *) OPT="$OPT -OPT:Olimit=0";;
1709 esac
1710 else
1711 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1712 echo "configure:1713: checking whether $CC accepts -Olimit 1500" >&5
1713 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1715 else
1716 ac_save_cc="$CC"
1717 CC="$CC -Olimit 1500"
1718 if test "$cross_compiling" = yes; then
1719 ac_cv_olimit_ok=no
1720 else
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 int main() { return 0; }
1726 if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1727 then
1728 ac_cv_olimit_ok=yes
1729 else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -fr conftest*
1733 ac_cv_olimit_ok=no
1735 rm -fr conftest*
1738 CC="$ac_save_cc"
1741 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1742 if test $ac_cv_olimit_ok = yes; then
1743 OPT="$OPT -Olimit 1500"
1747 # -Kpthread, if available, provides the right #defines
1748 # and linker options to make pthread_create available
1749 echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether $CC accepts -Kpthread" >&5
1751 if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1753 else
1754 ac_save_cc="$CC"
1755 CC="$CC -Kpthread"
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <pthread.h>
1760 int main() {
1761 pthread_create(0,0,0,0)
1762 ; return 0; }
1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1765 rm -rf conftest*
1766 ac_cv_kpthread=yes
1767 else
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1770 rm -rf conftest*
1771 ac_cv_kpthread=no
1773 rm -f conftest*
1774 CC="$ac_save_cc"
1778 # GCC does not reject -Kpthread as an illegal option, it merely complains that
1779 # it is unrecognized
1780 if test "$GCC" = "yes"
1781 then ac_cv_kpthread="no, we have gcc"
1783 echo "$ac_t""$ac_cv_kpthread" 1>&6
1786 # checks for header files
1787 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1788 echo "configure:1789: checking for ANSI C header files" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791 else
1792 cat > conftest.$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1795 #include <stdlib.h>
1796 #include <stdarg.h>
1797 #include <string.h>
1798 #include <float.h>
1800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1803 if test -z "$ac_err"; then
1804 rm -rf conftest*
1805 ac_cv_header_stdc=yes
1806 else
1807 echo "$ac_err" >&5
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1810 rm -rf conftest*
1811 ac_cv_header_stdc=no
1813 rm -f conftest*
1815 if test $ac_cv_header_stdc = yes; then
1816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 #include <string.h>
1822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1823 egrep "memchr" >/dev/null 2>&1; then
1825 else
1826 rm -rf conftest*
1827 ac_cv_header_stdc=no
1829 rm -f conftest*
1833 if test $ac_cv_header_stdc = yes; then
1834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 #include <stdlib.h>
1840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1841 egrep "free" >/dev/null 2>&1; then
1843 else
1844 rm -rf conftest*
1845 ac_cv_header_stdc=no
1847 rm -f conftest*
1851 if test $ac_cv_header_stdc = yes; then
1852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1853 if test "$cross_compiling" = yes; then
1855 else
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 #include <ctype.h>
1860 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1861 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1863 int main () { int i; for (i = 0; i < 256; i++)
1864 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1865 exit (0); }
1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1869 then
1871 else
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1874 rm -fr conftest*
1875 ac_cv_header_stdc=no
1877 rm -fr conftest*
1883 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1884 if test $ac_cv_header_stdc = yes; then
1885 cat >> confdefs.h <<\EOF
1886 #define STDC_HEADERS 1
1891 for ac_hdr in dlfcn.h fcntl.h limits.h langinfo.h locale.h \
1892 ncurses.h poll.h pthread.h \
1893 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
1894 sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \
1895 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \
1896 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
1897 ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h
1899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_hdr" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1904 else
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1908 #include <$ac_hdr>
1910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913 if test -z "$ac_err"; then
1914 rm -rf conftest*
1915 eval "ac_cv_header_$ac_safe=yes"
1916 else
1917 echo "$ac_err" >&5
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 rm -rf conftest*
1921 eval "ac_cv_header_$ac_safe=no"
1923 rm -f conftest*
1925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928 cat >> confdefs.h <<EOF
1929 #define $ac_tr_hdr 1
1932 else
1933 echo "$ac_t""no" 1>&6
1935 done
1937 ac_header_dirent=no
1938 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1941 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_hdr that defines DIR" >&5
1943 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946 cat > conftest.$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 #include <sys/types.h>
1950 #include <$ac_hdr>
1951 int main() {
1952 DIR *dirp = 0;
1953 ; return 0; }
1955 if { (eval echo configure:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1956 rm -rf conftest*
1957 eval "ac_cv_header_dirent_$ac_safe=yes"
1958 else
1959 echo "configure: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 rm -rf conftest*
1962 eval "ac_cv_header_dirent_$ac_safe=no"
1964 rm -f conftest*
1966 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1967 echo "$ac_t""yes" 1>&6
1968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1969 cat >> confdefs.h <<EOF
1970 #define $ac_tr_hdr 1
1972 ac_header_dirent=$ac_hdr; break
1973 else
1974 echo "$ac_t""no" 1>&6
1976 done
1977 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1978 if test $ac_header_dirent = dirent.h; then
1979 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1980 echo "configure:1981: checking for opendir in -ldir" >&5
1981 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 ac_save_LIBS="$LIBS"
1986 LIBS="-ldir $LIBS"
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* Override any gcc2 internal prototype to avoid an error. */
1991 /* We use char because int might match the return type of a gcc2
1992 builtin and then its argument prototype would still apply. */
1993 char opendir();
1995 int main() {
1996 opendir()
1997 ; return 0; }
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2000 rm -rf conftest*
2001 eval "ac_cv_lib_$ac_lib_var=yes"
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -rf conftest*
2006 eval "ac_cv_lib_$ac_lib_var=no"
2008 rm -f conftest*
2009 LIBS="$ac_save_LIBS"
2012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 LIBS="$LIBS -ldir"
2015 else
2016 echo "$ac_t""no" 1>&6
2019 else
2020 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2021 echo "configure:2022: checking for opendir in -lx" >&5
2022 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2025 else
2026 ac_save_LIBS="$LIBS"
2027 LIBS="-lx $LIBS"
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2034 char opendir();
2036 int main() {
2037 opendir()
2038 ; return 0; }
2040 if { (eval echo configure:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2041 rm -rf conftest*
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2043 else
2044 echo "configure: failed program was:" >&5
2045 cat conftest.$ac_ext >&5
2046 rm -rf conftest*
2047 eval "ac_cv_lib_$ac_lib_var=no"
2049 rm -f conftest*
2050 LIBS="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 LIBS="$LIBS -lx"
2056 else
2057 echo "$ac_t""no" 1>&6
2063 # checks for typedefs
2064 was_it_defined=no
2065 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
2066 echo "configure:2067: checking for clock_t in time.h" >&5
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <time.h>
2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2073 egrep "clock_t" >/dev/null 2>&1; then
2074 rm -rf conftest*
2075 was_it_defined=yes
2076 else
2077 rm -rf conftest*
2078 cat >> confdefs.h <<\EOF
2079 #define clock_t long
2083 rm -f conftest*
2085 echo "$ac_t""$was_it_defined" 1>&6
2087 # Two defines needed to enable largefile support on various platforms
2088 # These may affect some typedefs
2089 cat >> confdefs.h <<\EOF
2090 #define _LARGEFILE_SOURCE 1
2093 cat >> confdefs.h <<\EOF
2094 #define _FILE_OFFSET_BITS 64
2098 # Add some code to confdefs.h so that the test for off_t works on SCO
2099 cat >> confdefs.h <<\EOF
2100 #if defined(SCO_DS)
2101 #undef _OFF_T
2102 #endif
2105 # Type availability checks
2106 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2107 echo "configure:2108: checking for mode_t" >&5
2108 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 #include <sys/types.h>
2115 #if STDC_HEADERS
2116 #include <stdlib.h>
2117 #include <stddef.h>
2118 #endif
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2122 rm -rf conftest*
2123 ac_cv_type_mode_t=yes
2124 else
2125 rm -rf conftest*
2126 ac_cv_type_mode_t=no
2128 rm -f conftest*
2131 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2132 if test $ac_cv_type_mode_t = no; then
2133 cat >> confdefs.h <<\EOF
2134 #define mode_t int
2139 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2140 echo "configure:2141: checking for off_t" >&5
2141 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2148 #if STDC_HEADERS
2149 #include <stdlib.h>
2150 #include <stddef.h>
2151 #endif
2153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2154 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2155 rm -rf conftest*
2156 ac_cv_type_off_t=yes
2157 else
2158 rm -rf conftest*
2159 ac_cv_type_off_t=no
2161 rm -f conftest*
2164 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2165 if test $ac_cv_type_off_t = no; then
2166 cat >> confdefs.h <<\EOF
2167 #define off_t long
2172 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2173 echo "configure:2174: checking for pid_t" >&5
2174 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2176 else
2177 cat > conftest.$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 #include <sys/types.h>
2181 #if STDC_HEADERS
2182 #include <stdlib.h>
2183 #include <stddef.h>
2184 #endif
2186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2188 rm -rf conftest*
2189 ac_cv_type_pid_t=yes
2190 else
2191 rm -rf conftest*
2192 ac_cv_type_pid_t=no
2194 rm -f conftest*
2197 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2198 if test $ac_cv_type_pid_t = no; then
2199 cat >> confdefs.h <<\EOF
2200 #define pid_t int
2205 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2206 echo "configure:2207: checking return type of signal handlers" >&5
2207 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <sys/types.h>
2214 #include <signal.h>
2215 #ifdef signal
2216 #undef signal
2217 #endif
2218 #ifdef __cplusplus
2219 extern "C" void (*signal (int, void (*)(int)))(int);
2220 #else
2221 void (*signal ()) ();
2222 #endif
2224 int main() {
2225 int i;
2226 ; return 0; }
2228 if { (eval echo configure:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2229 rm -rf conftest*
2230 ac_cv_type_signal=void
2231 else
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 rm -rf conftest*
2235 ac_cv_type_signal=int
2237 rm -f conftest*
2240 echo "$ac_t""$ac_cv_type_signal" 1>&6
2241 cat >> confdefs.h <<EOF
2242 #define RETSIGTYPE $ac_cv_type_signal
2246 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2247 echo "configure:2248: checking for size_t" >&5
2248 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2250 else
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 #include <sys/types.h>
2255 #if STDC_HEADERS
2256 #include <stdlib.h>
2257 #include <stddef.h>
2258 #endif
2260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2261 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2262 rm -rf conftest*
2263 ac_cv_type_size_t=yes
2264 else
2265 rm -rf conftest*
2266 ac_cv_type_size_t=no
2268 rm -f conftest*
2271 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2272 if test $ac_cv_type_size_t = no; then
2273 cat >> confdefs.h <<\EOF
2274 #define size_t unsigned
2279 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2280 echo "configure:2281: checking for uid_t in sys/types.h" >&5
2281 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2290 egrep "uid_t" >/dev/null 2>&1; then
2291 rm -rf conftest*
2292 ac_cv_type_uid_t=yes
2293 else
2294 rm -rf conftest*
2295 ac_cv_type_uid_t=no
2297 rm -f conftest*
2301 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2302 if test $ac_cv_type_uid_t = no; then
2303 cat >> confdefs.h <<\EOF
2304 #define uid_t int
2307 cat >> confdefs.h <<\EOF
2308 #define gid_t int
2314 # Sizes of various common basic types
2315 echo $ac_n "checking size of int""... $ac_c" 1>&6
2316 echo "configure:2317: checking size of int" >&5
2317 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test "$cross_compiling" = yes; then
2321 ac_cv_sizeof_int=4
2322 else
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <stdio.h>
2327 main()
2329 FILE *f=fopen("conftestval", "w");
2330 if (!f) exit(1);
2331 fprintf(f, "%d\n", sizeof(int));
2332 exit(0);
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2336 then
2337 ac_cv_sizeof_int=`cat conftestval`
2338 else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 rm -fr conftest*
2342 ac_cv_sizeof_int=0
2344 rm -fr conftest*
2348 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2349 cat >> confdefs.h <<EOF
2350 #define SIZEOF_INT $ac_cv_sizeof_int
2354 echo $ac_n "checking size of long""... $ac_c" 1>&6
2355 echo "configure:2356: checking size of long" >&5
2356 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 if test "$cross_compiling" = yes; then
2360 ac_cv_sizeof_long=4
2361 else
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 #include <stdio.h>
2366 main()
2368 FILE *f=fopen("conftestval", "w");
2369 if (!f) exit(1);
2370 fprintf(f, "%d\n", sizeof(long));
2371 exit(0);
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2375 then
2376 ac_cv_sizeof_long=`cat conftestval`
2377 else
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -fr conftest*
2381 ac_cv_sizeof_long=0
2383 rm -fr conftest*
2387 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2388 cat >> confdefs.h <<EOF
2389 #define SIZEOF_LONG $ac_cv_sizeof_long
2393 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2394 echo "configure:2395: checking size of void *" >&5
2395 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398 if test "$cross_compiling" = yes; then
2399 ac_cv_sizeof_void_p=4
2400 else
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 #include <stdio.h>
2405 main()
2407 FILE *f=fopen("conftestval", "w");
2408 if (!f) exit(1);
2409 fprintf(f, "%d\n", sizeof(void *));
2410 exit(0);
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2414 then
2415 ac_cv_sizeof_void_p=`cat conftestval`
2416 else
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 rm -fr conftest*
2420 ac_cv_sizeof_void_p=0
2422 rm -fr conftest*
2426 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2427 cat >> confdefs.h <<EOF
2428 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2432 echo $ac_n "checking size of char""... $ac_c" 1>&6
2433 echo "configure:2434: checking size of char" >&5
2434 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437 if test "$cross_compiling" = yes; then
2438 ac_cv_sizeof_char=1
2439 else
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <stdio.h>
2444 main()
2446 FILE *f=fopen("conftestval", "w");
2447 if (!f) exit(1);
2448 fprintf(f, "%d\n", sizeof(char));
2449 exit(0);
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2453 then
2454 ac_cv_sizeof_char=`cat conftestval`
2455 else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -fr conftest*
2459 ac_cv_sizeof_char=0
2461 rm -fr conftest*
2465 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2466 cat >> confdefs.h <<EOF
2467 #define SIZEOF_CHAR $ac_cv_sizeof_char
2471 echo $ac_n "checking size of short""... $ac_c" 1>&6
2472 echo "configure:2473: checking size of short" >&5
2473 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 if test "$cross_compiling" = yes; then
2477 ac_cv_sizeof_short=2
2478 else
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 #include <stdio.h>
2483 main()
2485 FILE *f=fopen("conftestval", "w");
2486 if (!f) exit(1);
2487 fprintf(f, "%d\n", sizeof(short));
2488 exit(0);
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2492 then
2493 ac_cv_sizeof_short=`cat conftestval`
2494 else
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -fr conftest*
2498 ac_cv_sizeof_short=0
2500 rm -fr conftest*
2504 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2505 cat >> confdefs.h <<EOF
2506 #define SIZEOF_SHORT $ac_cv_sizeof_short
2510 echo $ac_n "checking size of float""... $ac_c" 1>&6
2511 echo "configure:2512: checking size of float" >&5
2512 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2514 else
2515 if test "$cross_compiling" = yes; then
2516 ac_cv_sizeof_float=4
2517 else
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <stdio.h>
2522 main()
2524 FILE *f=fopen("conftestval", "w");
2525 if (!f) exit(1);
2526 fprintf(f, "%d\n", sizeof(float));
2527 exit(0);
2530 if { (eval echo configure:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2531 then
2532 ac_cv_sizeof_float=`cat conftestval`
2533 else
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2536 rm -fr conftest*
2537 ac_cv_sizeof_float=0
2539 rm -fr conftest*
2543 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2544 cat >> confdefs.h <<EOF
2545 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2549 echo $ac_n "checking size of double""... $ac_c" 1>&6
2550 echo "configure:2551: checking size of double" >&5
2551 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2553 else
2554 if test "$cross_compiling" = yes; then
2555 ac_cv_sizeof_double=8
2556 else
2557 cat > conftest.$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2560 #include <stdio.h>
2561 main()
2563 FILE *f=fopen("conftestval", "w");
2564 if (!f) exit(1);
2565 fprintf(f, "%d\n", sizeof(double));
2566 exit(0);
2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2570 then
2571 ac_cv_sizeof_double=`cat conftestval`
2572 else
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2575 rm -fr conftest*
2576 ac_cv_sizeof_double=0
2578 rm -fr conftest*
2582 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2583 cat >> confdefs.h <<EOF
2584 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2588 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2589 echo "configure:2590: checking size of fpos_t" >&5
2590 if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2592 else
2593 if test "$cross_compiling" = yes; then
2594 ac_cv_sizeof_fpos_t=4
2595 else
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #include <stdio.h>
2600 main()
2602 FILE *f=fopen("conftestval", "w");
2603 if (!f) exit(1);
2604 fprintf(f, "%d\n", sizeof(fpos_t));
2605 exit(0);
2608 if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2609 then
2610 ac_cv_sizeof_fpos_t=`cat conftestval`
2611 else
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -fr conftest*
2615 ac_cv_sizeof_fpos_t=0
2617 rm -fr conftest*
2621 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2622 cat >> confdefs.h <<EOF
2623 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2628 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2629 echo "configure:2630: checking for long long support" >&5
2630 have_long_long=no
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2635 int main() {
2636 long long x; x = (long long)0;
2637 ; return 0; }
2639 if { (eval echo configure:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2640 rm -rf conftest*
2641 cat >> confdefs.h <<\EOF
2642 #define HAVE_LONG_LONG 1
2644 have_long_long=yes
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 rm -f conftest*
2650 echo "$ac_t""$have_long_long" 1>&6
2651 if test "$have_long_long" = yes ; then
2652 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2653 echo "configure:2654: checking size of long long" >&5
2654 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656 else
2657 if test "$cross_compiling" = yes; then
2658 ac_cv_sizeof_long_long=8
2659 else
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2663 #include <stdio.h>
2664 main()
2666 FILE *f=fopen("conftestval", "w");
2667 if (!f) exit(1);
2668 fprintf(f, "%d\n", sizeof(long long));
2669 exit(0);
2672 if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2673 then
2674 ac_cv_sizeof_long_long=`cat conftestval`
2675 else
2676 echo "configure: failed program was:" >&5
2677 cat conftest.$ac_ext >&5
2678 rm -fr conftest*
2679 ac_cv_sizeof_long_long=0
2681 rm -fr conftest*
2685 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2686 cat >> confdefs.h <<EOF
2687 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2693 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2694 echo "configure:2695: checking for uintptr_t support" >&5
2695 have_uintptr_t=no
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2700 int main() {
2701 uintptr_t x; x = (uintptr_t)0;
2702 ; return 0; }
2704 if { (eval echo configure:2705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2705 rm -rf conftest*
2706 cat >> confdefs.h <<\EOF
2707 #define HAVE_UINTPTR_T 1
2709 have_uintptr_t=yes
2710 else
2711 echo "configure: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2714 rm -f conftest*
2715 echo "$ac_t""$have_uintptr_t" 1>&6
2716 if test "$have_uintptr_t" = yes ; then
2717 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2718 echo "configure:2719: checking size of uintptr_t" >&5
2719 if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721 else
2722 if test "$cross_compiling" = yes; then
2723 ac_cv_sizeof_uintptr_t=4
2724 else
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <stdio.h>
2729 main()
2731 FILE *f=fopen("conftestval", "w");
2732 if (!f) exit(1);
2733 fprintf(f, "%d\n", sizeof(uintptr_t));
2734 exit(0);
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2738 then
2739 ac_cv_sizeof_uintptr_t=`cat conftestval`
2740 else
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 rm -fr conftest*
2744 ac_cv_sizeof_uintptr_t=0
2746 rm -fr conftest*
2750 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2751 cat >> confdefs.h <<EOF
2752 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2758 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2759 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2760 echo "configure:2761: checking size of off_t" >&5
2761 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2763 else
2764 if test "$cross_compiling" = yes; then
2765 ac_cv_sizeof_off_t=4
2766 else
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <stdio.h>
2771 #include <sys/types.h>
2772 main()
2774 FILE *f=fopen("conftestval", "w");
2775 if (!f) exit(1);
2776 fprintf(f, "%d\n", sizeof(off_t));
2777 exit(0);
2780 if { (eval echo configure:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2781 then
2782 ac_cv_sizeof_off_t=`cat conftestval`
2783 else
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -fr conftest*
2787 ac_cv_sizeof_off_t=0
2789 rm -fr conftest*
2795 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2796 cat >> confdefs.h <<EOF
2797 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2801 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2802 echo "configure:2803: checking whether to enable large file support" >&5
2803 if test "$have_long_long" = yes -a \
2804 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2805 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2806 cat >> confdefs.h <<\EOF
2807 #define HAVE_LARGEFILE_SUPPORT 1
2810 echo "$ac_t""yes" 1>&6
2811 else
2812 echo "$ac_t""no" 1>&6
2815 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2816 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2817 echo "configure:2818: checking size of time_t" >&5
2818 if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 if test "$cross_compiling" = yes; then
2822 ac_cv_sizeof_time_t=4
2823 else
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #include <stdio.h>
2828 #include <time.h>
2829 main()
2831 FILE *f=fopen("conftestval", "w");
2832 if (!f) exit(1);
2833 fprintf(f, "%d\n", sizeof(time_t));
2834 exit(0);
2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2838 then
2839 ac_cv_sizeof_time_t=`cat conftestval`
2840 else
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2843 rm -fr conftest*
2844 ac_cv_sizeof_time_t=0
2846 rm -fr conftest*
2852 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2853 cat >> confdefs.h <<EOF
2854 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2859 # if have pthread_t then define SIZEOF_PTHREAD_T
2860 ac_save_cc="$CC"
2861 if test "$ac_cv_kpthread" = "yes"
2862 then CC="$CC -Kpthread"
2864 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2865 echo "configure:2866: checking for pthread_t" >&5
2866 have_pthread_t=no
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 #include <pthread.h>
2871 int main() {
2872 pthread_t x; x = *(pthread_t*)0;
2873 ; return 0; }
2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876 rm -rf conftest*
2877 have_pthread_t=yes
2878 else
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 rm -f conftest*
2883 echo "$ac_t""$have_pthread_t" 1>&6
2884 if test "$have_pthread_t" = yes ; then
2885 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2886 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2887 echo "configure:2888: checking size of pthread_t" >&5
2888 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_sizeof_pthread_t=4
2893 else
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <stdio.h>
2898 #include <pthread.h>
2899 main()
2901 FILE *f=fopen("conftestval", "w");
2902 if (!f) exit(1);
2903 fprintf(f, "%d\n", sizeof(pthread_t));
2904 exit(0);
2907 if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2908 then
2909 ac_cv_sizeof_pthread_t=`cat conftestval`
2910 else
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2913 rm -fr conftest*
2914 ac_cv_sizeof_pthread_t=0
2916 rm -fr conftest*
2922 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2923 cat >> confdefs.h <<EOF
2924 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2928 CC="$ac_save_cc"
2930 echo $ac_n "checking for --enable-toolbox-glue""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --enable-toolbox-glue" >&5
2932 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
2933 if test "${enable_toolbox_glue+set}" = set; then
2934 enableval="$enable_toolbox_glue"
2939 if test -z "$enable_toolbox_glue"
2940 then
2941 case $ac_sys_system/$ac_sys_release in
2942 Darwin/*)
2943 enable_toolbox_glue="yes";;
2945 enable_toolbox_glue="no";;
2946 esac
2948 case "$enable_toolbox_glue" in
2949 yes)
2950 extra_frameworks="-framework Carbon -framework Foundation"
2951 extra_machdep_objs="Python/mactoolboxglue.o"
2952 extra_undefs="-u __dummy -u _PyMac_Error"
2953 cat >> confdefs.h <<\EOF
2954 #define USE_TOOLBOX_OBJECT_GLUE 1
2959 extra_frameworks=""
2960 extra_machdep_objs=""
2961 extra_undefs=""
2963 esac
2964 echo "$ac_t""$enable_toolbox_glue" 1>&6
2967 case $ac_sys_system/$ac_sys_release in
2968 Darwin/1.4*)
2969 ns_undef_sym='_environ'
2970 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym"
2971 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
2972 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
2973 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2974 Darwin/*)
2975 ns_undef_sym='_environ'
2976 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym"
2977 LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks"
2978 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
2979 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2980 esac
2982 echo $ac_n "checking for --enable-framework""... $ac_c" 1>&6
2983 echo "configure:2984: checking for --enable-framework" >&5
2984 if test "$enable_framework"
2985 then
2986 OPT="$OPT -fno-common -dynamic"
2987 # -U __environ is needed since bundles don't have access
2988 # to crt0 when built but will always be linked against it
2989 # -F. is needed to allow linking to the framework while
2990 # in the build location.
2992 case $ac_sys_system/$ac_sys_release in
2993 Darwin/1.4*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";;
2994 Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";;
2995 esac
2996 cat >> confdefs.h <<\EOF
2997 #define WITH_NEXT_FRAMEWORK 1
3000 echo "$ac_t""yes" 1>&6
3001 else
3002 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for dyld""... $ac_c" 1>&6
3006 echo "configure:3007: checking for dyld" >&5
3007 case $ac_sys_system/$ac_sys_release in
3008 Darwin/*)
3009 cat >> confdefs.h <<\EOF
3010 #define WITH_DYLD 1
3013 echo "$ac_t""always on for Darwin" 1>&6
3016 echo "$ac_t""no" 1>&6
3018 esac
3020 # Set info about shared libraries.
3026 # SO is the extension of shared libraries `(including the dot!)
3027 # -- usually .so, .sl on HP-UX, .dll on Cygwin
3028 echo $ac_n "checking SO""... $ac_c" 1>&6
3029 echo "configure:3030: checking SO" >&5
3030 if test -z "$SO"
3031 then
3032 case $ac_sys_system in
3033 hp*|HP*) SO=.sl;;
3034 CYGWIN*) SO=.dll;;
3035 *) SO=.so;;
3036 esac
3038 echo "$ac_t""$SO" 1>&6
3039 # LDSHARED is the ld *command* used to create shared library
3040 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
3041 # (Shared libraries in this instance are shared modules to be loaded into
3042 # Python, as opposed to building Python itself as a shared library.)
3043 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
3044 echo "configure:3045: checking LDSHARED" >&5
3045 if test -z "$LDSHARED"
3046 then
3047 case $ac_sys_system/$ac_sys_release in
3048 AIX*)
3049 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
3050 LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
3052 BeOS*)
3053 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
3054 LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
3056 IRIX/5*) LDSHARED="ld -shared";;
3057 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
3058 SunOS/4*) LDSHARED="ld";;
3059 SunOS/5*)
3060 if test "$GCC" = "yes"
3061 then LDSHARED='$(CC) -shared'
3062 else LDSHARED="$(CC) -G";
3063 fi ;;
3064 hp*|HP*) LDSHARED="ld -b";;
3065 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
3066 DYNIX/ptx*) LDSHARED="ld -G";;
3067 Darwin/1.4*)
3068 LDSHARED='$(CC) $(LDFLAGS) -bundle'
3069 if test "$enable_framework" ; then
3070 # Link against the framework. All externals should be defined.
3071 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
3072 else
3073 # No framework. Ignore undefined symbols, assuming they come from Python
3074 LDSHARED="$LDSHARED -flat_namespace -undefined suppress"
3075 fi ;;
3076 Darwin/*)
3077 LDSHARED='$(CC) $(LDFLAGS) -bundle'
3078 if test "$enable_framework" ; then
3079 # Link against the framework. All externals should be defined.
3080 LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
3081 else
3082 # No framework. Ignore undefined symbols, assuming they come from Python
3083 LDSHARED="$LDSHARED -undefined suppress"
3084 fi ;;
3085 Linux*) LDSHARED="gcc -shared";;
3086 dgux*) LDSHARED="ld -G";;
3087 BSD/OS*/4*) LDSHARED="gcc -shared";;
3088 OpenBSD*|NetBSD*|FreeBSD*)
3089 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3090 then
3091 LDSHARED="cc -shared ${LDFLAGS}"
3092 else
3093 LDSHARED="ld -Bshareable ${LDFLAGS}"
3094 fi;;
3095 UnixWare*)
3096 if test "$GCC" = "yes"
3097 then LDSHARED="$(CC) -shared"
3098 else LDSHARED="$(CC) -G"
3099 fi;;
3100 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
3101 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
3102 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
3103 *) LDSHARED="ld";;
3104 esac
3106 echo "$ac_t""$LDSHARED" 1>&6
3107 BLDSHARED=${BLDSHARED-$LDSHARED}
3108 # CCSHARED are the C *flags* used to create objects to go into a shared
3109 # library (module) -- this is only needed for a few systems
3110 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
3111 echo "configure:3112: checking CCSHARED" >&5
3112 if test -z "$CCSHARED"
3113 then
3114 case $ac_sys_system/$ac_sys_release in
3115 SunOS*) if test "$GCC" = yes;
3116 then CCSHARED="-fPIC";
3117 fi;;
3118 hp*|HP*) if test "$GCC" = yes;
3119 then CCSHARED="-fPIC";
3120 else CCSHARED="+z";
3121 fi;;
3122 Linux*) CCSHARED="-fPIC";;
3123 BSD/OS*/4*) CCSHARED="-fpic";;
3124 FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
3125 UnixWare*)
3126 if test "$GCC" = "yes"
3127 then CCSHARED="-fPIC"
3128 else CCSHARED="-KPIC"
3129 fi;;
3130 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
3131 Monterey*) CCSHARED="-G";;
3132 IRIX*/6*) case $CC in
3133 *gcc*) CCSHARED="-shared";;
3134 *) CCSHARED="";;
3135 esac;;
3136 CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";;
3137 esac
3139 echo "$ac_t""$CCSHARED" 1>&6
3140 # LINKFORSHARED are the flags passed to the $(CC) command that links
3141 # the python executable -- this is only needed for a few systems
3142 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
3143 echo "configure:3144: checking LINKFORSHARED" >&5
3144 if test -z "$LINKFORSHARED"
3145 then
3146 case $ac_sys_system/$ac_sys_release in
3147 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
3148 hp*|HP*)
3149 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
3150 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
3151 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
3152 # -u libsys_s pulls in all symbols in libsys
3153 Darwin/*)
3154 # -u __dummy makes the linker aware of the objc runtime
3155 # in System.framework; otherwise, __objcInit (referenced in
3156 # crt1.o) gets erroneously defined as common, which breaks dynamic
3157 # loading of any modules which reference it in System.framework.
3158 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
3159 # not used by the core itself but which needs to be in the core so
3160 # that dynamically loaded extension modules have access to it.
3161 LINKFORSHARED="$extra_undefs -framework System"
3162 if test "$enable_framework"
3163 then
3164 LINKFORSHARED="$LINKFORSHARED -framework Python"
3166 LINKFORSHARED="$LINKFORSHARED $extra_frameworks";;
3167 UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
3168 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
3169 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
3170 FreeBSD*|NetBSD*|OpenBSD*)
3171 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3172 then
3173 LINKFORSHARED="-Wl,--export-dynamic"
3174 fi;;
3175 SunOS/5*) case $CC in
3176 *gcc*)
3177 if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null
3178 then
3179 LINKFORSHARED="-Xlinker --export-dynamic"
3180 fi;;
3181 esac;;
3182 esac
3184 echo "$ac_t""$LINKFORSHARED" 1>&6
3187 echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
3188 echo "configure:3189: checking CFLAGSFORSHARED" >&5
3189 if test ! "$LIBRARY" = "$LDLIBRARY"
3190 then
3191 case $ac_sys_system in
3192 CYGWIN*)
3193 # Cygwin needs CCSHARED when building extension DLLs
3194 # but not when building the interpreter DLL.
3195 CFLAGSFORSHARED='';;
3197 CFLAGSFORSHARED='$(CCSHARED)'
3198 esac
3200 echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3202 # checks for libraries
3203 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3204 echo "configure:3205: checking for dlopen in -ldl" >&5
3205 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3208 else
3209 ac_save_LIBS="$LIBS"
3210 LIBS="-ldl $LIBS"
3211 cat > conftest.$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3217 char dlopen();
3219 int main() {
3220 dlopen()
3221 ; return 0; }
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 rm -rf conftest*
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3226 else
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3229 rm -rf conftest*
3230 eval "ac_cv_lib_$ac_lib_var=no"
3232 rm -f conftest*
3233 LIBS="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_lib 1
3244 LIBS="-ldl $LIBS"
3246 else
3247 echo "$ac_t""no" 1>&6
3249 # Dynamic linking for SunOS/Solaris and SYSV
3250 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3251 echo "configure:3252: checking for shl_load in -ldld" >&5
3252 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256 ac_save_LIBS="$LIBS"
3257 LIBS="-ldld $LIBS"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3264 char shl_load();
3266 int main() {
3267 shl_load()
3268 ; return 0; }
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3271 rm -rf conftest*
3272 eval "ac_cv_lib_$ac_lib_var=yes"
3273 else
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 rm -rf conftest*
3277 eval "ac_cv_lib_$ac_lib_var=no"
3279 rm -f conftest*
3280 LIBS="$ac_save_LIBS"
3283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3287 cat >> confdefs.h <<EOF
3288 #define $ac_tr_lib 1
3291 LIBS="-ldld $LIBS"
3293 else
3294 echo "$ac_t""no" 1>&6
3296 # Dynamic linking for HP-UX
3298 # checks for system dependent C++ extensions support
3299 case "$ac_sys_system" in
3300 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
3301 echo "configure:3302: checking for genuine AIX C++ extensions support" >&5
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include "/usr/lpp/xlC/include/load.h"
3306 int main() {
3307 loadAndInit("", 0, "")
3308 ; return 0; }
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3311 rm -rf conftest*
3312 cat >> confdefs.h <<\EOF
3313 #define AIX_GENUINE_CPLUSPLUS 1
3316 echo "$ac_t""yes" 1>&6
3317 else
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 echo "$ac_t""no" 1>&6
3323 rm -f conftest*;;
3324 *) ;;
3325 esac
3327 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3328 # However on SGI IRIX, these exist but are broken.
3329 # BeOS' sockets are stashed in libnet.
3330 case "$ac_sys_system" in
3331 IRIX*) ;;
3333 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3334 echo "configure:3335: checking for t_open in -lnsl" >&5
3335 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339 ac_save_LIBS="$LIBS"
3340 LIBS="-lnsl $LIBS"
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3347 char t_open();
3349 int main() {
3350 t_open()
3351 ; return 0; }
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3354 rm -rf conftest*
3355 eval "ac_cv_lib_$ac_lib_var=yes"
3356 else
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 eval "ac_cv_lib_$ac_lib_var=no"
3362 rm -f conftest*
3363 LIBS="$ac_save_LIBS"
3366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 LIBS="-lnsl $LIBS"
3369 else
3370 echo "$ac_t""no" 1>&6
3372 # SVR4
3373 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3374 echo "configure:3375: checking for socket in -lsocket" >&5
3375 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3378 else
3379 ac_save_LIBS="$LIBS"
3380 LIBS="-lsocket $LIBS $LIBS"
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387 char socket();
3389 int main() {
3390 socket()
3391 ; return 0; }
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 rm -rf conftest*
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3396 else
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 rm -rf conftest*
3400 eval "ac_cv_lib_$ac_lib_var=no"
3402 rm -f conftest*
3403 LIBS="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 LIBS="-lsocket $LIBS"
3409 else
3410 echo "$ac_t""no" 1>&6
3412 # SVR4 sockets
3414 esac
3415 case "$ac_sys_system" in
3416 BeOS*)
3417 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3418 echo "configure:3419: checking for socket in -lnet" >&5
3419 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3422 else
3423 ac_save_LIBS="$LIBS"
3424 LIBS="-lnet $LIBS $LIBS"
3425 cat > conftest.$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* Override any gcc2 internal prototype to avoid an error. */
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3431 char socket();
3433 int main() {
3434 socket()
3435 ; return 0; }
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3438 rm -rf conftest*
3439 eval "ac_cv_lib_$ac_lib_var=yes"
3440 else
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3443 rm -rf conftest*
3444 eval "ac_cv_lib_$ac_lib_var=no"
3446 rm -f conftest*
3447 LIBS="$ac_save_LIBS"
3450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3452 LIBS="-lnet $LIBS"
3453 else
3454 echo "$ac_t""no" 1>&6
3456 # BeOS
3458 esac
3460 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3461 echo "configure:3462: checking for --with-libs" >&5
3462 # Check whether --with-libs or --without-libs was given.
3463 if test "${with_libs+set}" = set; then
3464 withval="$with_libs"
3466 echo "$ac_t""$withval" 1>&6
3467 LIBS="$withval $LIBS"
3469 else
3470 echo "$ac_t""no" 1>&6
3474 # Determine if signalmodule should be used.
3477 echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
3478 echo "configure:3479: checking for --with-signal-module" >&5
3479 # Check whether --with-signal-module or --without-signal-module was given.
3480 if test "${with_signal_module+set}" = set; then
3481 withval="$with_signal_module"
3486 if test -z "$with_signal_module"
3487 then with_signal_module="yes"
3489 echo "$ac_t""$with_signal_module" 1>&6
3491 if test "${with_signal_module}" = "yes"; then
3492 USE_SIGNAL_MODULE=""
3493 SIGNAL_OBJS=""
3494 else
3495 USE_SIGNAL_MODULE="#"
3496 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
3499 # This is used to generate Setup.config
3501 USE_THREAD_MODULE=""
3503 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3504 echo "configure:3505: checking for --with-dec-threads" >&5
3506 # Check whether --with-dec-threads or --without-dec-threads was given.
3507 if test "${with_dec_threads+set}" = set; then
3508 withval="$with_dec_threads"
3510 echo "$ac_t""$withval" 1>&6
3511 LDLAST=-threads
3512 if test "${with_thread+set}" != set; then
3513 with_thread="$withval";
3515 else
3516 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3521 echo "configure:3522: checking for --with-threads" >&5
3522 # Check whether --with-threads or --without-threads was given.
3523 if test "${with_threads+set}" = set; then
3524 withval="$with_threads"
3529 # --with-thread is deprecated, but check for it anyway
3530 # Check whether --with-thread or --without-thread was given.
3531 if test "${with_thread+set}" = set; then
3532 withval="$with_thread"
3534 with_threads=$with_thread
3538 if test -z "$with_threads"
3539 then with_threads="yes"
3541 echo "$ac_t""$with_threads" 1>&6
3543 if test "$with_threads" = "no"
3544 then
3545 USE_THREAD_MODULE="#"
3546 elif test "$ac_cv_kpthread" = "yes"
3547 then
3548 CC="$CC -Kpthread"
3549 cat >> confdefs.h <<\EOF
3550 #define WITH_THREAD 1
3553 cat >> confdefs.h <<\EOF
3554 #define _POSIX_THREADS 1
3557 posix_threads=yes
3558 LIBOBJS="$LIBOBJS thread.o"
3559 else
3560 if test ! -z "$with_threads" -a -d "$with_threads"
3561 then LDFLAGS="$LDFLAGS -L$with_threads"
3563 if test ! -z "$withval" -a -d "$withval"
3564 then LDFLAGS="$LDFLAGS -L$withval"
3566 cat >> confdefs.h <<\EOF
3567 #define _REENTRANT 1
3570 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3571 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3572 echo "configure:3573: checking for mach/cthreads.h" >&5
3573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3575 else
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <mach/cthreads.h>
3581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3582 { (eval echo configure:3583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3584 if test -z "$ac_err"; then
3585 rm -rf conftest*
3586 eval "ac_cv_header_$ac_safe=yes"
3587 else
3588 echo "$ac_err" >&5
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3591 rm -rf conftest*
3592 eval "ac_cv_header_$ac_safe=no"
3594 rm -f conftest*
3596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3598 cat >> confdefs.h <<\EOF
3599 #define WITH_THREAD 1
3602 cat >> confdefs.h <<\EOF
3603 #define C_THREADS 1
3606 LIBOBJS="$LIBOBJS thread.o"
3607 else
3608 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3611 echo "configure:3612: checking for --with-pth" >&5
3612 # Check whether --with-pth or --without-pth was given.
3613 if test "${with_pth+set}" = set; then
3614 withval="$with_pth"
3616 echo "$ac_t""$withval" 1>&6
3617 cat >> confdefs.h <<\EOF
3618 #define WITH_THREAD 1
3621 cat >> confdefs.h <<\EOF
3622 #define HAVE_PTH 1
3625 LIBS="-lpth $LIBS"
3626 LIBOBJS="$LIBOBJS thread.o"
3627 else
3629 echo "$ac_t""no" 1>&6
3630 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3631 echo "configure:3632: checking for pthread_create in -lpthread" >&5
3632 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3635 else
3636 ac_save_LIBS="$LIBS"
3637 LIBS="-lpthread $LIBS"
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char pthread_create();
3646 int main() {
3647 pthread_create()
3648 ; return 0; }
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3651 rm -rf conftest*
3652 eval "ac_cv_lib_$ac_lib_var=yes"
3653 else
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 rm -rf conftest*
3657 eval "ac_cv_lib_$ac_lib_var=no"
3659 rm -f conftest*
3660 LIBS="$ac_save_LIBS"
3663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 cat >> confdefs.h <<\EOF
3666 #define WITH_THREAD 1
3669 case $ac_sys_system in
3670 Darwin*) ;;
3671 *) cat >> confdefs.h <<\EOF
3672 #define _POSIX_THREADS 1
3675 posix_threads=yes
3677 esac
3678 LIBS="-lpthread $LIBS"
3679 LIBOBJS="$LIBOBJS thread.o"
3680 else
3681 echo "$ac_t""no" 1>&6
3683 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3684 echo "configure:3685: checking for pthread_detach" >&5
3685 if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687 else
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* System header to define __stub macros and hopefully few prototypes,
3692 which can conflict with char pthread_detach(); below. */
3693 #include <assert.h>
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char pthread_detach();
3699 int main() {
3701 /* The GNU C library defines this for functions which it implements
3702 to always fail with ENOSYS. Some functions are actually named
3703 something starting with __ and the normal name is an alias. */
3704 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3705 choke me
3706 #else
3707 pthread_detach();
3708 #endif
3710 ; return 0; }
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3713 rm -rf conftest*
3714 eval "ac_cv_func_pthread_detach=yes"
3715 else
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 rm -rf conftest*
3719 eval "ac_cv_func_pthread_detach=no"
3721 rm -f conftest*
3724 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 cat >> confdefs.h <<\EOF
3727 #define WITH_THREAD 1
3730 case $ac_sys_system in
3731 Darwin*) ;;
3732 *) cat >> confdefs.h <<\EOF
3733 #define _POSIX_THREADS 1
3736 posix_threads=yes
3738 esac
3739 LIBOBJS="$LIBOBJS thread.o"
3740 else
3741 echo "$ac_t""no" 1>&6
3743 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3744 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3745 echo "configure:3746: checking for kernel/OS.h" >&5
3746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3748 else
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <kernel/OS.h>
3754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3755 { (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3757 if test -z "$ac_err"; then
3758 rm -rf conftest*
3759 eval "ac_cv_header_$ac_safe=yes"
3760 else
3761 echo "$ac_err" >&5
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3764 rm -rf conftest*
3765 eval "ac_cv_header_$ac_safe=no"
3767 rm -f conftest*
3769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 cat >> confdefs.h <<\EOF
3772 #define WITH_THREAD 1
3775 cat >> confdefs.h <<\EOF
3776 #define BEOS_THREADS 1
3779 LIBOBJS="$LIBOBJS thread.o"
3780 else
3781 echo "$ac_t""no" 1>&6
3783 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3784 echo "configure:3785: checking for pthread_create in -lpthreads" >&5
3785 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3788 else
3789 ac_save_LIBS="$LIBS"
3790 LIBS="-lpthreads $LIBS"
3791 cat > conftest.$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3797 char pthread_create();
3799 int main() {
3800 pthread_create()
3801 ; return 0; }
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3804 rm -rf conftest*
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3806 else
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3809 rm -rf conftest*
3810 eval "ac_cv_lib_$ac_lib_var=no"
3812 rm -f conftest*
3813 LIBS="$ac_save_LIBS"
3816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 cat >> confdefs.h <<\EOF
3819 #define WITH_THREAD 1
3822 cat >> confdefs.h <<\EOF
3823 #define _POSIX_THREADS 1
3826 posix_threads=yes
3827 LIBS="$LIBS -lpthreads"
3828 LIBOBJS="$LIBOBJS thread.o"
3829 else
3830 echo "$ac_t""no" 1>&6
3832 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3833 echo "configure:3834: checking for pthread_create in -lc_r" >&5
3834 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 ac_save_LIBS="$LIBS"
3839 LIBS="-lc_r $LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char pthread_create();
3848 int main() {
3849 pthread_create()
3850 ; return 0; }
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 rm -rf conftest*
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3855 else
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 rm -rf conftest*
3859 eval "ac_cv_lib_$ac_lib_var=no"
3861 rm -f conftest*
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 cat >> confdefs.h <<\EOF
3868 #define WITH_THREAD 1
3871 cat >> confdefs.h <<\EOF
3872 #define _POSIX_THREADS 1
3875 posix_threads=yes
3876 LIBS="$LIBS -lc_r"
3877 LIBOBJS="$LIBOBJS thread.o"
3878 else
3879 echo "$ac_t""no" 1>&6
3881 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3882 echo "configure:3883: checking for __d6_pthread_create in -lthread" >&5
3883 ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3886 else
3887 ac_save_LIBS="$LIBS"
3888 LIBS="-lthread $LIBS"
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3895 char __d6_pthread_create();
3897 int main() {
3898 __d6_pthread_create()
3899 ; return 0; }
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 rm -rf conftest*
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3904 else
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3907 rm -rf conftest*
3908 eval "ac_cv_lib_$ac_lib_var=no"
3910 rm -f conftest*
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 cat >> confdefs.h <<\EOF
3917 #define WITH_THREAD 1
3920 cat >> confdefs.h <<\EOF
3921 #define _POSIX_THREADS 1
3924 posix_threads=yes
3925 LIBS="$LIBS -lthread"
3926 LIBOBJS="$LIBOBJS thread.o"
3927 else
3928 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3931 echo "configure:3932: checking for __pthread_create_system in -lpthread" >&5
3932 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3936 ac_save_LIBS="$LIBS"
3937 LIBS="-lpthread $LIBS"
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3944 char __pthread_create_system();
3946 int main() {
3947 __pthread_create_system()
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 rm -rf conftest*
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3953 else
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 rm -rf conftest*
3957 eval "ac_cv_lib_$ac_lib_var=no"
3959 rm -f conftest*
3960 LIBS="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 cat >> confdefs.h <<\EOF
3966 #define WITH_THREAD 1
3969 cat >> confdefs.h <<\EOF
3970 #define _POSIX_THREADS 1
3973 posix_threads=yes
3974 LIBS="$LIBS -lpthread"
3975 LIBOBJS="$LIBOBJS thread.o"
3976 else
3977 echo "$ac_t""no" 1>&6
3979 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3980 echo "configure:3981: checking for pthread_create in -lcma" >&5
3981 ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3985 ac_save_LIBS="$LIBS"
3986 LIBS="-lcma $LIBS"
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3993 char pthread_create();
3995 int main() {
3996 pthread_create()
3997 ; return 0; }
3999 if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 rm -rf conftest*
4001 eval "ac_cv_lib_$ac_lib_var=yes"
4002 else
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 rm -rf conftest*
4006 eval "ac_cv_lib_$ac_lib_var=no"
4008 rm -f conftest*
4009 LIBS="$ac_save_LIBS"
4012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 cat >> confdefs.h <<\EOF
4015 #define WITH_THREAD 1
4018 cat >> confdefs.h <<\EOF
4019 #define _POSIX_THREADS 1
4022 posix_threads=yes
4023 LIBS="$LIBS -lcma"
4024 LIBOBJS="$LIBOBJS thread.o"
4025 else
4026 echo "$ac_t""no" 1>&6
4028 USE_THREAD_MODULE="#"
4051 if test "$posix_threads" = "yes"; then
4052 echo $ac_n "checking if PTHREAD_SCOPE_SYSTEM is supported""... $ac_c" 1>&6
4053 echo "configure:4054: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
4054 if eval "test \"`echo '$''{'ac_cv_pthread_system_supported'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4056 else
4057 if test "$cross_compiling" = yes; then
4058 ac_cv_pthread_system_supported=no
4059 else
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <pthread.h>
4064 void *foo(void *parm) {
4065 return NULL;
4067 main() {
4068 pthread_attr_t attr;
4069 if (pthread_attr_init(&attr)) exit(-1);
4070 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
4071 if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
4072 exit(0);
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4076 then
4077 ac_cv_pthread_system_supported=yes
4078 else
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4081 rm -fr conftest*
4082 ac_cv_pthread_system_supported=no
4084 rm -fr conftest*
4090 echo "$ac_t""$ac_cv_pthread_system_supported" 1>&6
4091 if test "$ac_cv_pthread_system_supported" = "yes"; then
4092 cat >> confdefs.h <<\EOF
4093 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
4099 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
4100 echo "configure:4101: checking for usconfig in -lmpc" >&5
4101 ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
4102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4104 else
4105 ac_save_LIBS="$LIBS"
4106 LIBS="-lmpc $LIBS"
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4113 char usconfig();
4115 int main() {
4116 usconfig()
4117 ; return 0; }
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4120 rm -rf conftest*
4121 eval "ac_cv_lib_$ac_lib_var=yes"
4122 else
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 eval "ac_cv_lib_$ac_lib_var=no"
4128 rm -f conftest*
4129 LIBS="$ac_save_LIBS"
4132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4134 cat >> confdefs.h <<\EOF
4135 #define WITH_THREAD 1
4138 LIBS="$LIBS -lmpc"
4139 LIBOBJS="$LIBOBJS thread.o"
4140 USE_THREAD_MODULE=""
4141 else
4142 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4146 echo "configure:4147: checking for thr_create in -lthread" >&5
4147 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 ac_save_LIBS="$LIBS"
4152 LIBS="-lthread $LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4159 char thr_create();
4161 int main() {
4162 thr_create()
4163 ; return 0; }
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 rm -rf conftest*
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4168 else
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 rm -rf conftest*
4172 eval "ac_cv_lib_$ac_lib_var=no"
4174 rm -f conftest*
4175 LIBS="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 cat >> confdefs.h <<\EOF
4181 #define WITH_THREAD 1
4184 LIBS="$LIBS -lthread"
4185 LIBOBJS="$LIBOBJS thread.o"
4186 USE_THREAD_MODULE=""
4187 else
4188 echo "$ac_t""no" 1>&6
4192 if test "$USE_THREAD_MODULE" != "#"
4193 then
4194 # If the above checks didn't disable threads, (at least) OSF1
4195 # needs this '-threads' argument during linking.
4196 case $ac_sys_system in
4197 OSF1) LDLAST=-threads;;
4198 esac
4202 # Check for enable-ipv6
4203 echo $ac_n "checking if --enable-ipv6 is specified""... $ac_c" 1>&6
4204 echo "configure:4205: checking if --enable-ipv6 is specified" >&5
4205 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4206 if test "${enable_ipv6+set}" = set; then
4207 enableval="$enable_ipv6"
4208 case "$enableval" in
4210 echo "$ac_t""no" 1>&6
4211 ipv6=no
4213 *) echo "$ac_t""yes" 1>&6
4214 cat >> confdefs.h <<\EOF
4215 #define ENABLE_IPV6 1
4218 ipv6=yes
4220 esac
4221 else
4223 if test "$cross_compiling" = yes; then
4224 echo "$ac_t""no" 1>&6
4225 ipv6=no
4227 else
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* AF_INET6 available check */
4232 #include <sys/types.h>
4233 #include <sys/socket.h>
4234 main()
4236 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4237 exit(1);
4238 else
4239 exit(0);
4243 if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4244 then
4245 echo "$ac_t""yes" 1>&6
4246 ipv6=yes
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -fr conftest*
4251 echo "$ac_t""no" 1>&6
4252 ipv6=no
4254 rm -fr conftest*
4258 if test "$ipv6" = "yes"; then
4259 echo $ac_n "checking if RFC2553 API is available""... $ac_c" 1>&6
4260 echo "configure:4261: checking if RFC2553 API is available" >&5
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 #include <sys/types.h>
4265 #include <netinet/in.h>
4266 int main() {
4267 struct sockaddr_in6 x;
4268 x.sin6_scope_id;
4269 ; return 0; }
4271 if { (eval echo configure:4272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4272 rm -rf conftest*
4273 echo "$ac_t""yes" 1>&6
4274 ipv6=yes
4275 else
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4278 rm -rf conftest*
4279 echo "$ac_t""no" 1>&6
4280 ipv6=no
4282 rm -f conftest*
4285 if test "$ipv6" = "yes"; then
4286 cat >> confdefs.h <<\EOF
4287 #define ENABLE_IPV6 1
4295 ipv6type=unknown
4296 ipv6lib=none
4297 ipv6trylibc=no
4299 if test "$ipv6" = "yes"; then
4300 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
4301 echo "configure:4302: checking ipv6 stack type" >&5
4302 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
4304 case $i in
4305 inria)
4306 cat > conftest.$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4310 #include <netinet/in.h>
4311 #ifdef IPV6_INRIA_VERSION
4313 #endif
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 egrep "yes" >/dev/null 2>&1; then
4317 rm -rf conftest*
4318 ipv6type=$i;
4319 OPT="-DINET6 $OPT"
4321 rm -f conftest*
4324 kame)
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4329 #include <netinet/in.h>
4330 #ifdef __KAME__
4332 #endif
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 egrep "yes" >/dev/null 2>&1; then
4336 rm -rf conftest*
4337 ipv6type=$i;
4338 ipv6lib=inet6
4339 ipv6libdir=/usr/local/v6/lib
4340 ipv6trylibc=yes
4341 OPT="-DINET6 $OPT"
4343 rm -f conftest*
4346 linux-glibc)
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4351 #include <features.h>
4352 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
4354 #endif
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 egrep "yes" >/dev/null 2>&1; then
4358 rm -rf conftest*
4359 ipv6type=$i;
4360 ipv6trylibc=yes
4361 OPT="-DINET6 $OPT"
4363 rm -f conftest*
4366 linux-inet6)
4367 if test -d /usr/inet6; then
4368 ipv6type=$i
4369 ipv6lib=inet6
4370 ipv6libdir=/usr/inet6/lib
4371 OPT="-DINET6 -I/usr/inet6/include $OPT"
4374 solaris)
4375 if test -f /etc/netconfig; then
4376 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
4377 ipv6type=$i
4378 ipv6trylibc=yes
4379 OPT="-DINET6 $OPT"
4383 toshiba)
4384 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4388 #include <sys/param.h>
4389 #ifdef _TOSHIBA_INET6
4391 #endif
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "yes" >/dev/null 2>&1; then
4395 rm -rf conftest*
4396 ipv6type=$i;
4397 ipv6lib=inet6;
4398 ipv6libdir=/usr/local/v6/lib;
4399 OPT="-DINET6 $OPT"
4401 rm -f conftest*
4404 v6d)
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4409 #include </usr/local/v6/include/sys/v6config.h>
4410 #ifdef __V6D__
4412 #endif
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 egrep "yes" >/dev/null 2>&1; then
4416 rm -rf conftest*
4417 ipv6type=$i;
4418 ipv6lib=v6;
4419 ipv6libdir=/usr/local/v6/lib;
4420 OPT="-I/usr/local/v6/include $OPT"
4422 rm -f conftest*
4425 zeta)
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4430 #include <sys/param.h>
4431 #ifdef _ZETA_MINAMI_INET6
4433 #endif
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 egrep "yes" >/dev/null 2>&1; then
4437 rm -rf conftest*
4438 ipv6type=$i;
4439 ipv6lib=inet6;
4440 ipv6libdir=/usr/local/v6/lib;
4441 OPT="-DINET6 $OPT"
4443 rm -f conftest*
4446 esac
4447 if test "$ipv6type" != "unknown"; then
4448 break
4450 done
4451 echo "$ac_t""$ipv6type" 1>&6
4454 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4455 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4456 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4457 echo "using lib$ipv6lib"
4458 else
4459 if test $ipv6trylibc = "yes"; then
4460 echo "using libc"
4461 else
4462 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4463 echo "You need to fetch lib$ipv6lib.a from appropriate"
4464 echo 'ipv6 kit and compile beforehand.'
4465 exit 1
4470 # Check for GC support
4471 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
4472 echo "configure:4473: checking for --with-cycle-gc" >&5
4473 # Check whether --with-cycle-gc or --without-cycle-gc was given.
4474 if test "${with_cycle_gc+set}" = set; then
4475 withval="$with_cycle_gc"
4480 if test -z "$with_cycle_gc"
4481 then with_cycle_gc="yes"
4483 if test "$with_cycle_gc" != "no"
4484 then
4485 cat >> confdefs.h <<\EOF
4486 #define WITH_CYCLE_GC 1
4490 echo "$ac_t""$with_cycle_gc" 1>&6
4492 # Check for Python-specific malloc support
4493 echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6
4494 echo "configure:4495: checking for --with-pymalloc" >&5
4495 # Check whether --with-pymalloc or --without-pymalloc was given.
4496 if test "${with_pymalloc+set}" = set; then
4497 withval="$with_pymalloc"
4499 if test "$withval" != no
4500 then cat >> confdefs.h <<\EOF
4501 #define WITH_PYMALLOC 1
4503 echo "$ac_t""yes" 1>&6
4504 else echo "$ac_t""no" 1>&6
4506 else
4507 echo "$ac_t""no" 1>&6
4511 # Check for --with-wctype-functions
4512 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
4513 echo "configure:4514: checking for --with-wctype-functions" >&5
4514 # Check whether --with-wctype-functions or --without-wctype-functions was given.
4515 if test "${with_wctype_functions+set}" = set; then
4516 withval="$with_wctype_functions"
4518 if test "$withval" != no
4519 then cat >> confdefs.h <<\EOF
4520 #define WANT_WCTYPE_FUNCTIONS 1
4522 echo "$ac_t""yes" 1>&6
4523 else echo "$ac_t""no" 1>&6
4525 else
4526 echo "$ac_t""no" 1>&6
4530 # -I${DLINCLDIR} is added to the compile rule for importdl.o
4532 DLINCLDIR=.
4534 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
4535 echo "configure:4536: checking for --with-sgi-dl" >&5
4536 # Check whether --with-sgi-dl or --without-sgi-dl was given.
4537 if test "${with_sgi_dl+set}" = set; then
4538 withval="$with_sgi_dl"
4540 echo "$ac_t""$withval" 1>&6
4541 cat >> confdefs.h <<\EOF
4542 #define WITH_SGI_DL 1
4545 DYNLOADFILE="dynload_dl.o"
4546 dldir=$withval
4547 if test ! -z "$dldir" -a -d "$dldir"
4548 then LDFLAGS="$LDFLAGS -L$dldir"
4549 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
4551 DLINCLDIR=${dldir}
4552 LIBS="$LIBS -ldl -lmld"
4553 else
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
4559 echo "configure:4560: checking for --with-dl-dld" >&5
4560 # Check whether --with-dl-dld or --without-dl-dld was given.
4561 if test "${with_dl_dld+set}" = set; then
4562 withval="$with_dl_dld"
4564 echo "$ac_t""$withval" 1>&6
4565 cat >> confdefs.h <<\EOF
4566 #define WITH_DL_DLD 1
4569 DYNLOADFILE="dynload_dl.o"
4570 dldir=`echo "$withval" | sed 's/,.*//'`
4571 dlddir=`echo "$withval" | sed 's/.*,//'`
4572 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
4573 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
4574 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
4576 DLINCLDIR=${dldir}
4577 LIBS="$LIBS -ldl -ldld"
4578 else
4579 echo "$ac_t""no" 1>&6
4583 # the dlopen() function means we might want to use dynload_shlib.o. some
4584 # platforms, such as AIX, have dlopen(), but don't want to use it.
4585 for ac_func in dlopen
4587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_func" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4591 else
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char $ac_func(); below. */
4597 #include <assert.h>
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4601 char $ac_func();
4603 int main() {
4605 /* The GNU C library defines this for functions which it implements
4606 to always fail with ENOSYS. Some functions are actually named
4607 something starting with __ and the normal name is an alias. */
4608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4609 choke me
4610 #else
4611 $ac_func();
4612 #endif
4614 ; return 0; }
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 rm -rf conftest*
4618 eval "ac_cv_func_$ac_func=yes"
4619 else
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4622 rm -rf conftest*
4623 eval "ac_cv_func_$ac_func=no"
4625 rm -f conftest*
4628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4631 cat >> confdefs.h <<EOF
4632 #define $ac_tr_func 1
4635 else
4636 echo "$ac_t""no" 1>&6
4638 done
4641 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4642 # loading of modules.
4644 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
4645 echo "configure:4646: checking DYNLOADFILE" >&5
4646 if test -z "$DYNLOADFILE"
4647 then
4648 case $ac_sys_system/$ac_sys_release in
4649 AIX*) DYNLOADFILE="dynload_aix.o";;
4650 BeOS*) DYNLOADFILE="dynload_beos.o";;
4651 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
4652 Darwin/*) DYNLOADFILE="dynload_next.o";;
4654 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4655 # out any dynamic loading
4656 if test "$ac_cv_func_dlopen" = yes
4657 then DYNLOADFILE="dynload_shlib.o"
4658 else DYNLOADFILE="dynload_stub.o"
4661 esac
4663 echo "$ac_t""$DYNLOADFILE" 1>&6
4664 if test "$DYNLOADFILE" != "dynload_stub.o"
4665 then
4666 cat >> confdefs.h <<\EOF
4667 #define HAVE_DYNAMIC_LOADING 1
4672 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
4675 echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6
4676 echo "configure:4677: checking MACHDEP_OBJS" >&5
4677 if test -z "$MACHDEP_OBJS"
4678 then
4679 MACHDEP_OBJS=$extra_machdep_objs
4680 else
4681 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
4683 echo "$ac_t""MACHDEP_OBJS" 1>&6
4685 # checks for library functions
4686 for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
4687 flock fork fsync fdatasync fpathconf ftime ftruncate \
4688 gai_strerror getgroups getlogin getpeername getpid getpwent getwd \
4689 hstrerror inet_pton kill link lstat mkfifo mktime mremap \
4690 nice pathconf pause plock poll pthread_init \
4691 putenv readlink \
4692 select setegid seteuid setgid \
4693 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
4694 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
4695 tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
4696 truncate uname waitpid _getpty getpriority
4698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_func" >&5
4700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4702 else
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* System header to define __stub macros and hopefully few prototypes,
4707 which can conflict with char $ac_func(); below. */
4708 #include <assert.h>
4709 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4712 char $ac_func();
4714 int main() {
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4720 choke me
4721 #else
4722 $ac_func();
4723 #endif
4725 ; return 0; }
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 rm -rf conftest*
4729 eval "ac_cv_func_$ac_func=yes"
4730 else
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 rm -rf conftest*
4734 eval "ac_cv_func_$ac_func=no"
4736 rm -f conftest*
4739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_func 1
4746 else
4747 echo "$ac_t""no" 1>&6
4749 done
4752 # check for openpty and forkpty
4754 for ac_func in openpty
4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_func" >&5
4758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4760 else
4761 cat > conftest.$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func(); below. */
4766 #include <assert.h>
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char $ac_func();
4772 int main() {
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 choke me
4779 #else
4780 $ac_func();
4781 #endif
4783 ; return 0; }
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4786 rm -rf conftest*
4787 eval "ac_cv_func_$ac_func=yes"
4788 else
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4791 rm -rf conftest*
4792 eval "ac_cv_func_$ac_func=no"
4794 rm -f conftest*
4797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_func 1
4804 else
4805 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4807 echo "configure:4808: checking for openpty in -lutil" >&5
4808 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4811 else
4812 ac_save_LIBS="$LIBS"
4813 LIBS="-lutil $LIBS"
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4820 char openpty();
4822 int main() {
4823 openpty()
4824 ; return 0; }
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4827 rm -rf conftest*
4828 eval "ac_cv_lib_$ac_lib_var=yes"
4829 else
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 rm -rf conftest*
4833 eval "ac_cv_lib_$ac_lib_var=no"
4835 rm -f conftest*
4836 LIBS="$ac_save_LIBS"
4839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 cat >> confdefs.h <<\EOF
4842 #define HAVE_OPENPTY 1
4844 LIBS="$LIBS -lutil"
4845 else
4846 echo "$ac_t""no" 1>&6
4850 done
4852 for ac_func in forkpty
4854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_func" >&5
4856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4858 else
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* System header to define __stub macros and hopefully few prototypes,
4863 which can conflict with char $ac_func(); below. */
4864 #include <assert.h>
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4868 char $ac_func();
4870 int main() {
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4876 choke me
4877 #else
4878 $ac_func();
4879 #endif
4881 ; return 0; }
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 rm -rf conftest*
4885 eval "ac_cv_func_$ac_func=yes"
4886 else
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 rm -rf conftest*
4890 eval "ac_cv_func_$ac_func=no"
4892 rm -f conftest*
4895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898 cat >> confdefs.h <<EOF
4899 #define $ac_tr_func 1
4902 else
4903 echo "$ac_t""no" 1>&6
4904 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4905 echo "configure:4906: checking for forkpty in -lutil" >&5
4906 ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4909 else
4910 ac_save_LIBS="$LIBS"
4911 LIBS="-lutil $LIBS"
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4918 char forkpty();
4920 int main() {
4921 forkpty()
4922 ; return 0; }
4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 rm -rf conftest*
4926 eval "ac_cv_lib_$ac_lib_var=yes"
4927 else
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4930 rm -rf conftest*
4931 eval "ac_cv_lib_$ac_lib_var=no"
4933 rm -f conftest*
4934 LIBS="$ac_save_LIBS"
4937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4939 cat >> confdefs.h <<\EOF
4940 #define HAVE_FORKPTY 1
4942 LIBS="$LIBS -lutil"
4943 else
4944 echo "$ac_t""no" 1>&6
4948 done
4951 # check for long file support functions
4952 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_func" >&5
4956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4958 else
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func(); below. */
4964 #include <assert.h>
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968 char $ac_func();
4970 int main() {
4972 /* The GNU C library defines this for functions which it implements
4973 to always fail with ENOSYS. Some functions are actually named
4974 something starting with __ and the normal name is an alias. */
4975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4976 choke me
4977 #else
4978 $ac_func();
4979 #endif
4981 ; return 0; }
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4984 rm -rf conftest*
4985 eval "ac_cv_func_$ac_func=yes"
4986 else
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4989 rm -rf conftest*
4990 eval "ac_cv_func_$ac_func=no"
4992 rm -f conftest*
4995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4998 cat >> confdefs.h <<EOF
4999 #define $ac_tr_func 1
5002 else
5003 echo "$ac_t""no" 1>&6
5005 done
5008 for ac_func in dup2 getcwd strdup strerror memmove
5010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_func" >&5
5012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* System header to define __stub macros and hopefully few prototypes,
5019 which can conflict with char $ac_func(); below. */
5020 #include <assert.h>
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5024 char $ac_func();
5026 int main() {
5028 /* The GNU C library defines this for functions which it implements
5029 to always fail with ENOSYS. Some functions are actually named
5030 something starting with __ and the normal name is an alias. */
5031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5032 choke me
5033 #else
5034 $ac_func();
5035 #endif
5037 ; return 0; }
5039 if { (eval echo configure:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5040 rm -rf conftest*
5041 eval "ac_cv_func_$ac_func=yes"
5042 else
5043 echo "configure: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 rm -rf conftest*
5046 eval "ac_cv_func_$ac_func=no"
5048 rm -f conftest*
5051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5054 cat >> confdefs.h <<EOF
5055 #define $ac_tr_func 1
5058 else
5059 echo "$ac_t""no" 1>&6
5060 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5062 done
5065 for ac_func in getpgrp
5067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_func" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5071 else
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char $ac_func(); below. */
5077 #include <assert.h>
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5081 char $ac_func();
5083 int main() {
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5089 choke me
5090 #else
5091 $ac_func();
5092 #endif
5094 ; return 0; }
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 rm -rf conftest*
5098 eval "ac_cv_func_$ac_func=yes"
5099 else
5100 echo "configure: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5102 rm -rf conftest*
5103 eval "ac_cv_func_$ac_func=no"
5105 rm -f conftest*
5108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5111 cat >> confdefs.h <<EOF
5112 #define $ac_tr_func 1
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 #include <unistd.h>
5118 int main() {
5119 getpgrp(0);
5120 ; return 0; }
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5123 rm -rf conftest*
5124 cat >> confdefs.h <<\EOF
5125 #define GETPGRP_HAVE_ARG 1
5128 else
5129 echo "configure: failed program was:" >&5
5130 cat conftest.$ac_ext >&5
5132 rm -f conftest*
5133 else
5134 echo "$ac_t""no" 1>&6
5136 done
5138 for ac_func in setpgrp
5140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5141 echo "configure:5142: checking for $ac_func" >&5
5142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5144 else
5145 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char $ac_func(); below. */
5150 #include <assert.h>
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154 char $ac_func();
5156 int main() {
5158 /* The GNU C library defines this for functions which it implements
5159 to always fail with ENOSYS. Some functions are actually named
5160 something starting with __ and the normal name is an alias. */
5161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5162 choke me
5163 #else
5164 $ac_func();
5165 #endif
5167 ; return 0; }
5169 if { (eval echo configure:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 rm -rf conftest*
5171 eval "ac_cv_func_$ac_func=yes"
5172 else
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5175 rm -rf conftest*
5176 eval "ac_cv_func_$ac_func=no"
5178 rm -f conftest*
5181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5184 cat >> confdefs.h <<EOF
5185 #define $ac_tr_func 1
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 #include <unistd.h>
5191 int main() {
5192 setpgrp(0,0);
5193 ; return 0; }
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5196 rm -rf conftest*
5197 cat >> confdefs.h <<\EOF
5198 #define SETPGRP_HAVE_ARG 1
5201 else
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5205 rm -f conftest*
5206 else
5207 echo "$ac_t""no" 1>&6
5209 done
5211 for ac_func in gettimeofday
5213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_func" >&5
5215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5217 else
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func(); below. */
5223 #include <assert.h>
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5227 char $ac_func();
5229 int main() {
5231 /* The GNU C library defines this for functions which it implements
5232 to always fail with ENOSYS. Some functions are actually named
5233 something starting with __ and the normal name is an alias. */
5234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5235 choke me
5236 #else
5237 $ac_func();
5238 #endif
5240 ; return 0; }
5242 if { (eval echo configure:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5243 rm -rf conftest*
5244 eval "ac_cv_func_$ac_func=yes"
5245 else
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 rm -rf conftest*
5249 eval "ac_cv_func_$ac_func=no"
5251 rm -f conftest*
5254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5257 cat >> confdefs.h <<EOF
5258 #define $ac_tr_func 1
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5263 #include <sys/time.h>
5264 int main() {
5265 gettimeofday((struct timeval*)0,(struct timezone*)0);
5266 ; return 0; }
5268 if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5270 else
5271 echo "configure: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 rm -rf conftest*
5274 cat >> confdefs.h <<\EOF
5275 #define GETTIMEOFDAY_NO_TZ 1
5279 rm -f conftest*
5280 else
5281 echo "$ac_t""no" 1>&6
5283 done
5286 for ac_func in getaddrinfo
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_func" >&5
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5292 else
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* System header to define __stub macros and hopefully few prototypes,
5297 which can conflict with char $ac_func(); below. */
5298 #include <assert.h>
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5302 char $ac_func();
5304 int main() {
5306 /* The GNU C library defines this for functions which it implements
5307 to always fail with ENOSYS. Some functions are actually named
5308 something starting with __ and the normal name is an alias. */
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5310 choke me
5311 #else
5312 $ac_func();
5313 #endif
5315 ; return 0; }
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5318 rm -rf conftest*
5319 eval "ac_cv_func_$ac_func=yes"
5320 else
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 rm -rf conftest*
5324 eval "ac_cv_func_$ac_func=no"
5326 rm -f conftest*
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5332 cat >> confdefs.h <<EOF
5333 #define $ac_tr_func 1
5335 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
5336 echo "configure:5337: checking getaddrinfo bug" >&5
5337 if test "$cross_compiling" = yes; then
5338 echo "$ac_t""buggy" 1>&6
5339 buggygetaddrinfo=yes
5340 else
5341 cat > conftest.$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5345 #include <sys/types.h>
5346 #include <netdb.h>
5347 #include <string.h>
5348 #include <sys/socket.h>
5349 #include <netinet/in.h>
5351 main()
5353 int passive, gaierr, inet4 = 0, inet6 = 0;
5354 struct addrinfo hints, *ai, *aitop;
5355 char straddr[INET6_ADDRSTRLEN], strport[16];
5357 for (passive = 0; passive <= 1; passive++) {
5358 memset(&hints, 0, sizeof(hints));
5359 hints.ai_family = AF_UNSPEC;
5360 hints.ai_flags = passive ? AI_PASSIVE : 0;
5361 hints.ai_socktype = SOCK_STREAM;
5362 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5363 (void)gai_strerror(gaierr);
5364 goto bad;
5366 for (ai = aitop; ai; ai = ai->ai_next) {
5367 if (ai->ai_addr == NULL ||
5368 ai->ai_addrlen == 0 ||
5369 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5370 straddr, sizeof(straddr), strport, sizeof(strport),
5371 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5372 goto bad;
5374 switch (ai->ai_family) {
5375 case AF_INET:
5376 if (strcmp(strport, "54321") != 0) {
5377 goto bad;
5379 if (passive) {
5380 if (strcmp(straddr, "0.0.0.0") != 0) {
5381 goto bad;
5383 } else {
5384 if (strcmp(straddr, "127.0.0.1") != 0) {
5385 goto bad;
5388 inet4++;
5389 break;
5390 case AF_INET6:
5391 if (strcmp(strport, "54321") != 0) {
5392 goto bad;
5394 if (passive) {
5395 if (strcmp(straddr, "::") != 0) {
5396 goto bad;
5398 } else {
5399 if (strcmp(straddr, "::1") != 0) {
5400 goto bad;
5403 inet6++;
5404 break;
5405 case AF_UNSPEC:
5406 goto bad;
5407 break;
5408 default:
5409 /* another family support? */
5410 break;
5415 if (!(inet4 == 0 || inet4 == 2))
5416 goto bad;
5417 if (!(inet6 == 0 || inet6 == 2))
5418 goto bad;
5420 if (aitop)
5421 freeaddrinfo(aitop);
5422 exit(0);
5424 bad:
5425 if (aitop)
5426 freeaddrinfo(aitop);
5427 exit(1);
5431 if { (eval echo configure:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5432 then
5433 echo "$ac_t""good" 1>&6
5434 buggygetaddrinfo=no
5435 else
5436 echo "configure: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 rm -fr conftest*
5439 echo "$ac_t""buggy" 1>&6
5440 buggygetaddrinfo=yes
5442 rm -fr conftest*
5445 else
5446 echo "$ac_t""no" 1>&6
5447 buggygetaddrinfo=yes
5449 done
5452 if test "$buggygetaddrinfo" = "yes"; then
5453 if test "$ipv6" = "yes"; then
5454 echo 'Fatal: You must get working getaddrinfo() function.'
5455 echo ' or you can specify "--disable-ipv6"'.
5456 exit 1
5459 for ac_func in getnameinfo
5461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5462 echo "configure:5463: checking for $ac_func" >&5
5463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5465 else
5466 cat > conftest.$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5469 /* System header to define __stub macros and hopefully few prototypes,
5470 which can conflict with char $ac_func(); below. */
5471 #include <assert.h>
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5475 char $ac_func();
5477 int main() {
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5483 choke me
5484 #else
5485 $ac_func();
5486 #endif
5488 ; return 0; }
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5491 rm -rf conftest*
5492 eval "ac_cv_func_$ac_func=yes"
5493 else
5494 echo "configure: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 rm -rf conftest*
5497 eval "ac_cv_func_$ac_func=no"
5499 rm -f conftest*
5502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5505 cat >> confdefs.h <<EOF
5506 #define $ac_tr_func 1
5509 else
5510 echo "$ac_t""no" 1>&6
5512 done
5515 # checks for structures
5516 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5517 echo "configure:5518: checking whether time.h and sys/time.h may both be included" >&5
5518 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5520 else
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <sys/types.h>
5525 #include <sys/time.h>
5526 #include <time.h>
5527 int main() {
5528 struct tm *tp;
5529 ; return 0; }
5531 if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5532 rm -rf conftest*
5533 ac_cv_header_time=yes
5534 else
5535 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 rm -rf conftest*
5538 ac_cv_header_time=no
5540 rm -f conftest*
5543 echo "$ac_t""$ac_cv_header_time" 1>&6
5544 if test $ac_cv_header_time = yes; then
5545 cat >> confdefs.h <<\EOF
5546 #define TIME_WITH_SYS_TIME 1
5551 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5552 echo "configure:5553: checking whether struct tm is in sys/time.h or time.h" >&5
5553 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5555 else
5556 cat > conftest.$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <sys/types.h>
5560 #include <time.h>
5561 int main() {
5562 struct tm *tp; tp->tm_sec;
5563 ; return 0; }
5565 if { (eval echo configure:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5566 rm -rf conftest*
5567 ac_cv_struct_tm=time.h
5568 else
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 rm -rf conftest*
5572 ac_cv_struct_tm=sys/time.h
5574 rm -f conftest*
5577 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5578 if test $ac_cv_struct_tm = sys/time.h; then
5579 cat >> confdefs.h <<\EOF
5580 #define TM_IN_SYS_TIME 1
5585 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5586 echo "configure:5587: checking for tm_zone in struct tm" >&5
5587 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <sys/types.h>
5594 #include <$ac_cv_struct_tm>
5595 int main() {
5596 struct tm tm; tm.tm_zone;
5597 ; return 0; }
5599 if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5600 rm -rf conftest*
5601 ac_cv_struct_tm_zone=yes
5602 else
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5605 rm -rf conftest*
5606 ac_cv_struct_tm_zone=no
5608 rm -f conftest*
5611 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5612 if test "$ac_cv_struct_tm_zone" = yes; then
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_TM_ZONE 1
5617 else
5618 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5619 echo "configure:5620: checking for tzname" >&5
5620 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5622 else
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 #include <time.h>
5627 #ifndef tzname /* For SGI. */
5628 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5629 #endif
5630 int main() {
5631 atoi(*tzname);
5632 ; return 0; }
5634 if { (eval echo configure:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635 rm -rf conftest*
5636 ac_cv_var_tzname=yes
5637 else
5638 echo "configure: failed program was:" >&5
5639 cat conftest.$ac_ext >&5
5640 rm -rf conftest*
5641 ac_cv_var_tzname=no
5643 rm -f conftest*
5646 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5647 if test $ac_cv_var_tzname = yes; then
5648 cat >> confdefs.h <<\EOF
5649 #define HAVE_TZNAME 1
5656 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
5657 echo "configure:5658: checking for time.h that defines altzone" >&5
5658 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5660 else
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5664 #include <time.h>
5665 int main() {
5666 return altzone;
5667 ; return 0; }
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 rm -rf conftest*
5671 ac_cv_header_time_altzone=yes
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 ac_cv_header_time_altzone=no
5678 rm -f conftest*
5681 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
5682 if test $ac_cv_header_time_altzone = yes; then
5683 cat >> confdefs.h <<\EOF
5684 #define HAVE_ALTZONE 1
5689 was_it_defined=no
5690 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
5691 echo "configure:5692: checking whether sys/select.h and sys/time.h may both be included" >&5
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5696 #include <sys/types.h>
5697 #include <sys/select.h>
5698 #include <sys/time.h>
5700 int main() {
5702 ; return 0; }
5704 if { (eval echo configure:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5705 rm -rf conftest*
5706 cat >> confdefs.h <<\EOF
5707 #define SYS_SELECT_WITH_SYS_TIME 1
5709 was_it_defined=yes
5710 else
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 rm -f conftest*
5715 echo "$ac_t""$was_it_defined" 1>&6
5717 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
5718 echo "configure:5719: checking for addrinfo" >&5
5719 if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5721 else
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5726 # include <netdb.h>
5727 int main() {
5728 struct addrinfo a
5729 ; return 0; }
5731 if { (eval echo configure:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5732 rm -rf conftest*
5733 ac_cv_struct_addrinfo=yes
5734 else
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5737 rm -rf conftest*
5738 ac_cv_struct_addrinfo=no
5740 rm -f conftest*
5743 echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6
5744 if test $ac_cv_struct_addrinfo = yes; then
5745 cat >> confdefs.h <<\EOF
5746 #define HAVE_ADDRINFO 1
5751 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
5752 echo "configure:5753: checking for sockaddr_storage" >&5
5753 if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5755 else
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5760 # include <sys/types.h>
5761 # include <sys/socket.h>
5762 int main() {
5763 struct sockaddr_storage s
5764 ; return 0; }
5766 if { (eval echo configure:5767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5767 rm -rf conftest*
5768 ac_cv_struct_sockaddr_storage=yes
5769 else
5770 echo "configure: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5772 rm -rf conftest*
5773 ac_cv_struct_sockaddr_storage=no
5775 rm -f conftest*
5778 echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6
5779 if test $ac_cv_struct_sockaddr_storage = yes; then
5780 cat >> confdefs.h <<\EOF
5781 #define HAVE_SOCKADDR_STORAGE 1
5786 # checks for compiler characteristics
5788 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
5789 echo "configure:5790: checking whether char is unsigned" >&5
5790 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5792 else
5793 if test "$GCC" = yes; then
5794 # GCC predefines this symbol on systems where it applies.
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 #ifdef __CHAR_UNSIGNED__
5800 #endif
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 egrep "yes" >/dev/null 2>&1; then
5805 rm -rf conftest*
5806 ac_cv_c_char_unsigned=yes
5807 else
5808 rm -rf conftest*
5809 ac_cv_c_char_unsigned=no
5811 rm -f conftest*
5813 else
5814 if test "$cross_compiling" = yes; then
5815 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5816 else
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
5821 #if !defined(__STDC__) || __STDC__ != 1
5822 #define volatile
5823 #endif
5824 main() {
5825 volatile char c = 255; exit(c < 0);
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5829 then
5830 ac_cv_c_char_unsigned=yes
5831 else
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5834 rm -fr conftest*
5835 ac_cv_c_char_unsigned=no
5837 rm -fr conftest*
5843 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
5844 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5845 cat >> confdefs.h <<\EOF
5846 #define __CHAR_UNSIGNED__ 1
5851 echo $ac_n "checking for working const""... $ac_c" 1>&6
5852 echo "configure:5853: checking for working const" >&5
5853 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5855 else
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5860 int main() {
5862 /* Ultrix mips cc rejects this. */
5863 typedef int charset[2]; const charset x;
5864 /* SunOS 4.1.1 cc rejects this. */
5865 char const *const *ccp;
5866 char **p;
5867 /* NEC SVR4.0.2 mips cc rejects this. */
5868 struct point {int x, y;};
5869 static struct point const zero = {0,0};
5870 /* AIX XL C 1.02.0.0 rejects this.
5871 It does not let you subtract one const X* pointer from another in an arm
5872 of an if-expression whose if-part is not a constant expression */
5873 const char *g = "string";
5874 ccp = &g + (g ? g-g : 0);
5875 /* HPUX 7.0 cc rejects these. */
5876 ++ccp;
5877 p = (char**) ccp;
5878 ccp = (char const *const *) p;
5879 { /* SCO 3.2v4 cc rejects this. */
5880 char *t;
5881 char const *s = 0 ? (char *) 0 : (char const *) 0;
5883 *t++ = 0;
5885 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5886 int x[] = {25, 17};
5887 const int *foo = &x[0];
5888 ++foo;
5890 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5891 typedef const int *iptr;
5892 iptr p = 0;
5893 ++p;
5895 { /* AIX XL C 1.02.0.0 rejects this saying
5896 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5897 struct s { int j; const int *ap[3]; };
5898 struct s *b; b->j = 5;
5900 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5901 const int foo = 10;
5904 ; return 0; }
5906 if { (eval echo configure:5907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5907 rm -rf conftest*
5908 ac_cv_c_const=yes
5909 else
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5912 rm -rf conftest*
5913 ac_cv_c_const=no
5915 rm -f conftest*
5918 echo "$ac_t""$ac_cv_c_const" 1>&6
5919 if test $ac_cv_c_const = no; then
5920 cat >> confdefs.h <<\EOF
5921 #define const
5927 works=no
5928 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
5929 echo "configure:5930: checking for working volatile" >&5
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5934 int main() {
5935 volatile int x; x = 0;
5936 ; return 0; }
5938 if { (eval echo configure:5939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5939 rm -rf conftest*
5940 works=yes
5941 else
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 rm -rf conftest*
5945 cat >> confdefs.h <<\EOF
5946 #define volatile
5950 rm -f conftest*
5951 echo "$ac_t""$works" 1>&6
5953 works=no
5954 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
5955 echo "configure:5956: checking for working signed char" >&5
5956 cat > conftest.$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5960 int main() {
5961 signed char c;
5962 ; return 0; }
5964 if { (eval echo configure:5965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5965 rm -rf conftest*
5966 works=yes
5967 else
5968 echo "configure: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 rm -rf conftest*
5971 cat >> confdefs.h <<\EOF
5972 #define signed
5976 rm -f conftest*
5977 echo "$ac_t""$works" 1>&6
5979 have_prototypes=no
5980 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
5981 echo "configure:5982: checking for prototypes" >&5
5982 cat > conftest.$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 int foo(int x) { return 0; }
5986 int main() {
5987 return foo(10);
5988 ; return 0; }
5990 if { (eval echo configure:5991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 rm -rf conftest*
5992 cat >> confdefs.h <<\EOF
5993 #define HAVE_PROTOTYPES 1
5995 have_prototypes=yes
5996 else
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 rm -f conftest*
6001 echo "$ac_t""$have_prototypes" 1>&6
6003 works=no
6004 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
6005 echo "configure:6006: checking for variable length prototypes and stdarg.h" >&5
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6010 #include <stdarg.h>
6011 int foo(int x, ...) {
6012 va_list va;
6013 va_start(va, x);
6014 va_arg(va, int);
6015 va_arg(va, char *);
6016 va_arg(va, double);
6017 return 0;
6020 int main() {
6021 return foo(10, "", 3.14);
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6025 rm -rf conftest*
6026 cat >> confdefs.h <<\EOF
6027 #define HAVE_STDARG_PROTOTYPES 1
6029 works=yes
6030 else
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 rm -f conftest*
6035 echo "$ac_t""$works" 1>&6
6037 if test "$have_prototypes" = yes; then
6038 bad_prototypes=no
6039 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
6040 echo "configure:6041: checking for bad exec* prototypes" >&5
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 #include <unistd.h>
6045 int main() {
6046 char **t;execve("@",t,t);
6047 ; return 0; }
6049 if { (eval echo configure:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6051 else
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6054 rm -rf conftest*
6055 cat >> confdefs.h <<\EOF
6056 #define BAD_EXEC_PROTOTYPES 1
6058 bad_prototypes=yes
6060 rm -f conftest*
6061 echo "$ac_t""$bad_prototypes" 1>&6
6064 # check if sockaddr has sa_len member
6065 echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6
6066 echo "configure:6067: checking if sockaddr has sa_len member" >&5
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 #include <sys/types.h>
6071 #include <sys/socket.h>
6072 int main() {
6073 struct sockaddr x;
6074 x.sa_len = 0;
6075 ; return 0; }
6077 if { (eval echo configure:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6078 rm -rf conftest*
6079 echo "$ac_t""yes" 1>&6
6080 cat >> confdefs.h <<\EOF
6081 #define HAVE_SOCKADDR_SA_LEN 1
6084 else
6085 echo "configure: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6087 rm -rf conftest*
6088 echo "$ac_t""no" 1>&6
6090 rm -f conftest*
6092 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
6093 echo "configure:6094: checking for bad static forward" >&5
6094 if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6096 else
6097 if test "$cross_compiling" = yes; then
6098 ac_cv_bad_static_forward=no
6099 else
6100 cat > conftest.$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6104 struct s { int a; int b; };
6105 static struct s foo;
6106 int foobar() {
6107 static int random;
6108 random = (int) &foo;
6109 return random;
6111 static struct s foo = { 1, 2 };
6112 main() {
6113 exit(!((int)&foo == foobar()));
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6117 then
6118 ac_cv_bad_static_forward=no
6119 else
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6122 rm -fr conftest*
6123 ac_cv_bad_static_forward=yes
6125 rm -fr conftest*
6130 echo "$ac_t""$ac_cv_bad_static_forward" 1>&6
6131 if test "$ac_cv_bad_static_forward" = yes
6132 then
6133 cat >> confdefs.h <<\EOF
6134 #define BAD_STATIC_FORWARD 1
6139 va_list_is_array=no
6140 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
6141 echo "configure:6142: checking whether va_list is an array" >&5
6142 cat > conftest.$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6146 #ifdef HAVE_STDARG_PROTOTYPES
6147 #include <stdarg.h>
6148 #else
6149 #include <varargs.h>
6150 #endif
6152 int main() {
6153 va_list list1, list2; list1 = list2;
6154 ; return 0; }
6156 if { (eval echo configure:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6158 else
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 rm -rf conftest*
6162 cat >> confdefs.h <<\EOF
6163 #define VA_LIST_IS_ARRAY 1
6165 va_list_is_array=yes
6167 rm -f conftest*
6168 echo "$ac_t""$va_list_is_array" 1>&6
6170 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
6171 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
6172 echo "configure:6173: checking for gethostbyname_r" >&5
6173 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6175 else
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179 /* System header to define __stub macros and hopefully few prototypes,
6180 which can conflict with char gethostbyname_r(); below. */
6181 #include <assert.h>
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6185 char gethostbyname_r();
6187 int main() {
6189 /* The GNU C library defines this for functions which it implements
6190 to always fail with ENOSYS. Some functions are actually named
6191 something starting with __ and the normal name is an alias. */
6192 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
6193 choke me
6194 #else
6195 gethostbyname_r();
6196 #endif
6198 ; return 0; }
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 rm -rf conftest*
6202 eval "ac_cv_func_gethostbyname_r=yes"
6203 else
6204 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 rm -rf conftest*
6207 eval "ac_cv_func_gethostbyname_r=no"
6209 rm -f conftest*
6212 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6215 cat >> confdefs.h <<\EOF
6216 #define HAVE_GETHOSTBYNAME_R 1
6219 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
6220 echo "configure:6221: checking gethostbyname_r with 6 args" >&5
6221 OLD_CFLAGS=$CFLAGS
6222 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6227 # include <netdb.h>
6229 int main() {
6231 char *name;
6232 struct hostent *he, *res;
6233 char buffer[2048];
6234 int buflen = 2048;
6235 int h_errnop;
6237 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
6239 ; return 0; }
6241 if { (eval echo configure:6242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6242 rm -rf conftest*
6244 cat >> confdefs.h <<\EOF
6245 #define HAVE_GETHOSTBYNAME_R 1
6248 cat >> confdefs.h <<\EOF
6249 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
6252 echo "$ac_t""yes" 1>&6
6254 else
6255 echo "configure: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 rm -rf conftest*
6259 echo "$ac_t""no" 1>&6
6260 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
6261 echo "configure:6262: checking gethostbyname_r with 5 args" >&5
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6266 # include <netdb.h>
6268 int main() {
6270 char *name;
6271 struct hostent *he;
6272 char buffer[2048];
6273 int buflen = 2048;
6274 int h_errnop;
6276 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
6278 ; return 0; }
6280 if { (eval echo configure:6281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6281 rm -rf conftest*
6283 cat >> confdefs.h <<\EOF
6284 #define HAVE_GETHOSTBYNAME_R 1
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
6291 echo "$ac_t""yes" 1>&6
6293 else
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6296 rm -rf conftest*
6298 echo "$ac_t""no" 1>&6
6299 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
6300 echo "configure:6301: checking gethostbyname_r with 3 args" >&5
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6305 # include <netdb.h>
6307 int main() {
6309 char *name;
6310 struct hostent *he;
6311 struct hostent_data data;
6313 (void) gethostbyname_r(name, he, &data);
6315 ; return 0; }
6317 if { (eval echo configure:6318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6318 rm -rf conftest*
6320 cat >> confdefs.h <<\EOF
6321 #define HAVE_GETHOSTBYNAME_R 1
6324 cat >> confdefs.h <<\EOF
6325 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
6328 echo "$ac_t""yes" 1>&6
6330 else
6331 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6333 rm -rf conftest*
6335 echo "$ac_t""no" 1>&6
6338 rm -f conftest*
6341 rm -f conftest*
6344 rm -f conftest*
6345 CFLAGS=$OLD_CFLAGS
6347 else
6348 echo "$ac_t""no" 1>&6
6350 for ac_func in gethostbyname
6352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6353 echo "configure:6354: checking for $ac_func" >&5
6354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6356 else
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func(); below. */
6362 #include <assert.h>
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6366 char $ac_func();
6368 int main() {
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6374 choke me
6375 #else
6376 $ac_func();
6377 #endif
6379 ; return 0; }
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 rm -rf conftest*
6383 eval "ac_cv_func_$ac_func=yes"
6384 else
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6387 rm -rf conftest*
6388 eval "ac_cv_func_$ac_func=no"
6390 rm -f conftest*
6393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6396 cat >> confdefs.h <<EOF
6397 #define $ac_tr_func 1
6400 else
6401 echo "$ac_t""no" 1>&6
6403 done
6414 # checks for system services
6415 # (none yet)
6417 # Linux requires this for correct f.p. operations
6418 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
6419 echo "configure:6420: checking for __fpu_control" >&5
6420 if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6422 else
6423 cat > conftest.$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* System header to define __stub macros and hopefully few prototypes,
6427 which can conflict with char __fpu_control(); below. */
6428 #include <assert.h>
6429 /* Override any gcc2 internal prototype to avoid an error. */
6430 /* We use char because int might match the return type of a gcc2
6431 builtin and then its argument prototype would still apply. */
6432 char __fpu_control();
6434 int main() {
6436 /* The GNU C library defines this for functions which it implements
6437 to always fail with ENOSYS. Some functions are actually named
6438 something starting with __ and the normal name is an alias. */
6439 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
6440 choke me
6441 #else
6442 __fpu_control();
6443 #endif
6445 ; return 0; }
6447 if { (eval echo configure:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6448 rm -rf conftest*
6449 eval "ac_cv_func___fpu_control=yes"
6450 else
6451 echo "configure: failed program was:" >&5
6452 cat conftest.$ac_ext >&5
6453 rm -rf conftest*
6454 eval "ac_cv_func___fpu_control=no"
6456 rm -f conftest*
6459 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6462 else
6463 echo "$ac_t""no" 1>&6
6464 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
6465 echo "configure:6466: checking for __fpu_control in -lieee" >&5
6466 ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6470 ac_save_LIBS="$LIBS"
6471 LIBS="-lieee $LIBS"
6472 cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char __fpu_control();
6480 int main() {
6481 __fpu_control()
6482 ; return 0; }
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6485 rm -rf conftest*
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6487 else
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 rm -rf conftest*
6491 eval "ac_cv_lib_$ac_lib_var=no"
6493 rm -f conftest*
6494 LIBS="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6501 cat >> confdefs.h <<EOF
6502 #define $ac_tr_lib 1
6505 LIBS="-lieee $LIBS"
6507 else
6508 echo "$ac_t""no" 1>&6
6515 # Check for --with-fpectl
6516 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
6517 echo "configure:6518: checking for --with-fpectl" >&5
6518 # Check whether --with-fpectl or --without-fpectl was given.
6519 if test "${with_fpectl+set}" = set; then
6520 withval="$with_fpectl"
6522 if test "$withval" != no
6523 then cat >> confdefs.h <<\EOF
6524 #define WANT_SIGFPE_HANDLER 1
6526 echo "$ac_t""yes" 1>&6
6527 else echo "$ac_t""no" 1>&6
6529 else
6530 echo "$ac_t""no" 1>&6
6534 # check for --with-libm=...
6536 case $ac_sys_system in
6537 Darwin) ;;
6538 BeOS) ;;
6539 *) LIBM=-lm
6540 esac
6541 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
6542 echo "configure:6543: checking for --with-libm=STRING" >&5
6543 # Check whether --with-libm or --without-libm was given.
6544 if test "${with_libm+set}" = set; then
6545 withval="$with_libm"
6547 if test "$withval" = no
6548 then LIBM=
6549 echo "$ac_t""force LIBM empty" 1>&6
6550 elif test "$withval" != yes
6551 then LIBM=$withval
6552 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
6553 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
6555 else
6556 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
6560 # check for --with-libc=...
6562 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
6563 echo "configure:6564: checking for --with-libc=STRING" >&5
6564 # Check whether --with-libc or --without-libc was given.
6565 if test "${with_libc+set}" = set; then
6566 withval="$with_libc"
6568 if test "$withval" = no
6569 then LIBC=
6570 echo "$ac_t""force LIBC empty" 1>&6
6571 elif test "$withval" != yes
6572 then LIBC=$withval
6573 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
6574 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
6576 else
6577 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
6581 # check for hypot() in math library
6582 LIBS_SAVE=$LIBS
6583 LIBS="$LIBS $LIBM"
6584 for ac_func in hypot
6586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6587 echo "configure:6588: checking for $ac_func" >&5
6588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6590 else
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* System header to define __stub macros and hopefully few prototypes,
6595 which can conflict with char $ac_func(); below. */
6596 #include <assert.h>
6597 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6600 char $ac_func();
6602 int main() {
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6608 choke me
6609 #else
6610 $ac_func();
6611 #endif
6613 ; return 0; }
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 rm -rf conftest*
6617 eval "ac_cv_func_$ac_func=yes"
6618 else
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6621 rm -rf conftest*
6622 eval "ac_cv_func_$ac_func=no"
6624 rm -f conftest*
6627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6630 cat >> confdefs.h <<EOF
6631 #define $ac_tr_func 1
6634 else
6635 echo "$ac_t""no" 1>&6
6636 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
6638 done
6641 LIBS=$LIBS_SAVE
6643 # check whether malloc(0) returns NULL or not
6644 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
6645 echo "configure:6646: checking what malloc(0) returns" >&5
6646 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6648 else
6649 if test "$cross_compiling" = yes; then
6650 ac_cv_malloc_zero=nonnull
6651 else
6652 cat > conftest.$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6655 #include <stdio.h>
6656 #ifdef HAVE_STDLIB
6657 #include <stdlib.h>
6658 #else
6659 char *malloc(), *realloc();
6660 int *free();
6661 #endif
6662 main() {
6663 char *p;
6664 p = malloc(0);
6665 if (p == NULL) exit(1);
6666 p = realloc(p, 0);
6667 if (p == NULL) exit(1);
6668 free(p);
6669 exit(0);
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6673 then
6674 ac_cv_malloc_zero=nonnull
6675 else
6676 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5
6678 rm -fr conftest*
6679 ac_cv_malloc_zero=null
6681 rm -fr conftest*
6685 # XXX arm cross-compile?
6686 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
6687 if test "$ac_cv_malloc_zero" = null
6688 then
6689 cat >> confdefs.h <<\EOF
6690 #define MALLOC_ZERO_RETURNS_NULL 1
6695 # check for wchar.h
6696 ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
6697 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
6698 echo "configure:6699: checking for wchar.h" >&5
6699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6701 else
6702 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6705 #include <wchar.h>
6707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6708 { (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6710 if test -z "$ac_err"; then
6711 rm -rf conftest*
6712 eval "ac_cv_header_$ac_safe=yes"
6713 else
6714 echo "$ac_err" >&5
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6717 rm -rf conftest*
6718 eval "ac_cv_header_$ac_safe=no"
6720 rm -f conftest*
6722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6723 echo "$ac_t""yes" 1>&6
6724 cat >> confdefs.h <<\EOF
6725 #define HAVE_WCHAR_H 1
6727 wchar_h="yes"
6728 else
6729 echo "$ac_t""no" 1>&6
6730 wchar_h="no"
6735 # determine wchar_t size
6736 if test "$wchar_h" = yes
6737 then
6738 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
6739 echo "configure:6740: checking size of wchar_t" >&5
6740 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6742 else
6743 if test "$cross_compiling" = yes; then
6744 ac_cv_sizeof_wchar_t=4
6745 else
6746 cat > conftest.$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6749 #include <stdio.h>
6750 main()
6752 FILE *f=fopen("conftestval", "w");
6753 if (!f) exit(1);
6754 fprintf(f, "%d\n", sizeof(wchar_t));
6755 exit(0);
6758 if { (eval echo configure:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6759 then
6760 ac_cv_sizeof_wchar_t=`cat conftestval`
6761 else
6762 echo "configure: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6764 rm -fr conftest*
6765 ac_cv_sizeof_wchar_t=0
6767 rm -fr conftest*
6771 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
6772 cat >> confdefs.h <<EOF
6773 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6779 echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6
6780 echo "configure:6781: checking what type to use for unicode" >&5
6781 # Check whether --enable-unicode or --disable-unicode was given.
6782 if test "${enable_unicode+set}" = set; then
6783 enableval="$enable_unicode"
6785 else
6786 enable_unicode=yes
6790 if test $enable_unicode = yes
6791 then
6792 # Without any arguments, Py_UNICODE defaults to two-byte mode
6793 enable_unicode="ucs2"
6796 case "$enable_unicode" in
6797 ucs2) unicode_size="2"
6798 cat >> confdefs.h <<\EOF
6799 #define Py_UNICODE_SIZE 2
6803 ucs4) unicode_size="4"
6804 cat >> confdefs.h <<\EOF
6805 #define Py_UNICODE_SIZE 4
6809 esac
6812 if test "$enable_unicode" = "no"
6813 then
6814 UNICODE_OBJS=""
6815 echo "$ac_t""not used" 1>&6
6816 else
6817 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
6818 cat >> confdefs.h <<\EOF
6819 #define Py_USING_UNICODE 1
6822 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
6823 then
6824 PY_UNICODE_TYPE="wchar_t"
6825 cat >> confdefs.h <<\EOF
6826 #define HAVE_USABLE_WCHAR_T 1
6829 cat >> confdefs.h <<\EOF
6830 #define PY_UNICODE_TYPE wchar_t
6833 elif test "$ac_cv_sizeof_short" = "$unicode_size"
6834 then
6835 PY_UNICODE_TYPE="unsigned short"
6836 cat >> confdefs.h <<\EOF
6837 #define PY_UNICODE_TYPE unsigned short
6840 elif test "$ac_cv_sizeof_long" = "$unicode_size"
6841 then
6842 PY_UNICODE_TYPE="unsigned long"
6843 cat >> confdefs.h <<\EOF
6844 #define PY_UNICODE_TYPE unsigned long
6847 else
6848 PY_UNICODE_TYPE="no type found"
6850 echo "$ac_t""$PY_UNICODE_TYPE" 1>&6
6853 # check for endianness
6854 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6855 echo "configure:6856: checking whether byte ordering is bigendian" >&5
6856 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6858 else
6859 ac_cv_c_bigendian=unknown
6860 # See if sys/param.h defines the BYTE_ORDER macro.
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <sys/types.h>
6865 #include <sys/param.h>
6866 int main() {
6868 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6869 bogus endian macros
6870 #endif
6871 ; return 0; }
6873 if { (eval echo configure:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6874 rm -rf conftest*
6875 # It does; now see whether it defined to BIG_ENDIAN or not.
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 #include <sys/types.h>
6880 #include <sys/param.h>
6881 int main() {
6883 #if BYTE_ORDER != BIG_ENDIAN
6884 not big endian
6885 #endif
6886 ; return 0; }
6888 if { (eval echo configure:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6889 rm -rf conftest*
6890 ac_cv_c_bigendian=yes
6891 else
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6894 rm -rf conftest*
6895 ac_cv_c_bigendian=no
6897 rm -f conftest*
6898 else
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6902 rm -f conftest*
6903 if test $ac_cv_c_bigendian = unknown; then
6904 if test "$cross_compiling" = yes; then
6905 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6906 else
6907 cat > conftest.$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6910 main () {
6911 /* Are we little or big endian? From Harbison&Steele. */
6912 union
6914 long l;
6915 char c[sizeof (long)];
6916 } u;
6917 u.l = 1;
6918 exit (u.c[sizeof (long) - 1] == 1);
6921 if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6922 then
6923 ac_cv_c_bigendian=no
6924 else
6925 echo "configure: failed program was:" >&5
6926 cat conftest.$ac_ext >&5
6927 rm -fr conftest*
6928 ac_cv_c_bigendian=yes
6930 rm -fr conftest*
6936 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6937 if test $ac_cv_c_bigendian = yes; then
6938 cat >> confdefs.h <<\EOF
6939 #define WORDS_BIGENDIAN 1
6945 # Check whether right shifting a negative integer extends the sign bit
6946 # or fills with zeros (like the Cray J90, according to Tim Peters).
6947 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
6948 echo "configure:6949: checking whether right shift extends the sign bit" >&5
6949 if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6951 else
6953 if test "$cross_compiling" = yes; then
6954 ac_cv_rshift_extends_sign=yes
6955 else
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6960 int main()
6962 exit(((-1)>>3 == -1) ? 0 : 1);
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6967 then
6968 ac_cv_rshift_extends_sign=yes
6969 else
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 rm -fr conftest*
6973 ac_cv_rshift_extends_sign=no
6975 rm -fr conftest*
6980 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6981 if test "$ac_cv_rshift_extends_sign" = no
6982 then
6983 cat >> confdefs.h <<\EOF
6984 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6989 # check for getc_unlocked and related locking functions
6990 echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
6991 echo "configure:6992: checking for getc_unlocked() and friends" >&5
6992 if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6994 else
6996 cat > conftest.$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
6999 #include <stdio.h>
7000 int main() {
7002 FILE *f = fopen("/dev/null", "r");
7003 flockfile(f);
7004 getc_unlocked(f);
7005 funlockfile(f);
7007 ; return 0; }
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 rm -rf conftest*
7011 ac_cv_have_getc_unlocked=yes
7012 else
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7015 rm -rf conftest*
7016 ac_cv_have_getc_unlocked=no
7018 rm -f conftest*
7021 echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
7022 if test "$ac_cv_have_getc_unlocked" = yes
7023 then
7024 cat >> confdefs.h <<\EOF
7025 #define HAVE_GETC_UNLOCKED 1
7030 # check for readline 4.2
7031 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
7032 echo "configure:7033: checking for rl_completion_matches in -lreadline" >&5
7033 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
7034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7036 else
7037 ac_save_LIBS="$LIBS"
7038 LIBS="-lreadline -ltermcap $LIBS"
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char rl_completion_matches();
7047 int main() {
7048 rl_completion_matches()
7049 ; return 0; }
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7052 rm -rf conftest*
7053 eval "ac_cv_lib_$ac_lib_var=yes"
7054 else
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7057 rm -rf conftest*
7058 eval "ac_cv_lib_$ac_lib_var=no"
7060 rm -f conftest*
7061 LIBS="$ac_save_LIBS"
7064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 cat >> confdefs.h <<\EOF
7067 #define HAVE_RL_COMPLETION_MATCHES 1
7070 else
7071 echo "$ac_t""no" 1>&6
7075 echo $ac_n "checking for broken nice()""... $ac_c" 1>&6
7076 echo "configure:7077: checking for broken nice()" >&5
7077 if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7079 else
7081 if test "$cross_compiling" = yes; then
7082 ac_cv_broken_nice=no
7083 else
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7088 int main()
7090 int val1 = nice(1);
7091 if (val1 != -1 && val1 == nice(2))
7092 exit(0);
7093 exit(1);
7097 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7098 then
7099 ac_cv_broken_nice=yes
7100 else
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7103 rm -fr conftest*
7104 ac_cv_broken_nice=no
7106 rm -fr conftest*
7111 echo "$ac_t""$ac_cv_broken_nice" 1>&6
7112 if test "$ac_cv_broken_nice" = yes
7113 then
7114 cat >> confdefs.h <<\EOF
7115 #define HAVE_BROKEN_NICE 1
7120 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
7121 # Add sys/socket.h to confdefs.h
7122 cat >> confdefs.h <<\EOF
7123 #ifdef HAVE_SYS_SOCKET_H
7124 #include <sys/socket.h>
7125 #endif
7127 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
7128 echo "configure:7129: checking for socklen_t" >&5
7129 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7131 else
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 #include <sys/types.h>
7136 #if STDC_HEADERS
7137 #include <stdlib.h>
7138 #include <stddef.h>
7139 #endif
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7143 rm -rf conftest*
7144 ac_cv_type_socklen_t=yes
7145 else
7146 rm -rf conftest*
7147 ac_cv_type_socklen_t=no
7149 rm -f conftest*
7152 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
7153 if test $ac_cv_type_socklen_t = no; then
7154 cat >> confdefs.h <<\EOF
7155 #define socklen_t int
7161 # Add Python/ prefix to LIBOBJS
7162 libobjs=$LIBOBJS
7163 LIBOBJS=
7164 for obj in $libobjs; do
7165 LIBOBJS="$LIBOBJS Python/$obj"
7166 done
7168 #AC_MSG_CHECKING(for Modules/Setup)
7169 #if test ! -f Modules/Setup ; then
7170 # if test ! -d Modules ; then
7171 # mkdir Modules
7172 # fi
7173 # cp "$srcdir/Modules/Setup.dist" Modules/Setup
7174 # AC_MSG_RESULT(creating)
7175 #else
7176 # AC_MSG_RESULT(already exists)
7180 SRCDIRS="Parser Grammar Objects Python Modules"
7181 echo $ac_n "checking for build directories""... $ac_c" 1>&6
7182 echo "configure:7183: checking for build directories" >&5
7183 for dir in $SRCDIRS; do
7184 if test ! -d $dir; then
7185 mkdir $dir
7187 done
7188 echo "$ac_t""done" 1>&6
7190 # generate output files
7191 trap '' 1 2 15
7192 cat > confcache <<\EOF
7193 # This file is a shell script that caches the results of configure
7194 # tests run on this system so they can be shared between configure
7195 # scripts and configure runs. It is not useful on other systems.
7196 # If it contains results you don't want to keep, you may remove or edit it.
7198 # By default, configure uses ./config.cache as the cache file,
7199 # creating it if it does not exist already. You can give configure
7200 # the --cache-file=FILE option to use a different cache file; that is
7201 # what configure does when it calls configure scripts in
7202 # subdirectories, so they share the cache.
7203 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7204 # config.status only pays attention to the cache file if you give it the
7205 # --recheck option to rerun configure.
7208 # The following way of writing the cache mishandles newlines in values,
7209 # but we know of no workaround that is simple, portable, and efficient.
7210 # So, don't put newlines in cache variables' values.
7211 # Ultrix sh set writes to stderr and can't be redirected directly,
7212 # and sets the high bit in the cache file unless we assign to the vars.
7213 (set) 2>&1 |
7214 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7215 *ac_space=\ *)
7216 # `set' does not quote correctly, so add quotes (double-quote substitution
7217 # turns \\\\ into \\, and sed turns \\ into \).
7218 sed -n \
7219 -e "s/'/'\\\\''/g" \
7220 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7223 # `set' quotes correctly as required by POSIX, so do not add quotes.
7224 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7226 esac >> confcache
7227 if cmp -s $cache_file confcache; then
7229 else
7230 if test -w $cache_file; then
7231 echo "updating cache $cache_file"
7232 cat confcache > $cache_file
7233 else
7234 echo "not updating unwritable cache $cache_file"
7237 rm -f confcache
7239 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7241 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7242 # Let make expand exec_prefix.
7243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7245 # Any assignment to VPATH causes Sun make to only execute
7246 # the first set of double-colon rules, so remove it if not needed.
7247 # If there is a colon in the path, we need to keep it.
7248 if test "x$srcdir" = x.; then
7249 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7252 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7254 DEFS=-DHAVE_CONFIG_H
7256 # Without the "./", some shells look in PATH for config.status.
7257 : ${CONFIG_STATUS=./config.status}
7259 echo creating $CONFIG_STATUS
7260 rm -f $CONFIG_STATUS
7261 cat > $CONFIG_STATUS <<EOF
7262 #! /bin/sh
7263 # Generated automatically by configure.
7264 # Run this file to recreate the current configuration.
7265 # This directory was configured as follows,
7266 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7268 # $0 $ac_configure_args
7270 # Compiler output produced by configure, useful for debugging
7271 # configure, is in ./config.log if it exists.
7273 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7274 for ac_option
7276 case "\$ac_option" in
7277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7278 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7279 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7280 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7281 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7282 exit 0 ;;
7283 -help | --help | --hel | --he | --h)
7284 echo "\$ac_cs_usage"; exit 0 ;;
7285 *) echo "\$ac_cs_usage"; exit 1 ;;
7286 esac
7287 done
7289 ac_given_srcdir=$srcdir
7290 ac_given_INSTALL="$INSTALL"
7292 trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7294 cat >> $CONFIG_STATUS <<EOF
7296 # Protect against being on the right side of a sed subst in config.status.
7297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7298 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7299 $ac_vpsub
7300 $extrasub
7301 s%@SHELL@%$SHELL%g
7302 s%@CFLAGS@%$CFLAGS%g
7303 s%@CPPFLAGS@%$CPPFLAGS%g
7304 s%@CXXFLAGS@%$CXXFLAGS%g
7305 s%@FFLAGS@%$FFLAGS%g
7306 s%@DEFS@%$DEFS%g
7307 s%@LDFLAGS@%$LDFLAGS%g
7308 s%@LIBS@%$LIBS%g
7309 s%@exec_prefix@%$exec_prefix%g
7310 s%@prefix@%$prefix%g
7311 s%@program_transform_name@%$program_transform_name%g
7312 s%@bindir@%$bindir%g
7313 s%@sbindir@%$sbindir%g
7314 s%@libexecdir@%$libexecdir%g
7315 s%@datadir@%$datadir%g
7316 s%@sysconfdir@%$sysconfdir%g
7317 s%@sharedstatedir@%$sharedstatedir%g
7318 s%@localstatedir@%$localstatedir%g
7319 s%@libdir@%$libdir%g
7320 s%@includedir@%$includedir%g
7321 s%@oldincludedir@%$oldincludedir%g
7322 s%@infodir@%$infodir%g
7323 s%@mandir@%$mandir%g
7324 s%@VERSION@%$VERSION%g
7325 s%@CONFIG_ARGS@%$CONFIG_ARGS%g
7326 s%@PYTHONFRAMEWORK@%$PYTHONFRAMEWORK%g
7327 s%@PYTHONFRAMEWORKDIR@%$PYTHONFRAMEWORKDIR%g
7328 s%@PYTHONFRAMEWORKPREFIX@%$PYTHONFRAMEWORKPREFIX%g
7329 s%@PYTHONFRAMEWORKINSTALLDIR@%$PYTHONFRAMEWORKINSTALLDIR%g
7330 s%@MACHDEP@%$MACHDEP%g
7331 s%@SGI_ABI@%$SGI_ABI%g
7332 s%@CXX@%$CXX%g
7333 s%@MAINOBJ@%$MAINOBJ%g
7334 s%@CC@%$CC%g
7335 s%@CPP@%$CPP%g
7336 s%@EXEEXT@%$EXEEXT%g
7337 s%@LIBRARY@%$LIBRARY%g
7338 s%@LDLIBRARY@%$LDLIBRARY%g
7339 s%@DLLLIBRARY@%$DLLLIBRARY%g
7340 s%@BLDLIBRARY@%$BLDLIBRARY%g
7341 s%@LDLIBRARYDIR@%$LDLIBRARYDIR%g
7342 s%@LINKCC@%$LINKCC%g
7343 s%@RANLIB@%$RANLIB%g
7344 s%@AR@%$AR%g
7345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7347 s%@INSTALL_DATA@%$INSTALL_DATA%g
7348 s%@LN@%$LN%g
7349 s%@OPT@%$OPT%g
7350 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
7351 s%@SO@%$SO%g
7352 s%@LDSHARED@%$LDSHARED%g
7353 s%@BLDSHARED@%$BLDSHARED%g
7354 s%@CCSHARED@%$CCSHARED%g
7355 s%@LINKFORSHARED@%$LINKFORSHARED%g
7356 s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
7357 s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
7358 s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
7359 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
7360 s%@LDLAST@%$LDLAST%g
7361 s%@DLINCLDIR@%$DLINCLDIR%g
7362 s%@DYNLOADFILE@%$DYNLOADFILE%g
7363 s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g
7364 s%@LIBOBJS@%$LIBOBJS%g
7365 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
7366 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
7367 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
7368 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
7369 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
7370 s%@LIBM@%$LIBM%g
7371 s%@LIBC@%$LIBC%g
7372 s%@UNICODE_OBJS@%$UNICODE_OBJS%g
7373 s%@SRCDIRS@%$SRCDIRS%g
7375 CEOF
7378 cat >> $CONFIG_STATUS <<\EOF
7380 # Split the substitutions into bite-sized pieces for seds with
7381 # small command number limits, like on Digital OSF/1 and HP-UX.
7382 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7383 ac_file=1 # Number of current file.
7384 ac_beg=1 # First line for current file.
7385 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7386 ac_more_lines=:
7387 ac_sed_cmds=""
7388 while $ac_more_lines; do
7389 if test $ac_beg -gt 1; then
7390 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7391 else
7392 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7394 if test ! -s conftest.s$ac_file; then
7395 ac_more_lines=false
7396 rm -f conftest.s$ac_file
7397 else
7398 if test -z "$ac_sed_cmds"; then
7399 ac_sed_cmds="sed -f conftest.s$ac_file"
7400 else
7401 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7403 ac_file=`expr $ac_file + 1`
7404 ac_beg=$ac_end
7405 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7407 done
7408 if test -z "$ac_sed_cmds"; then
7409 ac_sed_cmds=cat
7413 cat >> $CONFIG_STATUS <<EOF
7415 CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
7417 cat >> $CONFIG_STATUS <<\EOF
7418 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7420 case "$ac_file" in
7421 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7422 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7423 *) ac_file_in="${ac_file}.in" ;;
7424 esac
7426 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7428 # Remove last slash and all that follows it. Not all systems have dirname.
7429 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7430 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7431 # The file is in a subdirectory.
7432 test ! -d "$ac_dir" && mkdir "$ac_dir"
7433 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7434 # A "../" for each directory in $ac_dir_suffix.
7435 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7436 else
7437 ac_dir_suffix= ac_dots=
7440 case "$ac_given_srcdir" in
7441 .) srcdir=.
7442 if test -z "$ac_dots"; then top_srcdir=.
7443 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7444 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7445 *) # Relative path.
7446 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7447 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7448 esac
7450 case "$ac_given_INSTALL" in
7451 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7452 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7453 esac
7455 echo creating "$ac_file"
7456 rm -f "$ac_file"
7457 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7458 case "$ac_file" in
7459 *Makefile*) ac_comsub="1i\\
7460 # $configure_input" ;;
7461 *) ac_comsub= ;;
7462 esac
7464 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7465 sed -e "$ac_comsub
7466 s%@configure_input@%$configure_input%g
7467 s%@srcdir@%$srcdir%g
7468 s%@top_srcdir@%$top_srcdir%g
7469 s%@INSTALL@%$INSTALL%g
7470 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7471 fi; done
7472 rm -f conftest.s*
7474 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7475 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7477 # ac_d sets the value in "#define NAME VALUE" lines.
7478 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7479 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7480 ac_dC='\3'
7481 ac_dD='%g'
7482 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7483 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7484 ac_uB='\([ ]\)%\1#\2define\3'
7485 ac_uC=' '
7486 ac_uD='\4%g'
7487 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7488 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7489 ac_eB='$%\1#\2define\3'
7490 ac_eC=' '
7491 ac_eD='%g'
7493 if test "${CONFIG_HEADERS+set}" != set; then
7495 cat >> $CONFIG_STATUS <<EOF
7496 CONFIG_HEADERS="pyconfig.h"
7498 cat >> $CONFIG_STATUS <<\EOF
7500 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7502 case "$ac_file" in
7503 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7504 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7505 *) ac_file_in="${ac_file}.in" ;;
7506 esac
7508 echo creating $ac_file
7510 rm -f conftest.frag conftest.in conftest.out
7511 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7512 cat $ac_file_inputs > conftest.in
7516 # Transform confdefs.h into a sed script conftest.vals that substitutes
7517 # the proper values into config.h.in to produce config.h. And first:
7518 # Protect against being on the right side of a sed subst in config.status.
7519 # Protect against being in an unquoted here document in config.status.
7520 rm -f conftest.vals
7521 cat > conftest.hdr <<\EOF
7522 s/[\\&%]/\\&/g
7523 s%[\\$`]%\\&%g
7524 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7525 s%ac_d%ac_u%gp
7526 s%ac_u%ac_e%gp
7528 sed -n -f conftest.hdr confdefs.h > conftest.vals
7529 rm -f conftest.hdr
7531 # This sed command replaces #undef with comments. This is necessary, for
7532 # example, in the case of _POSIX_SOURCE, which is predefined and required
7533 # on some systems where configure will not decide to define it.
7534 cat >> conftest.vals <<\EOF
7535 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7538 # Break up conftest.vals because some shells have a limit on
7539 # the size of here documents, and old seds have small limits too.
7541 rm -f conftest.tail
7542 while :
7544 ac_lines=`grep -c . conftest.vals`
7545 # grep -c gives empty output for an empty file on some AIX systems.
7546 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7547 # Write a limited-size here document to conftest.frag.
7548 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7549 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7550 echo 'CEOF
7551 sed -f conftest.frag conftest.in > conftest.out
7552 rm -f conftest.in
7553 mv conftest.out conftest.in
7554 ' >> $CONFIG_STATUS
7555 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7556 rm -f conftest.vals
7557 mv conftest.tail conftest.vals
7558 done
7559 rm -f conftest.vals
7561 cat >> $CONFIG_STATUS <<\EOF
7562 rm -f conftest.frag conftest.h
7563 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7564 cat conftest.in >> conftest.h
7565 rm -f conftest.in
7566 if cmp -s $ac_file conftest.h 2>/dev/null; then
7567 echo "$ac_file is unchanged"
7568 rm -f conftest.h
7569 else
7570 # Remove last slash and all that follows it. Not all systems have dirname.
7571 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7572 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7573 # The file is in a subdirectory.
7574 test ! -d "$ac_dir" && mkdir "$ac_dir"
7576 rm -f $ac_file
7577 mv conftest.h $ac_file
7579 fi; done
7582 cat >> $CONFIG_STATUS <<EOF
7585 cat >> $CONFIG_STATUS <<\EOF
7587 exit 0
7589 chmod +x $CONFIG_STATUS
7590 rm -fr confdefs* $ac_clean_files
7591 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7594 echo "creating Setup"
7595 if test ! -f Modules/Setup
7596 then
7597 cp $srcdir/Modules/Setup.dist Modules/Setup
7600 echo "creating Setup.local"
7601 if test ! -f Modules/Setup.local
7602 then
7603 echo "# Edit this file for local setup changes" >Modules/Setup.local
7606 echo "creating Makefile"
7607 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
7608 -s Modules Modules/Setup.config \
7609 Modules/Setup.local Modules/Setup
7610 mv config.c Modules