Remove a ?? in the description of Mac OS support.
[python/dscho.git] / configure
blob02fb6107877063d3b16cdf0542c927266ba34583
1 #! /bin/sh
3 # From configure.in Revision: 1.164
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.14.1
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 --with-next-archs='arch1 arch2 ..' build MAB binary"
18 ac_help="$ac_help
19 --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework"
20 ac_help="$ac_help
21 --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker"
22 ac_help="$ac_help
23 --without-gcc never use gcc"
24 ac_help="$ac_help
25 --with-cxx=<compiler> enable C++ support"
26 ac_help="$ac_help
27 --with-suffix=.exe set executable suffix"
28 ac_help="$ac_help
29 --with-pydebug build with Py_DEBUG defined"
30 ac_help="$ac_help
31 --with-libs='lib1 ...' link against additional libs"
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 --with(out)-cycle-gc disable/enable garbage collection"
42 ac_help="$ac_help
43 --with(out)-libdb disable/enable bsddb module"
44 ac_help="$ac_help
45 --with-wctype-functions use wctype.h functions"
46 ac_help="$ac_help
47 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
48 ac_help="$ac_help
49 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
50 ac_help="$ac_help
51 --with-fpectl enable SIGFPE catching"
52 ac_help="$ac_help
53 --with-libm=STRING math library"
54 ac_help="$ac_help
55 --with-libc=STRING C library"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
60 build=NONE
61 cache_file=./config.cache
62 exec_prefix=NONE
63 host=NONE
64 no_create=
65 nonopt=NONE
66 no_recursion=
67 prefix=NONE
68 program_prefix=NONE
69 program_suffix=NONE
70 program_transform_name=s,x,x,
71 silent=
72 site=
73 srcdir=
74 target=NONE
75 verbose=
76 x_includes=NONE
77 x_libraries=NONE
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
91 # Initialize some other variables.
92 subdirs=
93 MFLAGS= MAKEFLAGS=
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
96 ac_max_here_lines=12
98 ac_prev=
99 for ac_option
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
105 ac_prev=
106 continue
109 case "$ac_option" in
110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 *) ac_optarg= ;;
112 esac
114 # Accept the important Cygnus configure options, so we can diagnose typos.
116 case "$ac_option" in
118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 ac_prev=bindir ;;
120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
121 bindir="$ac_optarg" ;;
123 -build | --build | --buil | --bui | --bu)
124 ac_prev=build ;;
125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
126 build="$ac_optarg" ;;
128 -cache-file | --cache-file | --cache-fil | --cache-fi \
129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
130 ac_prev=cache_file ;;
131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
133 cache_file="$ac_optarg" ;;
135 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 ac_prev=datadir ;;
137 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 | --da=*)
139 datadir="$ac_optarg" ;;
141 -disable-* | --disable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
150 -enable-* | --enable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 case "$ac_option" in
158 *=*) ;;
159 *) ac_optarg=yes ;;
160 esac
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
165 | --exec | --exe | --ex)
166 ac_prev=exec_prefix ;;
167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
169 | --exec=* | --exe=* | --ex=*)
170 exec_prefix="$ac_optarg" ;;
172 -gas | --gas | --ga | --g)
173 # Obsolete; use --with-gas.
174 with_gas=yes ;;
176 -help | --help | --hel | --he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
179 cat << EOF
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
182 Configuration:
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
190 [$ac_default_prefix]
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 [same as prefix]
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
197 [PREFIX/share]
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 [PREFIX/com]
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
213 cat << EOF
214 Host type:
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
229 exit 0 ;;
231 -host | --host | --hos | --ho)
232 ac_prev=host ;;
233 -host=* | --host=* | --hos=* | --ho=*)
234 host="$ac_optarg" ;;
236 -includedir | --includedir | --includedi | --included | --include \
237 | --includ | --inclu | --incl | --inc)
238 ac_prev=includedir ;;
239 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
240 | --includ=* | --inclu=* | --incl=* | --inc=*)
241 includedir="$ac_optarg" ;;
243 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 ac_prev=infodir ;;
245 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
246 infodir="$ac_optarg" ;;
248 -libdir | --libdir | --libdi | --libd)
249 ac_prev=libdir ;;
250 -libdir=* | --libdir=* | --libdi=* | --libd=*)
251 libdir="$ac_optarg" ;;
253 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
254 | --libexe | --libex | --libe)
255 ac_prev=libexecdir ;;
256 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
257 | --libexe=* | --libex=* | --libe=*)
258 libexecdir="$ac_optarg" ;;
260 -localstatedir | --localstatedir | --localstatedi | --localstated \
261 | --localstate | --localstat | --localsta | --localst \
262 | --locals | --local | --loca | --loc | --lo)
263 ac_prev=localstatedir ;;
264 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
265 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
266 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
267 localstatedir="$ac_optarg" ;;
269 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 ac_prev=mandir ;;
271 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
272 mandir="$ac_optarg" ;;
274 -nfp | --nfp | --nf)
275 # Obsolete; use --without-fp.
276 with_fp=no ;;
278 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
279 | --no-cr | --no-c)
280 no_create=yes ;;
282 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
283 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
284 no_recursion=yes ;;
286 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
287 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
288 | --oldin | --oldi | --old | --ol | --o)
289 ac_prev=oldincludedir ;;
290 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
291 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
292 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
293 oldincludedir="$ac_optarg" ;;
295 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 ac_prev=prefix ;;
297 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
298 prefix="$ac_optarg" ;;
300 -program-prefix | --program-prefix | --program-prefi | --program-pref \
301 | --program-pre | --program-pr | --program-p)
302 ac_prev=program_prefix ;;
303 -program-prefix=* | --program-prefix=* | --program-prefi=* \
304 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
305 program_prefix="$ac_optarg" ;;
307 -program-suffix | --program-suffix | --program-suffi | --program-suff \
308 | --program-suf | --program-su | --program-s)
309 ac_prev=program_suffix ;;
310 -program-suffix=* | --program-suffix=* | --program-suffi=* \
311 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
312 program_suffix="$ac_optarg" ;;
314 -program-transform-name | --program-transform-name \
315 | --program-transform-nam | --program-transform-na \
316 | --program-transform-n | --program-transform- \
317 | --program-transform | --program-transfor \
318 | --program-transfo | --program-transf \
319 | --program-trans | --program-tran \
320 | --progr-tra | --program-tr | --program-t)
321 ac_prev=program_transform_name ;;
322 -program-transform-name=* | --program-transform-name=* \
323 | --program-transform-nam=* | --program-transform-na=* \
324 | --program-transform-n=* | --program-transform-=* \
325 | --program-transform=* | --program-transfor=* \
326 | --program-transfo=* | --program-transf=* \
327 | --program-trans=* | --program-tran=* \
328 | --progr-tra=* | --program-tr=* | --program-t=*)
329 program_transform_name="$ac_optarg" ;;
331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
332 | -silent | --silent | --silen | --sile | --sil)
333 silent=yes ;;
335 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 ac_prev=sbindir ;;
337 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 | --sbi=* | --sb=*)
339 sbindir="$ac_optarg" ;;
341 -sharedstatedir | --sharedstatedir | --sharedstatedi \
342 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
343 | --sharedst | --shareds | --shared | --share | --shar \
344 | --sha | --sh)
345 ac_prev=sharedstatedir ;;
346 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
347 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
348 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 | --sha=* | --sh=*)
350 sharedstatedir="$ac_optarg" ;;
352 -site | --site | --sit)
353 ac_prev=site ;;
354 -site=* | --site=* | --sit=*)
355 site="$ac_optarg" ;;
357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 ac_prev=srcdir ;;
359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
360 srcdir="$ac_optarg" ;;
362 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
363 | --syscon | --sysco | --sysc | --sys | --sy)
364 ac_prev=sysconfdir ;;
365 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
366 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
367 sysconfdir="$ac_optarg" ;;
369 -target | --target | --targe | --targ | --tar | --ta | --t)
370 ac_prev=target ;;
371 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
372 target="$ac_optarg" ;;
374 -v | -verbose | --verbose | --verbos | --verbo | --verb)
375 verbose=yes ;;
377 -version | --version | --versio | --versi | --vers)
378 echo "configure generated by autoconf version 2.14.1"
379 exit 0 ;;
381 -with-* | --with-*)
382 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 case "$ac_option" in
389 *=*) ;;
390 *) ac_optarg=yes ;;
391 esac
392 eval "with_${ac_package}='$ac_optarg'" ;;
394 -without-* | --without-*)
395 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}=no" ;;
403 --x)
404 # Obsolete; use --with-x.
405 with_x=yes ;;
407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
408 | --x-incl | --x-inc | --x-in | --x-i)
409 ac_prev=x_includes ;;
410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
412 x_includes="$ac_optarg" ;;
414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
416 ac_prev=x_libraries ;;
417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
419 x_libraries="$ac_optarg" ;;
421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
426 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 if test "x$nonopt" != xNONE; then
429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 nonopt="$ac_option"
434 esac
435 done
437 if test -n "$ac_prev"; then
438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443 # File descriptor usage:
444 # 0 standard input
445 # 1 file creation
446 # 2 errors and warnings
447 # 3 some systems may open it to /dev/tty
448 # 4 used on the Kubota Titan
449 # 6 checking for... messages and results
450 # 5 compiler messages saved in config.log
451 if test "$silent" = yes; then
452 exec 6>/dev/null
453 else
454 exec 6>&1
456 exec 5>./config.log
458 echo "\
459 This file contains any messages produced by compilers while
460 running configure, to aid debugging if configure makes a mistake.
461 " 1>&5
463 # Strip out --no-create and --no-recursion so they do not pile up.
464 # Also quote any args containing shell metacharacters.
465 ac_configure_args=
466 for ac_arg
468 case "$ac_arg" in
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c) ;;
471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
474 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
475 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
476 esac
477 done
479 # NLS nuisances.
480 # Only set these to C if already set. These must not be set unconditionally
481 # because not all systems understand e.g. LANG=C (notably SCO).
482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
483 # Non-C LC_CTYPE values break the ctype check.
484 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
485 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
490 rm -rf conftest* confdefs.h
491 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 echo > confdefs.h
494 # A filename unique to this package, relative to the directory that
495 # configure is in, which we can look for to find out if srcdir is correct.
496 ac_unique_file=Include/object.h
498 # Find the source files, if location was not specified.
499 if test -z "$srcdir"; then
500 ac_srcdir_defaulted=yes
501 # Try the directory containing this script, then its parent.
502 ac_prog=$0
503 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 srcdir=$ac_confdir
506 if test ! -r $srcdir/$ac_unique_file; then
507 srcdir=..
509 else
510 ac_srcdir_defaulted=no
512 if test ! -r $srcdir/$ac_unique_file; then
513 if test "$ac_srcdir_defaulted" = yes; then
514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 else
516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521 # Prefer explicitly selected file to automatically selected ones.
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE; then
524 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 else
526 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 for ac_site_file in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
532 . "$ac_site_file"
534 done
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
538 test -f "$cache_file" && . $cache_file
539 else
540 echo "creating cache $cache_file"
541 > $cache_file
544 ac_ext=c
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp='$CPP $CPPFLAGS'
547 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling=$ac_cv_prog_cc_cross
551 ac_exeext=
552 ac_objext=o
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='
557 ' ac_t=' '
558 else
559 ac_n=-n ac_c= ac_t=
561 else
562 ac_n= ac_c='\c' ac_t=
568 # Set VERSION so we only need to edit in one place (i.e., here)
570 VERSION=2.0
572 # NEXTSTEP stuff
573 if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then
575 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
576 echo "configure:577: checking for --with-next-archs" >&5
577 # Check whether --with-next-archs or --without-next-archs was given.
578 if test "${with_next_archs+set}" = set; then
579 withval="$with_next_archs"
581 if test -n "$withval"; then
582 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
583 # GCC does not currently support multi archs on the NeXT
584 with_gcc=no
586 echo "$ac_t""$with_next_archs" 1>&6
588 else
589 echo "$ac_t""none: using `arch`" 1>&6
593 if test -z "$MACHDEP"
594 then
595 set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
596 sed -e 's/://' -e 's/\./_/'` && \
597 ac_sys_system=next && ac_sys_release=$4
599 MACHDEP="$ac_sys_system$ac_sys_release"
603 # Check whether --with-next-framework or --without-next-framework was given.
604 if test "${with_next_framework+set}" = set; then
605 withval="$with_next_framework"
609 # Check whether --with-dyld or --without-dyld was given.
610 if test "${with_dyld+set}" = set; then
611 withval="$with_dyld"
616 # Set name for machine-dependent library files
618 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
619 echo "configure:620: checking MACHDEP" >&5
620 if test -z "$MACHDEP"
621 then
622 ac_sys_system=`uname -s`
623 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
624 ac_sys_release=`uname -v`
625 else
626 ac_sys_release=`uname -r`
628 ac_md_system=`echo $ac_sys_system |
629 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
630 ac_md_release=`echo $ac_sys_release |
631 tr -d '/ ' | sed 's/\..*//'`
632 MACHDEP="$ac_md_system$ac_md_release"
634 case $MACHDEP in
635 '') MACHDEP="unknown";;
636 esac
640 # SGI compilers allow the specification of the both the ABI and the
641 # ISA on the command line. Depending on the values of these switches,
642 # different and often incompatable code will be generated.
644 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
645 # thus supply support for various ABI/ISA combinations. The MACHDEP
646 # variable is also adjusted.
649 if test ! -z "$SGI_ABI"
650 then
651 CC="cc $SGI_ABI"
652 LDFLAGS="$SGI_ABI $LDFLAGS"
653 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
655 echo "$ac_t""$MACHDEP" 1>&6
658 # CCC is the command that compiles C++ programs
660 # Not all make programs have this predefined.
662 #AC_SUBST(SET_CCC)
663 #AC_MSG_CHECKING(CCC)
664 #if test -z "$CCC"
665 #then
666 # case $ac_sys_system in
667 # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
668 # Linux*) SET_CCC="CCC= g++";;
669 # *) SET_CCC=""
670 # esac
671 #else
672 # SET_CCC="CCC= ${CCC}"
674 #AC_MSG_RESULT($SET_CCC)
677 # checks for alternative programs
678 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
679 echo "configure:680: checking for --without-gcc" >&5
680 # Check whether --with-gcc or --without-gcc was given.
681 if test "${with_gcc+set}" = set; then
682 withval="$with_gcc"
684 case $withval in
685 no) CC=cc
686 without_gcc=yes;;
687 yes) CC=gcc
688 without_gcc=no;;
689 *) CC=$withval
690 without_gcc=$withval;;
691 esac
692 else
694 case $ac_sys_system in
695 OSF1) CC=cc
696 without_gcc=;;
697 BeOS*)
698 # Dunno if it's a good idea to get this over with all at once, or
699 # to handle it in with the other goodies.
700 MACHDEP=beos
702 case $BE_HOST_CPU in
703 ppc)
704 CC="mwcc -I$PWD/BeOS -nodup"
705 without_gcc=yes
706 case `uname -r` in
707 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;;
708 *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;;
709 esac
710 CCSHARED=-UUSE_DL_EXPORT
711 LDFLAGS="$LDFLAGS -nodup"
713 AR="$PWD/BeOS/ar-fake"
714 RANLIB=:
716 cat >> confdefs.h <<\EOF
717 #define DL_EXPORT_HEADER "dl_export.h"
721 x86)
722 CC="gcc -I$PWD/BeOS"
723 without_gcc=no
724 OPT="-DUSE_DL_EXPORT -O"
725 CCSHARED=-UUSE_DL_EXPORT
727 AR="$PWD/BeOS/ar-fake"
728 RANLIB=:
730 cat >> confdefs.h <<\EOF
731 #define DL_EXPORT_HEADER "dl_export.h"
736 { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; }
738 esac
740 Monterey*)
741 RANLIB=:
742 without_gcc=;;
743 *) without_gcc=no;;
744 esac
747 echo "$ac_t""$without_gcc" 1>&6
751 MAINOBJ=python.o
752 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
753 echo "configure:754: checking for --with-cxx=<compiler>" >&5
754 # Check whether --with-cxx or --without-cxx was given.
755 if test "${with_cxx+set}" = set; then
756 withval="$with_cxx"
758 case $withval in
759 no) CXX=
760 with_cxx=no;;
761 *) CXX=$withval
762 MAINOBJ=ccpython.o
763 with_cxx=$withval;;
764 esac
765 else
767 with_cxx=no
771 echo "$ac_t""$with_cxx" 1>&6
772 SET_CXX="CXX=$CXX"
774 #AC_MSG_CHECKING(CCC)
775 #if test -z "$CCC"
776 #then
777 # case $ac_sys_system in
778 # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
779 # Linux*) SET_CCC="CCC= g++";;
780 # *) SET_CCC=""
781 # esac
782 #else
783 # SET_CCC="CCC= ${CCC}"
785 #AC_MSG_RESULT($SET_CCC)
787 # If the user switches compilers, we can't believe the cache
788 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
789 then
790 { echo "configure: error: cached CC is different -- throw away $cache_file
791 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
794 # Extract the first word of "gcc", so it can be a program name with args.
795 set dummy gcc; ac_word=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
800 else
801 if test -n "$CC"; then
802 ac_cv_prog_CC="$CC" # Let the user override the test.
803 else
804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
805 ac_dummy="$PATH"
806 for ac_dir in $ac_dummy; do
807 test -z "$ac_dir" && ac_dir=.
808 if test -f $ac_dir/$ac_word; then
809 ac_cv_prog_CC="gcc"
810 break
812 done
813 IFS="$ac_save_ifs"
816 CC="$ac_cv_prog_CC"
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
819 else
820 echo "$ac_t""no" 1>&6
823 if test -z "$CC"; then
824 # Extract the first word of "cc", so it can be a program name with args.
825 set dummy cc; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
833 else
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
835 ac_prog_rejected=no
836 ac_dummy="$PATH"
837 for ac_dir in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir=.
839 if test -f $ac_dir/$ac_word; then
840 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
841 ac_prog_rejected=yes
842 continue
844 ac_cv_prog_CC="cc"
845 break
847 done
848 IFS="$ac_save_ifs"
849 if test $ac_prog_rejected = yes; then
850 # We found a bogon in the path, so make sure we never use it.
851 set dummy $ac_cv_prog_CC
852 shift
853 if test $# -gt 0; then
854 # We chose a different compiler from the bogus one.
855 # However, it has the same basename, so the bogon will be chosen
856 # first if we set CC to just the basename; use the full file name.
857 shift
858 set dummy "$ac_dir/$ac_word" "$@"
859 shift
860 ac_cv_prog_CC="$@"
865 CC="$ac_cv_prog_CC"
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
868 else
869 echo "$ac_t""no" 1>&6
872 if test -z "$CC"; then
873 case "`uname -s`" in
874 *win32* | *WIN32* | *CYGWIN*)
875 # Extract the first word of "cl", so it can be a program name with args.
876 set dummy cl; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
884 else
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
886 ac_dummy="$PATH"
887 for ac_dir in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir=.
889 if test -f $ac_dir/$ac_word; then
890 ac_cv_prog_CC="cl"
891 break
893 done
894 IFS="$ac_save_ifs"
897 CC="$ac_cv_prog_CC"
898 if test -n "$CC"; then
899 echo "$ac_t""$CC" 1>&6
900 else
901 echo "$ac_t""no" 1>&6
904 esac
906 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
909 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
910 echo "configure:911: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
912 ac_ext=c
913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
914 ac_cpp='$CPP $CPPFLAGS'
915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
917 cross_compiling=$ac_cv_prog_cc_cross
919 cat > conftest.$ac_ext << EOF
921 #line 922 "configure"
922 #include "confdefs.h"
924 main(){return(0);}
926 if { (eval echo configure:927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
927 ac_cv_prog_cc_works=yes
928 # If we can't run a trivial program, we are probably using a cross compiler.
929 if (./conftest; exit) 2>/dev/null; then
930 ac_cv_prog_cc_cross=no
931 else
932 ac_cv_prog_cc_cross=yes
934 else
935 echo "configure: failed program was:" >&5
936 cat conftest.$ac_ext >&5
937 ac_cv_prog_cc_works=no
939 rm -fr conftest*
940 ac_ext=c
941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp='$CPP $CPPFLAGS'
943 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling=$ac_cv_prog_cc_cross
947 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
948 if test $ac_cv_prog_cc_works = no; then
949 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
953 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
954 cross_compiling=$ac_cv_prog_cc_cross
956 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
957 echo "configure:958: checking whether we are using GNU C" >&5
958 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960 else
961 cat > conftest.c <<EOF
962 #ifdef __GNUC__
963 yes;
964 #endif
966 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
967 ac_cv_prog_gcc=yes
968 else
969 ac_cv_prog_gcc=no
973 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
975 if test $ac_cv_prog_gcc = yes; then
976 GCC=yes
977 else
978 GCC=
981 ac_test_CFLAGS="${CFLAGS+set}"
982 ac_save_CFLAGS="$CFLAGS"
983 CFLAGS=
984 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
985 echo "configure:986: checking whether ${CC-cc} accepts -g" >&5
986 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 echo 'void f(){}' > conftest.c
990 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
991 ac_cv_prog_cc_g=yes
992 else
993 ac_cv_prog_cc_g=no
995 rm -f conftest*
999 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1000 if test "$ac_test_CFLAGS" = set; then
1001 CFLAGS="$ac_save_CFLAGS"
1002 elif test $ac_cv_prog_cc_g = yes; then
1003 if test "$GCC" = yes; then
1004 CFLAGS="-g -O2"
1005 else
1006 CFLAGS="-g"
1008 else
1009 if test "$GCC" = yes; then
1010 CFLAGS="-O2"
1011 else
1012 CFLAGS=
1017 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1018 echo "configure:1019: checking for --with-suffix" >&5
1019 # Check whether --with-suffix or --without-suffix was given.
1020 if test "${with_suffix+set}" = set; then
1021 withval="$with_suffix"
1023 case $withval in
1024 no) EXE=;;
1025 yes) EXE=.exe;;
1026 *) EXE=$withval;;
1027 esac
1030 echo "$ac_t""$EXE" 1>&6
1032 case $MACHDEP in
1033 bsdos*)
1034 case $CC in
1035 gcc) CC="$CC -D_HAVE_BSDI";;
1036 esac;;
1037 esac
1039 case $ac_sys_system in
1040 hp*|HP*)
1041 case $CC in
1042 cc|*/cc) CC="$CC -Ae";;
1043 esac;;
1044 BeOS*)
1045 case $CC in
1046 cc) CC=cc;;
1047 esac;;
1048 Monterey*)
1049 case $CC in
1050 cc) CC="$CC -Wl,-Bexport";;
1051 esac;;
1052 esac
1054 # LDLIBRARY is the name of the library to link against (as opposed to the
1055 # name of the library into which to insert object files). On systems
1056 # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
1057 # the Makefiles).
1060 LDLIBRARY=''
1062 # LINKCC is the command that links the python executable -- default is $(CC).
1063 # This is altered for AIX and BeOS in order to build the export list before
1064 # linking.
1066 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1067 echo "configure:1068: checking LINKCC" >&5
1068 if test -z "$LINKCC" -a ! -z "$CXX"
1069 then
1070 LINKCC="$CXX"
1072 if test -z "$LINKCC"
1073 then
1074 case $ac_sys_system in
1075 AIX*)
1076 LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1077 BeOS*)
1078 LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)"
1079 LDLIBRARY='libpython$(VERSION).so';;
1080 dgux*)
1081 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1082 Monterey64*)
1083 LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1084 *) LINKCC="\$(PURIFY) \$(CC)";;
1085 esac
1087 echo "$ac_t""$LINKCC" 1>&6
1089 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1090 echo "configure:1091: checking LDLIBRARY" >&5
1092 # NeXT framework builds require that the 'ar' library be converted into
1093 # a bundle using libtool.
1094 if test "$with_next_framework"
1095 then
1096 LDLIBRARY='libpython$(VERSION).dylib'
1099 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1100 if test "$MACHDEP" = "dguxR4"
1101 then
1102 LDLIBRARY='libpython$(VERSION).so'
1103 OPT="$OPT -pic"
1105 echo "$ac_t""$LDLIBRARY" 1>&6
1107 # If LDLIBRARY is different from LIBRARY, emit a rule to build it.
1108 if test -z "$LDLIBRARY"
1109 then
1110 LDLIBRARY='libpython$(VERSION).a'
1111 MAKE_LDLIBRARY="true"
1112 else
1113 MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)'
1116 # Extract the first word of "ranlib", so it can be a program name with args.
1117 set dummy ranlib; ac_word=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1122 else
1123 if test -n "$RANLIB"; then
1124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1125 else
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 ac_dummy="$PATH"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1131 ac_cv_prog_RANLIB="ranlib"
1132 break
1134 done
1135 IFS="$ac_save_ifs"
1136 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1139 RANLIB="$ac_cv_prog_RANLIB"
1140 if test -n "$RANLIB"; then
1141 echo "$ac_t""$RANLIB" 1>&6
1142 else
1143 echo "$ac_t""no" 1>&6
1147 for ac_prog in ar aal
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1155 else
1156 if test -n "$AR"; then
1157 ac_cv_prog_AR="$AR" # Let the user override the test.
1158 else
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1160 ac_dummy="$PATH"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AR="$ac_prog"
1165 break
1167 done
1168 IFS="$ac_save_ifs"
1171 AR="$ac_cv_prog_AR"
1172 if test -n "$AR"; then
1173 echo "$ac_t""$AR" 1>&6
1174 else
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AR" && break
1179 done
1180 test -n "$AR" || AR="ar"
1185 # Install just never works :-(
1186 if test -z "$INSTALL"
1187 then
1188 INSTALL=cp
1189 INSTALL_PROGRAM=cp
1190 INSTALL_DATA=cp
1191 else
1192 INSTALL_PROGRAM="$INSTALL"
1193 INSTALL_DATA="$INSTALL -m 644"
1196 # Not every filesystem supports hard links
1198 if test -z "$LN" ; then
1199 case $ac_sys_system in
1200 BeOS*) LN="ln -s";;
1201 *) LN=ln;;
1202 esac
1205 # Optimizer/debugger flags passed between Makefiles
1207 if test -z "$OPT"
1208 then
1209 case $GCC in
1210 yes)
1211 case $ac_cv_prog_cc_g in
1212 yes) OPT="-g -O2";;
1213 *) OPT="-O2";;
1214 esac
1216 *) OPT="-O";;
1217 esac
1220 # The current (beta) Monterey compiler dies with optimizations
1221 case $ac_sys_system in
1222 Monterey*) OPT="";;
1223 esac
1225 if test "$ac_arch_flags"
1226 then
1227 OPT="$OPT $ac_arch_flags"
1229 # checks for UNIX variants that set C preprocessor variables
1230 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1231 echo "configure:1232: checking how to run the C preprocessor" >&5
1232 # On Suns, sometimes $CPP names a directory.
1233 if test -n "$CPP" && test -d "$CPP"; then
1234 CPP=
1236 if test -z "$CPP"; then
1237 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1239 else
1240 # This must be in double quotes, not single quotes, because CPP may get
1241 # substituted into the Makefile and "${CC-cc}" will confuse make.
1242 CPP="${CC-cc} -E"
1243 # On the NeXT, cc -E runs the code through the compiler's parser,
1244 # not just through cpp.
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1248 #include <assert.h>
1249 Syntax Error
1251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1256 else
1257 echo "$ac_err" >&5
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1260 rm -rf conftest*
1261 CPP="${CC-cc} -E -traditional-cpp"
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <assert.h>
1266 Syntax Error
1268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1273 else
1274 echo "$ac_err" >&5
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -rf conftest*
1278 CPP="${CC-cc} -nologo -E"
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #include <assert.h>
1283 Syntax Error
1285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286 { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288 if test -z "$ac_err"; then
1290 else
1291 echo "$ac_err" >&5
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1294 rm -rf conftest*
1295 CPP=/lib/cpp
1297 rm -f conftest*
1299 rm -f conftest*
1301 rm -f conftest*
1302 ac_cv_prog_CPP="$CPP"
1304 CPP="$ac_cv_prog_CPP"
1305 else
1306 ac_cv_prog_CPP="$CPP"
1308 echo "$ac_t""$CPP" 1>&6
1310 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1311 echo "configure:1312: checking for AIX" >&5
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1315 #ifdef _AIX
1317 #endif
1320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1321 egrep "yes" >/dev/null 2>&1; then
1322 rm -rf conftest*
1323 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1324 #define _ALL_SOURCE 1
1327 else
1328 rm -rf conftest*
1329 echo "$ac_t""no" 1>&6
1331 rm -f conftest*
1334 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1335 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1336 echo "configure:1337: checking for minix/config.h" >&5
1337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1339 else
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <minix/config.h>
1345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348 if test -z "$ac_err"; then
1349 rm -rf conftest*
1350 eval "ac_cv_header_$ac_safe=yes"
1351 else
1352 echo "$ac_err" >&5
1353 echo "configure: failed program was:" >&5
1354 cat conftest.$ac_ext >&5
1355 rm -rf conftest*
1356 eval "ac_cv_header_$ac_safe=no"
1358 rm -f conftest*
1360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1362 MINIX=yes
1363 else
1364 echo "$ac_t""no" 1>&6
1365 MINIX=
1368 if test "$MINIX" = yes; then
1369 cat >> confdefs.h <<\EOF
1370 #define _POSIX_SOURCE 1
1373 cat >> confdefs.h <<\EOF
1374 #define _POSIX_1_SOURCE 2
1377 cat >> confdefs.h <<\EOF
1378 #define _MINIX 1
1384 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether $CC accepts -OPT:Olimit=0" >&5
1386 if eval "test \"\${ac_cv_opt_olimit_ok+set}\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 ac_save_cc="$CC"
1390 CC="$CC -OPT:Olimit=0"
1391 if test "$cross_compiling" = yes; then
1392 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1393 else
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 int main() { return 0; }
1399 if { (eval echo configure:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1400 then
1401 ac_cv_opt_olimit_ok=yes
1402 else
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1405 rm -fr conftest*
1406 ac_cv_opt_olimit_ok=no
1408 rm -fr conftest*
1411 CC="$ac_save_cc"
1414 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1415 if test $ac_cv_opt_olimit_ok = yes; then
1416 OPT="$OPT -OPT:Olimit=0"
1417 else
1418 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1419 echo "configure:1420: checking whether $CC accepts -Olimit 1500" >&5
1420 if eval "test \"\${ac_cv_olimit_ok+set}\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422 else
1423 ac_save_cc="$CC"
1424 CC="$CC -Olimit 1500"
1425 if test "$cross_compiling" = yes; then
1426 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1427 else
1428 cat > conftest.$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 int main() { return 0; }
1433 if { (eval echo configure:1434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1434 then
1435 ac_cv_olimit_ok=yes
1436 else
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1439 rm -fr conftest*
1440 ac_cv_olimit_ok=no
1442 rm -fr conftest*
1445 CC="$ac_save_cc"
1448 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1449 if test $ac_cv_olimit_ok = yes; then
1450 OPT="$OPT -Olimit 1500"
1455 # checks for header files
1456 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1457 echo "configure:1458: checking for ANSI C header files" >&5
1458 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460 else
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1464 #include <stdlib.h>
1465 #include <stdarg.h>
1466 #include <string.h>
1467 #include <float.h>
1469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1472 if test -z "$ac_err"; then
1473 rm -rf conftest*
1474 ac_cv_header_stdc=yes
1475 else
1476 echo "$ac_err" >&5
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1479 rm -rf conftest*
1480 ac_cv_header_stdc=no
1482 rm -f conftest*
1484 if test $ac_cv_header_stdc = yes; then
1485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1489 #include <string.h>
1491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1492 egrep "memchr" >/dev/null 2>&1; then
1494 else
1495 rm -rf conftest*
1496 ac_cv_header_stdc=no
1498 rm -f conftest*
1502 if test $ac_cv_header_stdc = yes; then
1503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1507 #include <stdlib.h>
1509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1510 egrep "free" >/dev/null 2>&1; then
1512 else
1513 rm -rf conftest*
1514 ac_cv_header_stdc=no
1516 rm -f conftest*
1520 if test $ac_cv_header_stdc = yes; then
1521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1522 if test "$cross_compiling" = yes; then
1524 else
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1528 #include <ctype.h>
1529 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1530 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1532 int main () { int i; for (i = 0; i < 256; i++)
1533 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1534 exit (0); }
1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1538 then
1540 else
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1543 rm -fr conftest*
1544 ac_cv_header_stdc=no
1546 rm -fr conftest*
1552 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1553 if test $ac_cv_header_stdc = yes; then
1554 cat >> confdefs.h <<\EOF
1555 #define STDC_HEADERS 1
1560 for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
1561 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
1562 sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \
1563 sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
1564 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
1565 ndbm.h db1/ndbm.h gdbm/ndbm.h
1567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_hdr" >&5
1570 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1576 #include <$ac_hdr>
1578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581 if test -z "$ac_err"; then
1582 rm -rf conftest*
1583 eval "ac_cv_header_$ac_safe=yes"
1584 else
1585 echo "$ac_err" >&5
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 rm -rf conftest*
1589 eval "ac_cv_header_$ac_safe=no"
1591 rm -f conftest*
1593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1596 cat >> confdefs.h <<EOF
1597 #define $ac_tr_hdr 1
1600 else
1601 echo "$ac_t""no" 1>&6
1603 done
1605 ac_header_dirent=no
1606 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1609 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_hdr that defines DIR" >&5
1611 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614 cat > conftest.$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <sys/types.h>
1618 #include <$ac_hdr>
1619 int main() {
1620 DIR *dirp = 0;
1621 ; return 0; }
1623 if { (eval echo configure:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1624 rm -rf conftest*
1625 eval "ac_cv_header_dirent_$ac_safe=yes"
1626 else
1627 echo "configure: failed program was:" >&5
1628 cat conftest.$ac_ext >&5
1629 rm -rf conftest*
1630 eval "ac_cv_header_dirent_$ac_safe=no"
1632 rm -f conftest*
1634 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1637 cat >> confdefs.h <<EOF
1638 #define $ac_tr_hdr 1
1640 ac_header_dirent=$ac_hdr; break
1641 else
1642 echo "$ac_t""no" 1>&6
1644 done
1645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1646 if test $ac_header_dirent = dirent.h; then
1647 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1648 echo "configure:1649: checking for opendir in -ldir" >&5
1649 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653 ac_save_LIBS="$LIBS"
1654 LIBS="-ldir $LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1661 char opendir();
1663 int main() {
1664 opendir()
1665 ; return 0; }
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668 rm -rf conftest*
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1670 else
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 rm -rf conftest*
1674 eval "ac_cv_lib_$ac_lib_var=no"
1676 rm -f conftest*
1677 LIBS="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 LIBS="$LIBS -ldir"
1683 else
1684 echo "$ac_t""no" 1>&6
1687 else
1688 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1689 echo "configure:1690: checking for opendir in -lx" >&5
1690 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694 ac_save_LIBS="$LIBS"
1695 LIBS="-lx $LIBS"
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 /* Override any gcc2 internal prototype to avoid an error. */
1700 /* We use char because int might match the return type of a gcc2
1701 builtin and then its argument prototype would still apply. */
1702 char opendir();
1704 int main() {
1705 opendir()
1706 ; return 0; }
1708 if { (eval echo configure:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1709 rm -rf conftest*
1710 eval "ac_cv_lib_$ac_lib_var=yes"
1711 else
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 rm -rf conftest*
1715 eval "ac_cv_lib_$ac_lib_var=no"
1717 rm -f conftest*
1718 LIBS="$ac_save_LIBS"
1721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1723 LIBS="$LIBS -lx"
1724 else
1725 echo "$ac_t""no" 1>&6
1731 # checks for typedefs
1732 was_it_defined=no
1733 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
1734 echo "configure:1735: checking for clock_t in time.h" >&5
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 #include <time.h>
1740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1741 egrep "clock_t" >/dev/null 2>&1; then
1742 rm -rf conftest*
1743 was_it_defined=yes
1744 else
1745 rm -rf conftest*
1746 cat >> confdefs.h <<\EOF
1747 #define clock_t long
1751 rm -f conftest*
1753 echo "$ac_t""$was_it_defined" 1>&6
1755 # Add some code to confdefs.h so that the test for off_t works on SCO
1756 cat >> confdefs.h <<\EOF
1757 #if defined(SCO_DS)
1758 #undef _OFF_T
1759 #endif
1762 # Type availability checks
1763 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1764 echo "configure:1765: checking for mode_t" >&5
1765 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767 else
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 #include <sys/types.h>
1772 #if STDC_HEADERS
1773 #include <stdlib.h>
1774 #include <stddef.h>
1775 #endif
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1779 rm -rf conftest*
1780 eval "ac_cv_type_mode_t=yes"
1781 else
1782 rm -rf conftest*
1783 eval "ac_cv_type_mode_t=no"
1785 rm -f conftest*
1788 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1792 cat >> confdefs.h <<EOF
1793 #define mode_t int
1798 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1799 echo "configure:1800: checking for off_t" >&5
1800 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 #include <sys/types.h>
1807 #if STDC_HEADERS
1808 #include <stdlib.h>
1809 #include <stddef.h>
1810 #endif
1812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1813 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1814 rm -rf conftest*
1815 eval "ac_cv_type_off_t=yes"
1816 else
1817 rm -rf conftest*
1818 eval "ac_cv_type_off_t=no"
1820 rm -f conftest*
1823 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1825 else
1826 echo "$ac_t""no" 1>&6
1827 cat >> confdefs.h <<EOF
1828 #define off_t long
1833 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1834 echo "configure:1835: checking for pid_t" >&5
1835 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 #include <sys/types.h>
1842 #if STDC_HEADERS
1843 #include <stdlib.h>
1844 #include <stddef.h>
1845 #endif
1847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1848 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1849 rm -rf conftest*
1850 eval "ac_cv_type_pid_t=yes"
1851 else
1852 rm -rf conftest*
1853 eval "ac_cv_type_pid_t=no"
1855 rm -f conftest*
1858 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1860 else
1861 echo "$ac_t""no" 1>&6
1862 cat >> confdefs.h <<EOF
1863 #define pid_t int
1868 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1869 echo "configure:1870: checking return type of signal handlers" >&5
1870 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1872 else
1873 cat > conftest.$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 #include <sys/types.h>
1877 #include <signal.h>
1878 #ifdef signal
1879 #undef signal
1880 #endif
1881 #ifdef __cplusplus
1882 extern "C" void (*signal (int, void (*)(int)))(int);
1883 #else
1884 void (*signal ()) ();
1885 #endif
1887 int main() {
1888 int i;
1889 ; return 0; }
1891 if { (eval echo configure:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1892 rm -rf conftest*
1893 ac_cv_type_signal=void
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 ac_cv_type_signal=int
1900 rm -f conftest*
1903 echo "$ac_t""$ac_cv_type_signal" 1>&6
1904 cat >> confdefs.h <<EOF
1905 #define RETSIGTYPE $ac_cv_type_signal
1909 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1910 echo "configure:1911: checking for size_t" >&5
1911 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 #if STDC_HEADERS
1919 #include <stdlib.h>
1920 #include <stddef.h>
1921 #endif
1923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1925 rm -rf conftest*
1926 eval "ac_cv_type_size_t=yes"
1927 else
1928 rm -rf conftest*
1929 eval "ac_cv_type_size_t=no"
1931 rm -f conftest*
1934 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1938 cat >> confdefs.h <<EOF
1939 #define size_t unsigned
1944 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1945 echo "configure:1946: checking for uid_t in sys/types.h" >&5
1946 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1948 else
1949 cat > conftest.$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include <sys/types.h>
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "uid_t" >/dev/null 2>&1; then
1956 rm -rf conftest*
1957 ac_cv_type_uid_t=yes
1958 else
1959 rm -rf conftest*
1960 ac_cv_type_uid_t=no
1962 rm -f conftest*
1966 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1967 if test $ac_cv_type_uid_t = no; then
1968 cat >> confdefs.h <<\EOF
1969 #define uid_t int
1972 cat >> confdefs.h <<\EOF
1973 #define gid_t int
1979 # Sizes of various common basic types
1980 echo $ac_n "checking size of int""... $ac_c" 1>&6
1981 echo "configure:1982: checking size of int" >&5
1982 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1984 else
1985 if test "$cross_compiling" = yes; then
1986 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1987 else
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <stdio.h>
1992 main()
1994 FILE *f=fopen("conftestval", "w");
1995 if (!f) exit(1);
1996 fprintf(f, "%d\n", sizeof(int));
1997 exit(0);
2000 if { (eval echo configure:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2001 then
2002 ac_cv_sizeof_int=`cat conftestval`
2003 else
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -fr conftest*
2007 ac_cv_sizeof_int=0
2009 rm -fr conftest*
2013 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2014 cat >> confdefs.h <<EOF
2015 #define SIZEOF_INT $ac_cv_sizeof_int
2019 echo $ac_n "checking size of long""... $ac_c" 1>&6
2020 echo "configure:2021: checking size of long" >&5
2021 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2023 else
2024 if test "$cross_compiling" = yes; then
2025 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <stdio.h>
2031 main()
2033 FILE *f=fopen("conftestval", "w");
2034 if (!f) exit(1);
2035 fprintf(f, "%d\n", sizeof(long));
2036 exit(0);
2039 if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2040 then
2041 ac_cv_sizeof_long=`cat conftestval`
2042 else
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2045 rm -fr conftest*
2046 ac_cv_sizeof_long=0
2048 rm -fr conftest*
2052 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2053 cat >> confdefs.h <<EOF
2054 #define SIZEOF_LONG $ac_cv_sizeof_long
2058 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2059 echo "configure:2060: checking size of void *" >&5
2060 if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 if test "$cross_compiling" = yes; then
2064 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2065 else
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <stdio.h>
2070 main()
2072 FILE *f=fopen("conftestval", "w");
2073 if (!f) exit(1);
2074 fprintf(f, "%d\n", sizeof(void *));
2075 exit(0);
2078 if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2079 then
2080 ac_cv_sizeof_void_p=`cat conftestval`
2081 else
2082 echo "configure: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 rm -fr conftest*
2085 ac_cv_sizeof_void_p=0
2087 rm -fr conftest*
2091 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2092 cat >> confdefs.h <<EOF
2093 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2097 echo $ac_n "checking size of char""... $ac_c" 1>&6
2098 echo "configure:2099: checking size of char" >&5
2099 if eval "test \"\${ac_cv_sizeof_char+set}\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2101 else
2102 if test "$cross_compiling" = yes; then
2103 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <stdio.h>
2109 main()
2111 FILE *f=fopen("conftestval", "w");
2112 if (!f) exit(1);
2113 fprintf(f, "%d\n", sizeof(char));
2114 exit(0);
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2118 then
2119 ac_cv_sizeof_char=`cat conftestval`
2120 else
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -fr conftest*
2124 ac_cv_sizeof_char=0
2126 rm -fr conftest*
2130 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2131 cat >> confdefs.h <<EOF
2132 #define SIZEOF_CHAR $ac_cv_sizeof_char
2136 echo $ac_n "checking size of short""... $ac_c" 1>&6
2137 echo "configure:2138: checking size of short" >&5
2138 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2140 else
2141 if test "$cross_compiling" = yes; then
2142 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2143 else
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <stdio.h>
2148 main()
2150 FILE *f=fopen("conftestval", "w");
2151 if (!f) exit(1);
2152 fprintf(f, "%d\n", sizeof(short));
2153 exit(0);
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2157 then
2158 ac_cv_sizeof_short=`cat conftestval`
2159 else
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -fr conftest*
2163 ac_cv_sizeof_short=0
2165 rm -fr conftest*
2169 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2170 cat >> confdefs.h <<EOF
2171 #define SIZEOF_SHORT $ac_cv_sizeof_short
2175 echo $ac_n "checking size of float""... $ac_c" 1>&6
2176 echo "configure:2177: checking size of float" >&5
2177 if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 if test "$cross_compiling" = yes; then
2181 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2182 else
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186 #include <stdio.h>
2187 main()
2189 FILE *f=fopen("conftestval", "w");
2190 if (!f) exit(1);
2191 fprintf(f, "%d\n", sizeof(float));
2192 exit(0);
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2196 then
2197 ac_cv_sizeof_float=`cat conftestval`
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -fr conftest*
2202 ac_cv_sizeof_float=0
2204 rm -fr conftest*
2208 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2209 cat >> confdefs.h <<EOF
2210 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2214 echo $ac_n "checking size of double""... $ac_c" 1>&6
2215 echo "configure:2216: checking size of double" >&5
2216 if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2218 else
2219 if test "$cross_compiling" = yes; then
2220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2221 else
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 #include <stdio.h>
2226 main()
2228 FILE *f=fopen("conftestval", "w");
2229 if (!f) exit(1);
2230 fprintf(f, "%d\n", sizeof(double));
2231 exit(0);
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2235 then
2236 ac_cv_sizeof_double=`cat conftestval`
2237 else
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -fr conftest*
2241 ac_cv_sizeof_double=0
2243 rm -fr conftest*
2247 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2248 cat >> confdefs.h <<EOF
2249 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2253 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2254 echo "configure:2255: checking size of fpos_t" >&5
2255 if eval "test \"\${ac_cv_sizeof_fpos_t+set}\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257 else
2258 if test "$cross_compiling" = yes; then
2259 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <stdio.h>
2265 main()
2267 FILE *f=fopen("conftestval", "w");
2268 if (!f) exit(1);
2269 fprintf(f, "%d\n", sizeof(fpos_t));
2270 exit(0);
2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2274 then
2275 ac_cv_sizeof_fpos_t=`cat conftestval`
2276 else
2277 echo "configure: failed program was:" >&5
2278 cat conftest.$ac_ext >&5
2279 rm -fr conftest*
2280 ac_cv_sizeof_fpos_t=0
2282 rm -fr conftest*
2286 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2287 cat >> confdefs.h <<EOF
2288 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2293 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2294 echo "configure:2295: checking for long long support" >&5
2295 have_long_long=no
2296 cat > conftest.$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2300 int main() {
2301 long long x; x = (long long)0;
2302 ; return 0; }
2304 if { (eval echo configure:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 rm -rf conftest*
2306 cat >> confdefs.h <<\EOF
2307 #define HAVE_LONG_LONG 1
2309 have_long_long=yes
2310 else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 rm -f conftest*
2315 echo "$ac_t""$have_long_long" 1>&6
2316 if test "$have_long_long" = yes ; then
2317 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2318 echo "configure:2319: checking size of long long" >&5
2319 if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322 if test "$cross_compiling" = yes; then
2323 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2324 else
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 #include <stdio.h>
2329 main()
2331 FILE *f=fopen("conftestval", "w");
2332 if (!f) exit(1);
2333 fprintf(f, "%d\n", sizeof(long long));
2334 exit(0);
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2338 then
2339 ac_cv_sizeof_long_long=`cat conftestval`
2340 else
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2343 rm -fr conftest*
2344 ac_cv_sizeof_long_long=0
2346 rm -fr conftest*
2350 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2351 cat >> confdefs.h <<EOF
2352 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2358 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2359 echo "configure:2360: checking for uintptr_t support" >&5
2360 have_uintptr_t=no
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2365 int main() {
2366 uintptr_t x; x = (uintptr_t)0;
2367 ; return 0; }
2369 if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 rm -rf conftest*
2371 cat >> confdefs.h <<\EOF
2372 #define HAVE_UINTPTR_T 1
2374 have_uintptr_t=yes
2375 else
2376 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5
2379 rm -f conftest*
2380 echo "$ac_t""$have_uintptr_t" 1>&6
2381 if test "$have_uintptr_t" = yes ; then
2382 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2383 echo "configure:2384: checking size of uintptr_t" >&5
2384 if eval "test \"\${ac_cv_sizeof_uintptr_t+set}\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386 else
2387 if test "$cross_compiling" = yes; then
2388 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2389 else
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <stdio.h>
2394 main()
2396 FILE *f=fopen("conftestval", "w");
2397 if (!f) exit(1);
2398 fprintf(f, "%d\n", sizeof(uintptr_t));
2399 exit(0);
2402 if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2403 then
2404 ac_cv_sizeof_uintptr_t=`cat conftestval`
2405 else
2406 echo "configure: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 rm -fr conftest*
2409 ac_cv_sizeof_uintptr_t=0
2411 rm -fr conftest*
2415 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2416 cat >> confdefs.h <<EOF
2417 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2423 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2424 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2425 echo "configure:2426: checking size of off_t" >&5
2426 if eval "test \"\${ac_cv_sizeof_off_t+set}\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2428 else
2429 if test "$cross_compiling" = yes; then
2430 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2431 else
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <stdio.h>
2436 #include <sys/types.h>
2437 main()
2439 FILE *f=fopen("conftestval", "w");
2440 if (!f) exit(1);
2441 fprintf(f, "%d\n", sizeof(off_t));
2442 exit(0);
2445 if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2446 then
2447 ac_cv_sizeof_off_t=`cat conftestval`
2448 else
2449 echo "configure: failed program was:" >&5
2450 cat conftest.$ac_ext >&5
2451 rm -fr conftest*
2452 ac_cv_sizeof_off_t=0
2454 rm -fr conftest*
2460 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2461 cat >> confdefs.h <<EOF
2462 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2466 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2467 echo "configure:2468: checking whether to enable large file support" >&5
2468 if test "$have_long_long" = yes -a \
2469 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2470 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2471 cat >> confdefs.h <<\EOF
2472 #define HAVE_LARGEFILE_SUPPORT 1
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2480 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2481 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2482 echo "configure:2483: checking size of time_t" >&5
2483 if eval "test \"\${ac_cv_sizeof_time_t+set}\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486 if test "$cross_compiling" = yes; then
2487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2488 else
2489 cat > conftest.$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2492 #include <stdio.h>
2493 #include <time.h>
2494 main()
2496 FILE *f=fopen("conftestval", "w");
2497 if (!f) exit(1);
2498 fprintf(f, "%d\n", sizeof(time_t));
2499 exit(0);
2502 if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2503 then
2504 ac_cv_sizeof_time_t=`cat conftestval`
2505 else
2506 echo "configure: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 rm -fr conftest*
2509 ac_cv_sizeof_time_t=0
2511 rm -fr conftest*
2517 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2518 cat >> confdefs.h <<EOF
2519 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2524 # if have pthread_t then define SIZEOF_PTHREAD_T
2525 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2526 echo "configure:2527: checking for pthread_t" >&5
2527 have_pthread_t=no
2528 cat > conftest.$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <pthread.h>
2532 int main() {
2533 pthread_t x; x = *(pthread_t*)0;
2534 ; return 0; }
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 rm -rf conftest*
2538 have_pthread_t=yes
2539 else
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2543 rm -f conftest*
2544 echo "$ac_t""$have_pthread_t" 1>&6
2545 if test "$have_pthread_t" = yes ; then
2546 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2547 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2548 echo "configure:2549: checking size of pthread_t" >&5
2549 if eval "test \"\${ac_cv_sizeof_pthread_t+set}\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 if test "$cross_compiling" = yes; then
2553 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2554 else
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 #include <stdio.h>
2559 #include <pthread.h>
2560 main()
2562 FILE *f=fopen("conftestval", "w");
2563 if (!f) exit(1);
2564 fprintf(f, "%d\n", sizeof(pthread_t));
2565 exit(0);
2568 if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2569 then
2570 ac_cv_sizeof_pthread_t=`cat conftestval`
2571 else
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2574 rm -fr conftest*
2575 ac_cv_sizeof_pthread_t=0
2577 rm -fr conftest*
2583 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2584 cat >> confdefs.h <<EOF
2585 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2591 # Minor variations in building a framework between NextStep versions 4 and 5
2593 case $ac_sys_system/$ac_sys_release in
2594 next/4*)
2595 ns_undef_sym='__environ'
2596 LIBTOOL_CRUFT="-U $ns_undef_sym" ;;
2597 next/5*)
2598 ns_undef_sym='_environ'
2599 LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;;
2600 esac
2602 echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
2603 echo "configure:2604: checking for --with-next-framework" >&5
2604 if test "$with_next_framework"
2605 then
2606 OPT="$OPT -fno-common"
2607 # -U __environ is needed since bundles don't have access
2608 # to crt0 when built but will always be linked against it
2609 LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym"
2610 cat >> confdefs.h <<\EOF
2611 #define WITH_NEXT_FRAMEWORK 1
2614 echo "$ac_t""yes" 1>&6
2615 else
2616 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
2620 echo "configure:2621: checking for --with-dyld" >&5
2621 if test "$with_next_framework" -o "$with_dyld"
2622 then
2623 if test "$with_dyld"
2624 then
2625 echo "$ac_t""yes" 1>&6
2626 else
2627 echo "$ac_t""required for framework build" 1>&6
2629 cat >> confdefs.h <<\EOF
2630 #define WITH_DYLD 1
2633 ns_dyld='set'
2634 else
2635 echo "$ac_t""no" 1>&6
2638 # Set info about shared libraries.
2643 # SO is the extension of shared libraries `(including the dot!)
2644 # -- usually .so, .sl on HP-UX
2645 echo $ac_n "checking SO""... $ac_c" 1>&6
2646 echo "configure:2647: checking SO" >&5
2647 if test -z "$SO"
2648 then
2649 case $ac_sys_system in
2650 hp*|HP*) SO=.sl;;
2651 *) SO=.so;;
2652 esac
2654 echo "$ac_t""$SO" 1>&6
2655 # LDSHARED is the ld *command* used to create shared library
2656 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
2657 # (Shared libraries in this instance are shared modules to be loaded into
2658 # Python, as opposed to building Python itself as a shared library.)
2659 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
2660 echo "configure:2661: checking LDSHARED" >&5
2661 if test -z "$LDSHARED"
2662 then
2663 case $ac_sys_system/$ac_sys_release in
2664 AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";;
2665 BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";;
2666 IRIX/5*) LDSHARED="ld -shared";;
2667 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
2668 SunOS/4*) LDSHARED="ld";;
2669 SunOS/5*)
2670 if test "$GCC" = "yes"
2671 then LDSHARED='$(CC) -G'
2672 else LDSHARED="ld -G";
2673 fi ;;
2674 hp*|HP*) LDSHARED="ld -b";;
2675 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
2676 DYNIX/ptx*) LDSHARED="ld -G";;
2677 next/*)
2678 if test "$ns_dyld"
2679 then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
2680 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
2682 if test "$with_next_framework" ; then
2683 LDSHARED="$LDSHARED \$(LDLIBRARY)"
2684 fi ;;
2685 Linux*) LDSHARED="gcc -shared";;
2686 dgux*) LDSHARED="ld -G";;
2687 BSD/OS*/4*) LDSHARED="gcc -shared";;
2688 OpenBSD*) LDSHARED="ld -Bshareable";;
2689 NetBSD*)
2690 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2691 then
2692 LDSHARED="cc -shared"
2693 else
2694 LDSHARED="ld -Bshareable"
2695 fi;;
2696 FreeBSD*)
2697 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2698 then
2699 LDSHARED="cc -shared ${LDFLAGS}"
2700 else
2701 LDSHARED="ld -Bshareable ${LDFLAGS}"
2702 fi;;
2703 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
2704 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
2705 *) LDSHARED="ld";;
2706 esac
2708 echo "$ac_t""$LDSHARED" 1>&6
2709 # CCSHARED are the C *flags* used to create objects to go into a shared
2710 # library (module) -- this is only needed for a few systems
2711 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
2712 echo "configure:2713: checking CCSHARED" >&5
2713 if test -z "$CCSHARED"
2714 then
2715 case $ac_sys_system/$ac_sys_release in
2716 hp*|HP*) if test "$GCC" = yes;
2717 then CCSHARED="-fpic";
2718 else CCSHARED="+z";
2719 fi;;
2720 Linux*) CCSHARED="-fpic";;
2721 BSD/OS*/4*) CCSHARED="-fpic";;
2722 OpenBSD*) CCSHARED="-fpic";;
2723 FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
2724 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
2725 Monterey*) CCSHARED="-G";;
2726 IRIX*/6*) case $CC in
2727 *gcc*) CCSHARED="-shared";;
2728 *) CCSHARED="";;
2729 esac;;
2730 esac
2732 echo "$ac_t""$CCSHARED" 1>&6
2733 # LINKFORSHARED are the flags passed to the $(CC) command that links
2734 # the python executable -- this is only needed for a few systems
2735 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
2736 echo "configure:2737: checking LINKFORSHARED" >&5
2737 if test -z "$LINKFORSHARED"
2738 then
2739 case $ac_sys_system/$ac_sys_release in
2740 AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';;
2741 hp*|HP*)
2742 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2743 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
2744 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
2745 # -u libsys_s pulls in all symbols in libsys
2746 next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
2747 # -u __dummy makes the linker aware of the objc runtime
2748 # in System.framework; otherwise, __objcInit (referenced in
2749 # crt1.o) gets erroneously defined as common, which breaks dynamic
2750 # loading of any modules which reference it in System.framework
2751 next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
2752 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
2753 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
2754 FreeBSD*|NetBSD*)
2755 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2756 then
2757 LINKFORSHARED="-Wl,--export-dynamic"
2758 fi;;
2759 SunOS/5*) case $CC in
2760 *gcc*)
2761 if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null
2762 then
2763 LINKFORSHARED="-Xlinker --export-dynamic"
2764 fi;;
2765 esac;;
2766 esac
2768 echo "$ac_t""$LINKFORSHARED" 1>&6
2770 # checks for libraries
2771 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2772 echo "configure:2773: checking for dlopen in -ldl" >&5
2773 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2776 else
2777 ac_save_LIBS="$LIBS"
2778 LIBS="-ldl $LIBS"
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2785 char dlopen();
2787 int main() {
2788 dlopen()
2789 ; return 0; }
2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2792 rm -rf conftest*
2793 eval "ac_cv_lib_$ac_lib_var=yes"
2794 else
2795 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5
2797 rm -rf conftest*
2798 eval "ac_cv_lib_$ac_lib_var=no"
2800 rm -f conftest*
2801 LIBS="$ac_save_LIBS"
2804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2808 cat >> confdefs.h <<EOF
2809 #define $ac_tr_lib 1
2812 LIBS="-ldl $LIBS"
2814 else
2815 echo "$ac_t""no" 1>&6
2817 # Dynamic linking for SunOS/Solaris and SYSV
2818 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2819 echo "configure:2820: checking for shl_load in -ldld" >&5
2820 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824 ac_save_LIBS="$LIBS"
2825 LIBS="-ldld $LIBS"
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2832 char shl_load();
2834 int main() {
2835 shl_load()
2836 ; return 0; }
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2839 rm -rf conftest*
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2841 else
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 eval "ac_cv_lib_$ac_lib_var=no"
2847 rm -f conftest*
2848 LIBS="$ac_save_LIBS"
2851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2855 cat >> confdefs.h <<EOF
2856 #define $ac_tr_lib 1
2859 LIBS="-ldld $LIBS"
2861 else
2862 echo "$ac_t""no" 1>&6
2864 # Dynamic linking for HP-UX
2866 # Check for --with-pydebug
2867 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
2868 echo "configure:2869: checking for --with-pydebug" >&5
2869 # Check whether --with-pydebug or --without-pydebug was given.
2870 if test "${with_pydebug+set}" = set; then
2871 withval="$with_pydebug"
2873 if test "$withval" != no
2874 then cat >> confdefs.h <<\EOF
2875 #define Py_DEBUG 1
2877 echo "$ac_t""yes" 1>&6
2878 else echo "$ac_t""no" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2885 # checks for system dependent C++ extensions support
2886 case "$ac_sys_system" in
2887 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
2888 echo "configure:2889: checking for genuine AIX C++ extensions support" >&5
2889 cat > conftest.$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include "/usr/lpp/xlC/include/load.h"
2893 int main() {
2894 loadAndInit("", 0, "")
2895 ; return 0; }
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2898 rm -rf conftest*
2899 cat >> confdefs.h <<\EOF
2900 #define AIX_GENUINE_CPLUSPLUS 1
2903 echo "$ac_t""yes" 1>&6
2904 else
2905 echo "configure: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2907 rm -rf conftest*
2908 echo "$ac_t""no" 1>&6
2910 rm -f conftest*;;
2911 *) ;;
2912 esac
2914 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
2915 # However on SGI IRIX, these exist but are broken.
2916 # BeOS' sockets are stashed in libnet.
2917 case "$ac_sys_system" in
2918 IRIX*) ;;
2920 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
2921 echo "configure:2922: checking for t_open in -lnsl" >&5
2922 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
2923 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 ac_save_LIBS="$LIBS"
2927 LIBS="-lnsl $LIBS"
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char t_open();
2936 int main() {
2937 t_open()
2938 ; return 0; }
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 rm -rf conftest*
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2943 else
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 rm -rf conftest*
2947 eval "ac_cv_lib_$ac_lib_var=no"
2949 rm -f conftest*
2950 LIBS="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 LIBS="-lnsl $LIBS"
2956 else
2957 echo "$ac_t""no" 1>&6
2959 # SVR4
2960 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2961 echo "configure:2962: checking for socket in -lsocket" >&5
2962 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2965 else
2966 ac_save_LIBS="$LIBS"
2967 LIBS="-lsocket $LIBS $LIBS"
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2974 char socket();
2976 int main() {
2977 socket()
2978 ; return 0; }
2980 if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 rm -rf conftest*
2982 eval "ac_cv_lib_$ac_lib_var=yes"
2983 else
2984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 eval "ac_cv_lib_$ac_lib_var=no"
2989 rm -f conftest*
2990 LIBS="$ac_save_LIBS"
2993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 LIBS="-lsocket $LIBS"
2996 else
2997 echo "$ac_t""no" 1>&6
2999 # SVR4 sockets
3001 esac
3002 case "$ac_sys_system" in
3003 BeOS*)
3004 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3005 echo "configure:3006: checking for socket in -lnet" >&5
3006 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3009 else
3010 ac_save_LIBS="$LIBS"
3011 LIBS="-lnet $LIBS $LIBS"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3018 char socket();
3020 int main() {
3021 socket()
3022 ; return 0; }
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3025 rm -rf conftest*
3026 eval "ac_cv_lib_$ac_lib_var=yes"
3027 else
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3030 rm -rf conftest*
3031 eval "ac_cv_lib_$ac_lib_var=no"
3033 rm -f conftest*
3034 LIBS="$ac_save_LIBS"
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3039 LIBS="-lnet $LIBS"
3040 else
3041 echo "$ac_t""no" 1>&6
3043 # BeOS
3045 esac
3047 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3048 echo "configure:3049: checking for --with-libs" >&5
3049 # Check whether --with-libs or --without-libs was given.
3050 if test "${with_libs+set}" = set; then
3051 withval="$with_libs"
3053 echo "$ac_t""$withval" 1>&6
3054 LIBS="$withval $LIBS"
3056 else
3057 echo "$ac_t""no" 1>&6
3062 USE_THREAD_MODULE=""
3064 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3065 echo "configure:3066: checking for --with-dec-threads" >&5
3067 # Check whether --with-dec-threads or --without-dec-threads was given.
3068 if test "${with_dec_threads+set}" = set; then
3069 withval="$with_dec_threads"
3071 echo "$ac_t""$withval" 1>&6
3072 LDLAST=-threads
3073 if test "${with_thread+set}" != set; then
3074 with_thread="$withval";
3076 else
3077 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --with-threads" >&5
3083 # Check whether --with-threads or --without-threads was given.
3084 if test "${with_threads+set}" = set; then
3085 withval="$with_threads"
3090 # --with-thread is deprecated, but check for it anyway
3091 # Check whether --with-thread or --without-thread was given.
3092 if test "${with_thread+set}" = set; then
3093 withval="$with_thread"
3095 with_threads=$with_thread
3099 if test -z "$with_threads"
3100 then with_threads="yes"
3102 echo "$ac_t""$with_threads" 1>&6
3104 if test "$with_threads" = "no"
3105 then
3106 USE_THREAD_MODULE="#"
3107 else
3108 if test -d "$with_threads"
3109 then LDFLAGS="$LDFLAGS -L$with_threads"
3111 if test -d "$withval"
3112 then LDFLAGS="$LDFLAGS -L$withval"
3114 cat >> confdefs.h <<\EOF
3115 #define _REENTRANT 1
3118 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3119 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3120 echo "configure:3121: checking for mach/cthreads.h" >&5
3121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <mach/cthreads.h>
3129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3133 rm -rf conftest*
3134 eval "ac_cv_header_$ac_safe=yes"
3135 else
3136 echo "$ac_err" >&5
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 rm -rf conftest*
3140 eval "ac_cv_header_$ac_safe=no"
3142 rm -f conftest*
3144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 cat >> confdefs.h <<\EOF
3147 #define WITH_THREAD 1
3150 cat >> confdefs.h <<\EOF
3151 #define C_THREADS 1
3154 LIBOBJS="$LIBOBJS thread.o"
3155 else
3156 echo "$ac_t""no" 1>&6
3158 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --with-pth" >&5
3160 # Check whether --with-pth or --without-pth was given.
3161 if test "${with_pth+set}" = set; then
3162 withval="$with_pth"
3164 echo "$ac_t""$withval" 1>&6
3165 cat >> confdefs.h <<\EOF
3166 #define WITH_THREAD 1
3169 cat >> confdefs.h <<\EOF
3170 #define HAVE_PTH 1
3173 LIBS="-lpth $LIBS"
3174 LIBOBJS="$LIBOBJS thread.o"
3175 else
3177 echo "$ac_t""no" 1>&6
3178 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3179 echo "configure:3180: checking for pthread_create in -lpthread" >&5
3180 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3183 else
3184 ac_save_LIBS="$LIBS"
3185 LIBS="-lpthread $LIBS"
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3192 char pthread_create();
3194 int main() {
3195 pthread_create()
3196 ; return 0; }
3198 if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3199 rm -rf conftest*
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3201 else
3202 echo "configure: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 rm -rf conftest*
3205 eval "ac_cv_lib_$ac_lib_var=no"
3207 rm -f conftest*
3208 LIBS="$ac_save_LIBS"
3211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3213 cat >> confdefs.h <<\EOF
3214 #define WITH_THREAD 1
3217 cat >> confdefs.h <<\EOF
3218 #define _POSIX_THREADS 1
3221 LIBS="-lpthread $LIBS"
3222 LIBOBJS="$LIBOBJS thread.o"
3223 else
3224 echo "$ac_t""no" 1>&6
3226 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3227 echo "configure:3228: checking for pthread_detach" >&5
3228 if eval "test \"\${ac_cv_func_pthread_detach+set}\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3230 else
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char pthread_detach(); below. */
3236 #include <assert.h>
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3240 char pthread_detach();
3241 char (*f)();
3243 int main() {
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3249 choke me
3250 #else
3251 f = pthread_detach;
3252 #endif
3254 ; return 0; }
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3257 rm -rf conftest*
3258 eval "ac_cv_func_pthread_detach=yes"
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -rf conftest*
3263 eval "ac_cv_func_pthread_detach=no"
3265 rm -f conftest*
3268 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 cat >> confdefs.h <<\EOF
3271 #define WITH_THREAD 1
3274 cat >> confdefs.h <<\EOF
3275 #define _POSIX_THREADS 1
3278 LIBOBJS="$LIBOBJS thread.o"
3279 else
3280 echo "$ac_t""no" 1>&6
3282 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3284 echo "configure:3285: checking for kernel/OS.h" >&5
3285 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <kernel/OS.h>
3293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3297 rm -rf conftest*
3298 eval "ac_cv_header_$ac_safe=yes"
3299 else
3300 echo "$ac_err" >&5
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 eval "ac_cv_header_$ac_safe=no"
3306 rm -f conftest*
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 cat >> confdefs.h <<\EOF
3311 #define WITH_THREAD 1
3314 cat >> confdefs.h <<\EOF
3315 #define BEOS_THREADS 1
3318 LIBOBJS="$LIBOBJS thread.o"
3319 else
3320 echo "$ac_t""no" 1>&6
3322 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3323 echo "configure:3324: checking for pthread_create in -lpthreads" >&5
3324 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 ac_save_LIBS="$LIBS"
3329 LIBS="-lpthreads $LIBS"
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* Override any gcc2 internal prototype to avoid an error. */
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3336 char pthread_create();
3338 int main() {
3339 pthread_create()
3340 ; return 0; }
3342 if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3343 rm -rf conftest*
3344 eval "ac_cv_lib_$ac_lib_var=yes"
3345 else
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3348 rm -rf conftest*
3349 eval "ac_cv_lib_$ac_lib_var=no"
3351 rm -f conftest*
3352 LIBS="$ac_save_LIBS"
3355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3356 echo "$ac_t""yes" 1>&6
3357 cat >> confdefs.h <<\EOF
3358 #define WITH_THREAD 1
3361 cat >> confdefs.h <<\EOF
3362 #define _POSIX_THREADS 1
3365 LIBS="$LIBS -lpthreads"
3366 LIBOBJS="$LIBOBJS thread.o"
3367 else
3368 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3371 echo "configure:3372: checking for pthread_create in -lc_r" >&5
3372 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3375 else
3376 ac_save_LIBS="$LIBS"
3377 LIBS="-lc_r $LIBS"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3384 char pthread_create();
3386 int main() {
3387 pthread_create()
3388 ; return 0; }
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3391 rm -rf conftest*
3392 eval "ac_cv_lib_$ac_lib_var=yes"
3393 else
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 eval "ac_cv_lib_$ac_lib_var=no"
3399 rm -f conftest*
3400 LIBS="$ac_save_LIBS"
3403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 cat >> confdefs.h <<\EOF
3406 #define WITH_THREAD 1
3409 cat >> confdefs.h <<\EOF
3410 #define _POSIX_THREADS 1
3413 LIBS="$LIBS -lc_r"
3414 LIBOBJS="$LIBOBJS thread.o"
3415 else
3416 echo "$ac_t""no" 1>&6
3418 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3419 echo "configure:3420: checking for __d6_pthread_create in -lthread" >&5
3420 ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3423 else
3424 ac_save_LIBS="$LIBS"
3425 LIBS="-lthread $LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char __d6_pthread_create();
3434 int main() {
3435 __d6_pthread_create()
3436 ; return 0; }
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439 rm -rf conftest*
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3441 else
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3444 rm -rf conftest*
3445 eval "ac_cv_lib_$ac_lib_var=no"
3447 rm -f conftest*
3448 LIBS="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 cat >> confdefs.h <<\EOF
3454 #define WITH_THREAD 1
3457 cat >> confdefs.h <<\EOF
3458 #define _POSIX_THREADS 1
3461 LIBS="$LIBS -lthread"
3462 LIBOBJS="$LIBOBJS thread.o"
3463 else
3464 echo "$ac_t""no" 1>&6
3466 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3467 echo "configure:3468: checking for pthread_create in -lcma" >&5
3468 ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3471 else
3472 ac_save_LIBS="$LIBS"
3473 LIBS="-lcma $LIBS"
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char pthread_create();
3482 int main() {
3483 pthread_create()
3484 ; return 0; }
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3487 rm -rf conftest*
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3489 else
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3492 rm -rf conftest*
3493 eval "ac_cv_lib_$ac_lib_var=no"
3495 rm -f conftest*
3496 LIBS="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 cat >> confdefs.h <<\EOF
3502 #define WITH_THREAD 1
3505 cat >> confdefs.h <<\EOF
3506 #define _POSIX_THREADS 1
3509 LIBS="$LIBS -lcma"
3510 LIBOBJS="$LIBOBJS thread.o"
3511 else
3512 echo "$ac_t""no" 1>&6
3514 USE_THREAD_MODULE="#"
3535 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
3536 echo "configure:3537: checking for usconfig in -lmpc" >&5
3537 ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
3538 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3540 else
3541 ac_save_LIBS="$LIBS"
3542 LIBS="-lmpc $LIBS"
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3549 char usconfig();
3551 int main() {
3552 usconfig()
3553 ; return 0; }
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 rm -rf conftest*
3557 eval "ac_cv_lib_$ac_lib_var=yes"
3558 else
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_lib_$ac_lib_var=no"
3564 rm -f conftest*
3565 LIBS="$ac_save_LIBS"
3568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h <<\EOF
3571 #define WITH_THREAD 1
3574 LIBS="$LIBS -lmpc"
3575 LIBOBJS="$LIBOBJS thread.o"
3576 USE_THREAD_MODULE=""
3577 else
3578 echo "$ac_t""no" 1>&6
3581 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3582 echo "configure:3583: checking for thr_create in -lthread" >&5
3583 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3586 else
3587 ac_save_LIBS="$LIBS"
3588 LIBS="-lthread $LIBS"
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char thr_create();
3597 int main() {
3598 thr_create()
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 rm -rf conftest*
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3604 else
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 rm -rf conftest*
3608 eval "ac_cv_lib_$ac_lib_var=no"
3610 rm -f conftest*
3611 LIBS="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 cat >> confdefs.h <<\EOF
3617 #define WITH_THREAD 1
3620 LIBS="$LIBS -lthread"
3621 LIBOBJS="$LIBOBJS thread.o"
3622 USE_THREAD_MODULE=""
3623 else
3624 echo "$ac_t""no" 1>&6
3629 # Check for GC support
3631 USE_GC_MODULE=""
3632 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
3633 echo "configure:3634: checking for --with-cycle-gc" >&5
3634 # Check whether --with-cycle-gc or --without-cycle-gc was given.
3635 if test "${with_cycle_gc+set}" = set; then
3636 withval="$with_cycle_gc"
3641 if test -z "$with_cycle_gc"
3642 then with_cycle_gc="yes"
3644 if test "$with_cycle_gc" = "no"
3645 then
3646 USE_GC_MODULE="#"
3647 else
3648 cat >> confdefs.h <<\EOF
3649 #define WITH_CYCLE_GC 1
3653 echo "$ac_t""$with_cycle_gc" 1>&6
3655 # Check for LIBDB support
3656 # either --with-libdb or, in its absence, the presence of db.h
3658 USE_BSDDB_MODULE=""
3659 echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6
3660 echo "configure:3661: checking for --with-libdb" >&5
3661 # Check whether --with-libdb or --without-libdb was given.
3662 if test "${with_libdb+set}" = set; then
3663 withval="$with_libdb"
3668 # enabled by default, but db.h must be found
3669 if test "$ac_cv_header_db_h" = "yes"
3670 then
3671 if test "$with_libdb" != "no"
3672 then with_libdb="yes"
3674 else
3675 # make sure user knows why bsddb support wasn't enabled event
3676 # though s/he requested it
3677 if test "$with_libdb" = "yes"
3678 then echo $ac_n "(requested, but db.h was not found) $ac_c"
3680 with_libdb="no"
3683 if test "$with_libdb" = "no"
3684 then
3685 USE_BSDDB_MODULE="#"
3686 else
3687 cat >> confdefs.h <<\EOF
3688 #define WITH_LIBDB 1
3692 echo "$ac_t""$with_libdb" 1>&6
3694 if test "$with_libdb" = "yes"
3695 then
3696 # check for libdb; BSD systems have the DB routines in libc --tg
3698 # If dbopen is not in libc, then checking whether it is in libdb
3699 # is difficult: db_185.h may #define it as __db185_open
3700 # Instead, we just trust it is in libdb; linking will fail if it
3701 # is not.
3702 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3703 echo "configure:3704: checking for dbopen" >&5
3704 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3706 else
3707 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char dbopen(); below. */
3712 #include <assert.h>
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716 char dbopen();
3717 char (*f)();
3719 int main() {
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3725 choke me
3726 #else
3727 f = dbopen;
3728 #endif
3730 ; return 0; }
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3733 rm -rf conftest*
3734 eval "ac_cv_func_dbopen=yes"
3735 else
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_func_dbopen=no"
3741 rm -f conftest*
3744 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 HAVE_LIBDB=
3747 else
3748 echo "$ac_t""no" 1>&6
3749 HAVE_LIBDB=-ldb
3754 # Check for --with-wctype-functions
3755 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
3756 echo "configure:3757: checking for --with-wctype-functions" >&5
3757 # Check whether --with-wctype-functions or --without-wctype-functions was given.
3758 if test "${with_wctype_functions+set}" = set; then
3759 withval="$with_wctype_functions"
3761 if test "$withval" != no
3762 then cat >> confdefs.h <<\EOF
3763 #define WANT_WCTYPE_FUNCTIONS 1
3765 echo "$ac_t""yes" 1>&6
3766 else echo "$ac_t""no" 1>&6
3768 else
3769 echo "$ac_t""no" 1>&6
3773 # -I${DLINCLDIR} is added to the compile rule for importdl.o
3775 DLINCLDIR=/
3777 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
3778 echo "configure:3779: checking for --with-sgi-dl" >&5
3779 # Check whether --with-sgi-dl or --without-sgi-dl was given.
3780 if test "${with_sgi_dl+set}" = set; then
3781 withval="$with_sgi_dl"
3783 echo "$ac_t""$withval" 1>&6
3784 cat >> confdefs.h <<\EOF
3785 #define WITH_SGI_DL 1
3788 DYNLOADFILE="dynload_dl.o"
3789 dldir=$withval
3790 if test -d "$dldir"
3791 then LDFLAGS="$LDFLAGS -L$dldir"
3792 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
3794 DLINCLDIR=${dldir}
3795 LIBS="$LIBS -ldl -lmld"
3796 else
3797 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
3802 echo "configure:3803: checking for --with-dl-dld" >&5
3803 # Check whether --with-dl-dld or --without-dl-dld was given.
3804 if test "${with_dl_dld+set}" = set; then
3805 withval="$with_dl_dld"
3807 echo "$ac_t""$withval" 1>&6
3808 cat >> confdefs.h <<\EOF
3809 #define WITH_DL_DLD 1
3812 DYNLOADFILE="dynload_dl.o"
3813 dldir=`echo "$withval" | sed 's/,.*//'`
3814 dlddir=`echo "$withval" | sed 's/.*,//'`
3815 if test -d "$dldir" -a -d "$dlddir"
3816 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
3817 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
3819 DLINCLDIR=${dldir}
3820 LIBS="$LIBS -ldl -ldld"
3821 else
3822 echo "$ac_t""no" 1>&6
3826 # the dlopen() function means we might want to use dynload_shlib.o. some
3827 # platforms, such as AIX, have dlopen(), but don't want to use it.
3828 for ac_func in dlopen
3830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_func" >&5
3832 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3834 else
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 /* System header to define __stub macros and hopefully few prototypes,
3839 which can conflict with char $ac_func(); below. */
3840 #include <assert.h>
3841 /* Override any gcc2 internal prototype to avoid an error. */
3842 /* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
3844 char $ac_func();
3845 char (*f)();
3847 int main() {
3849 /* The GNU C library defines this for functions which it implements
3850 to always fail with ENOSYS. Some functions are actually named
3851 something starting with __ and the normal name is an alias. */
3852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3853 choke me
3854 #else
3855 f = $ac_func;
3856 #endif
3858 ; return 0; }
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861 rm -rf conftest*
3862 eval "ac_cv_func_$ac_func=yes"
3863 else
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3866 rm -rf conftest*
3867 eval "ac_cv_func_$ac_func=no"
3869 rm -f conftest*
3872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_func 1
3879 else
3880 echo "$ac_t""no" 1>&6
3882 done
3885 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
3886 # loading of modules.
3888 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
3889 echo "configure:3890: checking DYNLOADFILE" >&5
3890 if test -z "$DYNLOADFILE"
3891 then
3892 case $ac_sys_system/$ac_sys_release in
3893 AIX*) DYNLOADFILE="dynload_aix.o";;
3894 BeOS*) DYNLOADFILE="dynload_beos.o";;
3895 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
3896 next/*) DYNLOADFILE="dynload_next.o";;
3898 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
3899 # out any dynamic loading
3900 if test "$ac_cv_func_dlopen" = yes
3901 then DYNLOADFILE="dynload_shlib.o"
3902 else DYNLOADFILE="dynload_stub.o"
3905 esac
3907 echo "$ac_t""$DYNLOADFILE" 1>&6
3908 if test "$DYNLOADFILE" != "dynload_stub.o"
3909 then
3910 cat >> confdefs.h <<\EOF
3911 #define HAVE_DYNAMIC_LOADING 1
3916 # checks for library functions
3917 for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
3918 flock fork fsync fdatasync fpathconf ftime ftruncate \
3919 getgroups getlogin getpeername getpid getpwent getwd \
3920 kill link lstat mkfifo mktime mremap \
3921 nice pathconf pause plock poll pthread_init \
3922 putenv readlink \
3923 select setegid seteuid setgid \
3924 setlocale setregid setreuid setsid setpgid setuid setvbuf \
3925 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
3926 tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
3927 truncate uname waitpid _getpty
3929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3930 echo "configure:3931: checking for $ac_func" >&5
3931 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3933 else
3934 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 /* System header to define __stub macros and hopefully few prototypes,
3938 which can conflict with char $ac_func(); below. */
3939 #include <assert.h>
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3943 char $ac_func();
3944 char (*f)();
3946 int main() {
3948 /* The GNU C library defines this for functions which it implements
3949 to always fail with ENOSYS. Some functions are actually named
3950 something starting with __ and the normal name is an alias. */
3951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952 choke me
3953 #else
3954 f = $ac_func;
3955 #endif
3957 ; return 0; }
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3960 rm -rf conftest*
3961 eval "ac_cv_func_$ac_func=yes"
3962 else
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3965 rm -rf conftest*
3966 eval "ac_cv_func_$ac_func=no"
3968 rm -f conftest*
3971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3974 cat >> confdefs.h <<EOF
3975 #define $ac_tr_func 1
3978 else
3979 echo "$ac_t""no" 1>&6
3981 done
3984 # check for openpty and forkpty
3986 for ac_func in openpty
3988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_func" >&5
3990 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* System header to define __stub macros and hopefully few prototypes,
3997 which can conflict with char $ac_func(); below. */
3998 #include <assert.h>
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4002 char $ac_func();
4003 char (*f)();
4005 int main() {
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 choke me
4012 #else
4013 f = $ac_func;
4014 #endif
4016 ; return 0; }
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4019 rm -rf conftest*
4020 eval "ac_cv_func_$ac_func=yes"
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_func_$ac_func=no"
4027 rm -f conftest*
4030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4033 cat >> confdefs.h <<EOF
4034 #define $ac_tr_func 1
4037 else
4038 echo "$ac_t""no" 1>&6
4039 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4040 echo "configure:4041: checking for openpty in -lutil" >&5
4041 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 ac_save_LIBS="$LIBS"
4046 LIBS="-lutil $LIBS"
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char openpty();
4055 int main() {
4056 openpty()
4057 ; return 0; }
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 rm -rf conftest*
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -rf conftest*
4066 eval "ac_cv_lib_$ac_lib_var=no"
4068 rm -f conftest*
4069 LIBS="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 cat >> confdefs.h <<\EOF
4075 #define HAVE_OPENPTY 1
4077 LIBS="$LIBS -lutil"
4078 else
4079 echo "$ac_t""no" 1>&6
4083 done
4085 for ac_func in forkpty
4087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_func" >&5
4089 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4091 else
4092 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char $ac_func(); below. */
4097 #include <assert.h>
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4101 char $ac_func();
4102 char (*f)();
4104 int main() {
4106 /* The GNU C library defines this for functions which it implements
4107 to always fail with ENOSYS. Some functions are actually named
4108 something starting with __ and the normal name is an alias. */
4109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4110 choke me
4111 #else
4112 f = $ac_func;
4113 #endif
4115 ; return 0; }
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4118 rm -rf conftest*
4119 eval "ac_cv_func_$ac_func=yes"
4120 else
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4123 rm -rf conftest*
4124 eval "ac_cv_func_$ac_func=no"
4126 rm -f conftest*
4129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4132 cat >> confdefs.h <<EOF
4133 #define $ac_tr_func 1
4136 else
4137 echo "$ac_t""no" 1>&6
4138 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4139 echo "configure:4140: checking for forkpty in -lutil" >&5
4140 ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4143 else
4144 ac_save_LIBS="$LIBS"
4145 LIBS="-lutil $LIBS"
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 /* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4152 char forkpty();
4154 int main() {
4155 forkpty()
4156 ; return 0; }
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 rm -rf conftest*
4160 eval "ac_cv_lib_$ac_lib_var=yes"
4161 else
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4164 rm -rf conftest*
4165 eval "ac_cv_lib_$ac_lib_var=no"
4167 rm -f conftest*
4168 LIBS="$ac_save_LIBS"
4171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 cat >> confdefs.h <<\EOF
4174 #define HAVE_FORKPTY 1
4176 LIBS="$LIBS -lutil"
4177 else
4178 echo "$ac_t""no" 1>&6
4182 done
4185 # check for long file support functions
4186 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4189 echo "configure:4190: checking for $ac_func" >&5
4190 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4192 else
4193 cat > conftest.$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char $ac_func(); below. */
4198 #include <assert.h>
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 /* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4202 char $ac_func();
4203 char (*f)();
4205 int main() {
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4211 choke me
4212 #else
4213 f = $ac_func;
4214 #endif
4216 ; return 0; }
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 rm -rf conftest*
4220 eval "ac_cv_func_$ac_func=yes"
4221 else
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 rm -rf conftest*
4225 eval "ac_cv_func_$ac_func=no"
4227 rm -f conftest*
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h <<EOF
4234 #define $ac_tr_func 1
4237 else
4238 echo "$ac_t""no" 1>&6
4240 done
4243 for ac_func in dup2 getcwd strdup strerror memmove
4245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4246 echo "configure:4247: checking for $ac_func" >&5
4247 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249 else
4250 cat > conftest.$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* System header to define __stub macros and hopefully few prototypes,
4254 which can conflict with char $ac_func(); below. */
4255 #include <assert.h>
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4259 char $ac_func();
4260 char (*f)();
4262 int main() {
4264 /* The GNU C library defines this for functions which it implements
4265 to always fail with ENOSYS. Some functions are actually named
4266 something starting with __ and the normal name is an alias. */
4267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4268 choke me
4269 #else
4270 f = $ac_func;
4271 #endif
4273 ; return 0; }
4275 if { (eval echo configure:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4276 rm -rf conftest*
4277 eval "ac_cv_func_$ac_func=yes"
4278 else
4279 echo "configure: failed program was:" >&5
4280 cat conftest.$ac_ext >&5
4281 rm -rf conftest*
4282 eval "ac_cv_func_$ac_func=no"
4284 rm -f conftest*
4287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4290 cat >> confdefs.h <<EOF
4291 #define $ac_tr_func 1
4294 else
4295 echo "$ac_t""no" 1>&6
4296 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
4298 done
4301 for ac_func in getpgrp
4303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_func" >&5
4305 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4307 else
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* System header to define __stub macros and hopefully few prototypes,
4312 which can conflict with char $ac_func(); below. */
4313 #include <assert.h>
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4317 char $ac_func();
4318 char (*f)();
4320 int main() {
4322 /* The GNU C library defines this for functions which it implements
4323 to always fail with ENOSYS. Some functions are actually named
4324 something starting with __ and the normal name is an alias. */
4325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4326 choke me
4327 #else
4328 f = $ac_func;
4329 #endif
4331 ; return 0; }
4333 if { (eval echo configure:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4334 rm -rf conftest*
4335 eval "ac_cv_func_$ac_func=yes"
4336 else
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 eval "ac_cv_func_$ac_func=no"
4342 rm -f conftest*
4345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4348 cat >> confdefs.h <<EOF
4349 #define $ac_tr_func 1
4351 cat > conftest.$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4354 #include <unistd.h>
4355 int main() {
4356 getpgrp(0);
4357 ; return 0; }
4359 if { (eval echo configure:4360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4360 rm -rf conftest*
4361 cat >> confdefs.h <<\EOF
4362 #define GETPGRP_HAVE_ARG 1
4365 else
4366 echo "configure: failed program was:" >&5
4367 cat conftest.$ac_ext >&5
4369 rm -f conftest*
4370 else
4371 echo "$ac_t""no" 1>&6
4373 done
4375 for ac_func in setpgrp
4377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_func" >&5
4379 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4381 else
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* System header to define __stub macros and hopefully few prototypes,
4386 which can conflict with char $ac_func(); below. */
4387 #include <assert.h>
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4391 char $ac_func();
4392 char (*f)();
4394 int main() {
4396 /* The GNU C library defines this for functions which it implements
4397 to always fail with ENOSYS. Some functions are actually named
4398 something starting with __ and the normal name is an alias. */
4399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4400 choke me
4401 #else
4402 f = $ac_func;
4403 #endif
4405 ; return 0; }
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4408 rm -rf conftest*
4409 eval "ac_cv_func_$ac_func=yes"
4410 else
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 rm -rf conftest*
4414 eval "ac_cv_func_$ac_func=no"
4416 rm -f conftest*
4419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4422 cat >> confdefs.h <<EOF
4423 #define $ac_tr_func 1
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 #include <unistd.h>
4429 int main() {
4430 setpgrp(0,0);
4431 ; return 0; }
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4434 rm -rf conftest*
4435 cat >> confdefs.h <<\EOF
4436 #define SETPGRP_HAVE_ARG 1
4439 else
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 rm -f conftest*
4444 else
4445 echo "$ac_t""no" 1>&6
4447 done
4449 for ac_func in gettimeofday
4451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_func" >&5
4453 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4455 else
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char $ac_func(); below. */
4461 #include <assert.h>
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4465 char $ac_func();
4466 char (*f)();
4468 int main() {
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 choke me
4475 #else
4476 f = $ac_func;
4477 #endif
4479 ; return 0; }
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4482 rm -rf conftest*
4483 eval "ac_cv_func_$ac_func=yes"
4484 else
4485 echo "configure: failed program was:" >&5
4486 cat conftest.$ac_ext >&5
4487 rm -rf conftest*
4488 eval "ac_cv_func_$ac_func=no"
4490 rm -f conftest*
4493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4496 cat >> confdefs.h <<EOF
4497 #define $ac_tr_func 1
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <sys/time.h>
4503 int main() {
4504 gettimeofday((struct timeval*)0,(struct timezone*)0);
4505 ; return 0; }
4507 if { (eval echo configure:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4509 else
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 rm -rf conftest*
4513 cat >> confdefs.h <<\EOF
4514 #define GETTIMEOFDAY_NO_TZ 1
4518 rm -f conftest*
4519 else
4520 echo "$ac_t""no" 1>&6
4522 done
4525 # checks for structures
4526 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4527 echo "configure:4528: checking whether time.h and sys/time.h may both be included" >&5
4528 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4530 else
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <sys/types.h>
4535 #include <sys/time.h>
4536 #include <time.h>
4537 int main() {
4538 struct tm *tp;
4539 ; return 0; }
4541 if { (eval echo configure:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4542 rm -rf conftest*
4543 ac_cv_header_time=yes
4544 else
4545 echo "configure: failed program was:" >&5
4546 cat conftest.$ac_ext >&5
4547 rm -rf conftest*
4548 ac_cv_header_time=no
4550 rm -f conftest*
4553 echo "$ac_t""$ac_cv_header_time" 1>&6
4554 if test $ac_cv_header_time = yes; then
4555 cat >> confdefs.h <<\EOF
4556 #define TIME_WITH_SYS_TIME 1
4561 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4562 echo "configure:4563: checking whether struct tm is in sys/time.h or time.h" >&5
4563 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4565 else
4566 cat > conftest.$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 #include <sys/types.h>
4570 #include <time.h>
4571 int main() {
4572 struct tm *tp; tp->tm_sec;
4573 ; return 0; }
4575 if { (eval echo configure:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4576 rm -rf conftest*
4577 ac_cv_struct_tm=time.h
4578 else
4579 echo "configure: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 rm -rf conftest*
4582 ac_cv_struct_tm=sys/time.h
4584 rm -f conftest*
4587 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4588 if test $ac_cv_struct_tm = sys/time.h; then
4589 cat >> confdefs.h <<\EOF
4590 #define TM_IN_SYS_TIME 1
4595 echo $ac_n "checking for member tm_zone in aggregate type struct tm""... $ac_c" 1>&6
4596 echo "configure:4597: checking for member tm_zone in aggregate type struct tm" >&5
4597 if eval "test \"\${ac_cv_c_struct_member_tm_zone+set}\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4599 else
4600 cat > conftest.$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 #include <sys/types.h>
4604 #include <$ac_cv_struct_tm>
4605 int main() {
4606 struct tm foo; foo.tm_zone;
4607 ; return 0; }
4609 if { (eval echo configure:4610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4610 rm -rf conftest*
4611 ac_cv_c_struct_member_tm_zone=yes
4612 else
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4615 rm -rf conftest*
4616 ac_cv_c_struct_member_tm_zone=no
4618 rm -f conftest*
4621 echo "$ac_t""$ac_cv_c_struct_member_tm_zone" 1>&6
4622 tm_zone="$ac_cv_c_struct_member_tm_zone"
4623 if test "$ac_cv_c_struct_member_tm_zone" = yes; then
4624 cat >> confdefs.h <<\EOF
4625 #define HAVE_TM_ZONE 1
4628 else
4629 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4630 echo "configure:4631: checking for tzname" >&5
4631 if eval "test \"\${ac_cv_var_tzname+set}\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4633 else
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 #include <time.h>
4638 #ifndef tzname /* For SGI. */
4639 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4640 #endif
4641 int main() {
4642 atoi(*tzname);
4643 ; return 0; }
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 rm -rf conftest*
4647 ac_cv_var_tzname=yes
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 ac_cv_var_tzname=no
4654 rm -f conftest*
4657 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4658 if test $ac_cv_var_tzname = yes; then
4659 cat >> confdefs.h <<\EOF
4660 #define HAVE_TZNAME 1
4667 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
4668 echo "configure:4669: checking for time.h that defines altzone" >&5
4669 if eval "test \"\${ac_cv_header_time_altzone+set}\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <time.h>
4676 int main() {
4677 return altzone;
4678 ; return 0; }
4680 if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681 rm -rf conftest*
4682 ac_cv_header_time_altzone=yes
4683 else
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4686 rm -rf conftest*
4687 ac_cv_header_time_altzone=no
4689 rm -f conftest*
4692 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
4693 if test $ac_cv_header_time_altzone = yes; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_ALTZONE 1
4700 was_it_defined=no
4701 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether sys/select.h and sys/time.h may both be included" >&5
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4707 #include <sys/types.h>
4708 #include <sys/select.h>
4709 #include <sys/time.h>
4711 int main() {
4713 ; return 0; }
4715 if { (eval echo configure:4716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4716 rm -rf conftest*
4717 cat >> confdefs.h <<\EOF
4718 #define SYS_SELECT_WITH_SYS_TIME 1
4720 was_it_defined=yes
4721 else
4722 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4725 rm -f conftest*
4726 echo "$ac_t""$was_it_defined" 1>&6
4728 # checks for compiler characteristics
4730 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4731 echo "configure:4732: checking whether char is unsigned" >&5
4732 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4734 else
4735 if test "$GCC" = yes; then
4736 # GCC predefines this symbol on systems where it applies.
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 #ifdef __CHAR_UNSIGNED__
4742 #endif
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 egrep "yes" >/dev/null 2>&1; then
4747 rm -rf conftest*
4748 ac_cv_c_char_unsigned=yes
4749 else
4750 rm -rf conftest*
4751 ac_cv_c_char_unsigned=no
4753 rm -f conftest*
4755 else
4756 if test "$cross_compiling" = yes; then
4757 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4758 else
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4763 #if !defined(__STDC__) || __STDC__ != 1
4764 #define volatile
4765 #endif
4766 main() {
4767 volatile char c = 255; exit(c < 0);
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4771 then
4772 ac_cv_c_char_unsigned=yes
4773 else
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4776 rm -fr conftest*
4777 ac_cv_c_char_unsigned=no
4779 rm -fr conftest*
4785 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4786 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4787 cat >> confdefs.h <<\EOF
4788 #define __CHAR_UNSIGNED__ 1
4793 echo $ac_n "checking for working const""... $ac_c" 1>&6
4794 echo "configure:4795: checking for working const" >&5
4795 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4797 else
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4802 int main() {
4804 /* Ultrix mips cc rejects this. */
4805 typedef int charset[2]; const charset x;
4806 /* SunOS 4.1.1 cc rejects this. */
4807 char const *const *ccp;
4808 char **p;
4809 /* NEC SVR4.0.2 mips cc rejects this. */
4810 struct point {int x, y;};
4811 static struct point const zero = {0,0};
4812 /* AIX XL C 1.02.0.0 rejects this.
4813 It does not let you subtract one const X* pointer from another in an arm
4814 of an if-expression whose if-part is not a constant expression */
4815 const char *g = "string";
4816 ccp = &g + (g ? g-g : 0);
4817 /* HPUX 7.0 cc rejects these. */
4818 ++ccp;
4819 p = (char**) ccp;
4820 ccp = (char const *const *) p;
4821 { /* SCO 3.2v4 cc rejects this. */
4822 char *t;
4823 char const *s = 0 ? (char *) 0 : (char const *) 0;
4825 *t++ = 0;
4827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4828 int x[] = {25, 17};
4829 const int *foo = &x[0];
4830 ++foo;
4832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4833 typedef const int *iptr;
4834 iptr p = 0;
4835 ++p;
4837 { /* AIX XL C 1.02.0.0 rejects this saying
4838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4839 struct s { int j; const int *ap[3]; };
4840 struct s *b; b->j = 5;
4842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4843 const int foo = 10;
4846 ; return 0; }
4848 if { (eval echo configure:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4849 rm -rf conftest*
4850 ac_cv_c_const=yes
4851 else
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 rm -rf conftest*
4855 ac_cv_c_const=no
4857 rm -f conftest*
4860 echo "$ac_t""$ac_cv_c_const" 1>&6
4861 if test $ac_cv_c_const = no; then
4862 cat >> confdefs.h <<\EOF
4863 #define const
4868 echo $ac_n "checking for inline""... $ac_c" 1>&6
4869 echo "configure:4870: checking for inline" >&5
4870 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4872 else
4873 ac_cv_c_inline=no
4874 for ac_kw in inline __inline__ __inline; do
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4879 int main() {
4880 } $ac_kw foo() {
4881 ; return 0; }
4883 if { (eval echo configure:4884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4884 rm -rf conftest*
4885 ac_cv_c_inline=$ac_kw; break
4886 else
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 rm -f conftest*
4891 done
4895 echo "$ac_t""$ac_cv_c_inline" 1>&6
4896 case "$ac_cv_c_inline" in
4897 inline | yes) ;;
4898 no) cat >> confdefs.h <<\EOF
4899 #define inline
4902 *) cat >> confdefs.h <<EOF
4903 #define inline $ac_cv_c_inline
4906 esac
4909 works=no
4910 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
4911 echo "configure:4912: checking for working volatile" >&5
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4916 int main() {
4917 volatile int x; x = 0;
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4921 rm -rf conftest*
4922 works=yes
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 cat >> confdefs.h <<\EOF
4928 #define volatile
4932 rm -f conftest*
4933 echo "$ac_t""$works" 1>&6
4935 works=no
4936 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
4937 echo "configure:4938: checking for working signed char" >&5
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4942 int main() {
4943 signed char c;
4944 ; return 0; }
4946 if { (eval echo configure:4947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4947 rm -rf conftest*
4948 works=yes
4949 else
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4952 rm -rf conftest*
4953 cat >> confdefs.h <<\EOF
4954 #define signed
4958 rm -f conftest*
4959 echo "$ac_t""$works" 1>&6
4961 have_prototypes=no
4962 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
4963 echo "configure:4964: checking for prototypes" >&5
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 int foo(int x) { return 0; }
4968 int main() {
4969 return foo(10);
4970 ; return 0; }
4972 if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4973 rm -rf conftest*
4974 cat >> confdefs.h <<\EOF
4975 #define HAVE_PROTOTYPES 1
4977 have_prototypes=yes
4978 else
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 rm -f conftest*
4983 echo "$ac_t""$have_prototypes" 1>&6
4985 works=no
4986 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
4987 echo "configure:4988: checking for variable length prototypes and stdarg.h" >&5
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4992 #include <stdarg.h>
4993 int foo(int x, ...) {
4994 va_list va;
4995 va_start(va, x);
4996 va_arg(va, int);
4997 va_arg(va, char *);
4998 va_arg(va, double);
4999 return 0;
5002 int main() {
5003 return foo(10, "", 3.14);
5004 ; return 0; }
5006 if { (eval echo configure:5007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5007 rm -rf conftest*
5008 cat >> confdefs.h <<\EOF
5009 #define HAVE_STDARG_PROTOTYPES 1
5011 works=yes
5012 else
5013 echo "configure: failed program was:" >&5
5014 cat conftest.$ac_ext >&5
5016 rm -f conftest*
5017 echo "$ac_t""$works" 1>&6
5019 if test "$have_prototypes" = yes; then
5020 bad_prototypes=no
5021 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
5022 echo "configure:5023: checking for bad exec* prototypes" >&5
5023 cat > conftest.$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5026 #include <unistd.h>
5027 int main() {
5028 char **t;execve("@",t,t);
5029 ; return 0; }
5031 if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5033 else
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 rm -rf conftest*
5037 cat >> confdefs.h <<\EOF
5038 #define BAD_EXEC_PROTOTYPES 1
5040 bad_prototypes=yes
5042 rm -f conftest*
5043 echo "$ac_t""$bad_prototypes" 1>&6
5046 bad_forward=no
5047 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
5048 echo "configure:5049: checking for bad static forward" >&5
5049 if test "$cross_compiling" = yes; then
5050 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5051 else
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5056 struct s { int a; int b; };
5057 static struct s foo;
5058 int foobar() {
5059 static int random;
5060 random = (int) &foo;
5061 return random;
5063 static struct s foo = { 1, 2 };
5064 main() {
5065 exit(!((int)&foo == foobar()));
5069 if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5070 then
5072 else
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 rm -fr conftest*
5076 cat >> confdefs.h <<\EOF
5077 #define BAD_STATIC_FORWARD 1
5079 bad_forward=yes
5081 rm -fr conftest*
5084 echo "$ac_t""$bad_forward" 1>&6
5086 va_list_is_array=no
5087 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
5088 echo "configure:5089: checking whether va_list is an array" >&5
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5093 #ifdef HAVE_STDARG_PROTOTYPES
5094 #include <stdarg.h>
5095 #else
5096 #include <varargs.h>
5097 #endif
5099 int main() {
5100 va_list list1, list2; list1 = list2;
5101 ; return 0; }
5103 if { (eval echo configure:5104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5105 else
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5108 rm -rf conftest*
5109 cat >> confdefs.h <<\EOF
5110 #define VA_LIST_IS_ARRAY 1
5112 va_list_is_array=yes
5114 rm -f conftest*
5115 echo "$ac_t""$va_list_is_array" 1>&6
5117 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5118 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
5119 echo "configure:5120: checking for gethostbyname_r" >&5
5120 if eval "test \"\${ac_cv_func_gethostbyname_r+set}\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5122 else
5123 cat > conftest.$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* System header to define __stub macros and hopefully few prototypes,
5127 which can conflict with char gethostbyname_r(); below. */
5128 #include <assert.h>
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5132 char gethostbyname_r();
5133 char (*f)();
5135 int main() {
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5141 choke me
5142 #else
5143 f = gethostbyname_r;
5144 #endif
5146 ; return 0; }
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 rm -rf conftest*
5150 eval "ac_cv_func_gethostbyname_r=yes"
5151 else
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 rm -rf conftest*
5155 eval "ac_cv_func_gethostbyname_r=no"
5157 rm -f conftest*
5160 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5163 cat >> confdefs.h <<\EOF
5164 #define HAVE_GETHOSTBYNAME_R 1
5167 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
5168 echo "configure:5169: checking gethostbyname_r with 6 args" >&5
5169 OLD_CFLAGS=$CFLAGS
5170 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5175 # include <netdb.h>
5177 int main() {
5179 char *name;
5180 struct hostent *he, *res;
5181 char buffer[2048];
5182 int buflen = 2048;
5183 int h_errnop;
5185 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5187 ; return 0; }
5189 if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5190 rm -rf conftest*
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_GETHOSTBYNAME_R 1
5196 cat >> confdefs.h <<\EOF
5197 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
5200 echo "$ac_t""yes" 1>&6
5202 else
5203 echo "configure: failed program was:" >&5
5204 cat conftest.$ac_ext >&5
5205 rm -rf conftest*
5207 echo "$ac_t""no" 1>&6
5208 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
5209 echo "configure:5210: checking gethostbyname_r with 5 args" >&5
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5214 # include <netdb.h>
5216 int main() {
5218 char *name;
5219 struct hostent *he;
5220 char buffer[2048];
5221 int buflen = 2048;
5222 int h_errnop;
5224 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5226 ; return 0; }
5228 if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 rm -rf conftest*
5231 cat >> confdefs.h <<\EOF
5232 #define HAVE_GETHOSTBYNAME_R 1
5235 cat >> confdefs.h <<\EOF
5236 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
5239 echo "$ac_t""yes" 1>&6
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5246 echo "$ac_t""no" 1>&6
5247 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
5248 echo "configure:5249: checking gethostbyname_r with 3 args" >&5
5249 cat > conftest.$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5253 # include <netdb.h>
5255 int main() {
5257 char *name;
5258 struct hostent *he;
5259 struct hostent_data data;
5261 (void) gethostbyname_r(name, he, &data);
5263 ; return 0; }
5265 if { (eval echo configure:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5266 rm -rf conftest*
5268 cat >> confdefs.h <<\EOF
5269 #define HAVE_GETHOSTBYNAME_R 1
5272 cat >> confdefs.h <<\EOF
5273 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
5276 echo "$ac_t""yes" 1>&6
5278 else
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 rm -rf conftest*
5283 echo "$ac_t""no" 1>&6
5286 rm -f conftest*
5289 rm -f conftest*
5292 rm -f conftest*
5293 CFLAGS=$OLD_CFLAGS
5295 else
5296 echo "$ac_t""no" 1>&6
5298 for ac_func in gethostbyname
5300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5301 echo "configure:5302: checking for $ac_func" >&5
5302 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5304 else
5305 cat > conftest.$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* System header to define __stub macros and hopefully few prototypes,
5309 which can conflict with char $ac_func(); below. */
5310 #include <assert.h>
5311 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5314 char $ac_func();
5315 char (*f)();
5317 int main() {
5319 /* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5323 choke me
5324 #else
5325 f = $ac_func;
5326 #endif
5328 ; return 0; }
5330 if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331 rm -rf conftest*
5332 eval "ac_cv_func_$ac_func=yes"
5333 else
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5336 rm -rf conftest*
5337 eval "ac_cv_func_$ac_func=no"
5339 rm -f conftest*
5342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5345 cat >> confdefs.h <<EOF
5346 #define $ac_tr_func 1
5349 else
5350 echo "$ac_t""no" 1>&6
5352 done
5363 # checks for system services
5364 # (none yet)
5366 # Linux requires this for correct f.p. operations
5367 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
5368 echo "configure:5369: checking for __fpu_control" >&5
5369 if eval "test \"\${ac_cv_func___fpu_control+set}\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5371 else
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char __fpu_control(); below. */
5377 #include <assert.h>
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char __fpu_control();
5382 char (*f)();
5384 int main() {
5386 /* The GNU C library defines this for functions which it implements
5387 to always fail with ENOSYS. Some functions are actually named
5388 something starting with __ and the normal name is an alias. */
5389 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5390 choke me
5391 #else
5392 f = __fpu_control;
5393 #endif
5395 ; return 0; }
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 rm -rf conftest*
5399 eval "ac_cv_func___fpu_control=yes"
5400 else
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5403 rm -rf conftest*
5404 eval "ac_cv_func___fpu_control=no"
5406 rm -f conftest*
5409 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5412 else
5413 echo "$ac_t""no" 1>&6
5414 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
5415 echo "configure:5416: checking for __fpu_control in -lieee" >&5
5416 ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
5417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5419 else
5420 ac_save_LIBS="$LIBS"
5421 LIBS="-lieee $LIBS"
5422 cat > conftest.$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5428 char __fpu_control();
5430 int main() {
5431 __fpu_control()
5432 ; return 0; }
5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5435 rm -rf conftest*
5436 eval "ac_cv_lib_$ac_lib_var=yes"
5437 else
5438 echo "configure: failed program was:" >&5
5439 cat conftest.$ac_ext >&5
5440 rm -rf conftest*
5441 eval "ac_cv_lib_$ac_lib_var=no"
5443 rm -f conftest*
5444 LIBS="$ac_save_LIBS"
5447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5449 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5451 cat >> confdefs.h <<EOF
5452 #define $ac_tr_lib 1
5455 LIBS="-lieee $LIBS"
5457 else
5458 echo "$ac_t""no" 1>&6
5465 # Check for --with-fpectl
5466 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
5467 echo "configure:5468: checking for --with-fpectl" >&5
5468 # Check whether --with-fpectl or --without-fpectl was given.
5469 if test "${with_fpectl+set}" = set; then
5470 withval="$with_fpectl"
5472 if test "$withval" != no
5473 then cat >> confdefs.h <<\EOF
5474 #define WANT_SIGFPE_HANDLER 1
5476 echo "$ac_t""yes" 1>&6
5477 else echo "$ac_t""no" 1>&6
5479 else
5480 echo "$ac_t""no" 1>&6
5484 # check for --with-libm=...
5486 case $ac_sys_system in
5487 next) ;;
5488 BeOS) ;;
5489 *) LIBM=-lm
5490 esac
5491 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
5492 echo "configure:5493: checking for --with-libm=STRING" >&5
5493 # Check whether --with-libm or --without-libm was given.
5494 if test "${with_libm+set}" = set; then
5495 withval="$with_libm"
5497 if test "$withval" = no
5498 then LIBM=
5499 echo "$ac_t""force LIBM empty" 1>&6
5500 elif test "$withval" != yes
5501 then LIBM=$withval
5502 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
5503 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
5505 else
5506 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
5510 # check for --with-libc=...
5512 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
5513 echo "configure:5514: checking for --with-libc=STRING" >&5
5514 # Check whether --with-libc or --without-libc was given.
5515 if test "${with_libc+set}" = set; then
5516 withval="$with_libc"
5518 if test "$withval" = no
5519 then LIBC=
5520 echo "$ac_t""force LIBC empty" 1>&6
5521 elif test "$withval" != yes
5522 then LIBC=$withval
5523 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
5524 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
5526 else
5527 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
5531 # check for hypot() in math library
5532 LIBS_SAVE=$LIBS
5533 LIBS="$LIBS $LIBM"
5534 for ac_func in hypot
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5540 else
5541 cat > conftest.$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5546 #include <assert.h>
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5550 char $ac_func();
5551 char (*f)();
5553 int main() {
5555 /* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5559 choke me
5560 #else
5561 f = $ac_func;
5562 #endif
5564 ; return 0; }
5566 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5567 rm -rf conftest*
5568 eval "ac_cv_func_$ac_func=yes"
5569 else
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5572 rm -rf conftest*
5573 eval "ac_cv_func_$ac_func=no"
5575 rm -f conftest*
5578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5581 cat >> confdefs.h <<EOF
5582 #define $ac_tr_func 1
5585 else
5586 echo "$ac_t""no" 1>&6
5587 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5589 done
5592 LIBS=$LIBS_SAVE
5594 # check for getopt
5595 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
5596 echo "configure:5597: checking for genuine getopt" >&5
5597 if eval "test \"\${ac_cv_func_getopt+set}\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5599 else
5600 if test "$cross_compiling" = yes; then
5601 ac_cv_func_getopt=no
5602 else
5603 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5606 #include <stdio.h>
5607 extern int optind, opterr, getopt();
5608 extern char* optarg;
5609 int main() {
5610 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
5611 opterr = 0;
5612 if (getopt(3, av, "f:") == 'f') { exit(1); }
5613 exit(0);
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5617 then
5618 ac_cv_func_getopt=yes
5619 else
5620 echo "configure: failed program was:" >&5
5621 cat conftest.$ac_ext >&5
5622 rm -fr conftest*
5623 ac_cv_func_getopt=no
5625 rm -fr conftest*
5629 echo "$ac_t""$ac_cv_func_getopt" 1>&6
5630 test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
5632 # check whether malloc(0) returns NULL or not
5633 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
5634 echo "configure:5635: checking what malloc(0) returns" >&5
5635 if eval "test \"\${ac_cv_malloc_zero+set}\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5637 else
5638 if test "$cross_compiling" = yes; then
5639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5640 else
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <stdio.h>
5645 #ifdef HAVE_STDLIB
5646 #include <stdlib.h>
5647 #else
5648 char *malloc(), *realloc();
5649 int *free();
5650 #endif
5651 main() {
5652 char *p;
5653 p = malloc(0);
5654 if (p == NULL) exit(1);
5655 p = realloc(p, 0);
5656 if (p == NULL) exit(1);
5657 free(p);
5658 exit(0);
5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5662 then
5663 ac_cv_malloc_zero=nonnull
5664 else
5665 echo "configure: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5667 rm -fr conftest*
5668 ac_cv_malloc_zero=null
5670 rm -fr conftest*
5675 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5676 if test "$ac_cv_malloc_zero" = null
5677 then
5678 cat >> confdefs.h <<\EOF
5679 #define MALLOC_ZERO_RETURNS_NULL 1
5684 # check for wchar.h
5685 ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5686 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
5687 echo "configure:5688: checking for wchar.h" >&5
5688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5690 else
5691 cat > conftest.$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5694 #include <wchar.h>
5696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5697 { (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5699 if test -z "$ac_err"; then
5700 rm -rf conftest*
5701 eval "ac_cv_header_$ac_safe=yes"
5702 else
5703 echo "$ac_err" >&5
5704 echo "configure: failed program was:" >&5
5705 cat conftest.$ac_ext >&5
5706 rm -rf conftest*
5707 eval "ac_cv_header_$ac_safe=no"
5709 rm -f conftest*
5711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 cat >> confdefs.h <<\EOF
5714 #define HAVE_WCHAR_H 1
5716 wchar_h="yes"
5717 else
5718 echo "$ac_t""no" 1>&6
5719 wchar_h="no"
5724 # check for usable wchar_t
5725 usable_wchar_t="unkown"
5726 echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
5727 echo "configure:5728: checking for usable wchar_t" >&5
5728 if test "$cross_compiling" = yes; then
5729 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5730 else
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5735 #include "wchar.h"
5736 #include "wctype.h"
5737 main() {
5738 wchar_t s;
5739 if (sizeof(s) == 2)
5740 exit(0);
5741 else
5742 exit(1);
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5747 then
5748 cat >> confdefs.h <<\EOF
5749 #define HAVE_USABLE_WCHAR_T 1
5751 usable_wchar_t="yes"
5752 else
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 rm -fr conftest*
5756 usable_wchar_t="no"
5758 rm -fr conftest*
5761 echo "$ac_t""$usable_wchar_t" 1>&6
5763 # check for endianness
5764 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5765 echo "configure:5766: checking whether byte ordering is bigendian" >&5
5766 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5768 else
5769 ac_cv_c_bigendian=unknown
5770 # See if sys/param.h defines the BYTE_ORDER macro.
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <sys/types.h>
5775 #include <sys/param.h>
5776 int main() {
5778 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5779 bogus endian macros
5780 #endif
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5784 rm -rf conftest*
5785 # It does; now see whether it defined to BIG_ENDIAN or not.
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <sys/types.h>
5790 #include <sys/param.h>
5791 int main() {
5793 #if BYTE_ORDER != BIG_ENDIAN
5794 not big endian
5795 #endif
5796 ; return 0; }
5798 if { (eval echo configure:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5799 rm -rf conftest*
5800 ac_cv_c_bigendian=yes
5801 else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 ac_cv_c_bigendian=no
5807 rm -f conftest*
5808 else
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5812 rm -f conftest*
5813 if test $ac_cv_c_bigendian = unknown; then
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 main () {
5821 /* Are we little or big endian? From Harbison&Steele. */
5822 union
5824 long l;
5825 char c[sizeof (long)];
5826 } u;
5827 u.l = 1;
5828 exit (u.c[sizeof (long) - 1] == 1);
5831 if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5832 then
5833 ac_cv_c_bigendian=no
5834 else
5835 echo "configure: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5837 rm -fr conftest*
5838 ac_cv_c_bigendian=yes
5840 rm -fr conftest*
5846 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5847 if test $ac_cv_c_bigendian = yes; then
5848 cat >> confdefs.h <<\EOF
5849 #define WORDS_BIGENDIAN 1
5855 # Check whether right shifting a negative integer extends the sign bit
5856 # or fills with zeros (like the Cray J90, according to Tim Peters).
5857 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
5858 echo "configure:5859: checking whether right shift extends the sign bit" >&5
5859 if eval "test \"\${ac_cv_rshift_extends_sign+set}\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5861 else
5863 if test "$cross_compiling" = yes; then
5864 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5865 else
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5870 int main()
5872 exit(((-1)>>3 == -1) ? 0 : 1);
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5877 then
5878 ac_cv_rshift_extends_sign=yes
5879 else
5880 echo "configure: failed program was:" >&5
5881 cat conftest.$ac_ext >&5
5882 rm -fr conftest*
5883 ac_cv_rshift_extends_sign=no
5885 rm -fr conftest*
5890 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
5891 if test "$ac_cv_rshift_extends_sign" = no
5892 then
5893 cat >> confdefs.h <<\EOF
5894 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
5900 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
5901 # Add sys/socket.h to confdefs.h
5902 cat >> confdefs.h <<\EOF
5903 #ifdef HAVE_SYS_SOCKET_H
5904 #include <sys/socket.h>
5905 #endif
5907 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
5908 echo "configure:5909: checking for socklen_t" >&5
5909 if eval "test \"\${ac_cv_type_socklen_t+set}\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5911 else
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5915 #include <sys/types.h>
5916 #if STDC_HEADERS
5917 #include <stdlib.h>
5918 #include <stddef.h>
5919 #endif
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5923 rm -rf conftest*
5924 eval "ac_cv_type_socklen_t=yes"
5925 else
5926 rm -rf conftest*
5927 eval "ac_cv_type_socklen_t=no"
5929 rm -f conftest*
5932 if eval "test \"`echo '$ac_cv_type_'socklen_t`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5934 else
5935 echo "$ac_t""no" 1>&6
5936 cat >> confdefs.h <<EOF
5937 #define socklen_t int
5943 # generate output files
5944 trap '' 1 2 15
5945 cat > confcache <<\EOF
5946 # This file is a shell script that caches the results of configure
5947 # tests run on this system so they can be shared between configure
5948 # scripts and configure runs. It is not useful on other systems.
5949 # If it contains results you don't want to keep, you may remove or edit it.
5951 # By default, configure uses ./config.cache as the cache file,
5952 # creating it if it does not exist already. You can give configure
5953 # the --cache-file=FILE option to use a different cache file; that is
5954 # what configure does when it calls configure scripts in
5955 # subdirectories, so they share the cache.
5956 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5957 # config.status only pays attention to the cache file if you give it the
5958 # --recheck option to rerun configure.
5961 # The following way of writing the cache mishandles newlines in values,
5962 # but we know of no workaround that is simple, portable, and efficient.
5963 # So, don't put newlines in cache variables' values.
5964 # Ultrix sh set writes to stderr and can't be redirected directly,
5965 # and sets the high bit in the cache file unless we assign to the vars.
5966 (set) 2>&1 |
5967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5968 *ac_space=\ *)
5969 # `set' does not quote correctly, so add quotes (double-quote substitution
5970 # turns \\\\ into \\, and sed turns \\ into \).
5971 sed -n \
5972 -e "s/'/'\\\\''/g" \
5973 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5976 # `set' quotes correctly as required by POSIX, so do not add quotes.
5977 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5979 esac >> confcache
5980 if cmp -s $cache_file confcache; then
5982 else
5983 if test -w $cache_file; then
5984 echo "updating cache $cache_file"
5985 cat confcache > $cache_file
5986 else
5987 echo "not updating unwritable cache $cache_file"
5990 rm -f confcache
5992 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5995 # Let make expand exec_prefix.
5996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5998 # Any assignment to VPATH causes Sun make to only execute
5999 # the first set of double-colon rules, so remove it if not needed.
6000 # If there is a colon in the path, we need to keep it.
6001 if test "x$srcdir" = x.; then
6002 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6005 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6007 DEFS=-DHAVE_CONFIG_H
6009 # Without the "./", some shells look in PATH for config.status.
6010 : ${CONFIG_STATUS=./config.status}
6012 echo creating $CONFIG_STATUS
6013 rm -f $CONFIG_STATUS
6014 cat > $CONFIG_STATUS <<EOF
6015 #! /bin/sh
6016 # Generated automatically by configure.
6017 # Run this file to recreate the current configuration.
6018 # This directory was configured as follows,
6019 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6021 # $0 $ac_configure_args
6023 # Compiler output produced by configure, useful for debugging
6024 # configure, is in ./config.log if it exists.
6026 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6027 for ac_option
6029 case "\$ac_option" in
6030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6031 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6032 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6033 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6034 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
6035 exit 0 ;;
6036 -help | --help | --hel | --he | --h)
6037 echo "\$ac_cs_usage"; exit 0 ;;
6038 *) echo "\$ac_cs_usage"; exit 1 ;;
6039 esac
6040 done
6042 ac_given_srcdir=$srcdir
6044 trap 'rm -fr `echo "Makefile \
6045 Objects/Makefile \
6046 Parser/Makefile \
6047 Grammar/Makefile \
6048 Python/Makefile \
6049 Modules/Makefile.pre \
6050 Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6052 cat >> $CONFIG_STATUS <<EOF
6054 # Protect against being on the right side of a sed subst in config.status.
6055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6056 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6057 $ac_vpsub
6058 $extrasub
6059 s%@SHELL@%$SHELL%g
6060 s%@CFLAGS@%$CFLAGS%g
6061 s%@CPPFLAGS@%$CPPFLAGS%g
6062 s%@CXXFLAGS@%$CXXFLAGS%g
6063 s%@FFLAGS@%$FFLAGS%g
6064 s%@DEFS@%$DEFS%g
6065 s%@LDFLAGS@%$LDFLAGS%g
6066 s%@LIBS@%$LIBS%g
6067 s%@exec_prefix@%$exec_prefix%g
6068 s%@prefix@%$prefix%g
6069 s%@program_transform_name@%$program_transform_name%g
6070 s%@bindir@%$bindir%g
6071 s%@sbindir@%$sbindir%g
6072 s%@libexecdir@%$libexecdir%g
6073 s%@datadir@%$datadir%g
6074 s%@sysconfdir@%$sysconfdir%g
6075 s%@sharedstatedir@%$sharedstatedir%g
6076 s%@localstatedir@%$localstatedir%g
6077 s%@libdir@%$libdir%g
6078 s%@includedir@%$includedir%g
6079 s%@oldincludedir@%$oldincludedir%g
6080 s%@infodir@%$infodir%g
6081 s%@mandir@%$mandir%g
6082 s%@VERSION@%$VERSION%g
6083 s%@MACHDEP@%$MACHDEP%g
6084 s%@SGI_ABI@%$SGI_ABI%g
6085 s%@SET_CXX@%$SET_CXX%g
6086 s%@MAINOBJ@%$MAINOBJ%g
6087 s%@CC@%$CC%g
6088 s%@EXE@%$EXE%g
6089 s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g
6090 s%@LDLIBRARY@%$LDLIBRARY%g
6091 s%@LINKCC@%$LINKCC%g
6092 s%@RANLIB@%$RANLIB%g
6093 s%@AR@%$AR%g
6094 s%@INSTALL@%$INSTALL%g
6095 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6096 s%@INSTALL_DATA@%$INSTALL_DATA%g
6097 s%@LN@%$LN%g
6098 s%@OPT@%$OPT%g
6099 s%@CPP@%$CPP%g
6100 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
6101 s%@SO@%$SO%g
6102 s%@LDSHARED@%$LDSHARED%g
6103 s%@CCSHARED@%$CCSHARED%g
6104 s%@LINKFORSHARED@%$LINKFORSHARED%g
6105 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
6106 s%@LDLAST@%$LDLAST%g
6107 s%@USE_GC_MODULE@%$USE_GC_MODULE%g
6108 s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g
6109 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
6110 s%@DLINCLDIR@%$DLINCLDIR%g
6111 s%@DYNLOADFILE@%$DYNLOADFILE%g
6112 s%@LIBOBJS@%$LIBOBJS%g
6113 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6114 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6115 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
6116 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
6117 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
6118 s%@LIBM@%$LIBM%g
6119 s%@LIBC@%$LIBC%g
6121 CEOF
6124 cat >> $CONFIG_STATUS <<\EOF
6126 # Split the substitutions into bite-sized pieces for seds with
6127 # small command number limits, like on Digital OSF/1 and HP-UX.
6128 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6129 ac_file=1 # Number of current file.
6130 ac_beg=1 # First line for current file.
6131 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6132 ac_more_lines=:
6133 ac_sed_cmds=""
6134 while $ac_more_lines; do
6135 if test $ac_beg -gt 1; then
6136 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6137 else
6138 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6140 if test ! -s conftest.s$ac_file; then
6141 ac_more_lines=false
6142 rm -f conftest.s$ac_file
6143 else
6144 if test -z "$ac_sed_cmds"; then
6145 ac_sed_cmds="sed -f conftest.s$ac_file"
6146 else
6147 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6149 ac_file=`expr $ac_file + 1`
6150 ac_beg=$ac_end
6151 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6153 done
6154 if test -z "$ac_sed_cmds"; then
6155 ac_sed_cmds=cat
6159 cat >> $CONFIG_STATUS <<EOF
6161 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
6162 Objects/Makefile \
6163 Parser/Makefile \
6164 Grammar/Makefile \
6165 Python/Makefile \
6166 Modules/Makefile.pre \
6167 Modules/Setup.config"}
6169 cat >> $CONFIG_STATUS <<\EOF
6170 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6172 case "$ac_file" in
6173 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6174 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6175 *) ac_file_in="${ac_file}.in" ;;
6176 esac
6178 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6180 # Remove last slash and all that follows it. Not all systems have dirname.
6181 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6183 # The file is in a subdirectory.
6184 test ! -d "$ac_dir" && mkdir "$ac_dir"
6185 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6186 # A "../" for each directory in $ac_dir_suffix.
6187 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6188 else
6189 ac_dir_suffix= ac_dots=
6192 case "$ac_given_srcdir" in
6193 .) srcdir=.
6194 if test -z "$ac_dots"; then top_srcdir=.
6195 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6196 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6197 *) # Relative path.
6198 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6199 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6200 esac
6203 echo creating "$ac_file"
6204 rm -f "$ac_file"
6205 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6206 case "$ac_file" in
6207 *Makefile*) ac_comsub="1i\\
6208 # $configure_input" ;;
6209 *) ac_comsub= ;;
6210 esac
6212 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6213 sed -e "$ac_comsub
6214 s%@configure_input@%$configure_input%g
6215 s%@srcdir@%$srcdir%g
6216 s%@top_srcdir@%$top_srcdir%g
6217 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6218 fi; done
6219 rm -f conftest.s*
6221 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6222 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6224 # ac_d sets the value in "#define NAME VALUE" lines.
6225 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6226 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6227 ac_dC='\3'
6228 ac_dD='%g'
6229 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6230 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6231 ac_uB='\([ ]\)%\1#\2define\3'
6232 ac_uC=' '
6233 ac_uD='\4%g'
6234 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6235 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6236 ac_eB='$%\1#\2define\3'
6237 ac_eC=' '
6238 ac_eD='%g'
6240 if test "${CONFIG_HEADERS+set}" != set; then
6242 cat >> $CONFIG_STATUS <<EOF
6243 CONFIG_HEADERS="config.h"
6245 cat >> $CONFIG_STATUS <<\EOF
6247 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6249 case "$ac_file" in
6250 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6251 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6252 *) ac_file_in="${ac_file}.in" ;;
6253 esac
6255 echo creating $ac_file
6257 rm -f conftest.frag conftest.in conftest.out
6258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6259 cat $ac_file_inputs > conftest.in
6263 # Transform confdefs.h into a sed script conftest.vals that substitutes
6264 # the proper values into config.h.in to produce config.h. And first:
6265 # Protect against being on the right side of a sed subst in config.status.
6266 # Protect against being in an unquoted here document in config.status.
6267 rm -f conftest.vals
6268 cat > conftest.hdr <<\EOF
6269 s/[\\&%]/\\&/g
6270 s%[\\$`]%\\&%g
6271 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6272 s%ac_d%ac_u%gp
6273 s%ac_u%ac_e%gp
6275 sed -n -f conftest.hdr confdefs.h > conftest.vals
6276 rm -f conftest.hdr
6278 # This sed command replaces #undef with comments. This is necessary, for
6279 # example, in the case of _POSIX_SOURCE, which is predefined and required
6280 # on some systems where configure will not decide to define it.
6281 cat >> conftest.vals <<\EOF
6282 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6285 # Break up conftest.vals because some shells have a limit on
6286 # the size of here documents, and old seds have small limits too.
6288 rm -f conftest.tail
6289 while :
6291 ac_lines=`grep -c . conftest.vals`
6292 # grep -c gives empty output for an empty file on some AIX systems.
6293 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6294 # Write a limited-size here document to conftest.frag.
6295 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6296 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6297 echo 'CEOF
6298 sed -f conftest.frag conftest.in > conftest.out
6299 rm -f conftest.in
6300 mv conftest.out conftest.in
6301 ' >> $CONFIG_STATUS
6302 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6303 rm -f conftest.vals
6304 mv conftest.tail conftest.vals
6305 done
6306 rm -f conftest.vals
6308 cat >> $CONFIG_STATUS <<\EOF
6309 rm -f conftest.frag conftest.h
6310 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6311 cat conftest.in >> conftest.h
6312 rm -f conftest.in
6313 if cmp -s $ac_file conftest.h 2>/dev/null; then
6314 echo "$ac_file is unchanged"
6315 rm -f conftest.h
6316 else
6317 # Remove last slash and all that follows it. Not all systems have dirname.
6318 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6320 # The file is in a subdirectory.
6321 test ! -d "$ac_dir" && mkdir "$ac_dir"
6323 rm -f $ac_file
6324 mv conftest.h $ac_file
6326 fi; done
6329 cat >> $CONFIG_STATUS <<EOF
6332 cat >> $CONFIG_STATUS <<\EOF
6334 exit 0
6336 chmod +x $CONFIG_STATUS
6337 rm -fr confdefs* $ac_clean_files
6338 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1