3 # From configure.in Revision: 1.213
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.13
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
14 ac_default_prefix
=/usr
/local
15 # Any additions from configure.in:
17 --with-next-archs='arch1 arch2 ..' build MAB binary"
19 --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework"
21 --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker"
23 --without-gcc never use gcc"
25 --with-cxx=<compiler> enable C++ support"
27 --with-suffix=.exe set executable suffix"
29 --with-pydebug build with Py_DEBUG defined"
31 --with-libs='lib1 ...' link against additional libs"
33 --with-signal-module disable/enable signal module"
35 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
37 --with(out)-threads[=DIRECTORY] disable/enable thread support"
39 --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads"
41 --with-pth use GNU pth threading libraries"
43 --with(out)-cycle-gc disable/enable garbage collection"
45 --with(out)-pymalloc disable/enable specialized mallocs"
47 --with-wctype-functions use wctype.h functions"
49 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
51 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
53 --with-fpectl enable SIGFPE catching"
55 --with-libm=STRING math library"
57 --with-libc=STRING C library"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
63 cache_file
=.
/config.cache
72 program_transform_name
=s
,x
,x
,
80 bindir
='${exec_prefix}/bin'
81 sbindir
='${exec_prefix}/sbin'
82 libexecdir
='${exec_prefix}/libexec'
83 datadir
='${prefix}/share'
84 sysconfdir
='${prefix}/etc'
85 sharedstatedir
='${prefix}/com'
86 localstatedir
='${prefix}/var'
87 libdir
='${exec_prefix}/lib'
88 includedir
='${prefix}/include'
89 oldincludedir
='/usr/include'
90 infodir
='${prefix}/info'
91 mandir
='${prefix}/man'
93 # Initialize some other variables.
96 SHELL
=${CONFIG_SHELL-/bin/sh}
97 # Maximum number of lines to put in a shell here document.
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
112 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 # Accept the important Cygnus configure options, so we can diagnose typos.
120 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
122 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
123 bindir
="$ac_optarg" ;;
125 -build |
--build |
--buil |
--bui |
--bu)
127 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
128 build
="$ac_optarg" ;;
130 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
131 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
132 ac_prev
=cache_file
;;
133 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
134 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
135 cache_file
="$ac_optarg" ;;
137 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
139 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
141 datadir
="$ac_optarg" ;;
143 -disable-* |
--disable-*)
144 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* |
--enable-*)
153 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
166 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
167 |
--exec |
--exe |
--ex)
168 ac_prev
=exec_prefix
;;
169 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
170 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
171 |
--exec=* |
--exe=* |
--ex=*)
172 exec_prefix
="$ac_optarg" ;;
174 -gas |
--gas |
--ga |
--g)
175 # Obsolete; use --with-gas.
178 -help |
--help |
--hel |
--he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
233 -host |
--host |
--hos |
--ho)
235 -host=* |
--host=* |
--hos=* |
--ho=*)
238 -includedir |
--includedir |
--includedi |
--included |
--include \
239 |
--includ |
--inclu |
--incl |
--inc)
240 ac_prev
=includedir
;;
241 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
242 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
243 includedir
="$ac_optarg" ;;
245 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
247 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
248 infodir
="$ac_optarg" ;;
250 -libdir |
--libdir |
--libdi |
--libd)
252 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
253 libdir
="$ac_optarg" ;;
255 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
256 |
--libexe |
--libex |
--libe)
257 ac_prev
=libexecdir
;;
258 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
259 |
--libexe=* |
--libex=* |
--libe=*)
260 libexecdir
="$ac_optarg" ;;
262 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
263 |
--localstate |
--localstat |
--localsta |
--localst \
264 |
--locals |
--local |
--loca |
--loc |
--lo)
265 ac_prev
=localstatedir
;;
266 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
267 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
268 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
269 localstatedir
="$ac_optarg" ;;
271 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
273 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
274 mandir
="$ac_optarg" ;;
277 # Obsolete; use --without-fp.
280 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
284 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
285 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
288 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
289 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
290 |
--oldin |
--oldi |
--old |
--ol |
--o)
291 ac_prev
=oldincludedir
;;
292 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
293 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
294 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
295 oldincludedir
="$ac_optarg" ;;
297 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
299 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
300 prefix
="$ac_optarg" ;;
302 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
303 |
--program-pre |
--program-pr |
--program-p)
304 ac_prev
=program_prefix
;;
305 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
306 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
307 program_prefix
="$ac_optarg" ;;
309 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
310 |
--program-suf |
--program-su |
--program-s)
311 ac_prev
=program_suffix
;;
312 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
313 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
314 program_suffix
="$ac_optarg" ;;
316 -program-transform-name |
--program-transform-name \
317 |
--program-transform-nam |
--program-transform-na \
318 |
--program-transform-n |
--program-transform- \
319 |
--program-transform |
--program-transfor \
320 |
--program-transfo |
--program-transf \
321 |
--program-trans |
--program-tran \
322 |
--progr-tra |
--program-tr |
--program-t)
323 ac_prev
=program_transform_name
;;
324 -program-transform-name=* |
--program-transform-name=* \
325 |
--program-transform-nam=* |
--program-transform-na=* \
326 |
--program-transform-n=* |
--program-transform-=* \
327 |
--program-transform=* |
--program-transfor=* \
328 |
--program-transfo=* |
--program-transf=* \
329 |
--program-trans=* |
--program-tran=* \
330 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
331 program_transform_name
="$ac_optarg" ;;
333 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
334 |
-silent |
--silent |
--silen |
--sile |
--sil)
337 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
339 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
341 sbindir
="$ac_optarg" ;;
343 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
344 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
345 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
347 ac_prev
=sharedstatedir
;;
348 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
349 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
350 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
352 sharedstatedir
="$ac_optarg" ;;
354 -site |
--site |
--sit)
356 -site=* |
--site=* |
--sit=*)
359 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
361 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
362 srcdir
="$ac_optarg" ;;
364 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
365 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
366 ac_prev
=sysconfdir
;;
367 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
368 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
369 sysconfdir
="$ac_optarg" ;;
371 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
373 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
374 target
="$ac_optarg" ;;
376 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
379 -version |
--version |
--versio |
--versi |
--vers)
380 echo "configure generated by autoconf version 2.13"
384 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}='$ac_optarg'" ;;
396 -without-* |
--without-*)
397 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
406 # Obsolete; use --with-x.
409 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
410 |
--x-incl |
--x-inc |
--x-in |
--x-i)
411 ac_prev
=x_includes
;;
412 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
413 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
414 x_includes
="$ac_optarg" ;;
416 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
417 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
418 ac_prev
=x_libraries
;;
419 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
420 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
421 x_libraries
="$ac_optarg" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE
; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
471 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
472 |
--no-cr |
--no-c) ;;
473 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
474 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
475 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
482 # Only set these to C if already set. These must not be set unconditionally
483 # because not all systems understand e.g. LANG=C (notably SCO).
484 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485 # Non-C LC_CTYPE values break the ctype check.
486 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest
* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 # A filename unique to this package, relative to the directory that
497 # configure is in, which we can look for to find out if srcdir is correct.
498 ac_unique_file
=Include
/object.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted
=yes
503 # Try the directory containing this script, then its parent.
505 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
508 if test ! -r $srcdir/$ac_unique_file; then
512 ac_srcdir_defaulted
=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE
; then
526 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
528 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 for ac_site_file
in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp
='$CPP $CPPFLAGS'
549 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling
=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
564 ac_n
= ac_c
='\c' ac_t
=
570 # Set VERSION so we only need to edit in one place (i.e., here)
574 # Arguments passed to configure.
576 CONFIG_ARGS
="$ac_configure_args"
578 # NEXTSTEP|MacOSX|Darwin stuff
579 if test -f /usr
/lib
/NextStep
/software_version
-o -f /System
/Library
/CoreServices
/software_version
; then
581 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
582 echo "configure:583: checking for --with-next-archs" >&5
583 # Check whether --with-next-archs or --without-next-archs was given.
584 if test "${with_next_archs+set}" = set; then
585 withval
="$with_next_archs"
587 if test -n "$withval"; then
588 ac_arch_flags
=`/usr/lib/arch_tool -archify_list $withval`
589 # GCC does not currently support multi archs on the NeXT
592 echo "$ac_t""$with_next_archs" 1>&6
595 echo "$ac_t""none: using `arch`" 1>&6
599 if test -z "$MACHDEP"
601 ac_sys_system
=`uname -s`
602 if test "$ac_sys_system" = "Darwin" ; then
603 ac_sys_release
=`uname -r`
605 set X
`hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
606 sed -e 's/://' -e 's/\./_/'` && \
607 ac_sys_system
=next
&& ac_sys_release
=$4
610 MACHDEP
="$ac_sys_system$ac_sys_release"
614 # Check whether --with-next-framework or --without-next-framework was given.
615 if test "${with_next_framework+set}" = set; then
616 withval
="$with_next_framework"
620 # Check whether --with-dyld or --without-dyld was given.
621 if test "${with_dyld+set}" = set; then
627 # Set name for machine-dependent library files
629 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
630 echo "configure:631: checking MACHDEP" >&5
631 if test -z "$MACHDEP"
633 ac_sys_system
=`uname -s`
634 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
635 ac_sys_release
=`uname -v`
637 ac_sys_release
=`uname -r`
639 ac_md_system
=`echo $ac_sys_system |
640 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
641 ac_md_release
=`echo $ac_sys_release |
642 tr -d '/ ' | sed 's/\..*//'`
643 MACHDEP
="$ac_md_system$ac_md_release"
646 '') MACHDEP
="unknown";;
651 # SGI compilers allow the specification of the both the ABI and the
652 # ISA on the command line. Depending on the values of these switches,
653 # different and often incompatable code will be generated.
655 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
656 # thus supply support for various ABI/ISA combinations. The MACHDEP
657 # variable is also adjusted.
660 if test ! -z "$SGI_ABI"
663 LDFLAGS
="$SGI_ABI $LDFLAGS"
664 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
666 echo "$ac_t""$MACHDEP" 1>&6
668 # checks for alternative programs
669 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
670 echo "configure:671: checking for --without-gcc" >&5
671 # Check whether --with-gcc or --without-gcc was given.
672 if test "${with_gcc+set}" = set; then
681 without_gcc
=$withval;;
685 case $ac_sys_system in
695 OPT
="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
696 CCSHARED
="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
697 LDFLAGS
="$LDFLAGS -nodup"
705 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
708 AR
="\$(srcdir)/Modules/ar_beos"
718 echo "$ac_t""$without_gcc" 1>&6
723 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
724 echo "configure:725: checking for --with-cxx=<compiler>" >&5
725 # Check whether --with-cxx or --without-cxx was given.
726 if test "${with_cxx+set}" = set; then
744 echo "$ac_t""$with_cxx" 1>&6
747 if test "$check_cxx" = "yes"
749 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
751 # Extract the first word of "$ac_prog", so it can be a program name with args.
752 set dummy
$ac_prog; ac_word
=$2
753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
754 echo "configure:755: checking for $ac_word" >&5
755 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 if test -n "$CXX"; then
759 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
761 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
763 for ac_dir
in $ac_dummy; do
764 test -z "$ac_dir" && ac_dir
=.
765 if test -f $ac_dir/$ac_word; then
766 ac_cv_prog_CXX
="$ac_prog"
773 CXX
="$ac_cv_prog_CXX"
774 if test -n "$CXX"; then
775 echo "$ac_t""$CXX" 1>&6
777 echo "$ac_t""no" 1>&6
780 test -n "$CXX" && break
782 test -n "$CXX" || CXX
="notfound"
784 if test "$CXX" = "notfound"
788 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp
='$CXXCPP $CPPFLAGS'
794 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling
=$ac_cv_prog_cxx_cross
798 cat > conftest.
$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
803 int main(){return(0);}
805 if { (eval echo configure
:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
806 ac_cv_prog_cxx_works
=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (.
/conftest
; exit) 2>/dev
/null
; then
809 ac_cv_prog_cxx_cross
=no
811 ac_cv_prog_cxx_cross
=yes
814 echo "configure: failed program was:" >&5
815 cat conftest.
$ac_ext >&5
816 ac_cv_prog_cxx_works
=no
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp
='$CPP $CPPFLAGS'
822 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling
=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
827 if test $ac_cv_prog_cxx_works = no
; then
828 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
833 cross_compiling
=$ac_cv_prog_cxx_cross
838 # If the user switches compilers, we can't believe the cache
839 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
841 { echo "configure: error: cached CC is different -- throw away $cache_file
842 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
845 # Extract the first word of "gcc", so it can be a program name with args.
846 set dummy gcc
; ac_word
=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 if test -n "$CC"; then
853 ac_cv_prog_CC
="$CC" # Let the user override the test.
855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
857 for ac_dir
in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir
=.
859 if test -f $ac_dir/$ac_word; then
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc
; 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 \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC
="$CC" # Let the user override the test.
885 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
888 for ac_dir
in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir
=.
890 if test -f $ac_dir/$ac_word; then
891 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
900 if test $ac_prog_rejected = yes; then
901 # We found a bogon in the path, so make sure we never use it.
902 set dummy
$ac_cv_prog_CC
904 if test $# -gt 0; then
905 # We chose a different compiler from the bogus one.
906 # However, it has the same basename, so the bogon will be chosen
907 # first if we set CC to just the basename; use the full file name.
909 set dummy
"$ac_dir/$ac_word" "$@"
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
920 echo "$ac_t""no" 1>&6
923 if test -z "$CC"; then
926 # Extract the first word of "cl", so it can be a program name with args.
927 set dummy cl
; ac_word
=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
933 if test -n "$CC"; then
934 ac_cv_prog_CC
="$CC" # Let the user override the test.
936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
938 for ac_dir
in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir
=.
940 if test -f $ac_dir/$ac_word; then
949 if test -n "$CC"; then
950 echo "$ac_t""$CC" 1>&6
952 echo "$ac_t""no" 1>&6
957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
961 echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965 ac_cpp
='$CPP $CPPFLAGS'
966 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968 cross_compiling
=$ac_cv_prog_cc_cross
970 cat > conftest.
$ac_ext << EOF
972 #line 973 "configure"
973 #include "confdefs.h"
977 if { (eval echo configure
:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
978 ac_cv_prog_cc_works
=yes
979 # If we can't run a trivial program, we are probably using a cross compiler.
980 if (.
/conftest
; exit) 2>/dev
/null
; then
981 ac_cv_prog_cc_cross
=no
983 ac_cv_prog_cc_cross
=yes
986 echo "configure: failed program was:" >&5
987 cat conftest.
$ac_ext >&5
988 ac_cv_prog_cc_works
=no
992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993 ac_cpp
='$CPP $CPPFLAGS'
994 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996 cross_compiling
=$ac_cv_prog_cc_cross
998 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
999 if test $ac_cv_prog_cc_works = no
; then
1000 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1004 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1005 cross_compiling
=$ac_cv_prog_cc_cross
1007 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether we are using GNU C" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 cat > conftest.c
<<EOF
1017 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1024 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1026 if test $ac_cv_prog_gcc = yes; then
1032 ac_test_CFLAGS
="${CFLAGS+set}"
1033 ac_save_CFLAGS
="$CFLAGS"
1035 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 echo 'void f(){}' > conftest.c
1041 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1050 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1051 if test "$ac_test_CFLAGS" = set; then
1052 CFLAGS
="$ac_save_CFLAGS"
1053 elif test $ac_cv_prog_cc_g = yes; then
1054 if test "$GCC" = yes; then
1060 if test "$GCC" = yes; then
1067 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1068 echo "configure:1069: checking for Cygwin environment" >&5
1069 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 cat > conftest.
$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1079 #define __CYGWIN__ __CYGWIN32__
1084 if { (eval echo configure
:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.
$ac_ext >&5
1097 echo "$ac_t""$ac_cv_cygwin" 1>&6
1099 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1100 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1101 echo "configure:1102: checking for mingw32 environment" >&5
1102 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 cat > conftest.
$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1113 if { (eval echo configure
:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1117 echo "configure: failed program was:" >&5
1118 cat conftest.
$ac_ext >&5
1126 echo "$ac_t""$ac_cv_mingw32" 1>&6
1128 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1131 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1132 echo "configure:1133: checking for executable suffix" >&5
1133 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1140 echo 'int main () { return 0; }' > conftest.
$ac_ext
1142 if { (eval echo configure
:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1143 for file in conftest.
*; do
1145 *.c |
*.o |
*.obj
) ;;
1146 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1150 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1153 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1158 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1159 echo "$ac_t""${ac_cv_exeext}" 1>&6
1162 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1163 echo "configure:1164: checking for --with-suffix" >&5
1164 # Check whether --with-suffix or --without-suffix was given.
1165 if test "${with_suffix+set}" = set; then
1166 withval
="$with_suffix"
1171 *) EXEEXT
=$withval;;
1175 echo "$ac_t""$EXEEXT" 1>&6
1180 gcc
) CC
="$CC -D_HAVE_BSDI";;
1184 case $ac_sys_system in
1187 cc|
*/cc
) CC
="$CC -Ae";;
1191 cc
) CC
="$CC -Wl,-Bexport";;
1194 # Some functions have a prototype only with that define, e.g. confstr
1195 cat >> confdefs.h
<<\EOF
1196 #define __EXTENSIONS__ 1
1204 echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
1205 echo "configure:1206: checking LIBRARY" >&5
1206 if test -z "$LIBRARY"
1208 LIBRARY
='libpython$(VERSION).a'
1210 echo "$ac_t""$LIBRARY" 1>&6
1212 # LDLIBRARY is the name of the library to link against (as opposed to the
1213 # name of the library into which to insert object files). On systems
1214 # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
1215 # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the
1216 # shared (i.e., DLL) library.
1219 LDLIBRARY
="$LIBRARY"
1222 # LINKCC is the command that links the python executable -- default is $(CC).
1223 # This is altered for AIX in order to build the export list before
1226 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1227 echo "configure:1228: checking LINKCC" >&5
1228 if test -z "$LINKCC"
1230 case $ac_sys_system in
1232 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1234 LINKCC
="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1236 LINKCC
="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1237 *) LINKCC
="\$(PURIFY) \$(CC)";;
1240 echo "$ac_t""$LINKCC" 1>&6
1242 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1243 echo "configure:1244: checking LDLIBRARY" >&5
1245 # NeXT framework builds require that the 'ar' library be converted into
1246 # a bundle using libtool.
1247 if test "$with_next_framework"
1249 LDLIBRARY
='libpython$(VERSION).dylib'
1252 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1255 LDLIBRARY
='libpython$(VERSION).so'
1259 LDLIBRARY
='libpython$(VERSION).so'
1262 LDLIBRARY
='libpython$(VERSION).dll.a'
1263 DLLLIBRARY
='libpython$(VERSION).dll'
1266 echo "$ac_t""$LDLIBRARY" 1>&6
1268 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib
; ac_word
=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1278 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1280 for ac_dir
in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir
=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_RANLIB
="ranlib"
1288 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1291 RANLIB
="$ac_cv_prog_RANLIB"
1292 if test -n "$RANLIB"; then
1293 echo "$ac_t""$RANLIB" 1>&6
1295 echo "$ac_t""no" 1>&6
1299 for ac_prog
in ar aal
1301 # Extract the first word of "$ac_prog", so it can be a program name with args.
1302 set dummy
$ac_prog; ac_word
=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 if test -n "$AR"; then
1309 ac_cv_prog_AR
="$AR" # Let the user override the test.
1311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1313 for ac_dir
in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir
=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AR
="$ac_prog"
1324 if test -n "$AR"; then
1325 echo "$ac_t""$AR" 1>&6
1327 echo "$ac_t""no" 1>&6
1330 test -n "$AR" && break
1332 test -n "$AR" || AR
="ar"
1335 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1336 if test -f $ac_dir/install-sh
; then
1338 ac_install_sh
="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh
; then
1342 ac_install_sh
="$ac_aux_dir/install.sh -c"
1346 if test -z "$ac_aux_dir"; then
1347 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1349 ac_config_guess
=$ac_aux_dir/config.guess
1350 ac_config_sub
=$ac_aux_dir/config.sub
1351 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1365 echo "configure:1366: checking for a BSD compatible install" >&5
1366 if test -z "$INSTALL"; then
1367 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1371 for ac_dir
in $PATH; do
1372 # Account for people who put trailing slashes in PATH elements.
1374 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1376 # OSF1 and SCO ODT 3.0 have their own names for install.
1377 # Don't use installbsd from OSF since it installs stuff as root
1379 for ac_prog
in ginstall scoinst
install; do
1380 if test -f $ac_dir/$ac_prog; then
1381 if test $ac_prog = install &&
1382 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1386 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL
="$ac_cv_path_install"
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL
="$ac_install_sh"
1407 echo "$ac_t""$INSTALL" 1>&6
1409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1410 # It thinks the first close brace ends the variable substitution.
1411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1415 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1418 # Not every filesystem supports hard links
1420 if test -z "$LN" ; then
1421 case $ac_sys_system in
1423 CYGWIN
*) LN
="ln -s";;
1428 # Optimizer/debugger flags
1434 case $ac_cv_prog_cc_g in
1435 yes) OPT
="-g -O2 -Wall -Wstrict-prototypes";;
1436 *) OPT
="-O2 -Wall -Wstrict-prototypes";;
1443 # The current (beta) Monterey compiler dies with optimizations
1444 case $ac_sys_system in
1448 if test "$ac_arch_flags"
1450 OPT
="$OPT $ac_arch_flags"
1452 # checks for UNIX variants that set C preprocessor variables
1453 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1454 echo "configure:1455: checking how to run the C preprocessor" >&5
1455 # On Suns, sometimes $CPP names a directory.
1456 if test -n "$CPP" && test -d "$CPP"; then
1459 if test -z "$CPP"; then
1460 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 # This must be in double quotes, not single quotes, because CPP may get
1464 # substituted into the Makefile and "${CC-cc}" will confuse make.
1466 # On the NeXT, cc -E runs the code through the compiler's parser,
1467 # not just through cpp.
1468 cat > conftest.
$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure
:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1477 if test -z "$ac_err"; then
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1484 CPP
="${CC-cc} -E -traditional-cpp"
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1491 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure
:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1498 echo "configure: failed program was:" >&5
1499 cat conftest.
$ac_ext >&5
1501 CPP
="${CC-cc} -nologo -E"
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure
:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1511 if test -z "$ac_err"; then
1515 echo "configure: failed program was:" >&5
1516 cat conftest.
$ac_ext >&5
1525 ac_cv_prog_CPP
="$CPP"
1527 CPP
="$ac_cv_prog_CPP"
1529 ac_cv_prog_CPP
="$CPP"
1531 echo "$ac_t""$CPP" 1>&6
1533 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1534 echo "configure:1535: checking for AIX" >&5
1535 cat > conftest.
$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "yes" >/dev
/null
2>&1; then
1546 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1547 #define _ALL_SOURCE 1
1552 echo "$ac_t""no" 1>&6
1557 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1558 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1559 echo "configure:1560: checking for minix/config.h" >&5
1560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 cat > conftest.
$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 #include <minix/config.h>
1568 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1569 { (eval echo configure
:1570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1570 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1571 if test -z "$ac_err"; then
1573 eval "ac_cv_header_$ac_safe=yes"
1576 echo "configure: failed program was:" >&5
1577 cat conftest.
$ac_ext >&5
1579 eval "ac_cv_header_$ac_safe=no"
1583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1587 echo "$ac_t""no" 1>&6
1591 if test "$MINIX" = yes; then
1592 cat >> confdefs.h
<<\EOF
1593 #define _POSIX_SOURCE 1
1596 cat >> confdefs.h
<<\EOF
1597 #define _POSIX_1_SOURCE 2
1600 cat >> confdefs.h
<<\EOF
1607 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether $CC accepts -OPT:Olimit=0" >&5
1609 if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1613 CC
="$CC -OPT:Olimit=0"
1614 if test "$cross_compiling" = yes; then
1615 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 int main() { return 0; }
1622 if { (eval echo configure
:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1624 ac_cv_opt_olimit_ok
=yes
1626 echo "configure: failed program was:" >&5
1627 cat conftest.
$ac_ext >&5
1629 ac_cv_opt_olimit_ok
=no
1637 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1638 if test $ac_cv_opt_olimit_ok = yes; then
1639 case $ac_sys_system in
1640 Darwin
*) OPT
="$OPT" ;;
1641 *) OPT
="$OPT -OPT:Olimit=0";;
1644 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether $CC accepts -Olimit 1500" >&5
1646 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1650 CC
="$CC -Olimit 1500"
1651 if test "$cross_compiling" = yes; then
1652 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1654 cat > conftest.
$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 int main() { return 0; }
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1674 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1675 if test $ac_cv_olimit_ok = yes; then
1676 OPT
="$OPT -Olimit 1500"
1681 # checks for header files
1682 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1683 echo "configure:1684: checking for ANSI C header files" >&5
1684 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.
$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1695 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure
:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1698 if test -z "$ac_err"; then
1700 ac_cv_header_stdc
=yes
1703 echo "configure: failed program was:" >&5
1704 cat conftest.
$ac_ext >&5
1706 ac_cv_header_stdc
=no
1710 if test $ac_cv_header_stdc = yes; then
1711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1712 cat > conftest.
$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718 egrep "memchr" >/dev
/null
2>&1; then
1722 ac_cv_header_stdc
=no
1728 if test $ac_cv_header_stdc = yes; then
1729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1730 cat > conftest.
$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1736 egrep "free" >/dev
/null
2>&1; then
1740 ac_cv_header_stdc
=no
1746 if test $ac_cv_header_stdc = yes; then
1747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1748 if test "$cross_compiling" = yes; then
1751 cat > conftest.
$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1755 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1756 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1758 int main () { int i; for (i = 0; i < 256; i++)
1759 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1763 if { (eval echo configure
:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1767 echo "configure: failed program was:" >&5
1768 cat conftest.
$ac_ext >&5
1770 ac_cv_header_stdc
=no
1778 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1779 if test $ac_cv_header_stdc = yes; then
1780 cat >> confdefs.h
<<\EOF
1781 #define STDC_HEADERS 1
1786 for ac_hdr
in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
1787 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
1788 sys
/audioio.h sys
/file.h sys
/lock.h db_185.h db.h \
1789 sys
/param.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
1790 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
1791 ndbm.h db
1/ndbm.h gdbm
/ndbm.h
1793 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_hdr" >&5
1796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1799 cat > conftest.
$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1804 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure
:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1809 eval "ac_cv_header_$ac_safe=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.
$ac_ext >&5
1815 eval "ac_cv_header_$ac_safe=no"
1819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1822 cat >> confdefs.h
<<EOF
1823 #define $ac_tr_hdr 1
1827 echo "$ac_t""no" 1>&6
1832 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1834 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_hdr that defines DIR" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.
$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1849 if { (eval echo configure
:1850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1851 eval "ac_cv_header_dirent_$ac_safe=yes"
1853 echo "configure: failed program was:" >&5
1854 cat conftest.
$ac_ext >&5
1856 eval "ac_cv_header_dirent_$ac_safe=no"
1860 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1863 cat >> confdefs.h
<<EOF
1864 #define $ac_tr_hdr 1
1866 ac_header_dirent
=$ac_hdr; break
1868 echo "$ac_t""no" 1>&6
1871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1872 if test $ac_header_dirent = dirent.h
; then
1873 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1874 echo "configure:1875: checking for opendir in -ldir" >&5
1875 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 ac_save_LIBS
="$LIBS"
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1893 if { (eval echo configure
:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1895 eval "ac_cv_lib_$ac_lib_var=yes"
1897 echo "configure: failed program was:" >&5
1898 cat conftest.
$ac_ext >&5
1900 eval "ac_cv_lib_$ac_lib_var=no"
1903 LIBS
="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1910 echo "$ac_t""no" 1>&6
1914 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1915 echo "configure:1916: checking for opendir in -lx" >&5
1916 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 ac_save_LIBS
="$LIBS"
1922 cat > conftest.
$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 /* Override any gcc2 internal prototype to avoid an error. */
1926 /* We use char because int might match the return type of a gcc2
1927 builtin and then its argument prototype would still apply. */
1934 if { (eval echo configure
:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1936 eval "ac_cv_lib_$ac_lib_var=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.
$ac_ext >&5
1941 eval "ac_cv_lib_$ac_lib_var=no"
1944 LIBS
="$ac_save_LIBS"
1947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1951 echo "$ac_t""no" 1>&6
1957 # checks for typedefs
1959 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
1960 echo "configure:1961: checking for clock_t in time.h" >&5
1961 cat > conftest.
$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1967 egrep "clock_t" >/dev
/null
2>&1; then
1972 cat >> confdefs.h
<<\EOF
1973 #define clock_t long
1979 echo "$ac_t""$was_it_defined" 1>&6
1981 # Add some code to confdefs.h so that the test for off_t works on SCO
1982 cat >> confdefs.h
<<\EOF
1988 # Type availability checks
1989 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1990 echo "configure:1991: checking for mode_t" >&5
1991 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <sys/types.h>
2003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2004 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2006 ac_cv_type_mode_t
=yes
2009 ac_cv_type_mode_t
=no
2014 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2015 if test $ac_cv_type_mode_t = no
; then
2016 cat >> confdefs.h
<<\EOF
2022 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2023 echo "configure:2024: checking for off_t" >&5
2024 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2037 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2039 ac_cv_type_off_t
=yes
2047 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2048 if test $ac_cv_type_off_t = no
; then
2049 cat >> confdefs.h
<<\EOF
2055 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2056 echo "configure:2057: checking for pid_t" >&5
2057 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.
$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 #include <sys/types.h>
2069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2070 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2072 ac_cv_type_pid_t
=yes
2080 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2081 if test $ac_cv_type_pid_t = no
; then
2082 cat >> confdefs.h
<<\EOF
2088 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2089 echo "configure:2090: checking return type of signal handlers" >&5
2090 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 cat > conftest.
$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 #include <sys/types.h>
2102 extern "C" void (*signal (int, void (*)(int)))(int);
2104 void (*signal ()) ();
2111 if { (eval echo configure
:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2113 ac_cv_type_signal
=void
2115 echo "configure: failed program was:" >&5
2116 cat conftest.
$ac_ext >&5
2118 ac_cv_type_signal
=int
2123 echo "$ac_t""$ac_cv_type_signal" 1>&6
2124 cat >> confdefs.h
<<EOF
2125 #define RETSIGTYPE $ac_cv_type_signal
2129 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2130 echo "configure:2131: checking for size_t" >&5
2131 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.
$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 #include <sys/types.h>
2143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2146 ac_cv_type_size_t
=yes
2149 ac_cv_type_size_t
=no
2154 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2155 if test $ac_cv_type_size_t = no
; then
2156 cat >> confdefs.h
<<\EOF
2157 #define size_t unsigned
2162 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2163 echo "configure:2164: checking for uid_t in sys/types.h" >&5
2164 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 #include <sys/types.h>
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "uid_t" >/dev
/null
2>&1; then
2175 ac_cv_type_uid_t
=yes
2184 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2185 if test $ac_cv_type_uid_t = no
; then
2186 cat >> confdefs.h
<<\EOF
2190 cat >> confdefs.h
<<\EOF
2197 # Sizes of various common basic types
2198 echo $ac_n "checking size of int""... $ac_c" 1>&6
2199 echo "configure:2200: checking size of int" >&5
2200 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2203 if test "$cross_compiling" = yes; then
2204 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2206 cat > conftest.
$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2212 FILE *f=fopen("conftestval", "w");
2214 fprintf(f, "%d\n", sizeof(int));
2218 if { (eval echo configure
:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2220 ac_cv_sizeof_int
=`cat conftestval`
2222 echo "configure: failed program was:" >&5
2223 cat conftest.
$ac_ext >&5
2231 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2232 cat >> confdefs.h
<<EOF
2233 #define SIZEOF_INT $ac_cv_sizeof_int
2237 echo $ac_n "checking size of long""... $ac_c" 1>&6
2238 echo "configure:2239: checking size of long" >&5
2239 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 if test "$cross_compiling" = yes; then
2243 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2251 FILE *f=fopen("conftestval", "w");
2253 fprintf(f, "%d\n", sizeof(long));
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2259 ac_cv_sizeof_long
=`cat conftestval`
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2270 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2271 cat >> confdefs.h
<<EOF
2272 #define SIZEOF_LONG $ac_cv_sizeof_long
2276 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2277 echo "configure:2278: checking size of void *" >&5
2278 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 if test "$cross_compiling" = yes; then
2282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2284 cat > conftest.
$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2290 FILE *f=fopen("conftestval", "w");
2292 fprintf(f, "%d\n", sizeof(void *));
2296 if { (eval echo configure
:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2298 ac_cv_sizeof_void_p
=`cat conftestval`
2300 echo "configure: failed program was:" >&5
2301 cat conftest.
$ac_ext >&5
2303 ac_cv_sizeof_void_p
=0
2309 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2310 cat >> confdefs.h
<<EOF
2311 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2315 echo $ac_n "checking size of char""... $ac_c" 1>&6
2316 echo "configure:2317: checking size of char" >&5
2317 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test "$cross_compiling" = yes; then
2321 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2329 FILE *f=fopen("conftestval", "w");
2331 fprintf(f, "%d\n", sizeof(char));
2335 if { (eval echo configure
:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2337 ac_cv_sizeof_char
=`cat conftestval`
2339 echo "configure: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2348 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2349 cat >> confdefs.h
<<EOF
2350 #define SIZEOF_CHAR $ac_cv_sizeof_char
2354 echo $ac_n "checking size of short""... $ac_c" 1>&6
2355 echo "configure:2356: checking size of short" >&5
2356 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 if test "$cross_compiling" = yes; then
2360 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2368 FILE *f=fopen("conftestval", "w");
2370 fprintf(f, "%d\n", sizeof(short));
2374 if { (eval echo configure
:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2376 ac_cv_sizeof_short
=`cat conftestval`
2378 echo "configure: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2381 ac_cv_sizeof_short
=0
2387 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2388 cat >> confdefs.h
<<EOF
2389 #define SIZEOF_SHORT $ac_cv_sizeof_short
2393 echo $ac_n "checking size of float""... $ac_c" 1>&6
2394 echo "configure:2395: checking size of float" >&5
2395 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 if test "$cross_compiling" = yes; then
2399 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2401 cat > conftest.
$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2407 FILE *f=fopen("conftestval", "w");
2409 fprintf(f, "%d\n", sizeof(float));
2413 if { (eval echo configure
:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2415 ac_cv_sizeof_float
=`cat conftestval`
2417 echo "configure: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2420 ac_cv_sizeof_float
=0
2426 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2427 cat >> confdefs.h
<<EOF
2428 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2432 echo $ac_n "checking size of double""... $ac_c" 1>&6
2433 echo "configure:2434: checking size of double" >&5
2434 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test "$cross_compiling" = yes; then
2438 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2446 FILE *f=fopen("conftestval", "w");
2448 fprintf(f, "%d\n", sizeof(double));
2452 if { (eval echo configure
:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2454 ac_cv_sizeof_double
=`cat conftestval`
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2459 ac_cv_sizeof_double
=0
2465 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2466 cat >> confdefs.h
<<EOF
2467 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2471 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2472 echo "configure:2473: checking size of fpos_t" >&5
2473 if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 if test "$cross_compiling" = yes; then
2477 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2479 cat > conftest.
$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2485 FILE *f=fopen("conftestval", "w");
2487 fprintf(f, "%d\n", sizeof(fpos_t));
2491 if { (eval echo configure
:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2493 ac_cv_sizeof_fpos_t
=`cat conftestval`
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 ac_cv_sizeof_fpos_t
=0
2504 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2505 cat >> confdefs.h
<<EOF
2506 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2511 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2512 echo "configure:2513: checking for long long support" >&5
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2519 long long x; x = (long long)0;
2522 if { (eval echo configure
:2523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2524 cat >> confdefs.h
<<\EOF
2525 #define HAVE_LONG_LONG 1
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2533 echo "$ac_t""$have_long_long" 1>&6
2534 if test "$have_long_long" = yes ; then
2535 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2536 echo "configure:2537: checking size of long long" >&5
2537 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test "$cross_compiling" = yes; then
2541 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2549 FILE *f=fopen("conftestval", "w");
2551 fprintf(f, "%d\n", sizeof(long long));
2555 if { (eval echo configure
:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2557 ac_cv_sizeof_long_long
=`cat conftestval`
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 ac_cv_sizeof_long_long
=0
2568 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2569 cat >> confdefs.h
<<EOF
2570 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2576 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2577 echo "configure:2578: checking for uintptr_t support" >&5
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2584 uintptr_t x; x = (uintptr_t)0;
2587 if { (eval echo configure
:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2589 cat >> confdefs.h
<<\EOF
2590 #define HAVE_UINTPTR_T 1
2594 echo "configure: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2598 echo "$ac_t""$have_uintptr_t" 1>&6
2599 if test "$have_uintptr_t" = yes ; then
2600 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2601 echo "configure:2602: checking size of uintptr_t" >&5
2602 if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 if test "$cross_compiling" = yes; then
2606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2608 cat > conftest.
$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2614 FILE *f=fopen("conftestval", "w");
2616 fprintf(f, "%d\n", sizeof(uintptr_t));
2620 if { (eval echo configure
:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2622 ac_cv_sizeof_uintptr_t
=`cat conftestval`
2624 echo "configure: failed program was:" >&5
2625 cat conftest.
$ac_ext >&5
2627 ac_cv_sizeof_uintptr_t
=0
2633 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2634 cat >> confdefs.h
<<EOF
2635 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2641 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2642 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2643 echo "configure:2644: checking size of off_t" >&5
2644 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 if test "$cross_compiling" = yes; then
2648 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2650 cat > conftest.
$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2654 #include <sys/types.h>
2657 FILE *f=fopen("conftestval", "w");
2659 fprintf(f, "%d\n", sizeof(off_t));
2663 if { (eval echo configure
:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2665 ac_cv_sizeof_off_t
=`cat conftestval`
2667 echo "configure: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2670 ac_cv_sizeof_off_t
=0
2678 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2679 cat >> confdefs.h
<<EOF
2680 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2684 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2685 echo "configure:2686: checking whether to enable large file support" >&5
2686 if test "$have_long_long" = yes -a \
2687 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2688 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2689 cat >> confdefs.h
<<\EOF
2690 #define HAVE_LARGEFILE_SUPPORT 1
2693 echo "$ac_t""yes" 1>&6
2695 echo "$ac_t""no" 1>&6
2698 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2699 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2700 echo "configure:2701: checking size of time_t" >&5
2701 if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 if test "$cross_compiling" = yes; then
2705 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2714 FILE *f=fopen("conftestval", "w");
2716 fprintf(f, "%d\n", sizeof(time_t));
2720 if { (eval echo configure
:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2722 ac_cv_sizeof_time_t
=`cat conftestval`
2724 echo "configure: failed program was:" >&5
2725 cat conftest.
$ac_ext >&5
2727 ac_cv_sizeof_time_t
=0
2735 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2736 cat >> confdefs.h
<<EOF
2737 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2742 # if have pthread_t then define SIZEOF_PTHREAD_T
2743 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2744 echo "configure:2745: checking for pthread_t" >&5
2746 cat > conftest.
$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <pthread.h>
2751 pthread_t x; x = *(pthread_t*)0;
2754 if { (eval echo configure
:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2758 echo "configure: failed program was:" >&5
2759 cat conftest.
$ac_ext >&5
2762 echo "$ac_t""$have_pthread_t" 1>&6
2763 if test "$have_pthread_t" = yes ; then
2764 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2765 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2766 echo "configure:2767: checking size of pthread_t" >&5
2767 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2770 if test "$cross_compiling" = yes; then
2771 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2773 cat > conftest.
$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2777 #include <pthread.h>
2780 FILE *f=fopen("conftestval", "w");
2782 fprintf(f, "%d\n", sizeof(pthread_t));
2786 if { (eval echo configure
:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2788 ac_cv_sizeof_pthread_t
=`cat conftestval`
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 ac_cv_sizeof_pthread_t
=0
2801 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2802 cat >> confdefs.h
<<EOF
2803 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2809 # Minor variations in building a framework between NextStep versions 4 and 5
2811 case $ac_sys_system/$ac_sys_release in
2813 ns_undef_sym
='_environ'
2814 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;;
2816 ns_undef_sym
='__environ'
2817 LIBTOOL_CRUFT
="-U $ns_undef_sym" ;;
2819 ns_undef_sym
='_environ'
2820 LIBTOOL_CRUFT
="-lcc_dynamic -U $ns_undef_sym" ;;
2823 echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
2824 echo "configure:2825: checking for --with-next-framework" >&5
2825 if test "$with_next_framework"
2827 OPT
="$OPT -fno-common"
2828 # -U __environ is needed since bundles don't have access
2829 # to crt0 when built but will always be linked against it
2830 LDFLAGS
="$LDFLAGS -Wl,-U,$ns_undef_sym"
2831 cat >> confdefs.h
<<\EOF
2832 #define WITH_NEXT_FRAMEWORK 1
2835 echo "$ac_t""yes" 1>&6
2837 echo "$ac_t""no" 1>&6
2840 echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
2841 echo "configure:2842: checking for --with-dyld" >&5
2842 if test "$with_next_framework" -o "$with_dyld"
2844 if test "$with_dyld"
2846 echo "$ac_t""yes" 1>&6
2848 echo "$ac_t""required for framework build" 1>&6
2850 cat >> confdefs.h
<<\EOF
2856 echo "$ac_t""no" 1>&6
2859 # Set info about shared libraries.
2865 # SO is the extension of shared libraries `(including the dot!)
2866 # -- usually .so, .sl on HP-UX, .dll on Cygwin
2867 echo $ac_n "checking SO""... $ac_c" 1>&6
2868 echo "configure:2869: checking SO" >&5
2871 case $ac_sys_system in
2877 echo "$ac_t""$SO" 1>&6
2878 # LDSHARED is the ld *command* used to create shared library
2879 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
2880 # (Shared libraries in this instance are shared modules to be loaded into
2881 # Python, as opposed to building Python itself as a shared library.)
2882 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
2883 echo "configure:2884: checking LDSHARED" >&5
2884 if test -z "$LDSHARED"
2886 case $ac_sys_system/$ac_sys_release in
2888 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
2889 LDSHARED
="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
2892 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
2893 LDSHARED
="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
2895 IRIX
/5*) LDSHARED
="ld -shared";;
2896 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
2897 SunOS
/4*) LDSHARED
="ld";;
2899 if test "$GCC" = "yes"
2900 then LDSHARED
='$(CC) -shared'
2901 else LDSHARED
="ld -G";
2903 hp
*|HP
*) LDSHARED
="ld -b";;
2904 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
2905 DYNIX
/ptx*) LDSHARED
="ld -G";;
2908 then LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined suppress'
2909 else LDSHARED
='$(CC) $(CFLAGS) -nostdlib -r';
2911 if test "$with_next_framework" ; then
2912 LDSHARED
="$LDSHARED \$(LDLIBRARY)"
2914 Linux
*) LDSHARED
="gcc -shared";;
2915 dgux
*) LDSHARED
="ld -G";;
2916 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
2917 OpenBSD
*) LDSHARED
="ld -Bshareable";;
2919 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2921 LDSHARED
="cc -shared"
2923 LDSHARED
="ld -Bshareable"
2926 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2928 LDSHARED
="cc -shared ${LDFLAGS}"
2930 LDSHARED
="ld -Bshareable ${LDFLAGS}"
2933 if test "$GCC" = "yes"
2934 then LDSHARED
="$(CC) -shared"
2935 else LDSHARED
="$(CC) -G"
2937 SCO_SV
*) LDSHARED
="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
2938 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
2939 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
2943 echo "$ac_t""$LDSHARED" 1>&6
2944 BLDSHARED
=${BLDSHARED-$LDSHARED}
2945 # CCSHARED are the C *flags* used to create objects to go into a shared
2946 # library (module) -- this is only needed for a few systems
2947 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
2948 echo "configure:2949: checking CCSHARED" >&5
2949 if test -z "$CCSHARED"
2951 case $ac_sys_system/$ac_sys_release in
2952 SunOS
*) if test "$GCC" = yes;
2953 then CCSHARED
="-fPIC";
2955 hp
*|HP
*) if test "$GCC" = yes;
2956 then CCSHARED
="-fpic";
2959 Linux
*) CCSHARED
="-fPIC";;
2960 BSD
/OS
*/4*) CCSHARED
="-fpic";;
2961 OpenBSD
*) CCSHARED
="-fpic";;
2962 FreeBSD
*|NetBSD
*) CCSHARED
="-fPIC";;
2964 if test "$GCC" = "yes"
2965 then CCSHARED
="-fPIC"
2966 else CCSHARED
="-KPIC"
2968 SCO_SV
*) CCSHARED
="-KPIC -dy -Bdynamic";;
2969 Monterey
*) CCSHARED
="-G";;
2970 IRIX
*/6*) case $CC in
2971 *gcc
*) CCSHARED
="-shared";;
2974 CYGWIN
*) CCSHARED
="-DUSE_DL_IMPORT";;
2977 echo "$ac_t""$CCSHARED" 1>&6
2978 # LINKFORSHARED are the flags passed to the $(CC) command that links
2979 # the python executable -- this is only needed for a few systems
2980 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
2981 echo "configure:2982: checking LINKFORSHARED" >&5
2982 if test -z "$LINKFORSHARED"
2984 case $ac_sys_system/$ac_sys_release in
2985 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
2987 LINKFORSHARED
="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2988 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
2989 Linux
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
2990 # -u libsys_s pulls in all symbols in libsys
2991 next
/2*|next
/3*) LINKFORSHARED
="-u libsys_s";;
2992 # -u __dummy makes the linker aware of the objc runtime
2993 # in System.framework; otherwise, __objcInit (referenced in
2994 # crt1.o) gets erroneously defined as common, which breaks dynamic
2995 # loading of any modules which reference it in System.framework
2996 next
/4*|next
/5*) LINKFORSHARED
="-u __dummy -framework System" ;;
2997 Darwin
/*) LINKFORSHARED
="-u __dummy -framework System -framework Foundation" ;;
2998 UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
2999 SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";;
3000 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
3002 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3004 LINKFORSHARED
="-Wl,--export-dynamic"
3006 SunOS
/5*) case $CC in
3008 if $CC -Xlinker -V 2>&1 |
grep BFD
>/dev
/null
3010 LINKFORSHARED
="-Xlinker --export-dynamic"
3015 echo "$ac_t""$LINKFORSHARED" 1>&6
3018 echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
3019 echo "configure:3020: checking CFLAGSFORSHARED" >&5
3020 if test ! "$LIBRARY" = "$LDLIBRARY"
3022 case $ac_sys_system in
3024 # Cygwin needs CCSHARED when building extension DLLs
3025 # but not when building the interpreter DLL.
3026 CFLAGSFORSHARED
='';;
3028 CFLAGSFORSHARED
='$(CCSHARED)'
3031 echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3033 # checks for libraries
3034 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3035 echo "configure:3036: checking for dlopen in -ldl" >&5
3036 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 ac_save_LIBS
="$LIBS"
3042 cat > conftest.
$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 /* Override any gcc2 internal prototype to avoid an error. */
3046 /* We use char because int might match the return type of a gcc2
3047 builtin and then its argument prototype would still apply. */
3054 if { (eval echo configure
:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3056 eval "ac_cv_lib_$ac_lib_var=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.
$ac_ext >&5
3061 eval "ac_cv_lib_$ac_lib_var=no"
3064 LIBS
="$ac_save_LIBS"
3067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3071 cat >> confdefs.h
<<EOF
3072 #define $ac_tr_lib 1
3078 echo "$ac_t""no" 1>&6
3080 # Dynamic linking for SunOS/Solaris and SYSV
3081 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3082 echo "configure:3083: checking for shl_load in -ldld" >&5
3083 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 ac_save_LIBS
="$LIBS"
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3101 if { (eval echo configure
:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3105 echo "configure: failed program was:" >&5
3106 cat conftest.
$ac_ext >&5
3108 eval "ac_cv_lib_$ac_lib_var=no"
3111 LIBS
="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3118 cat >> confdefs.h
<<EOF
3119 #define $ac_tr_lib 1
3125 echo "$ac_t""no" 1>&6
3127 # Dynamic linking for HP-UX
3129 # Check for --with-pydebug
3130 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
3131 echo "configure:3132: checking for --with-pydebug" >&5
3132 # Check whether --with-pydebug or --without-pydebug was given.
3133 if test "${with_pydebug+set}" = set; then
3134 withval
="$with_pydebug"
3136 if test "$withval" != no
3137 then cat >> confdefs.h
<<\EOF
3140 echo "$ac_t""yes" 1>&6
3141 else echo "$ac_t""no" 1>&6
3144 echo "$ac_t""no" 1>&6
3148 # checks for system dependent C++ extensions support
3149 case "$ac_sys_system" in
3150 AIX
*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
3151 echo "configure:3152: checking for genuine AIX C++ extensions support" >&5
3152 cat > conftest.
$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 #include "/usr/lpp/xlC/include/load.h"
3157 loadAndInit("", 0, "")
3160 if { (eval echo configure
:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3162 cat >> confdefs.h
<<\EOF
3163 #define AIX_GENUINE_CPLUSPLUS 1
3166 echo "$ac_t""yes" 1>&6
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3171 echo "$ac_t""no" 1>&6
3177 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3178 # However on SGI IRIX, these exist but are broken.
3179 # BeOS' sockets are stashed in libnet.
3180 case "$ac_sys_system" in
3183 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3184 echo "configure:3185: checking for t_open in -lnsl" >&5
3185 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 ac_save_LIBS
="$LIBS"
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_lib_$ac_lib_var=no"
3213 LIBS
="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3220 echo "$ac_t""no" 1>&6
3223 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3224 echo "configure:3225: checking for socket in -lsocket" >&5
3225 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 ac_save_LIBS
="$LIBS"
3230 LIBS
="-lsocket $LIBS $LIBS"
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* Override any gcc2 internal prototype to avoid an error. */
3235 /* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3243 if { (eval echo configure
:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3245 eval "ac_cv_lib_$ac_lib_var=yes"
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 eval "ac_cv_lib_$ac_lib_var=no"
3253 LIBS
="$ac_save_LIBS"
3256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 LIBS
="-lsocket $LIBS"
3260 echo "$ac_t""no" 1>&6
3265 case "$ac_sys_system" in
3267 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3268 echo "configure:3269: checking for socket in -lnet" >&5
3269 ac_lib_var
=`echo net'_'socket | sed 'y%./+-%__p_%'`
3270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_save_LIBS
="$LIBS"
3274 LIBS
="-lnet $LIBS $LIBS"
3275 cat > conftest.
$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3287 if { (eval echo configure
:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3289 eval "ac_cv_lib_$ac_lib_var=yes"
3291 echo "configure: failed program was:" >&5
3292 cat conftest.
$ac_ext >&5
3294 eval "ac_cv_lib_$ac_lib_var=no"
3297 LIBS
="$ac_save_LIBS"
3300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3304 echo "$ac_t""no" 1>&6
3310 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3311 echo "configure:3312: checking for --with-libs" >&5
3312 # Check whether --with-libs or --without-libs was given.
3313 if test "${with_libs+set}" = set; then
3314 withval
="$with_libs"
3316 echo "$ac_t""$withval" 1>&6
3317 LIBS
="$withval $LIBS"
3320 echo "$ac_t""no" 1>&6
3324 # Determine if signalmodule should be used.
3327 echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --with-signal-module" >&5
3329 # Check whether --with-signal-module or --without-signal-module was given.
3330 if test "${with_signal_module+set}" = set; then
3331 withval
="$with_signal_module"
3336 if test -z "$with_signal_module"
3337 then with_signal_module
="yes"
3339 echo "$ac_t""$with_signal_module" 1>&6
3341 if test "${with_signal_module}" = "yes"; then
3342 USE_SIGNAL_MODULE
=""
3345 USE_SIGNAL_MODULE
="#"
3346 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
3349 # This is used to generate Setup.config
3351 USE_THREAD_MODULE
=""
3353 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --with-dec-threads" >&5
3356 # Check whether --with-dec-threads or --without-dec-threads was given.
3357 if test "${with_dec_threads+set}" = set; then
3358 withval
="$with_dec_threads"
3360 echo "$ac_t""$withval" 1>&6
3362 if test "${with_thread+set}" != set; then
3363 with_thread
="$withval";
3366 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3371 echo "configure:3372: checking for --with-threads" >&5
3372 # Check whether --with-threads or --without-threads was given.
3373 if test "${with_threads+set}" = set; then
3374 withval
="$with_threads"
3379 # --with-thread is deprecated, but check for it anyway
3380 # Check whether --with-thread or --without-thread was given.
3381 if test "${with_thread+set}" = set; then
3382 withval
="$with_thread"
3384 with_threads
=$with_thread
3388 if test -z "$with_threads"
3389 then with_threads
="yes"
3391 echo "$ac_t""$with_threads" 1>&6
3393 if test "$with_threads" = "no"
3395 USE_THREAD_MODULE
="#"
3397 if test ! -z "$with_threads" -a -d "$with_threads"
3398 then LDFLAGS
="$LDFLAGS -L$with_threads"
3400 if test ! -z "$withval" -a -d "$withval"
3401 then LDFLAGS
="$LDFLAGS -L$withval"
3403 cat >> confdefs.h
<<\EOF
3404 #define _REENTRANT 1
3407 ac_safe
=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for mach/cthreads.h" >&5
3410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.
$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <mach/cthreads.h>
3418 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure
:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3423 eval "ac_cv_header_$ac_safe=yes"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.
$ac_ext >&5
3429 eval "ac_cv_header_$ac_safe=no"
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 cat >> confdefs.h
<<\EOF
3436 #define WITH_THREAD 1
3439 cat >> confdefs.h
<<\EOF
3443 LIBOBJS
="$LIBOBJS thread.o"
3445 echo "$ac_t""no" 1>&6
3447 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3448 echo "configure:3449: checking for --with-pth" >&5
3449 # Check whether --with-pth or --without-pth was given.
3450 if test "${with_pth+set}" = set; then
3453 echo "$ac_t""$withval" 1>&6
3454 cat >> confdefs.h
<<\EOF
3455 #define WITH_THREAD 1
3458 cat >> confdefs.h
<<\EOF
3463 LIBOBJS
="$LIBOBJS thread.o"
3466 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3468 echo "configure:3469: checking for pthread_create in -lpthread" >&5
3469 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS
="$LIBS"
3474 LIBS
="-lpthread $LIBS"
3475 cat > conftest.
$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char pthread_create();
3487 if { (eval echo configure
:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.
$ac_ext >&5
3494 eval "ac_cv_lib_$ac_lib_var=no"
3497 LIBS
="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 cat >> confdefs.h
<<\EOF
3503 #define WITH_THREAD 1
3506 cat >> confdefs.h
<<\EOF
3507 #define _POSIX_THREADS 1
3510 LIBS
="-lpthread $LIBS"
3511 LIBOBJS
="$LIBOBJS thread.o"
3513 echo "$ac_t""no" 1>&6
3515 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3516 echo "configure:3517: checking for pthread_detach" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char pthread_detach(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3529 char pthread_detach();
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3544 if { (eval echo configure
:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3546 eval "ac_cv_func_pthread_detach=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.
$ac_ext >&5
3551 eval "ac_cv_func_pthread_detach=no"
3556 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 cat >> confdefs.h
<<\EOF
3559 #define WITH_THREAD 1
3562 case $ac_sys_system in
3564 *) cat >> confdefs.h
<<\EOF
3565 #define _POSIX_THREADS 1
3569 LIBOBJS
="$LIBOBJS thread.o"
3571 echo "$ac_t""no" 1>&6
3573 ac_safe
=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3574 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3575 echo "configure:3576: checking for kernel/OS.h" >&5
3576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.
$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <kernel/OS.h>
3584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3585 { (eval echo configure
:3586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3587 if test -z "$ac_err"; then
3589 eval "ac_cv_header_$ac_safe=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 eval "ac_cv_header_$ac_safe=no"
3599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 cat >> confdefs.h
<<\EOF
3602 #define WITH_THREAD 1
3605 cat >> confdefs.h
<<\EOF
3606 #define BEOS_THREADS 1
3609 LIBOBJS
="$LIBOBJS thread.o"
3611 echo "$ac_t""no" 1>&6
3613 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3614 echo "configure:3615: checking for pthread_create in -lpthreads" >&5
3615 ac_lib_var
=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 ac_save_LIBS
="$LIBS"
3620 LIBS
="-lpthreads $LIBS"
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627 char pthread_create();
3633 if { (eval echo configure
:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3635 eval "ac_cv_lib_$ac_lib_var=yes"
3637 echo "configure: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3640 eval "ac_cv_lib_$ac_lib_var=no"
3643 LIBS
="$ac_save_LIBS"
3646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 cat >> confdefs.h
<<\EOF
3649 #define WITH_THREAD 1
3652 cat >> confdefs.h
<<\EOF
3653 #define _POSIX_THREADS 1
3656 LIBS
="$LIBS -lpthreads"
3657 LIBOBJS
="$LIBOBJS thread.o"
3659 echo "$ac_t""no" 1>&6
3661 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3662 echo "configure:3663: checking for pthread_create in -lc_r" >&5
3663 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 ac_save_LIBS
="$LIBS"
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3675 char pthread_create();
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3683 eval "ac_cv_lib_$ac_lib_var=yes"
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 eval "ac_cv_lib_$ac_lib_var=no"
3691 LIBS
="$ac_save_LIBS"
3694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 cat >> confdefs.h
<<\EOF
3697 #define WITH_THREAD 1
3700 cat >> confdefs.h
<<\EOF
3701 #define _POSIX_THREADS 1
3705 LIBOBJS
="$LIBOBJS thread.o"
3707 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3710 echo "configure:3711: checking for __d6_pthread_create in -lthread" >&5
3711 ac_lib_var
=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 ac_save_LIBS
="$LIBS"
3716 LIBS
="-lthread $LIBS"
3717 cat > conftest.
$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3723 char __d6_pthread_create();
3726 __d6_pthread_create()
3729 if { (eval echo configure
:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS
="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 cat >> confdefs.h
<<\EOF
3745 #define WITH_THREAD 1
3748 cat >> confdefs.h
<<\EOF
3749 #define _POSIX_THREADS 1
3752 LIBS
="$LIBS -lthread"
3753 LIBOBJS
="$LIBOBJS thread.o"
3755 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3758 echo "configure:3759: checking for __pthread_create_system in -lpthread" >&5
3759 ac_lib_var
=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_save_LIBS
="$LIBS"
3764 LIBS
="-lpthread $LIBS"
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char __pthread_create_system();
3774 __pthread_create_system()
3777 if { (eval echo configure
:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3779 eval "ac_cv_lib_$ac_lib_var=yes"
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3784 eval "ac_cv_lib_$ac_lib_var=no"
3787 LIBS
="$ac_save_LIBS"
3790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 cat >> confdefs.h
<<\EOF
3793 #define WITH_THREAD 1
3796 cat >> confdefs.h
<<\EOF
3797 #define _POSIX_THREADS 1
3800 LIBS
="$LIBS -lpthread"
3801 LIBOBJS
="$LIBOBJS thread.o"
3803 echo "$ac_t""no" 1>&6
3805 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3806 echo "configure:3807: checking for pthread_create in -lcma" >&5
3807 ac_lib_var
=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 ac_save_LIBS
="$LIBS"
3813 cat > conftest.
$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3819 char pthread_create();
3825 if { (eval echo configure
:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3827 eval "ac_cv_lib_$ac_lib_var=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 eval "ac_cv_lib_$ac_lib_var=no"
3835 LIBS
="$ac_save_LIBS"
3838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 cat >> confdefs.h
<<\EOF
3841 #define WITH_THREAD 1
3844 cat >> confdefs.h
<<\EOF
3845 #define _POSIX_THREADS 1
3849 LIBOBJS
="$LIBOBJS thread.o"
3851 echo "$ac_t""no" 1>&6
3853 USE_THREAD_MODULE
="#"
3876 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
3877 echo "configure:3878: checking for usconfig in -lmpc" >&5
3878 ac_lib_var
=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
3879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 ac_save_LIBS
="$LIBS"
3884 cat > conftest.
$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3896 if { (eval echo configure
:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3898 eval "ac_cv_lib_$ac_lib_var=yes"
3900 echo "configure: failed program was:" >&5
3901 cat conftest.
$ac_ext >&5
3903 eval "ac_cv_lib_$ac_lib_var=no"
3906 LIBS
="$ac_save_LIBS"
3909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 cat >> confdefs.h
<<\EOF
3912 #define WITH_THREAD 1
3916 LIBOBJS
="$LIBOBJS thread.o"
3917 USE_THREAD_MODULE
=""
3919 echo "$ac_t""no" 1>&6
3922 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3923 echo "configure:3924: checking for thr_create in -lthread" >&5
3924 ac_lib_var
=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 ac_save_LIBS
="$LIBS"
3929 LIBS
="-lthread $LIBS"
3930 cat > conftest.
$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933 /* Override any gcc2 internal prototype to avoid an error. */
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3942 if { (eval echo configure
:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3944 eval "ac_cv_lib_$ac_lib_var=yes"
3946 echo "configure: failed program was:" >&5
3947 cat conftest.
$ac_ext >&5
3949 eval "ac_cv_lib_$ac_lib_var=no"
3952 LIBS
="$ac_save_LIBS"
3955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3956 echo "$ac_t""yes" 1>&6
3957 cat >> confdefs.h
<<\EOF
3958 #define WITH_THREAD 1
3961 LIBS
="$LIBS -lthread"
3962 LIBOBJS
="$LIBOBJS thread.o"
3963 USE_THREAD_MODULE
=""
3965 echo "$ac_t""no" 1>&6
3969 if test "$USE_THREAD_MODULE" != "#"
3971 # If the above checks didn't disable threads, (at least) OSF1
3972 # needs this '-threads' argument during linking.
3973 case $ac_sys_system in
3974 OSF1
) LDLAST
=-threads;;
3979 # Check for GC support
3982 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
3983 echo "configure:3984: checking for --with-cycle-gc" >&5
3984 # Check whether --with-cycle-gc or --without-cycle-gc was given.
3985 if test "${with_cycle_gc+set}" = set; then
3986 withval
="$with_cycle_gc"
3991 if test -z "$with_cycle_gc"
3992 then with_cycle_gc
="yes"
3994 if test "$with_cycle_gc" = "no"
3998 cat >> confdefs.h
<<\EOF
3999 #define WITH_CYCLE_GC 1
4003 echo "$ac_t""$with_cycle_gc" 1>&6
4005 # Check for Python-specific malloc support
4006 echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6
4007 echo "configure:4008: checking for --with-pymalloc" >&5
4008 # Check whether --with-pymalloc or --without-pymalloc was given.
4009 if test "${with_pymalloc+set}" = set; then
4010 withval
="$with_pymalloc"
4012 if test "$withval" != no
4013 then cat >> confdefs.h
<<\EOF
4014 #define WITH_PYMALLOC 1
4016 echo "$ac_t""yes" 1>&6
4017 else echo "$ac_t""no" 1>&6
4020 echo "$ac_t""no" 1>&6
4024 # Check for --with-wctype-functions
4025 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
4026 echo "configure:4027: checking for --with-wctype-functions" >&5
4027 # Check whether --with-wctype-functions or --without-wctype-functions was given.
4028 if test "${with_wctype_functions+set}" = set; then
4029 withval
="$with_wctype_functions"
4031 if test "$withval" != no
4032 then cat >> confdefs.h
<<\EOF
4033 #define WANT_WCTYPE_FUNCTIONS 1
4035 echo "$ac_t""yes" 1>&6
4036 else echo "$ac_t""no" 1>&6
4039 echo "$ac_t""no" 1>&6
4043 # -I${DLINCLDIR} is added to the compile rule for importdl.o
4047 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
4048 echo "configure:4049: checking for --with-sgi-dl" >&5
4049 # Check whether --with-sgi-dl or --without-sgi-dl was given.
4050 if test "${with_sgi_dl+set}" = set; then
4051 withval
="$with_sgi_dl"
4053 echo "$ac_t""$withval" 1>&6
4054 cat >> confdefs.h
<<\EOF
4055 #define WITH_SGI_DL 1
4058 DYNLOADFILE
="dynload_dl.o"
4060 if test ! -z "$dldir" -a -d "$dldir"
4061 then LDFLAGS
="$LDFLAGS -L$dldir"
4062 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
4065 LIBS
="$LIBS -ldl -lmld"
4067 echo "$ac_t""no" 1>&6
4071 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --with-dl-dld" >&5
4073 # Check whether --with-dl-dld or --without-dl-dld was given.
4074 if test "${with_dl_dld+set}" = set; then
4075 withval
="$with_dl_dld"
4077 echo "$ac_t""$withval" 1>&6
4078 cat >> confdefs.h
<<\EOF
4079 #define WITH_DL_DLD 1
4082 DYNLOADFILE
="dynload_dl.o"
4083 dldir
=`echo "$withval" | sed 's/,.*//'`
4084 dlddir
=`echo "$withval" | sed 's/.*,//'`
4085 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
4086 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
4087 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
4090 LIBS
="$LIBS -ldl -ldld"
4092 echo "$ac_t""no" 1>&6
4096 # the dlopen() function means we might want to use dynload_shlib.o. some
4097 # platforms, such as AIX, have dlopen(), but don't want to use it.
4098 for ac_func
in dlopen
4100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_func" >&5
4102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 cat > conftest.
$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* System header to define __stub macros and hopefully few prototypes,
4109 which can conflict with char $ac_func(); below. */
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4118 /* The GNU C library defines this for functions which it implements
4119 to always fail with ENOSYS. Some functions are actually named
4120 something starting with __ and the normal name is an alias. */
4121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4129 if { (eval echo configure
:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4131 eval "ac_cv_func_$ac_func=yes"
4133 echo "configure: failed program was:" >&5
4134 cat conftest.
$ac_ext >&5
4136 eval "ac_cv_func_$ac_func=no"
4141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4143 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4144 cat >> confdefs.h
<<EOF
4145 #define $ac_tr_func 1
4149 echo "$ac_t""no" 1>&6
4154 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4155 # loading of modules.
4157 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
4158 echo "configure:4159: checking DYNLOADFILE" >&5
4159 if test -z "$DYNLOADFILE"
4161 case $ac_sys_system/$ac_sys_release in
4162 AIX
*) DYNLOADFILE
="dynload_aix.o";;
4163 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
4164 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
4165 Darwin
/*|next
/*) DYNLOADFILE
="dynload_next.o";;
4167 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4168 # out any dynamic loading
4169 if test "$ac_cv_func_dlopen" = yes
4170 then DYNLOADFILE
="dynload_shlib.o"
4171 else DYNLOADFILE
="dynload_stub.o"
4176 echo "$ac_t""$DYNLOADFILE" 1>&6
4177 if test "$DYNLOADFILE" != "dynload_stub.o"
4179 cat >> confdefs.h
<<\EOF
4180 #define HAVE_DYNAMIC_LOADING 1
4185 # checks for library functions
4186 for ac_func
in alarm chown
clock confstr ctermid ctermid_r execv \
4187 flock fork fsync fdatasync fpathconf ftime ftruncate \
4188 getgroups getlogin getpeername getpid getpwent getwd \
4189 kill link lstat
mkfifo mktime mremap \
4190 nice pathconf pause plock poll pthread_init \
4192 select setegid seteuid setgid \
4193 setlocale setregid setreuid setsid setpgid setuid setvbuf \
4194 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
4195 tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
4196 truncate uname waitpid _getpty
4198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_func" >&5
4200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.
$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 /* System header to define __stub macros and hopefully few prototypes,
4207 which can conflict with char $ac_func(); below. */
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4216 /* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4227 if { (eval echo configure
:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4229 eval "ac_cv_func_$ac_func=yes"
4231 echo "configure: failed program was:" >&5
4232 cat conftest.
$ac_ext >&5
4234 eval "ac_cv_func_$ac_func=no"
4239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4242 cat >> confdefs.h
<<EOF
4243 #define $ac_tr_func 1
4247 echo "$ac_t""no" 1>&6
4252 # check for openpty and forkpty
4254 for ac_func
in openpty
4256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_func" >&5
4258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 cat > conftest.
$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* System header to define __stub macros and hopefully few prototypes,
4265 which can conflict with char $ac_func(); below. */
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4274 /* The GNU C library defines this for functions which it implements
4275 to always fail with ENOSYS. Some functions are actually named
4276 something starting with __ and the normal name is an alias. */
4277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4285 if { (eval echo configure
:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4287 eval "ac_cv_func_$ac_func=yes"
4289 echo "configure: failed program was:" >&5
4290 cat conftest.
$ac_ext >&5
4292 eval "ac_cv_func_$ac_func=no"
4297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4300 cat >> confdefs.h
<<EOF
4301 #define $ac_tr_func 1
4305 echo "$ac_t""no" 1>&6
4306 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4307 echo "configure:4308: checking for openpty in -lutil" >&5
4308 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 ac_save_LIBS
="$LIBS"
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4326 if { (eval echo configure
:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4333 eval "ac_cv_lib_$ac_lib_var=no"
4336 LIBS
="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 cat >> confdefs.h
<<\EOF
4342 #define HAVE_OPENPTY 1
4346 echo "$ac_t""no" 1>&6
4352 for ac_func
in forkpty
4354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_func" >&5
4356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4359 cat > conftest.
$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 /* System header to define __stub macros and hopefully few prototypes,
4363 which can conflict with char $ac_func(); below. */
4365 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4372 /* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4385 eval "ac_cv_func_$ac_func=yes"
4387 echo "configure: failed program was:" >&5
4388 cat conftest.
$ac_ext >&5
4390 eval "ac_cv_func_$ac_func=no"
4395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4398 cat >> confdefs.h
<<EOF
4399 #define $ac_tr_func 1
4403 echo "$ac_t""no" 1>&6
4404 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4405 echo "configure:4406: checking for forkpty in -lutil" >&5
4406 ac_lib_var
=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4410 ac_save_LIBS
="$LIBS"
4412 cat > conftest.
$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4424 if { (eval echo configure
:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4428 echo "configure: failed program was:" >&5
4429 cat conftest.
$ac_ext >&5
4431 eval "ac_cv_lib_$ac_lib_var=no"
4434 LIBS
="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 cat >> confdefs.h
<<\EOF
4440 #define HAVE_FORKPTY 1
4444 echo "$ac_t""no" 1>&6
4451 # check for long file support functions
4452 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_func" >&5
4456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.
$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func(); below. */
4465 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4483 if { (eval echo configure
:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4485 eval "ac_cv_func_$ac_func=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4490 eval "ac_cv_func_$ac_func=no"
4495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4498 cat >> confdefs.h
<<EOF
4499 #define $ac_tr_func 1
4503 echo "$ac_t""no" 1>&6
4508 for ac_func
in dup2 getcwd strdup strerror memmove
4510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_func" >&5
4512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.
$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* System header to define __stub macros and hopefully few prototypes,
4519 which can conflict with char $ac_func(); below. */
4521 /* Override any gcc2 internal prototype to avoid an error. */
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4539 if { (eval echo configure
:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4541 eval "ac_cv_func_$ac_func=yes"
4543 echo "configure: failed program was:" >&5
4544 cat conftest.
$ac_ext >&5
4546 eval "ac_cv_func_$ac_func=no"
4551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4554 cat >> confdefs.h
<<EOF
4555 #define $ac_tr_func 1
4559 echo "$ac_t""no" 1>&6
4560 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4565 for ac_func
in getpgrp
4567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_func" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.
$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func(); below. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4596 if { (eval echo configure
:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4598 eval "ac_cv_func_$ac_func=yes"
4600 echo "configure: failed program was:" >&5
4601 cat conftest.
$ac_ext >&5
4603 eval "ac_cv_func_$ac_func=no"
4608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4611 cat >> confdefs.h
<<EOF
4612 #define $ac_tr_func 1
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4622 if { (eval echo configure
:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 cat >> confdefs.h
<<\EOF
4625 #define GETPGRP_HAVE_ARG 1
4629 echo "configure: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4634 echo "$ac_t""no" 1>&6
4638 for ac_func
in setpgrp
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.
$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 if { (eval echo configure
:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4671 eval "ac_cv_func_$ac_func=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_func_$ac_func=no"
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h
<<EOF
4685 #define $ac_tr_func 1
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4695 if { (eval echo configure
:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697 cat >> confdefs.h
<<\EOF
4698 #define SETPGRP_HAVE_ARG 1
4702 echo "configure: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4707 echo "$ac_t""no" 1>&6
4711 for ac_func
in gettimeofday
4713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_func" >&5
4715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func(); below. */
4724 /* Override any gcc2 internal prototype to avoid an error. */
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4731 /* The GNU C library defines this for functions which it implements
4732 to always fail with ENOSYS. Some functions are actually named
4733 something starting with __ and the normal name is an alias. */
4734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4742 if { (eval echo configure
:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4744 eval "ac_cv_func_$ac_func=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.
$ac_ext >&5
4749 eval "ac_cv_func_$ac_func=no"
4754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4757 cat >> confdefs.h
<<EOF
4758 #define $ac_tr_func 1
4760 cat > conftest.
$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 #include <sys/time.h>
4765 gettimeofday((struct timeval*)0,(struct timezone*)0);
4768 if { (eval echo configure
:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 cat >> confdefs.h
<<\EOF
4775 #define GETTIMEOFDAY_NO_TZ 1
4781 echo "$ac_t""no" 1>&6
4786 # checks for structures
4787 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4788 echo "configure:4789: checking whether time.h and sys/time.h may both be included" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <sys/types.h>
4796 #include <sys/time.h>
4802 if { (eval echo configure
:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4804 ac_cv_header_time
=yes
4806 echo "configure: failed program was:" >&5
4807 cat conftest.
$ac_ext >&5
4809 ac_cv_header_time
=no
4814 echo "$ac_t""$ac_cv_header_time" 1>&6
4815 if test $ac_cv_header_time = yes; then
4816 cat >> confdefs.h
<<\EOF
4817 #define TIME_WITH_SYS_TIME 1
4822 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether struct tm is in sys/time.h or time.h" >&5
4824 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.
$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <sys/types.h>
4833 struct tm *tp; tp->tm_sec;
4836 if { (eval echo configure
:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_struct_tm
=time.h
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 ac_cv_struct_tm
=sys
/time.h
4848 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4849 if test $ac_cv_struct_tm = sys
/time.h
; then
4850 cat >> confdefs.h
<<\EOF
4851 #define TM_IN_SYS_TIME 1
4856 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4857 echo "configure:4858: checking for tm_zone in struct tm" >&5
4858 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.
$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/types.h>
4865 #include <$ac_cv_struct_tm>
4867 struct tm tm; tm.tm_zone;
4870 if { (eval echo configure
:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 ac_cv_struct_tm_zone
=yes
4874 echo "configure: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4877 ac_cv_struct_tm_zone
=no
4882 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4883 if test "$ac_cv_struct_tm_zone" = yes; then
4884 cat >> confdefs.h
<<\EOF
4885 #define HAVE_TM_ZONE 1
4889 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4890 echo "configure:4891: checking for tzname" >&5
4891 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4898 #ifndef tzname /* For SGI. */
4899 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4905 if { (eval echo configure
:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4907 ac_cv_var_tzname
=yes
4909 echo "configure: failed program was:" >&5
4910 cat conftest.
$ac_ext >&5
4917 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4918 if test $ac_cv_var_tzname = yes; then
4919 cat >> confdefs.h
<<\EOF
4920 #define HAVE_TZNAME 1
4927 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
4928 echo "configure:4929: checking for time.h that defines altzone" >&5
4929 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 cat > conftest.
$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4940 if { (eval echo configure
:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4942 ac_cv_header_time_altzone
=yes
4944 echo "configure: failed program was:" >&5
4945 cat conftest.
$ac_ext >&5
4947 ac_cv_header_time_altzone
=no
4952 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
4953 if test $ac_cv_header_time_altzone = yes; then
4954 cat >> confdefs.h
<<\EOF
4955 #define HAVE_ALTZONE 1
4961 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
4962 echo "configure:4963: checking whether sys/select.h and sys/time.h may both be included" >&5
4963 cat > conftest.
$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4967 #include <sys/types.h>
4968 #include <sys/select.h>
4969 #include <sys/time.h>
4975 if { (eval echo configure
:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 cat >> confdefs.h
<<\EOF
4978 #define SYS_SELECT_WITH_SYS_TIME 1
4982 echo "configure: failed program was:" >&5
4983 cat conftest.
$ac_ext >&5
4986 echo "$ac_t""$was_it_defined" 1>&6
4988 # checks for compiler characteristics
4990 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4991 echo "configure:4992: checking whether char is unsigned" >&5
4992 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 if test "$GCC" = yes; then
4996 # GCC predefines this symbol on systems where it applies.
4997 cat > conftest.
$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #ifdef __CHAR_UNSIGNED__
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 egrep "yes" >/dev
/null
2>&1; then
5008 ac_cv_c_char_unsigned
=yes
5011 ac_cv_c_char_unsigned
=no
5016 if test "$cross_compiling" = yes; then
5017 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
5023 #if !defined(__STDC__) || __STDC__ != 1
5027 volatile char c = 255; exit(c < 0);
5030 if { (eval echo configure
:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5032 ac_cv_c_char_unsigned
=yes
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 ac_cv_c_char_unsigned
=no
5045 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
5046 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5047 cat >> confdefs.h
<<\EOF
5048 #define __CHAR_UNSIGNED__ 1
5053 echo $ac_n "checking for working const""... $ac_c" 1>&6
5054 echo "configure:5055: checking for working const" >&5
5055 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5058 cat > conftest.
$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5064 /* Ultrix mips cc rejects this. */
5065 typedef int charset[2]; const charset x = {0,0};
5066 /* SunOS 4.1.1 cc rejects this. */
5067 char const *const *ccp;
5069 /* NEC SVR4.0.2 mips cc rejects this. */
5070 struct point {int x, y;};
5071 static struct point const zero = {0,0};
5072 /* AIX XL C 1.02.0.0 rejects this.
5073 It does not let you subtract one const X* pointer from another in an arm
5074 of an if-expression whose if-part is not a constant expression */
5075 const char *g = "string";
5076 ccp = &g + (g ? g-g : 0);
5077 /* HPUX 7.0 cc rejects these. */
5080 ccp = (char const *const *) p;
5081 { /* SCO 3.2v4 cc rejects this. */
5083 char const *s = 0 ? (char *) 0 : (char const *) 0;
5087 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5089 const int *foo = &x[0];
5092 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5093 typedef const int *iptr;
5097 { /* AIX XL C 1.02.0.0 rejects this saying
5098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5099 struct s { int j; const int *ap[3]; };
5100 struct s *b; b->j = 5;
5102 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5108 if { (eval echo configure
:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 echo "configure: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5120 echo "$ac_t""$ac_cv_c_const" 1>&6
5121 if test $ac_cv_c_const = no
; then
5122 cat >> confdefs.h
<<\EOF
5130 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
5131 echo "configure:5132: checking for working volatile" >&5
5132 cat > conftest.
$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5137 volatile int x; x = 0;
5140 if { (eval echo configure
:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5144 echo "configure: failed program was:" >&5
5145 cat conftest.
$ac_ext >&5
5147 cat >> confdefs.h
<<\EOF
5153 echo "$ac_t""$works" 1>&6
5156 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
5157 echo "configure:5158: checking for working signed char" >&5
5158 cat > conftest.
$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5166 if { (eval echo configure
:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 echo "configure: failed program was:" >&5
5171 cat conftest.
$ac_ext >&5
5173 cat >> confdefs.h
<<\EOF
5179 echo "$ac_t""$works" 1>&6
5182 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
5183 echo "configure:5184: checking for prototypes" >&5
5184 cat > conftest.
$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 int foo(int x) { return 0; }
5192 if { (eval echo configure
:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5194 cat >> confdefs.h
<<\EOF
5195 #define HAVE_PROTOTYPES 1
5199 echo "configure: failed program was:" >&5
5200 cat conftest.
$ac_ext >&5
5203 echo "$ac_t""$have_prototypes" 1>&6
5206 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
5207 echo "configure:5208: checking for variable length prototypes and stdarg.h" >&5
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5213 int foo(int x, ...) {
5223 return foo(10, "", 3.14);
5226 if { (eval echo configure
:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5228 cat >> confdefs.h
<<\EOF
5229 #define HAVE_STDARG_PROTOTYPES 1
5233 echo "configure: failed program was:" >&5
5234 cat conftest.
$ac_ext >&5
5237 echo "$ac_t""$works" 1>&6
5239 if test "$have_prototypes" = yes; then
5241 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
5242 echo "configure:5243: checking for bad exec* prototypes" >&5
5243 cat > conftest.
$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5248 char **t;execve("@",t,t);
5251 if { (eval echo configure
:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5254 echo "configure: failed program was:" >&5
5255 cat conftest.
$ac_ext >&5
5257 cat >> confdefs.h
<<\EOF
5258 #define BAD_EXEC_PROTOTYPES 1
5263 echo "$ac_t""$bad_prototypes" 1>&6
5267 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
5268 echo "configure:5269: checking for bad static forward" >&5
5269 if test "$cross_compiling" = yes; then
5270 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5272 cat > conftest.
$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5276 struct s { int a; int b; };
5277 static struct s foo;
5280 random = (int) &foo;
5283 static struct s foo = { 1, 2 };
5285 exit(!((int)&foo == foobar()));
5289 if { (eval echo configure
:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5293 echo "configure: failed program was:" >&5
5294 cat conftest.
$ac_ext >&5
5296 cat >> confdefs.h
<<\EOF
5297 #define BAD_STATIC_FORWARD 1
5304 echo "$ac_t""$bad_forward" 1>&6
5307 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
5308 echo "configure:5309: checking whether va_list is an array" >&5
5309 cat > conftest.
$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 #ifdef HAVE_STDARG_PROTOTYPES
5316 #include <varargs.h>
5320 va_list list1, list2; list1 = list2;
5323 if { (eval echo configure
:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5326 echo "configure: failed program was:" >&5
5327 cat conftest.
$ac_ext >&5
5329 cat >> confdefs.h
<<\EOF
5330 #define VA_LIST_IS_ARRAY 1
5332 va_list_is_array
=yes
5335 echo "$ac_t""$va_list_is_array" 1>&6
5337 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5338 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
5339 echo "configure:5340: checking for gethostbyname_r" >&5
5340 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5343 cat > conftest.
$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5346 /* System header to define __stub macros and hopefully few prototypes,
5347 which can conflict with char gethostbyname_r(); below. */
5349 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5352 char gethostbyname_r();
5356 /* The GNU C library defines this for functions which it implements
5357 to always fail with ENOSYS. Some functions are actually named
5358 something starting with __ and the normal name is an alias. */
5359 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5367 if { (eval echo configure
:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5369 eval "ac_cv_func_gethostbyname_r=yes"
5371 echo "configure: failed program was:" >&5
5372 cat conftest.
$ac_ext >&5
5374 eval "ac_cv_func_gethostbyname_r=no"
5379 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5380 echo "$ac_t""yes" 1>&6
5382 cat >> confdefs.h
<<\EOF
5383 #define HAVE_GETHOSTBYNAME_R 1
5386 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
5387 echo "configure:5388: checking gethostbyname_r with 6 args" >&5
5389 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5390 cat > conftest.
$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5399 struct hostent *he, *res;
5404 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5408 if { (eval echo configure
:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 cat >> confdefs.h
<<\EOF
5412 #define HAVE_GETHOSTBYNAME_R 1
5415 cat >> confdefs.h
<<\EOF
5416 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
5419 echo "$ac_t""yes" 1>&6
5422 echo "configure: failed program was:" >&5
5423 cat conftest.
$ac_ext >&5
5426 echo "$ac_t""no" 1>&6
5427 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
5428 echo "configure:5429: checking gethostbyname_r with 5 args" >&5
5429 cat > conftest.
$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5443 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5447 if { (eval echo configure
:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5450 cat >> confdefs.h
<<\EOF
5451 #define HAVE_GETHOSTBYNAME_R 1
5454 cat >> confdefs.h
<<\EOF
5455 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
5458 echo "$ac_t""yes" 1>&6
5461 echo "configure: failed program was:" >&5
5462 cat conftest.
$ac_ext >&5
5465 echo "$ac_t""no" 1>&6
5466 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
5467 echo "configure:5468: checking gethostbyname_r with 3 args" >&5
5468 cat > conftest.
$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5478 struct hostent_data data;
5480 (void) gethostbyname_r(name, he, &data);
5484 if { (eval echo configure
:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 cat >> confdefs.h
<<\EOF
5488 #define HAVE_GETHOSTBYNAME_R 1
5491 cat >> confdefs.h
<<\EOF
5492 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
5495 echo "$ac_t""yes" 1>&6
5498 echo "configure: failed program was:" >&5
5499 cat conftest.
$ac_ext >&5
5502 echo "$ac_t""no" 1>&6
5515 echo "$ac_t""no" 1>&6
5517 for ac_func
in gethostbyname
5519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_func" >&5
5521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5524 cat > conftest.
$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* System header to define __stub macros and hopefully few prototypes,
5528 which can conflict with char $ac_func(); below. */
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5537 /* The GNU C library defines this for functions which it implements
5538 to always fail with ENOSYS. Some functions are actually named
5539 something starting with __ and the normal name is an alias. */
5540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5548 if { (eval echo configure
:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5550 eval "ac_cv_func_$ac_func=yes"
5552 echo "configure: failed program was:" >&5
5553 cat conftest.
$ac_ext >&5
5555 eval "ac_cv_func_$ac_func=no"
5560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5561 echo "$ac_t""yes" 1>&6
5562 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5563 cat >> confdefs.h
<<EOF
5564 #define $ac_tr_func 1
5568 echo "$ac_t""no" 1>&6
5581 # checks for system services
5584 # Linux requires this for correct f.p. operations
5585 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
5586 echo "configure:5587: checking for __fpu_control" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.
$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char __fpu_control(); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char __fpu_control();
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5614 if { (eval echo configure
:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5616 eval "ac_cv_func___fpu_control=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 eval "ac_cv_func___fpu_control=no"
5626 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5630 echo "$ac_t""no" 1>&6
5631 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
5632 echo "configure:5633: checking for __fpu_control in -lieee" >&5
5633 ac_lib_var
=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
5634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 ac_save_LIBS
="$LIBS"
5639 cat > conftest.
$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char __fpu_control();
5651 if { (eval echo configure
:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5653 eval "ac_cv_lib_$ac_lib_var=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.
$ac_ext >&5
5658 eval "ac_cv_lib_$ac_lib_var=no"
5661 LIBS
="$ac_save_LIBS"
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_lib
=HAVE_LIB
`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5668 cat >> confdefs.h
<<EOF
5669 #define $ac_tr_lib 1
5675 echo "$ac_t""no" 1>&6
5682 # Check for --with-fpectl
5683 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
5684 echo "configure:5685: checking for --with-fpectl" >&5
5685 # Check whether --with-fpectl or --without-fpectl was given.
5686 if test "${with_fpectl+set}" = set; then
5687 withval
="$with_fpectl"
5689 if test "$withval" != no
5690 then cat >> confdefs.h
<<\EOF
5691 #define WANT_SIGFPE_HANDLER 1
5693 echo "$ac_t""yes" 1>&6
5694 else echo "$ac_t""no" 1>&6
5697 echo "$ac_t""no" 1>&6
5701 # check for --with-libm=...
5703 case $ac_sys_system in
5709 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
5710 echo "configure:5711: checking for --with-libm=STRING" >&5
5711 # Check whether --with-libm or --without-libm was given.
5712 if test "${with_libm+set}" = set; then
5713 withval
="$with_libm"
5715 if test "$withval" = no
5717 echo "$ac_t""force LIBM empty" 1>&6
5718 elif test "$withval" != yes
5720 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
5721 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
5724 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
5728 # check for --with-libc=...
5730 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
5731 echo "configure:5732: checking for --with-libc=STRING" >&5
5732 # Check whether --with-libc or --without-libc was given.
5733 if test "${with_libc+set}" = set; then
5734 withval
="$with_libc"
5736 if test "$withval" = no
5738 echo "$ac_t""force LIBC empty" 1>&6
5739 elif test "$withval" != yes
5741 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
5742 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
5745 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
5749 # check for hypot() in math library
5752 for ac_func
in hypot
5754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_func" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.
$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func(); below. */
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5783 if { (eval echo configure
:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5785 eval "ac_cv_func_$ac_func=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.
$ac_ext >&5
5790 eval "ac_cv_func_$ac_func=no"
5795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5798 cat >> confdefs.h
<<EOF
5799 #define $ac_tr_func 1
5803 echo "$ac_t""no" 1>&6
5804 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
5811 # check whether malloc(0) returns NULL or not
5812 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
5813 echo "configure:5814: checking what malloc(0) returns" >&5
5814 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 if test "$cross_compiling" = yes; then
5818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5820 cat > conftest.
$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5827 char *malloc(), *realloc();
5833 if (p == NULL) exit(1);
5835 if (p == NULL) exit(1);
5840 if { (eval echo configure
:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5842 ac_cv_malloc_zero
=nonnull
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5847 ac_cv_malloc_zero
=null
5854 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5855 if test "$ac_cv_malloc_zero" = null
5857 cat >> confdefs.h
<<\EOF
5858 #define MALLOC_ZERO_RETURNS_NULL 1
5864 ac_safe
=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5865 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
5866 echo "configure:5867: checking for wchar.h" >&5
5867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5870 cat > conftest.
$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5876 { (eval echo configure
:5877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5878 if test -z "$ac_err"; then
5880 eval "ac_cv_header_$ac_safe=yes"
5883 echo "configure: failed program was:" >&5
5884 cat conftest.
$ac_ext >&5
5886 eval "ac_cv_header_$ac_safe=no"
5890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5892 cat >> confdefs.h
<<\EOF
5893 #define HAVE_WCHAR_H 1
5897 echo "$ac_t""no" 1>&6
5903 # check for usable wchar_t
5904 usable_wchar_t
="unkown"
5905 echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
5906 echo "configure:5907: checking for usable wchar_t" >&5
5907 if test "$cross_compiling" = yes; then
5908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5910 cat > conftest.
$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5925 if { (eval echo configure
:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5927 cat >> confdefs.h
<<\EOF
5928 #define HAVE_USABLE_WCHAR_T 1
5930 usable_wchar_t
="yes"
5932 echo "configure: failed program was:" >&5
5933 cat conftest.
$ac_ext >&5
5940 echo "$ac_t""$usable_wchar_t" 1>&6
5942 # check for endianness
5943 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5944 echo "configure:5945: checking whether byte ordering is bigendian" >&5
5945 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 ac_cv_c_bigendian
=unknown
5949 # See if sys/param.h defines the BYTE_ORDER macro.
5950 cat > conftest.
$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 #include <sys/types.h>
5954 #include <sys/param.h>
5957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5962 if { (eval echo configure
:5963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5964 # It does; now see whether it defined to BIG_ENDIAN or not.
5965 cat > conftest.
$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5968 #include <sys/types.h>
5969 #include <sys/param.h>
5972 #if BYTE_ORDER != BIG_ENDIAN
5977 if { (eval echo configure
:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5979 ac_cv_c_bigendian
=yes
5981 echo "configure: failed program was:" >&5
5982 cat conftest.
$ac_ext >&5
5984 ac_cv_c_bigendian
=no
5988 echo "configure: failed program was:" >&5
5989 cat conftest.
$ac_ext >&5
5992 if test $ac_cv_c_bigendian = unknown
; then
5993 if test "$cross_compiling" = yes; then
5994 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5996 cat > conftest.
$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
6000 /* Are we little or big endian? From Harbison&Steele. */
6004 char c[sizeof (long)];
6007 exit (u.c[sizeof (long) - 1] == 1);
6010 if { (eval echo configure
:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6012 ac_cv_c_bigendian
=no
6014 echo "configure: failed program was:" >&5
6015 cat conftest.
$ac_ext >&5
6017 ac_cv_c_bigendian
=yes
6025 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6026 if test $ac_cv_c_bigendian = yes; then
6027 cat >> confdefs.h
<<\EOF
6028 #define WORDS_BIGENDIAN 1
6034 # Check whether right shifting a negative integer extends the sign bit
6035 # or fills with zeros (like the Cray J90, according to Tim Peters).
6036 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
6037 echo "configure:6038: checking whether right shift extends the sign bit" >&5
6038 if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6042 if test "$cross_compiling" = yes; then
6043 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6045 cat > conftest.
$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6051 exit(((-1)>>3 == -1) ? 0 : 1);
6055 if { (eval echo configure
:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6057 ac_cv_rshift_extends_sign
=yes
6059 echo "configure: failed program was:" >&5
6060 cat conftest.
$ac_ext >&5
6062 ac_cv_rshift_extends_sign
=no
6069 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6070 if test "$ac_cv_rshift_extends_sign" = no
6072 cat >> confdefs.h
<<\EOF
6073 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6078 # check for getc_unlocked and related locking functions
6079 echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
6080 echo "configure:6081: checking for getc_unlocked() and friends" >&5
6081 if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6085 cat > conftest.
$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6091 FILE *f = fopen("/dev/null", "r");
6098 if { (eval echo configure
:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6100 ac_cv_have_getc_unlocked
=yes
6102 echo "configure: failed program was:" >&5
6103 cat conftest.
$ac_ext >&5
6105 ac_cv_have_getc_unlocked
=no
6110 echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
6111 if test "$ac_cv_have_getc_unlocked" = yes
6113 cat >> confdefs.h
<<\EOF
6114 #define HAVE_GETC_UNLOCKED 1
6119 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
6120 # Add sys/socket.h to confdefs.h
6121 cat >> confdefs.h
<<\EOF
6122 #ifdef HAVE_SYS_SOCKET_H
6123 #include <sys/socket.h>
6126 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6127 echo "configure:6128: checking for socklen_t" >&5
6128 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6131 cat > conftest.
$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 #include <sys/types.h>
6140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
6143 ac_cv_type_socklen_t
=yes
6146 ac_cv_type_socklen_t
=no
6151 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
6152 if test $ac_cv_type_socklen_t = no
; then
6153 cat >> confdefs.h
<<\EOF
6154 #define socklen_t int
6160 # Add Python/ prefix to LIBOBJS
6163 for obj
in $libobjs; do
6164 LIBOBJS
="$LIBOBJS Python/$obj"
6167 #AC_MSG_CHECKING(for Modules/Setup)
6168 #if test ! -f Modules/Setup ; then
6169 # if test ! -d Modules ; then
6172 # cp "$srcdir/Modules/Setup.dist" Modules/Setup
6173 # AC_MSG_RESULT(creating)
6175 # AC_MSG_RESULT(already exists)
6179 SRCDIRS
="Parser Grammar Objects Python Modules"
6180 echo $ac_n "checking for build directories""... $ac_c" 1>&6
6181 echo "configure:6182: checking for build directories" >&5
6182 for dir
in $SRCDIRS; do
6183 if test ! -d $dir; then
6187 echo "$ac_t""done" 1>&6
6189 # generate output files
6191 cat > confcache
<<\EOF
6192 # This file is a shell script that caches the results of configure
6193 # tests run on this system so they can be shared between configure
6194 # scripts and configure runs. It is not useful on other systems.
6195 # If it contains results you don't want to keep, you may remove or edit it.
6197 # By default, configure uses ./config.cache as the cache file,
6198 # creating it if it does not exist already. You can give configure
6199 # the --cache-file=FILE option to use a different cache file; that is
6200 # what configure does when it calls configure scripts in
6201 # subdirectories, so they share the cache.
6202 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6203 # config.status only pays attention to the cache file if you give it the
6204 # --recheck option to rerun configure.
6207 # The following way of writing the cache mishandles newlines in values,
6208 # but we know of no workaround that is simple, portable, and efficient.
6209 # So, don't put newlines in cache variables' values.
6210 # Ultrix sh set writes to stderr and can't be redirected directly,
6211 # and sets the high bit in the cache file unless we assign to the vars.
6213 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6215 # `set' does not quote correctly, so add quotes (double-quote substitution
6216 # turns \\\\ into \\, and sed turns \\ into \).
6218 -e "s/'/'\\\\''/g" \
6219 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6222 # `set' quotes correctly as required by POSIX, so do not add quotes.
6223 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6226 if cmp -s $cache_file confcache
; then
6229 if test -w $cache_file; then
6230 echo "updating cache $cache_file"
6231 cat confcache
> $cache_file
6233 echo "not updating unwritable cache $cache_file"
6238 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6240 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6241 # Let make expand exec_prefix.
6242 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6244 # Any assignment to VPATH causes Sun make to only execute
6245 # the first set of double-colon rules, so remove it if not needed.
6246 # If there is a colon in the path, we need to keep it.
6247 if test "x$srcdir" = x.
; then
6248 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6251 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6253 DEFS
=-DHAVE_CONFIG_H
6255 # Without the "./", some shells look in PATH for config.status.
6256 : ${CONFIG_STATUS=./config.status}
6258 echo creating
$CONFIG_STATUS
6259 rm -f $CONFIG_STATUS
6260 cat > $CONFIG_STATUS <<EOF
6262 # Generated automatically by configure.
6263 # Run this file to recreate the current configuration.
6264 # This directory was configured as follows,
6265 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6267 # $0 $ac_configure_args
6269 # Compiler output produced by configure, useful for debugging
6270 # configure, is in ./config.log if it exists.
6272 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6275 case "\$ac_option" in
6276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6277 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6278 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6279 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6280 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6282 -help | --help | --hel | --he | --h)
6283 echo "\$ac_cs_usage"; exit 0 ;;
6284 *) echo "\$ac_cs_usage"; exit 1 ;;
6288 ac_given_srcdir=$srcdir
6289 ac_given_INSTALL="$INSTALL"
6291 trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6293 cat >> $CONFIG_STATUS <<EOF
6295 # Protect against being on the right side of a sed subst in config.status.
6296 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6297 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6301 s%@CFLAGS@%$CFLAGS%g
6302 s%@CPPFLAGS@%$CPPFLAGS%g
6303 s%@CXXFLAGS@%$CXXFLAGS%g
6304 s%@FFLAGS@%$FFLAGS%g
6306 s%@LDFLAGS@%$LDFLAGS%g
6308 s%@exec_prefix@%$exec_prefix%g
6309 s%@prefix@%$prefix%g
6310 s%@program_transform_name@%$program_transform_name%g
6311 s%@bindir@%$bindir%g
6312 s%@sbindir@%$sbindir%g
6313 s%@libexecdir@%$libexecdir%g
6314 s%@datadir@%$datadir%g
6315 s%@sysconfdir@%$sysconfdir%g
6316 s%@sharedstatedir@%$sharedstatedir%g
6317 s%@localstatedir@%$localstatedir%g
6318 s%@libdir@%$libdir%g
6319 s%@includedir@%$includedir%g
6320 s%@oldincludedir@%$oldincludedir%g
6321 s%@infodir@%$infodir%g
6322 s%@mandir@%$mandir%g
6323 s%@VERSION@%$VERSION%g
6324 s%@CONFIG_ARGS@%$CONFIG_ARGS%g
6325 s%@MACHDEP@%$MACHDEP%g
6326 s%@SGI_ABI@%$SGI_ABI%g
6328 s%@MAINOBJ@%$MAINOBJ%g
6330 s%@EXEEXT@%$EXEEXT%g
6331 s%@LIBRARY@%$LIBRARY%g
6332 s%@LDLIBRARY@%$LDLIBRARY%g
6333 s%@DLLLIBRARY@%$DLLLIBRARY%g
6334 s%@LINKCC@%$LINKCC%g
6335 s%@RANLIB@%$RANLIB%g
6337 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6338 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6339 s%@INSTALL_DATA@%$INSTALL_DATA%g
6343 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
6345 s%@LDSHARED@%$LDSHARED%g
6346 s%@BLDSHARED@%$BLDSHARED%g
6347 s%@CCSHARED@%$CCSHARED%g
6348 s%@LINKFORSHARED@%$LINKFORSHARED%g
6349 s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
6350 s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
6351 s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
6352 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
6353 s%@LDLAST@%$LDLAST%g
6354 s%@USE_GC_MODULE@%$USE_GC_MODULE%g
6355 s%@DLINCLDIR@%$DLINCLDIR%g
6356 s%@DYNLOADFILE@%$DYNLOADFILE%g
6357 s%@LIBOBJS@%$LIBOBJS%g
6358 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6359 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6360 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
6361 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
6362 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
6365 s%@SRCDIRS@%$SRCDIRS%g
6370 cat >> $CONFIG_STATUS <<\EOF
6372 # Split the substitutions into bite-sized pieces for seds with
6373 # small command number limits, like on Digital OSF/1 and HP-UX.
6374 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6375 ac_file
=1 # Number of current file.
6376 ac_beg
=1 # First line for current file.
6377 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6380 while $ac_more_lines; do
6381 if test $ac_beg -gt 1; then
6382 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6384 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6386 if test ! -s conftest.s
$ac_file; then
6388 rm -f conftest.s
$ac_file
6390 if test -z "$ac_sed_cmds"; then
6391 ac_sed_cmds
="sed -f conftest.s$ac_file"
6393 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6395 ac_file
=`expr $ac_file + 1`
6397 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6400 if test -z "$ac_sed_cmds"; then
6405 cat >> $CONFIG_STATUS <<EOF
6407 CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
6409 cat >> $CONFIG_STATUS <<\EOF
6410 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6413 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6414 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6415 *) ac_file_in
="${ac_file}.in" ;;
6418 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6420 # Remove last slash and all that follows it. Not all systems have dirname.
6421 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6422 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6423 # The file is in a subdirectory.
6424 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6425 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6426 # A "../" for each directory in $ac_dir_suffix.
6427 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6429 ac_dir_suffix
= ac_dots
=
6432 case "$ac_given_srcdir" in
6434 if test -z "$ac_dots"; then top_srcdir
=.
6435 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6436 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6438 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6439 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6442 case "$ac_given_INSTALL" in
6443 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6444 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6447 echo creating
"$ac_file"
6449 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6451 *Makefile
*) ac_comsub
="1i\\
6452 # $configure_input" ;;
6456 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6458 s%@configure_input@%$configure_input%g
6459 s%@srcdir@%$srcdir%g
6460 s%@top_srcdir@%$top_srcdir%g
6461 s%@INSTALL@%$INSTALL%g
6462 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6469 # ac_d sets the value in "#define NAME VALUE" lines.
6470 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6471 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6474 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6475 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6476 ac_uB
='\([ ]\)%\1#\2define\3'
6479 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6480 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6481 ac_eB
='$%\1#\2define\3'
6485 if test "${CONFIG_HEADERS+set}" != set; then
6487 cat >> $CONFIG_STATUS <<EOF
6488 CONFIG_HEADERS="config.h"
6490 cat >> $CONFIG_STATUS <<\EOF
6492 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6495 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6496 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6497 *) ac_file_in
="${ac_file}.in" ;;
6500 echo creating
$ac_file
6502 rm -f conftest.frag conftest.
in conftest.out
6503 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6504 cat $ac_file_inputs > conftest.
in
6508 # Transform confdefs.h into a sed script conftest.vals that substitutes
6509 # the proper values into config.h.in to produce config.h. And first:
6510 # Protect against being on the right side of a sed subst in config.status.
6511 # Protect against being in an unquoted here document in config.status.
6513 cat > conftest.hdr
<<\EOF
6516 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6520 sed -n -f conftest.hdr confdefs.h > conftest.vals
6523 # This sed command replaces #undef with comments. This is necessary, for
6524 # example, in the case of _POSIX_SOURCE, which is predefined and required
6525 # on some systems where configure will not decide to define it.
6526 cat >> conftest.vals <<\EOF
6527 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6530 # Break up conftest.vals because some shells have a limit on
6531 # the size of here documents, and old seds have small limits too.
6536 ac_lines=`grep -c . conftest.vals
`
6537 # grep -c gives empty output for an empty file on some AIX systems.
6538 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6539 # Write a limited-size here document to conftest.frag.
6540 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6541 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6543 sed -f conftest.frag conftest.in > conftest.out
6545 mv conftest.out conftest.in
6547 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6549 mv conftest.tail conftest.vals
6553 cat >> $CONFIG_STATUS <<\EOF
6554 rm -f conftest.frag conftest.h
6555 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6556 cat conftest.in >> conftest.h
6558 if cmp -s $ac_file conftest.h 2>/dev/null; then
6559 echo "$ac_file is unchanged"
6562 # Remove last slash and all that follows it. Not all systems have dirname.
6563 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6564 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6565 # The file is in a subdirectory.
6566 test ! -d "$ac_dir" && mkdir "$ac_dir"
6569 mv conftest.h $ac_file
6574 cat >> $CONFIG_STATUS <<EOF
6577 cat >> $CONFIG_STATUS <<\EOF
6581 chmod +x $CONFIG_STATUS
6582 rm -fr confdefs* $ac_clean_files
6583 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6586 echo "creating Setup"
6587 if test ! -f Modules/Setup
6589 cp $srcdir/Modules/Setup.dist Modules/Setup
6592 echo "creating Setup.local"
6593 if test ! -f Modules/Setup.local
6595 echo "# Edit this file for local setup changes" >Modules/Setup.local
6598 echo "creating Makefile"
6599 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
6600 -s Modules Modules/Setup.config \
6601 Modules/Setup Modules/Setup.local