3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-template=TEMPLATE
17 use operating system template file
18 see template directory"
20 --with-includes=DIR site header files for tk/tcl, etc in DIR"
22 --with-libs=DIR site library directories for tk/tcl, etc in DIR"
24 --with-libraries=DIR site library directories for tk/tcl, etc in DIR"
26 --enable-locale enable locale support "
28 --enable-recode enable cyrillic recode support "
30 --with-pgport=<portnum> change default startup port "
34 --with-perl use perl "
36 --enable-cassert enable assertion checks (debugging) "
38 --with-x use the X Window System"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --version print the version of autoconf that created configure
170 Directory and file names:
171 --prefix=PREFIX install architecture-independent files in PREFIX
173 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 --bindir=DIR user executables in DIR [EPREFIX/bin]
176 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
177 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
178 --datadir=DIR read-only architecture-independent data in DIR
180 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
181 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
184 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
185 --includedir=DIR C header files in DIR [PREFIX/include]
186 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
187 --infodir=DIR info documentation in DIR [PREFIX/info]
188 --mandir=DIR man documentation in DIR [PREFIX/man]
189 --srcdir=DIR find the sources in DIR [configure dir or ..]
190 --program-prefix=PREFIX prepend PREFIX to installed program names
191 --program-suffix=SUFFIX append SUFFIX to installed program names
192 --program-transform-name=PROGRAM
193 run sed PROGRAM on installed program names
197 --build=BUILD configure for building on BUILD [BUILD=HOST]
198 --host=HOST configure for HOST [guessed]
199 --target=TARGET configure for TARGET [TARGET=HOST]
200 Features and packages:
201 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
202 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
203 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
204 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
205 --x-includes=DIR X include files are in DIR
206 --x-libraries=DIR X library files are in DIR
208 if test -n "$ac_help"; then
209 echo "--enable and --with options recognized:$ac_help"
213 -host | --host | --hos | --ho)
215 -host=* | --host=* | --hos=* | --ho=*)
218 -includedir | --includedir | --includedi | --included | --include \
219 | --includ | --inclu | --incl | --inc)
220 ac_prev=includedir ;;
221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
222 | --includ=* | --inclu=* | --incl=* | --inc=*)
223 includedir="$ac_optarg" ;;
225 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
228 infodir="$ac_optarg" ;;
230 -libdir | --libdir | --libdi | --libd)
232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
233 libdir="$ac_optarg" ;;
235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
236 | --libexe | --libex | --libe)
237 ac_prev=libexecdir ;;
238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
239 | --libexe=* | --libex=* | --libe=*)
240 libexecdir="$ac_optarg" ;;
242 -localstatedir | --localstatedir | --localstatedi | --localstated \
243 | --localstate | --localstat | --localsta | --localst \
244 | --locals | --local | --loca | --loc | --lo)
245 ac_prev=localstatedir ;;
246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
249 localstatedir="$ac_optarg" ;;
251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
254 mandir="$ac_optarg" ;;
257 # Obsolete; use --without-fp.
260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
270 | --oldin | --oldi | --old | --ol | --o)
271 ac_prev=oldincludedir ;;
272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
275 oldincludedir="$ac_optarg" ;;
277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
280 prefix="$ac_optarg" ;;
282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
283 | --program-pre | --program-pr | --program-p)
284 ac_prev=program_prefix ;;
285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
287 program_prefix="$ac_optarg" ;;
289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
290 | --program-suf | --program-su | --program-s)
291 ac_prev=program_suffix ;;
292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
294 program_suffix="$ac_optarg" ;;
296 -program-transform-name | --program-transform-name \
297 | --program-transform-nam | --program-transform-na \
298 | --program-transform-n | --program-transform- \
299 | --program-transform | --program-transfor \
300 | --program-transfo | --program-transf \
301 | --program-trans | --program-tran \
302 | --progr-tra | --program-tr | --program-t)
303 ac_prev=program_transform_name ;;
304 -program-transform-name=* | --program-transform-name=* \
305 | --program-transform-nam=* | --program-transform-na=* \
306 | --program-transform-n=* | --program-transform-=* \
307 | --program-transform=* | --program-transfor=* \
308 | --program-transfo=* | --program-transf=* \
309 | --program-trans=* | --program-tran=* \
310 | --progr-tra=* | --program-tr=* | --program-t=*)
311 program_transform_name="$ac_optarg" ;;
313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
314 | -silent | --silent | --silen | --sile | --sil)
317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 sbindir="$ac_optarg" ;;
323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
325 | --sharedst | --shareds | --shared | --share | --shar \
327 ac_prev=sharedstatedir ;;
328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 sharedstatedir="$ac_optarg" ;;
334 -site | --site | --sit)
336 -site=* | --site=* | --sit=*)
339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
342 srcdir="$ac_optarg" ;;
344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
345 | --syscon | --sysco | --sysc | --sys | --sy)
346 ac_prev=sysconfdir ;;
347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
349 sysconfdir="$ac_optarg" ;;
351 -target | --target | --targe | --targ | --tar | --ta | --t)
353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
354 target="$ac_optarg" ;;
356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 -version | --version | --versio | --versi | --vers)
360 echo "configure generated by autoconf version 2.12"
364 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
365 # Reject names that are not valid shell variable names.
366 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
367 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}='$ac_optarg'" ;;
376 -without-* | --without-*)
377 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package=`echo $ac_package| sed 's/-/_/g'`
383 eval "with_${ac_package}=no" ;;
386 # Obsolete; use --with-x.
389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
390 | --x-incl | --x-inc | --x-in | --x-i)
391 ac_prev=x_includes ;;
392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
394 x_includes="$ac_optarg" ;;
396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
398 ac_prev=x_libraries ;;
399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
401 x_libraries="$ac_optarg" ;;
403 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
407 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
408 echo "configure: warning: $ac_option: invalid host type" 1>&2
410 if test "x$nonopt" != xNONE; then
411 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 if test -n "$ac_prev"; then
420 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
423 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425 # File descriptor usage:
428 # 2 errors and warnings
429 # 3 some systems may open it to /dev/tty
430 # 4 used on the Kubota Titan
431 # 6 checking for... messages and results
432 # 5 compiler messages saved in config.log
433 if test "$silent" = yes; then
441 This file contains any messages produced by compilers while
442 running configure, to aid debugging if configure makes a mistake.
445 # Strip out --no-create and --no-recursion so they do not pile up.
446 # Also quote any args containing shell metacharacters.
451 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
452 | --no-cr | --no-c) ;;
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
455 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
456 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
457 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 # Only set these to C if already set. These must not be set unconditionally
463 # because not all systems understand e.g. LANG=C (notably SCO).
464 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
465 # Non-C LC_CTYPE values break the ctype check.
466 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
467 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
468 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
469 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471 # confdefs.h avoids OS command line length limits that DEFS can exceed.
472 rm -rf conftest* confdefs.h
473 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 # A filename unique to this package, relative to the directory that
477 # configure is in, which we can look for to find out if srcdir is correct.
478 ac_unique_file=backend/access/common/heaptuple.c
480 # Find the source files, if location was not specified.
481 if test -z "$srcdir"; then
482 ac_srcdir_defaulted=yes
483 # Try the directory containing this script, then its parent.
485 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
486 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 if test ! -r $srcdir/$ac_unique_file; then
492 ac_srcdir_defaulted=no
494 if test ! -r $srcdir/$ac_unique_file; then
495 if test "$ac_srcdir_defaulted" = yes; then
496 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
501 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503 # Prefer explicitly selected file to automatically selected ones.
504 if test -z "$CONFIG_SITE"; then
505 if test "x$prefix" != xNONE; then
506 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
511 for ac_site_file in $CONFIG_SITE; do
512 if test -r "$ac_site_file"; then
513 echo "loading site script $ac_site_file"
518 if test -r "$cache_file"; then
519 echo "loading cache $cache_file"
522 echo "creating cache $cache_file"
527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
528 ac_cpp='$CPP $CPPFLAGS'
529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
530 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
531 cross_compiling=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='\c' ac_t=
549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
550 if test -f $ac_dir/install-sh; then
552 ac_install_sh="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh; then
556 ac_install_sh="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess=$ac_aux_dir/config.guess
564 ac_config_sub=$ac_aux_dir/config.sub
565 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
568 # Make sure we can run config.sub.
569 if $ac_config_sub sun4 >/dev/null 2>&1; then :
570 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
573 echo $ac_n "checking host system type""... $ac_c" 1>&6
574 echo "configure:575: checking host system type" >&5
577 case "$host_alias" in
581 if host_alias=`$ac_config_guess`; then :
582 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
584 *) host_alias=$nonopt ;;
588 host=`$ac_config_sub $host_alias`
589 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
590 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
591 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
592 echo "$ac_t""$host" 1>&6
599 sparc) os=sparc_solaris need_tas=yes tas_file=sparc_solaris.s ;;
600 i386) os=i386_solaris need_tas=yes tas_file=i386_solaris.s ;;
602 sunos*) os=sunos4 need_tas=no ;;
603 aux*) os=aux need_tas=no ;;
604 linux*) os=linux need_tas=no ;;
605 bsdi*) os=bsdi need_tas=no ;;
606 freebsd*|netbsd*|openbsd*) os=bsd need_tas=no ;;
607 dgux*) os=dgux need_tas=no ;;
608 aix*) os=aix need_tas=no ;;
609 nextstep*) os=nextstep need_tas=no ;;
610 ultrix*) os=ultrix4 need_tas=no ;;
611 irix*) os=irix5 need_tas=no ;;
612 hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
613 osf*) os=alpha need_tas=no ;;
614 sco*) os=sco need_tas=no ;;
615 machten*) os=machten need_tas=no ;;
616 cygwin*) os=win need_tas=no ;;
618 case "$host_vendor" in
619 univel) os=univel need_tas=no ;;
620 *) os=unknown need_tas=no ;;
622 sysv4*) os=svr4 need_tas=no ;;
624 echo "*************************************************************"
625 echo "configure does not currently recognize your operating system,"
626 echo "therefore you must do a manual configuration of:"
628 echo "Please contact scrappy@hub.org to see about rectifying this, "
629 echo "including the above 'checking host system type...' line "
630 echo "*************************************************************"
635 if test "X$need_tas" = "Xyes"
650 echo "checking echo setting..."
651 if echo '\c' | grep -s c >/dev/null 2>&1
661 echo $ac_n "checking setting template to""... $ac_c" 1>&6
662 echo "configure:663: checking setting template to" >&5
663 # Check whether --with-template or --without-template was given.
664 if test "${with_template+set}" = set; then
665 withval="$with_template"
666 TEMPLATE=template/$withval
668 TEMPLATE=template/`uname -s | tr A-Z a-z`
671 echo "$ac_t""$TEMPLATE" 1>&6
674 if test ! -f "$TEMPLATE"; then
676 echo "$TEMPLATE does not exist"
678 echo "Available Templates (set using --with-template):"
685 AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
686 SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
687 CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
688 SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`
689 SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`
690 USE_LOCALE=`grep '^USE_LOCALE:' $TEMPLATE | awk -F: '{print $2}'`
691 DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`
692 DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`
693 YACC=`grep '^YACC:' $TEMPLATE | awk -F: '{print $2}'`
694 YFLAGS=`grep '^YFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
695 CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`
696 LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`
699 # Check whether --with-includes or --without-includes was given.
700 if test "${with_includes+set}" = set; then
701 withval="$with_includes"
704 "" | y | ye | yes | n | no)
705 { echo "configure: error: *** You must supply an argument to the --with-includes option." 1>&2; exit 1; }
708 INCLUDE_DIRS="$withval"
713 if test "$INCLUDE_DIRS"; then
714 for dir in $INCLUDE_DIRS; do
715 if test -d "$dir"; then
716 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir"
718 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
723 # Check whether --with-libs or --without-libs was given.
724 if test "${with_libs+set}" = set; then
728 "" | y | ye | yes | n | no)
729 { echo "configure: error: *** You must supply an argument to the --with-libs option." 1>&2; exit 1; }
732 LIBRARY_DIRS="$withval"
737 # Check whether --with-libraries or --without-libraries was given.
738 if test "${with_libraries+set}" = set; then
739 withval="$with_libraries"
742 "" | y | ye | yes | n | no)
743 { echo "configure: error: *** You must supply an argument to the --with-libraries option." 1>&2; exit 1; }
746 LIBRARY_DIRS="$withval"
751 if test "$LIBRARY_DIRS"; then
752 for dir in $LIBRARY_DIRS; do
753 if test -d "$dir"; then
754 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
756 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
761 echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
762 echo "configure:763: checking setting USE_LOCALE" >&5
763 # Check whether --enable-locale or --disable-locale was given.
764 if test "${enable_locale+set}" = set; then
765 enableval="$enable_locale"
766 cat >> confdefs.h <<\EOF
769 echo "$ac_t""enabled" 1>&6
771 echo "$ac_t""disabled" 1>&6
776 echo $ac_n "checking setting CYR_RECODE""... $ac_c" 1>&6
777 echo "configure:778: checking setting CYR_RECODE" >&5
778 # Check whether --enable-recode or --disable-recode was given.
779 if test "${enable_recode+set}" = set; then
780 enableval="$enable_recode"
781 cat >> confdefs.h <<\EOF
784 echo "$ac_t""enabled" 1>&6
786 echo "$ac_t""disabled" 1>&6
791 echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
792 echo "configure:793: checking setting DEF_PGPORT" >&5
793 # Check whether --with-pgport or --without-pgport was given.
794 if test "${with_pgport+set}" = set; then
795 withval="$with_pgport"
796 cat >> confdefs.h <<EOF
797 #define DEF_PGPORT "${withval}"
799 echo "$ac_t""$with_pgport" 1>&6
801 cat >> confdefs.h <<EOF
802 #define DEF_PGPORT "5432"
804 echo "$ac_t""5432" 1>&6
809 echo $ac_n "checking setting USE_TCL""... $ac_c" 1>&6
810 echo "configure:811: checking setting USE_TCL" >&5
811 # Check whether --with-tcl or --without-tcl was given.
812 if test "${with_tcl+set}" = set; then
814 USE_TCL=true; echo "$ac_t""enabled" 1>&6
816 USE_TCL=false; echo "$ac_t""disabled" 1>&6
821 if test "$USE_TCL"; then
822 header_dirs="/usr/include $INCLUDE_DIRS"
823 tcl_dirs="tcl8.0 tcl80 tcl7.6 tcl76"
824 tk_dirs="tk8.0 tk4.2"
825 for dir in $header_dirs; do
826 for tcl_dir in $tcl_dirs; do
827 if test -d "$dir/$tcl_dir"; then
828 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir/$tcl_dir"
832 for dir in $header_dirs; do
833 for tk_dir in $tk_dirs; do
834 if test -d "$dir/$tk_dir"; then
835 PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$dir/$tk_dir"
843 echo $ac_n "checking setting USE_PERL""... $ac_c" 1>&6
844 echo "configure:845: checking setting USE_PERL" >&5
845 # Check whether --with-perl or --without-perl was given.
846 if test "${with_perl+set}" = set; then
848 USE_PERL=true; echo "$ac_t""enabled" 1>&6
850 USE_PERL=false; echo "$ac_t""disabled" 1>&6
855 if test "$USE_PERL" = "true"; then
856 if test ! -x $prefix/bin/postgres; then
857 echo "configure: warning: perl support disabled; postgres not previously installed" 1>&2
863 echo $ac_n "checking setting ASSERT CHECKING""... $ac_c" 1>&6
864 echo "configure:865: checking setting ASSERT CHECKING" >&5
865 # Check whether --enable-cassert or --disable-cassert was given.
866 if test "${enable_cassert+set}" = set; then
867 enableval="$enable_cassert"
868 cat >> confdefs.h <<\EOF
869 #define USE_ASSERT_CHECKING 1
871 echo "$ac_t""enabled" 1>&6
873 echo "$ac_t""disabled" 1>&6
878 if test "X$with_compiler" != "X"
882 # Extract the first word of "gcc", so it can be a program name with args.
883 set dummy gcc; ac_word=$2
884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
885 echo "configure:886: checking for $ac_word" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 if test -n "$CC"; then
890 ac_cv_prog_CC="$CC" # Let the user override the test.
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
893 for ac_dir in $PATH; do
894 test -z "$ac_dir" && ac_dir=.
895 if test -f $ac_dir/$ac_word; then
904 if test -n "$CC"; then
905 echo "$ac_t""$CC" 1>&6
907 echo "$ac_t""no" 1>&6
910 if test -z "$CC"; then
911 # Extract the first word of "cc", so it can be a program name with args.
912 set dummy cc; ac_word=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
918 if test -n "$CC"; then
919 ac_cv_prog_CC="$CC" # Let the user override the test.
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
923 for ac_dir in $PATH; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
926 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
935 if test $ac_prog_rejected = yes; then
936 # We found a bogon in the path, so make sure we never use it.
937 set dummy $ac_cv_prog_CC
939 if test $# -gt 0; then
940 # We chose a different compiler from the bogus one.
941 # However, it has the same basename, so the bogon will be chosen
942 # first if we set CC to just the basename; use the full file name.
944 set dummy "$ac_dir/$ac_word" "$@"
952 if test -n "$CC"; then
953 echo "$ac_t""$CC" 1>&6
955 echo "$ac_t""no" 1>&6
958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
965 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
968 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
969 cross_compiling=$ac_cv_prog_cc_cross
971 cat > conftest.$ac_ext <<EOF
972 #line 973 "configure"
973 #include "confdefs.h"
976 if { (eval echo configure:977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
977 ac_cv_prog_cc_works=yes
978 # If we can't run a trivial program, we are probably using a cross compiler.
979 if (./conftest; exit) 2>/dev/null; then
980 ac_cv_prog_cc_cross=no
982 ac_cv_prog_cc_cross=yes
985 echo "configure: failed program was:" >&5
986 cat conftest.$ac_ext >&5
987 ac_cv_prog_cc_works=no
991 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
992 if test $ac_cv_prog_cc_works = no; then
993 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
995 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
996 echo "configure:997: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
997 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
998 cross_compiling=$ac_cv_prog_cc_cross
1000 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether we are using GNU C" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 cat > conftest.c <<EOF
1010 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1017 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1019 if test $ac_cv_prog_gcc = yes; then
1021 ac_test_CFLAGS="${CFLAGS+set}"
1022 ac_save_CFLAGS="$CFLAGS"
1024 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether ${CC-cc} accepts -g" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 echo 'void f(){}' > conftest.c
1030 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1039 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1040 if test "$ac_test_CFLAGS" = set; then
1041 CFLAGS="$ac_save_CFLAGS"
1042 elif test $ac_cv_prog_cc_g = yes; then
1049 test "${CFLAGS+set}" = set || CFLAGS="-g"
1054 CPPFLAGS="$CPPFLAGS $PGSQL_CPPFLAGS"
1056 echo "- setting CPPFLAGS=$CPPFLAGS"
1058 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
1060 echo "- setting LDFLAGS=$LDFLAGS"
1064 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1065 echo "configure:1066: checking how to run the C preprocessor" >&5
1066 # On Suns, sometimes $CPP names a directory.
1067 if test -n "$CPP" && test -d "$CPP"; then
1070 if test -z "$CPP"; then
1071 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 # This must be in double quotes, not single quotes, because CPP may get
1075 # substituted into the Makefile and "${CC-cc}" will confuse make.
1077 # On the NeXT, cc -E runs the code through the compiler's parser,
1078 # not just through cpp.
1079 cat > conftest.$ac_ext <<EOF
1080 #line 1081 "configure"
1081 #include "confdefs.h"
1085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1086 { (eval echo configure:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1087 ac_err=`grep -v '^ *+' conftest.out`
1088 if test -z "$ac_err"; then
1092 echo "configure: failed program was:" >&5
1093 cat conftest.$ac_ext >&5
1095 CPP="${CC-cc} -E -traditional-cpp"
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1103 { (eval echo configure:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1104 ac_err=`grep -v '^ *+' conftest.out`
1105 if test -z "$ac_err"; then
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1117 ac_cv_prog_CPP="$CPP"
1119 CPP="$ac_cv_prog_CPP"
1121 ac_cv_prog_CPP="$CPP"
1123 echo "$ac_t""$CPP" 1>&6
1137 HAVECXX='HAVE_Cplusplus=false'
1139 INSTALLPATH="/usr/ucb:$PATH"
1140 for ac_prog in ginstall installbsd bsdinst scoinst install
1142 # Extract the first word of "$ac_prog", so it can be a program name with args.
1143 set dummy $ac_prog; ac_word=$2
1144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1145 echo "configure:1146: checking for $ac_word" >&5
1146 if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1151 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
1154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1155 for ac_dir in $INSTALLPATH$ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_path_INSTALL="$ac_dir/$ac_word"
1166 INSTALL="$ac_cv_path_INSTALL"
1167 if test -n "$INSTALL"; then
1168 echo "$ac_t""$INSTALL" 1>&6
1170 echo "$ac_t""no" 1>&6
1173 test -n "$INSTALL" && break
1175 test -n "$INSTALL" || INSTALL="NONE"
1177 if test $INSTALL = "NONE"
1179 echo "- No Install Script found - aborting."
1184 INSTL_EXE_OPTS="-m 555"
1185 INSTL_LIB_OPTS="-m 644"
1187 case "`basename $INSTALL`" in
1188 install|installbsd|scoinst)
1189 INSTLOPTS="-c $INSTLOPTS"
1190 INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1191 INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS";;
1194 echo "- Using $INSTALL"
1200 ECHO_N_OUT=`echo -n "" | wc -c`
1201 ECHO_C_OUT=`echo "\c" | wc -c`
1202 if test "$ECHO_N_OUT" -eq 0; then
1206 if test "ECHO_C_OUT" -eq 0; then
1210 { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
1216 # Extract the first word of "flex", so it can be a program name with args.
1217 set dummy flex; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$LEX"; then
1224 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1227 for ac_dir in $PATH; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/$ac_word; then
1230 ac_cv_prog_LEX="flex"
1235 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1238 LEX="$ac_cv_prog_LEX"
1239 if test -n "$LEX"; then
1240 echo "$ac_t""$LEX" 1>&6
1242 echo "$ac_t""no" 1>&6
1245 if test -z "$LEXLIB"
1251 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1252 echo "configure:1253: checking for yywrap in -l$ac_lib" >&5
1253 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 ac_save_LIBS="$LIBS"
1258 LIBS="-l$ac_lib $LIBS"
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1262 /* Override any gcc2 internal prototype to avoid an error. */
1263 /* We use char because int might match the return type of a gcc2
1264 builtin and then its argument prototype would still apply. */
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1273 eval "ac_cv_lib_$ac_lib_var=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_lib_$ac_lib_var=no"
1281 LIBS="$ac_save_LIBS"
1284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1285 echo "$ac_t""yes" 1>&6
1288 echo "$ac_t""no" 1>&6
1293 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1294 echo "configure:1295: checking whether ln -s works" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1299 if ln -s X conftestdata 2>/dev/null
1302 ac_cv_prog_LN_S="ln -s"
1307 LN_S="$ac_cv_prog_LN_S"
1308 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1309 echo "$ac_t""yes" 1>&6
1311 echo "$ac_t""no" 1>&6
1314 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether ${MAKE-make} sets \${MAKE}" >&5
1316 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1317 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 cat > conftestmake <<\EOF
1322 @echo 'ac_maketemp="${MAKE}"'
1324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1325 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1326 if test -n "$ac_maketemp"; then
1327 eval ac_cv_prog_make_${ac_make}_set=yes
1329 eval ac_cv_prog_make_${ac_make}_set=no
1333 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1337 echo "$ac_t""no" 1>&6
1338 SET_MAKE="MAKE=${MAKE-make}"
1341 # Extract the first word of "ranlib", so it can be a program name with args.
1342 set dummy ranlib; ac_word=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$RANLIB"; then
1349 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1352 for ac_dir in $PATH; do
1353 test -z "$ac_dir" && ac_dir=.
1354 if test -f $ac_dir/$ac_word; then
1355 ac_cv_prog_RANLIB="ranlib"
1360 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1363 RANLIB="$ac_cv_prog_RANLIB"
1364 if test -n "$RANLIB"; then
1365 echo "$ac_t""$RANLIB" 1>&6
1367 echo "$ac_t""no" 1>&6
1370 # Extract the first word of "find", so it can be a program name with args.
1371 set dummy find; ac_word=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1379 ac_cv_path_find="$find" # Let the user override the test with a path.
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1383 for ac_dir in $PATH; do
1384 test -z "$ac_dir" && ac_dir=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_path_find="$ac_dir/$ac_word"
1394 find="$ac_cv_path_find"
1395 if test -n "$find"; then
1396 echo "$ac_t""$find" 1>&6
1398 echo "$ac_t""no" 1>&6
1401 # Extract the first word of "tar", so it can be a program name with args.
1402 set dummy tar; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1410 ac_cv_path_tar="$tar" # Let the user override the test with a path.
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1414 for ac_dir in $PATH; do
1415 test -z "$ac_dir" && ac_dir=.
1416 if test -f $ac_dir/$ac_word; then
1417 ac_cv_path_tar="$ac_dir/$ac_word"
1425 tar="$ac_cv_path_tar"
1426 if test -n "$tar"; then
1427 echo "$ac_t""$tar" 1>&6
1429 echo "$ac_t""no" 1>&6
1432 # Extract the first word of "split", so it can be a program name with args.
1433 set dummy split; ac_word=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1441 ac_cv_path_split="$split" # Let the user override the test with a path.
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1445 for ac_dir in $PATH; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_path_split="$ac_dir/$ac_word"
1456 split="$ac_cv_path_split"
1457 if test -n "$split"; then
1458 echo "$ac_t""$split" 1>&6
1460 echo "$ac_t""no" 1>&6
1463 # Extract the first word of "etags", so it can be a program name with args.
1464 set dummy etags; ac_word=$2
1465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1466 echo "configure:1467: checking for $ac_word" >&5
1467 if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1472 ac_cv_path_etags="$etags" # Let the user override the test with a path.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1476 for ac_dir in $PATH; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_path_etags="$ac_dir/$ac_word"
1487 etags="$ac_cv_path_etags"
1488 if test -n "$etags"; then
1489 echo "$ac_t""$etags" 1>&6
1491 echo "$ac_t""no" 1>&6
1494 # Extract the first word of "xargs", so it can be a program name with args.
1495 set dummy xargs; ac_word=$2
1496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_word" >&5
1498 if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1503 ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
1506 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1507 for ac_dir in $PATH; do
1508 test -z "$ac_dir" && ac_dir=.
1509 if test -f $ac_dir/$ac_word; then
1510 ac_cv_path_xargs="$ac_dir/$ac_word"
1518 xargs="$ac_cv_path_xargs"
1519 if test -n "$xargs"; then
1520 echo "$ac_t""$xargs" 1>&6
1522 echo "$ac_t""no" 1>&6
1525 # Extract the first word of "ipcs", so it can be a program name with args.
1526 set dummy ipcs; ac_word=$2
1527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_word" >&5
1529 if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1534 ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1538 for ac_dir in $PATH; do
1539 test -z "$ac_dir" && ac_dir=.
1540 if test -f $ac_dir/$ac_word; then
1541 ac_cv_path_ipcs="$ac_dir/$ac_word"
1549 ipcs="$ac_cv_path_ipcs"
1550 if test -n "$ipcs"; then
1551 echo "$ac_t""$ipcs" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 # Extract the first word of "ipcrm", so it can be a program name with args.
1557 set dummy ipcrm; ac_word=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1565 ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1569 for ac_dir in $PATH; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 ac_cv_path_ipcrm="$ac_dir/$ac_word"
1580 ipcrm="$ac_cv_path_ipcrm"
1581 if test -n "$ipcrm"; then
1582 echo "$ac_t""$ipcrm" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 for ac_prog in trbsd tr
1589 # Extract the first word of "$ac_prog", so it can be a program name with args.
1590 set dummy $ac_prog; ac_word=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1598 ac_cv_path_TR="$TR" # Let the user override the test with a path.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1602 for ac_dir in $PATH; do
1603 test -z "$ac_dir" && ac_dir=.
1604 if test -f $ac_dir/$ac_word; then
1605 ac_cv_path_TR="$ac_dir/$ac_word"
1614 if test -n "$TR"; then
1615 echo "$ac_t""$TR" 1>&6
1617 echo "$ac_t""no" 1>&6
1620 test -n "$TR" && break
1622 test -n "$TR" || TR="NOT_FOUND"
1625 TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
1626 TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1628 if test "$TRSTRINGS" = "ABCDEF"; then
1629 TRARGS="'[a-z]' '[A-Z]'"
1630 elif test "$TRCLASS" = "ABCDEF"; then
1631 TRARGS="'[:lower:]' '[:upper:]'"
1633 { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; }
1640 # Extract the first word of "yacc", so it can be a program name with args.
1641 set dummy yacc; ac_word=$2
1642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_word" >&5
1644 if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1649 ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1653 for ac_dir in $PATH; do
1654 test -z "$ac_dir" && ac_dir=.
1655 if test -f $ac_dir/$ac_word; then
1656 ac_cv_path_yacc="$ac_dir/$ac_word"
1664 yacc="$ac_cv_path_yacc"
1665 if test -n "$yacc"; then
1666 echo "$ac_t""$yacc" 1>&6
1668 echo "$ac_t""no" 1>&6
1671 # Extract the first word of "bison", so it can be a program name with args.
1672 set dummy bison; ac_word=$2
1673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1674 echo "configure:1675: checking for $ac_word" >&5
1675 if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1680 ac_cv_path_bison="$bison" # Let the user override the test with a path.
1683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1684 for ac_dir in $PATH; do
1685 test -z "$ac_dir" && ac_dir=.
1686 if test -f $ac_dir/$ac_word; then
1687 ac_cv_path_bison="$ac_dir/$ac_word"
1695 bison="$ac_cv_path_bison"
1696 if test -n "$bison"; then
1697 echo "$ac_t""$bison" 1>&6
1699 echo "$ac_t""no" 1>&6
1704 echo "- Using $YACC $YFLAGS"
1705 elif test -f "$bison"
1707 echo "- Using $bison -y $YFLAGS"
1712 echo "- Using $yacc $YFLAGS"
1717 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1718 echo "configure:1719: checking for main in -lcurses" >&5
1719 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 ac_save_LIBS="$LIBS"
1724 LIBS="-lcurses $LIBS"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1735 eval "ac_cv_lib_$ac_lib_var=yes"
1737 echo "configure: failed program was:" >&5
1738 cat conftest.$ac_ext >&5
1740 eval "ac_cv_lib_$ac_lib_var=no"
1743 LIBS="$ac_save_LIBS"
1746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1747 echo "$ac_t""yes" 1>&6
1748 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1749 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1750 cat >> confdefs.h <<EOF
1751 #define $ac_tr_lib 1
1754 LIBS="-lcurses $LIBS"
1757 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
1761 echo "configure:1762: checking for main in -ltermcap" >&5
1762 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
1763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1764 echo $ac_n "(cached) $ac_c" 1>&6
1766 ac_save_LIBS="$LIBS"
1767 LIBS="-ltermcap $LIBS"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1778 eval "ac_cv_lib_$ac_lib_var=yes"
1780 echo "configure: failed program was:" >&5
1781 cat conftest.$ac_ext >&5
1783 eval "ac_cv_lib_$ac_lib_var=no"
1786 LIBS="$ac_save_LIBS"
1789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1790 echo "$ac_t""yes" 1>&6
1791 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1793 cat >> confdefs.h <<EOF
1794 #define $ac_tr_lib 1
1797 LIBS="-ltermcap $LIBS"
1800 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
1804 echo "configure:1805: checking for main in -lhistory" >&5
1805 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
1806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_save_LIBS="$LIBS"
1810 LIBS="-lhistory $LIBS"
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1821 eval "ac_cv_lib_$ac_lib_var=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 eval "ac_cv_lib_$ac_lib_var=no"
1829 LIBS="$ac_save_LIBS"
1832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1833 echo "$ac_t""yes" 1>&6
1834 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1835 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1836 cat >> confdefs.h <<EOF
1837 #define $ac_tr_lib 1
1840 LIBS="-lhistory $LIBS"
1843 echo "$ac_t""no" 1>&6
1846 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
1847 echo "configure:1848: checking for main in -lreadline" >&5
1848 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 ac_save_LIBS="$LIBS"
1853 LIBS="-lreadline $LIBS"
1854 cat > conftest.$ac_ext <<EOF
1855 #line 1856 "configure"
1856 #include "confdefs.h"
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1864 eval "ac_cv_lib_$ac_lib_var=yes"
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 eval "ac_cv_lib_$ac_lib_var=no"
1872 LIBS="$ac_save_LIBS"
1875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1876 echo "$ac_t""yes" 1>&6
1877 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1879 cat >> confdefs.h <<EOF
1880 #define $ac_tr_lib 1
1883 LIBS="-lreadline $LIBS"
1886 echo "$ac_t""no" 1>&6
1889 echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
1890 echo "configure:1891: checking for write_history in -lreadline" >&5
1891 ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
1892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 ac_save_LIBS="$LIBS"
1896 LIBS="-lreadline $LIBS"
1897 cat > conftest.$ac_ext <<EOF
1898 #line 1899 "configure"
1899 #include "confdefs.h"
1900 /* Override any gcc2 internal prototype to avoid an error. */
1901 /* We use char because int might match the return type of a gcc2
1902 builtin and then its argument prototype would still apply. */
1903 char write_history();
1909 if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1911 eval "ac_cv_lib_$ac_lib_var=yes"
1913 echo "configure: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 eval "ac_cv_lib_$ac_lib_var=no"
1919 LIBS="$ac_save_LIBS"
1922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 cat >> confdefs.h <<\EOF
1925 #define HAVE_HISTORY 1
1929 echo "$ac_t""no" 1>&6
1932 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
1934 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1935 echo "configure:1936: checking for main in -lbsd" >&5
1936 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
1937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1940 ac_save_LIBS="$LIBS"
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1950 if { (eval echo configure:1951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1952 eval "ac_cv_lib_$ac_lib_var=yes"
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 eval "ac_cv_lib_$ac_lib_var=no"
1960 LIBS="$ac_save_LIBS"
1963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1967 cat >> confdefs.h <<EOF
1968 #define $ac_tr_lib 1
1974 echo "$ac_t""no" 1>&6
1978 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1979 echo "configure:1980: checking for main in -lm" >&5
1980 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_save_LIBS="$LIBS"
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1996 eval "ac_cv_lib_$ac_lib_var=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 eval "ac_cv_lib_$ac_lib_var=no"
2004 LIBS="$ac_save_LIBS"
2007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2009 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_lib 1
2018 echo "$ac_t""no" 1>&6
2021 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
2022 echo "configure:2023: checking for main in -ldl" >&5
2023 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
2024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 ac_save_LIBS="$LIBS"
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2039 eval "ac_cv_lib_$ac_lib_var=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 eval "ac_cv_lib_$ac_lib_var=no"
2047 LIBS="$ac_save_LIBS"
2050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2054 cat >> confdefs.h <<EOF
2055 #define $ac_tr_lib 1
2061 echo "$ac_t""no" 1>&6
2064 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2065 echo "configure:2066: checking for main in -lsocket" >&5
2066 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2068 echo $ac_n "(cached) $ac_c" 1>&6
2070 ac_save_LIBS="$LIBS"
2071 LIBS="-lsocket $LIBS"
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2082 eval "ac_cv_lib_$ac_lib_var=yes"
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 eval "ac_cv_lib_$ac_lib_var=no"
2090 LIBS="$ac_save_LIBS"
2093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2094 echo "$ac_t""yes" 1>&6
2095 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2097 cat >> confdefs.h <<EOF
2098 #define $ac_tr_lib 1
2101 LIBS="-lsocket $LIBS"
2104 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2108 echo "configure:2109: checking for main in -lnsl" >&5
2109 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 ac_save_LIBS="$LIBS"
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2125 eval "ac_cv_lib_$ac_lib_var=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 eval "ac_cv_lib_$ac_lib_var=no"
2133 LIBS="$ac_save_LIBS"
2136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2140 cat >> confdefs.h <<EOF
2141 #define $ac_tr_lib 1
2147 echo "$ac_t""no" 1>&6
2150 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
2151 echo "configure:2152: checking for main in -lipc" >&5
2152 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2154 echo $ac_n "(cached) $ac_c" 1>&6
2156 ac_save_LIBS="$LIBS"
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 eval "ac_cv_lib_$ac_lib_var=no"
2176 LIBS="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2183 cat >> confdefs.h <<EOF
2184 #define $ac_tr_lib 1
2190 echo "$ac_t""no" 1>&6
2193 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
2194 echo "configure:2195: checking for main in -lIPC" >&5
2195 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 ac_save_LIBS="$LIBS"
2201 cat > conftest.$ac_ext <<EOF
2202 #line 2203 "configure"
2203 #include "confdefs.h"
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2211 eval "ac_cv_lib_$ac_lib_var=yes"
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 eval "ac_cv_lib_$ac_lib_var=no"
2219 LIBS="$ac_save_LIBS"
2222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2225 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2226 cat >> confdefs.h <<EOF
2227 #define $ac_tr_lib 1
2233 echo "$ac_t""no" 1>&6
2236 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
2237 echo "configure:2238: checking for main in -llc" >&5
2238 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 ac_save_LIBS="$LIBS"
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2254 eval "ac_cv_lib_$ac_lib_var=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 eval "ac_cv_lib_$ac_lib_var=no"
2262 LIBS="$ac_save_LIBS"
2265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2269 cat >> confdefs.h <<EOF
2270 #define $ac_tr_lib 1
2276 echo "$ac_t""no" 1>&6
2279 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
2280 echo "configure:2281: checking for main in -ldld" >&5
2281 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 ac_save_LIBS="$LIBS"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2297 eval "ac_cv_lib_$ac_lib_var=yes"
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 eval "ac_cv_lib_$ac_lib_var=no"
2305 LIBS="$ac_save_LIBS"
2308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_lib 1
2319 echo "$ac_t""no" 1>&6
2322 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
2323 echo "configure:2324: checking for main in -lln" >&5
2324 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 ac_save_LIBS="$LIBS"
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2340 eval "ac_cv_lib_$ac_lib_var=yes"
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 eval "ac_cv_lib_$ac_lib_var=no"
2348 LIBS="$ac_save_LIBS"
2351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2354 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2355 cat >> confdefs.h <<EOF
2356 #define $ac_tr_lib 1
2362 echo "$ac_t""no" 1>&6
2365 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
2366 echo "configure:2367: checking for main in -lld" >&5
2367 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 ac_save_LIBS="$LIBS"
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2383 eval "ac_cv_lib_$ac_lib_var=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 eval "ac_cv_lib_$ac_lib_var=no"
2391 LIBS="$ac_save_LIBS"
2394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2398 cat >> confdefs.h <<EOF
2399 #define $ac_tr_lib 1
2405 echo "$ac_t""no" 1>&6
2408 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
2409 echo "configure:2410: checking for main in -lcompat" >&5
2410 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 ac_save_LIBS="$LIBS"
2415 LIBS="-lcompat $LIBS"
2416 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure"
2418 #include "confdefs.h"
2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2426 eval "ac_cv_lib_$ac_lib_var=yes"
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2431 eval "ac_cv_lib_$ac_lib_var=no"
2434 LIBS="$ac_save_LIBS"
2437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2439 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2440 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2441 cat >> confdefs.h <<EOF
2442 #define $ac_tr_lib 1
2445 LIBS="-lcompat $LIBS"
2448 echo "$ac_t""no" 1>&6
2451 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
2452 echo "configure:2453: checking for main in -lBSD" >&5
2453 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6
2457 ac_save_LIBS="$LIBS"
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2467 if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2469 eval "ac_cv_lib_$ac_lib_var=yes"
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2474 eval "ac_cv_lib_$ac_lib_var=no"
2477 LIBS="$ac_save_LIBS"
2480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2481 echo "$ac_t""yes" 1>&6
2482 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2484 cat >> confdefs.h <<EOF
2485 #define $ac_tr_lib 1
2491 echo "$ac_t""no" 1>&6
2494 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2495 echo "configure:2496: checking for main in -lcrypt" >&5
2496 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 ac_save_LIBS="$LIBS"
2501 LIBS="-lcrypt $LIBS"
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2512 eval "ac_cv_lib_$ac_lib_var=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2517 eval "ac_cv_lib_$ac_lib_var=no"
2520 LIBS="$ac_save_LIBS"
2523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2524 echo "$ac_t""yes" 1>&6
2525 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2526 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_lib 1
2531 LIBS="-lcrypt $LIBS"
2534 echo "$ac_t""no" 1>&6
2537 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
2538 echo "configure:2539: checking for main in -lgen" >&5
2539 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
2540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2543 ac_save_LIBS="$LIBS"
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2555 eval "ac_cv_lib_$ac_lib_var=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_lib_$ac_lib_var=no"
2563 LIBS="$ac_save_LIBS"
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2569 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2570 cat >> confdefs.h <<EOF
2571 #define $ac_tr_lib 1
2577 echo "$ac_t""no" 1>&6
2580 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
2581 echo "configure:2582: checking for main in -lPW" >&5
2582 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
2583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2586 ac_save_LIBS="$LIBS"
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2598 eval "ac_cv_lib_$ac_lib_var=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2603 eval "ac_cv_lib_$ac_lib_var=no"
2606 LIBS="$ac_save_LIBS"
2609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2610 echo "$ac_t""yes" 1>&6
2611 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2612 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_lib 1
2620 echo "$ac_t""no" 1>&6
2624 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2625 echo "configure:2626: checking for ANSI C header files" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2638 { (eval echo configure:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2639 ac_err=`grep -v '^ *+' conftest.out`
2640 if test -z "$ac_err"; then
2642 ac_cv_header_stdc=yes
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2648 ac_cv_header_stdc=no
2652 if test $ac_cv_header_stdc = yes; then
2653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2654 cat > conftest.$ac_ext <<EOF
2655 #line 2656 "configure"
2656 #include "confdefs.h"
2659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2660 egrep "memchr" >/dev/null 2>&1; then
2664 ac_cv_header_stdc=no
2670 if test $ac_cv_header_stdc = yes; then
2671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "free" >/dev/null 2>&1; then
2682 ac_cv_header_stdc=no
2688 if test $ac_cv_header_stdc = yes; then
2689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2690 if test "$cross_compiling" = yes; then
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2697 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2698 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2700 int main () { int i; for (i = 0; i < 256; i++)
2701 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2705 if { (eval echo configure:2706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2709 echo "configure: failed program was:" >&5
2710 cat conftest.$ac_ext >&5
2712 ac_cv_header_stdc=no
2720 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2721 if test $ac_cv_header_stdc = yes; then
2722 cat >> confdefs.h <<\EOF
2723 #define STDC_HEADERS 1
2728 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2729 echo "configure:2730: checking for sys/wait.h that is POSIX.1 compatible" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <sys/types.h>
2737 #include <sys/wait.h>
2739 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2742 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2747 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2750 if { (eval echo configure:2751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2752 ac_cv_header_sys_wait_h=yes
2754 echo "configure: failed program was:" >&5
2755 cat conftest.$ac_ext >&5
2757 ac_cv_header_sys_wait_h=no
2762 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2763 if test $ac_cv_header_sys_wait_h = yes; then
2764 cat >> confdefs.h <<\EOF
2765 #define HAVE_SYS_WAIT_H 1
2770 for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
2772 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_hdr" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err=`grep -v '^ *+' conftest.out`
2786 if test -z "$ac_err"; then
2788 eval "ac_cv_header_$ac_safe=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.$ac_ext >&5
2794 eval "ac_cv_header_$ac_safe=no"
2798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2801 cat >> confdefs.h <<EOF
2802 #define $ac_tr_hdr 1
2806 echo "$ac_t""no" 1>&6
2810 for ac_hdr in sys/resource.h netdb.h arpa/inet.h getopt.h
2812 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2813 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2814 echo "configure:2815: checking for $ac_hdr" >&5
2815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2824 { (eval echo configure:2825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2825 ac_err=`grep -v '^ *+' conftest.out`
2826 if test -z "$ac_err"; then
2828 eval "ac_cv_header_$ac_safe=yes"
2831 echo "configure: failed program was:" >&5
2832 cat conftest.$ac_ext >&5
2834 eval "ac_cv_header_$ac_safe=no"
2838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2839 echo "$ac_t""yes" 1>&6
2840 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2841 cat >> confdefs.h <<EOF
2842 #define $ac_tr_hdr 1
2846 echo "$ac_t""no" 1>&6
2850 for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
2852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_hdr" >&5
2855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2864 { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2865 ac_err=`grep -v '^ *+' conftest.out`
2866 if test -z "$ac_err"; then
2868 eval "ac_cv_header_$ac_safe=yes"
2871 echo "configure: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 eval "ac_cv_header_$ac_safe=no"
2878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2879 echo "$ac_t""yes" 1>&6
2880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2881 cat >> confdefs.h <<EOF
2882 #define $ac_tr_hdr 1
2886 echo "$ac_t""no" 1>&6
2890 for ac_hdr in readline/readline.h readline/history.h ieeefp.h fp_class.h
2892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2894 echo "configure:2895: checking for $ac_hdr" >&5
2895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2904 { (eval echo configure:2905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2905 ac_err=`grep -v '^ *+' conftest.out`
2906 if test -z "$ac_err"; then
2908 eval "ac_cv_header_$ac_safe=yes"
2911 echo "configure: failed program was:" >&5
2912 cat conftest.$ac_ext >&5
2914 eval "ac_cv_header_$ac_safe=no"
2918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2919 echo "$ac_t""yes" 1>&6
2920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2921 cat >> confdefs.h <<EOF
2922 #define $ac_tr_hdr 1
2926 echo "$ac_t""no" 1>&6
2930 for ac_hdr in netinet/in.h string.h strings.h
2932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2934 echo "configure:2935: checking for $ac_hdr" >&5
2935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2944 { (eval echo configure:2945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2945 ac_err=`grep -v '^ *+' conftest.out`
2946 if test -z "$ac_err"; then
2948 eval "ac_cv_header_$ac_safe=yes"
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2954 eval "ac_cv_header_$ac_safe=no"
2958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_hdr 1
2966 echo "$ac_t""no" 1>&6
2971 echo $ac_n "checking for working const""... $ac_c" 1>&6
2972 echo "configure:2973: checking for working const" >&5
2973 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2982 /* Ultrix mips cc rejects this. */
2983 typedef int charset[2]; const charset x;
2984 /* SunOS 4.1.1 cc rejects this. */
2985 char const *const *ccp;
2987 /* NEC SVR4.0.2 mips cc rejects this. */
2988 struct point {int x, y;};
2989 static struct point const zero = {0,0};
2990 /* AIX XL C 1.02.0.0 rejects this.
2991 It does not let you subtract one const X* pointer from another in an arm
2992 of an if-expression whose if-part is not a constant expression */
2993 const char *g = "string";
2994 ccp = &g + (g ? g-g : 0);
2995 /* HPUX 7.0 cc rejects these. */
2998 ccp = (char const *const *) p;
2999 { /* SCO 3.2v4 cc rejects this. */
3001 char const *s = 0 ? (char *) 0 : (char const *) 0;
3005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3007 const int *foo = &x[0];
3010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3011 typedef const int *iptr;
3015 { /* AIX XL C 1.02.0.0 rejects this saying
3016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3017 struct s { int j; const int *ap[3]; };
3018 struct s *b; b->j = 5;
3020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3026 if { (eval echo configure:3027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 echo "configure: failed program was:" >&5
3031 cat conftest.$ac_ext >&5
3038 echo "$ac_t""$ac_cv_c_const" 1>&6
3039 if test $ac_cv_c_const = no; then
3040 cat >> confdefs.h <<\EOF
3046 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3047 echo "configure:3048: checking for uid_t in sys/types.h" >&5
3048 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3057 egrep "uid_t" >/dev/null 2>&1; then
3059 ac_cv_type_uid_t=yes
3068 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3069 if test $ac_cv_type_uid_t = no; then
3070 cat >> confdefs.h <<\EOF
3074 cat >> confdefs.h <<\EOF
3080 echo $ac_n "checking for inline""... $ac_c" 1>&6
3081 echo "configure:3082: checking for inline" >&5
3082 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3086 for ac_kw in inline __inline__ __inline; do
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3095 if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097 ac_cv_c_inline=$ac_kw; break
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3107 echo "$ac_t""$ac_cv_c_inline" 1>&6
3108 case "$ac_cv_c_inline" in
3110 no) cat >> confdefs.h <<\EOF
3114 *) cat >> confdefs.h <<EOF
3115 #define inline $ac_cv_c_inline
3120 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3121 echo "configure:3122: checking for mode_t" >&5
3122 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3128 #include <sys/types.h>
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3137 ac_cv_type_mode_t=yes
3140 ac_cv_type_mode_t=no
3145 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3146 if test $ac_cv_type_mode_t = no; then
3147 cat >> confdefs.h <<\EOF
3153 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3154 echo "configure:3155: checking for off_t" >&5
3155 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 #include <sys/types.h>
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3170 ac_cv_type_off_t=yes
3178 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3179 if test $ac_cv_type_off_t = no; then
3180 cat >> confdefs.h <<\EOF
3186 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3187 echo "configure:3188: checking for size_t" >&5
3188 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3203 ac_cv_type_size_t=yes
3206 ac_cv_type_size_t=no
3211 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3212 if test $ac_cv_type_size_t = no; then
3213 cat >> confdefs.h <<\EOF
3214 #define size_t unsigned
3219 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3220 echo "configure:3221: checking whether time.h and sys/time.h may both be included" >&5
3221 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3228 #include <sys/time.h>
3234 if { (eval echo configure:3235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3236 ac_cv_header_time=yes
3238 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5
3241 ac_cv_header_time=no
3246 echo "$ac_t""$ac_cv_header_time" 1>&6
3247 if test $ac_cv_header_time = yes; then
3248 cat >> confdefs.h <<\EOF
3249 #define TIME_WITH_SYS_TIME 1
3254 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3255 echo "configure:3256: checking whether struct tm is in sys/time.h or time.h" >&5
3256 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <sys/types.h>
3265 struct tm *tp; tp->tm_sec;
3268 if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 ac_cv_struct_tm=time.h
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 ac_cv_struct_tm=sys/time.h
3280 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3281 if test $ac_cv_struct_tm = sys/time.h; then
3282 cat >> confdefs.h <<\EOF
3283 #define TM_IN_SYS_TIME 1
3289 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
3290 echo "configure:3291: checking for int timezone" >&5
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3296 int res = timezone / 60;
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3301 cat >> confdefs.h <<\EOF
3302 #define HAVE_INT_TIMEZONE 1
3304 echo "$ac_t""yes" 1>&6
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3309 echo "$ac_t""no" 1>&6
3313 echo $ac_n "checking for gettimeofday args""... $ac_c" 1>&6
3314 echo "configure:3315: checking for gettimeofday args" >&5
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <sys/time.h>
3320 struct timeval *tp; struct timezone *tzp; gettimeofday(tp,tzp);
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3325 cat >> confdefs.h <<\EOF
3326 #define HAVE_GETTIMEOFDAY_2_ARGS 1
3328 echo "$ac_t""2 args" 1>&6
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 echo "$ac_t""no" 1>&6
3337 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3338 echo "configure:3339: checking for union semun" >&5
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <sys/types.h>
3343 #include <sys/ipc.h>
3344 #include <sys/sem.h>
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3351 cat >> confdefs.h <<\EOF
3352 #define HAVE_UNION_SEMUN 1
3354 echo "$ac_t""yes" 1>&6
3356 echo "configure: failed program was:" >&5
3357 cat conftest.$ac_ext >&5
3359 echo "$ac_t""no" 1>&6
3363 if test x$ac_cv_prog_gcc = xyes; then
3364 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3365 echo "configure:3366: checking whether ${CC-cc} needs -traditional" >&5
3366 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 ac_pattern="Autoconf.*'x'"
3370 cat > conftest.$ac_ext <<EOF
3371 #line 3372 "configure"
3372 #include "confdefs.h"
3376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3377 egrep "$ac_pattern" >/dev/null 2>&1; then
3379 ac_cv_prog_gcc_traditional=yes
3382 ac_cv_prog_gcc_traditional=no
3387 if test $ac_cv_prog_gcc_traditional = no; then
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3395 egrep "$ac_pattern" >/dev/null 2>&1; then
3397 ac_cv_prog_gcc_traditional=yes
3404 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3405 if test $ac_cv_prog_gcc_traditional = yes; then
3406 CC="$CC -traditional"
3410 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3411 echo "configure:3412: checking for 8-bit clean memcmp" >&5
3412 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 if test "$cross_compiling" = yes; then
3416 ac_cv_func_memcmp_clean=no
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3424 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3425 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3431 ac_cv_func_memcmp_clean=yes
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 ac_cv_func_memcmp_clean=no
3443 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3444 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3446 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3447 echo "configure:3448: checking return type of signal handlers" >&5
3448 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3460 extern "C" void (*signal (int, void (*)(int)))(int);
3462 void (*signal ()) ();
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3471 ac_cv_type_signal=void
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 ac_cv_type_signal=int
3481 echo "$ac_t""$ac_cv_type_signal" 1>&6
3482 cat >> confdefs.h <<EOF
3483 #define RETSIGTYPE $ac_cv_type_signal
3487 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3488 echo "configure:3489: checking for vprintf" >&5
3489 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3490 echo $ac_n "(cached) $ac_c" 1>&6
3492 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure"
3494 #include "confdefs.h"
3495 /* System header to define __stub macros and hopefully few prototypes,
3496 which can conflict with char vprintf(); below. */
3498 /* Override any gcc2 internal prototype to avoid an error. */
3499 /* We use char because int might match the return type of a gcc2
3500 builtin and then its argument prototype would still apply. */
3505 /* The GNU C library defines this for functions which it implements
3506 to always fail with ENOSYS. Some functions are actually named
3507 something starting with __ and the normal name is an alias. */
3508 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3516 if { (eval echo configure:3517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3518 eval "ac_cv_func_vprintf=yes"
3520 echo "configure: failed program was:" >&5
3521 cat conftest.$ac_ext >&5
3523 eval "ac_cv_func_vprintf=no"
3528 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 cat >> confdefs.h <<\EOF
3531 #define HAVE_VPRINTF 1
3535 echo "$ac_t""no" 1>&6
3538 if test "$ac_cv_func_vprintf" != yes; then
3539 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3540 echo "configure:3541: checking for _doprnt" >&5
3541 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 /* System header to define __stub macros and hopefully few prototypes,
3548 which can conflict with char _doprnt(); below. */
3550 /* Override any gcc2 internal prototype to avoid an error. */
3551 /* We use char because int might match the return type of a gcc2
3552 builtin and then its argument prototype would still apply. */
3557 /* The GNU C library defines this for functions which it implements
3558 to always fail with ENOSYS. Some functions are actually named
3559 something starting with __ and the normal name is an alias. */
3560 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3568 if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3570 eval "ac_cv_func__doprnt=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 eval "ac_cv_func__doprnt=no"
3580 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 cat >> confdefs.h <<\EOF
3583 #define HAVE_DOPRNT 1
3587 echo "$ac_t""no" 1>&6
3592 for ac_func in tzset vfork memmove sigsetjmp kill sysconf fpclass
3594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3595 echo "configure:3596: checking for $ac_func" >&5
3596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 /* System header to define __stub macros and hopefully few prototypes,
3603 which can conflict with char $ac_func(); below. */
3605 /* Override any gcc2 internal prototype to avoid an error. */
3606 /* We use char because int might match the return type of a gcc2
3607 builtin and then its argument prototype would still apply. */
3612 /* The GNU C library defines this for functions which it implements
3613 to always fail with ENOSYS. Some functions are actually named
3614 something starting with __ and the normal name is an alias. */
3615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3625 eval "ac_cv_func_$ac_func=yes"
3627 echo "configure: failed program was:" >&5
3628 cat conftest.$ac_ext >&5
3630 eval "ac_cv_func_$ac_func=no"
3635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3637 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3638 cat >> confdefs.h <<EOF
3639 #define $ac_tr_func 1
3643 echo "$ac_t""no" 1>&6
3647 for ac_func in fp_class fp_class_d class
3649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3650 echo "configure:3651: checking for $ac_func" >&5
3651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char $ac_func(); below. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 /* We use char because int might match the return type of a gcc2
3662 builtin and then its argument prototype would still apply. */
3667 /* The GNU C library defines this for functions which it implements
3668 to always fail with ENOSYS. Some functions are actually named
3669 something starting with __ and the normal name is an alias. */
3670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3680 eval "ac_cv_func_$ac_func=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_func_$ac_func=no"
3690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3693 cat >> confdefs.h <<EOF
3694 #define $ac_tr_func 1
3698 echo "$ac_t""no" 1>&6
3702 for ac_func in sigprocmask waitpid setsid fcvt
3704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3705 echo "configure:3706: checking for $ac_func" >&5
3706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 cat > conftest.$ac_ext <<EOF
3710 #line 3711 "configure"
3711 #include "confdefs.h"
3712 /* System header to define __stub macros and hopefully few prototypes,
3713 which can conflict with char $ac_func(); below. */
3715 /* Override any gcc2 internal prototype to avoid an error. */
3716 /* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3722 /* The GNU C library defines this for functions which it implements
3723 to always fail with ENOSYS. Some functions are actually named
3724 something starting with __ and the normal name is an alias. */
3725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3735 eval "ac_cv_func_$ac_func=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_func_$ac_func=no"
3745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3748 cat >> confdefs.h <<EOF
3749 #define $ac_tr_func 1
3753 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for isinf""... $ac_c" 1>&6
3758 echo "configure:3759: checking for isinf" >&5
3759 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char isinf(); below. */
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. */
3775 /* The GNU C library defines this for functions which it implements
3776 to always fail with ENOSYS. Some functions are actually named
3777 something starting with __ and the normal name is an alias. */
3778 #if defined (__stub_isinf) || defined (__stub___isinf)
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3788 eval "ac_cv_func_isinf=yes"
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 eval "ac_cv_func_isinf=no"
3798 if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 cat >> confdefs.h <<\EOF
3801 #define HAVE_ISINF 1
3805 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
3811 echo "configure:3812: checking for getrusage" >&5
3812 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 /* System header to define __stub macros and hopefully few prototypes,
3819 which can conflict with char getrusage(); below. */
3821 /* Override any gcc2 internal prototype to avoid an error. */
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3828 /* The GNU C library defines this for functions which it implements
3829 to always fail with ENOSYS. Some functions are actually named
3830 something starting with __ and the normal name is an alias. */
3831 #if defined (__stub_getrusage) || defined (__stub___getrusage)
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3841 eval "ac_cv_func_getrusage=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_func_getrusage=no"
3851 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3853 cat >> confdefs.h <<\EOF
3854 #define HAVE_GETRUSAGE 1
3858 echo "$ac_t""no" 1>&6
3859 GETRUSAGE='getrusage.o'
3863 echo $ac_n "checking for srandom""... $ac_c" 1>&6
3864 echo "configure:3865: checking for srandom" >&5
3865 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* System header to define __stub macros and hopefully few prototypes,
3872 which can conflict with char srandom(); below. */
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3881 /* The GNU C library defines this for functions which it implements
3882 to always fail with ENOSYS. Some functions are actually named
3883 something starting with __ and the normal name is an alias. */
3884 #if defined (__stub_srandom) || defined (__stub___srandom)
3892 if { (eval echo configure:3893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3894 eval "ac_cv_func_srandom=yes"
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3899 eval "ac_cv_func_srandom=no"
3904 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
3905 echo "$ac_t""yes" 1>&6
3906 cat >> confdefs.h <<\EOF
3907 #define HAVE_SRANDOM 1
3911 echo "$ac_t""no" 1>&6
3916 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
3917 echo "configure:3918: checking for gethostname" >&5
3918 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 /* System header to define __stub macros and hopefully few prototypes,
3925 which can conflict with char gethostname(); below. */
3927 /* Override any gcc2 internal prototype to avoid an error. */
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
3934 /* The GNU C library defines this for functions which it implements
3935 to always fail with ENOSYS. Some functions are actually named
3936 something starting with __ and the normal name is an alias. */
3937 #if defined (__stub_gethostname) || defined (__stub___gethostname)
3945 if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3947 eval "ac_cv_func_gethostname=yes"
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3952 eval "ac_cv_func_gethostname=no"
3957 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 cat >> confdefs.h <<\EOF
3960 #define HAVE_GETHOSTNAME 1
3964 echo "$ac_t""no" 1>&6
3965 GETHOSTNAME='gethostname.o'
3969 echo $ac_n "checking for random""... $ac_c" 1>&6
3970 echo "configure:3971: checking for random" >&5
3971 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 /* System header to define __stub macros and hopefully few prototypes,
3978 which can conflict with char random(); below. */
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3987 /* The GNU C library defines this for functions which it implements
3988 to always fail with ENOSYS. Some functions are actually named
3989 something starting with __ and the normal name is an alias. */
3990 #if defined (__stub_random) || defined (__stub___random)
3998 if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4000 eval "ac_cv_func_random=yes"
4002 echo "configure: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4005 eval "ac_cv_func_random=no"
4010 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 cat >> confdefs.h <<\EOF
4013 #define HAVE_RANDOM 1
4017 echo "$ac_t""no" 1>&6
4018 MISSING_RANDOM='random.o'
4022 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
4023 echo "configure:4024: checking for inet_aton" >&5
4024 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* System header to define __stub macros and hopefully few prototypes,
4031 which can conflict with char inet_aton(); below. */
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4040 /* The GNU C library defines this for functions which it implements
4041 to always fail with ENOSYS. Some functions are actually named
4042 something starting with __ and the normal name is an alias. */
4043 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
4051 if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4053 eval "ac_cv_func_inet_aton=yes"
4055 echo "configure: failed program was:" >&5
4056 cat conftest.$ac_ext >&5
4058 eval "ac_cv_func_inet_aton=no"
4063 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4065 cat >> confdefs.h <<\EOF
4066 #define HAVE_INET_ATON 1
4070 echo "$ac_t""no" 1>&6
4071 INET_ATON='inet_aton.o'
4075 echo $ac_n "checking for strerror""... $ac_c" 1>&6
4076 echo "configure:4077: checking for strerror" >&5
4077 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
4078 echo $ac_n "(cached) $ac_c" 1>&6
4080 cat > conftest.$ac_ext <<EOF
4081 #line 4082 "configure"
4082 #include "confdefs.h"
4083 /* System header to define __stub macros and hopefully few prototypes,
4084 which can conflict with char strerror(); below. */
4086 /* Override any gcc2 internal prototype to avoid an error. */
4087 /* We use char because int might match the return type of a gcc2
4088 builtin and then its argument prototype would still apply. */
4093 /* The GNU C library defines this for functions which it implements
4094 to always fail with ENOSYS. Some functions are actually named
4095 something starting with __ and the normal name is an alias. */
4096 #if defined (__stub_strerror) || defined (__stub___strerror)
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4106 eval "ac_cv_func_strerror=yes"
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4111 eval "ac_cv_func_strerror=no"
4116 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
4117 echo "$ac_t""yes" 1>&6
4118 cat >> confdefs.h <<\EOF
4119 #define HAVE_STRERROR 1
4123 echo "$ac_t""no" 1>&6
4124 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
4129 echo $ac_n "checking for strdup""... $ac_c" 1>&6
4130 echo "configure:4131: checking for strdup" >&5
4131 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 /* System header to define __stub macros and hopefully few prototypes,
4138 which can conflict with char strdup(); below. */
4140 /* Override any gcc2 internal prototype to avoid an error. */
4141 /* We use char because int might match the return type of a gcc2
4142 builtin and then its argument prototype would still apply. */
4147 /* The GNU C library defines this for functions which it implements
4148 to always fail with ENOSYS. Some functions are actually named
4149 something starting with __ and the normal name is an alias. */
4150 #if defined (__stub_strdup) || defined (__stub___strdup)
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4160 eval "ac_cv_func_strdup=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.$ac_ext >&5
4165 eval "ac_cv_func_strdup=no"
4170 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
4171 echo "$ac_t""yes" 1>&6
4172 cat >> confdefs.h <<\EOF
4173 #define HAVE_STRDUP 1
4177 echo "$ac_t""no" 1>&6
4178 STRDUP='../../utils/strdup.o'
4182 echo $ac_n "checking for strtol""... $ac_c" 1>&6
4183 echo "configure:4184: checking for strtol" >&5
4184 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* System header to define __stub macros and hopefully few prototypes,
4191 which can conflict with char strtol(); below. */
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4200 /* The GNU C library defines this for functions which it implements
4201 to always fail with ENOSYS. Some functions are actually named
4202 something starting with __ and the normal name is an alias. */
4203 #if defined (__stub_strtol) || defined (__stub___strtol)
4211 if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4213 eval "ac_cv_func_strtol=yes"
4215 echo "configure: failed program was:" >&5
4216 cat conftest.$ac_ext >&5
4218 eval "ac_cv_func_strtol=no"
4223 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
4224 echo "$ac_t""yes" 1>&6
4225 cat >> confdefs.h <<\EOF
4226 #define HAVE_STRTOL 1
4230 echo "$ac_t""no" 1>&6
4235 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
4236 echo "configure:4237: checking for strtoul" >&5
4237 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4243 /* System header to define __stub macros and hopefully few prototypes,
4244 which can conflict with char strtoul(); below. */
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4253 /* The GNU C library defines this for functions which it implements
4254 to always fail with ENOSYS. Some functions are actually named
4255 something starting with __ and the normal name is an alias. */
4256 #if defined (__stub_strtoul) || defined (__stub___strtoul)
4264 if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4266 eval "ac_cv_func_strtoul=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 eval "ac_cv_func_strtoul=no"
4276 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h <<\EOF
4279 #define HAVE_STRTOUL 1
4283 echo "$ac_t""no" 1>&6
4288 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
4289 echo "configure:4290: checking for strcasecmp" >&5
4290 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* System header to define __stub macros and hopefully few prototypes,
4297 which can conflict with char strcasecmp(); below. */
4299 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4319 eval "ac_cv_func_strcasecmp=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_func_strcasecmp=no"
4329 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 cat >> confdefs.h <<\EOF
4332 #define HAVE_STRCASECMP 1
4336 echo "$ac_t""no" 1>&6
4337 STRCASECMP='strcasecmp.o'
4341 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
4342 echo "configure:4343: checking for cbrt" >&5
4343 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* System header to define __stub macros and hopefully few prototypes,
4350 which can conflict with char cbrt(); below. */
4352 /* Override any gcc2 internal prototype to avoid an error. */
4353 /* We use char because int might match the return type of a gcc2
4354 builtin and then its argument prototype would still apply. */
4359 /* The GNU C library defines this for functions which it implements
4360 to always fail with ENOSYS. Some functions are actually named
4361 something starting with __ and the normal name is an alias. */
4362 #if defined (__stub_cbrt) || defined (__stub___cbrt)
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4372 eval "ac_cv_func_cbrt=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_func_cbrt=no"
4382 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4384 cat >> confdefs.h <<\EOF
4389 echo "$ac_t""no" 1>&6
4390 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
4391 echo "configure:4392: checking for cbrt in -lm" >&5
4392 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 ac_save_LIBS="$LIBS"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4412 eval "ac_cv_lib_$ac_lib_var=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_lib_$ac_lib_var=no"
4420 LIBS="$ac_save_LIBS"
4423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4425 cat >> confdefs.h <<\EOF
4430 echo "$ac_t""no" 1>&6
4435 echo $ac_n "checking for rint""... $ac_c" 1>&6
4436 echo "configure:4437: checking for rint" >&5
4437 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* System header to define __stub macros and hopefully few prototypes,
4444 which can conflict with char rint(); below. */
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_rint) || defined (__stub___rint)
4464 if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4466 eval "ac_cv_func_rint=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5
4471 eval "ac_cv_func_rint=no"
4476 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 cat >> confdefs.h <<\EOF
4483 echo "$ac_t""no" 1>&6
4484 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
4485 echo "configure:4486: checking for rint in -lm" >&5
4486 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6
4490 ac_save_LIBS="$LIBS"
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4506 eval "ac_cv_lib_$ac_lib_var=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_lib_$ac_lib_var=no"
4514 LIBS="$ac_save_LIBS"
4517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4518 echo "$ac_t""yes" 1>&6
4519 cat >> confdefs.h <<\EOF
4524 echo "$ac_t""no" 1>&6
4531 if test "$USE_X" = true; then
4533 ice_save_LIBS="$LIBS"
4534 ice_save_CFLAGS="$CFLAGS"
4535 ice_save_CPPFLAGS="$CPPFLAGS"
4536 ice_save_LDFLAGS="$LDFLAGS"
4538 # If we find X, set shell vars x_includes and x_libraries to the
4539 # paths, otherwise set no_x=yes.
4540 # Uses ac_ vars as temps to allow command line to override cache and checks.
4541 # --without-x overrides everything else, but does not touch the cache.
4542 echo $ac_n "checking for X""... $ac_c" 1>&6
4543 echo "configure:4544: checking for X" >&5
4545 # Check whether --with-x or --without-x was given.
4546 if test "${with_x+set}" = set; then
4551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4552 if test "x$with_x" = xno; then
4553 # The user explicitly disabled X.
4556 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4557 # Both variables are already set.
4560 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 # One or both of the vars are not set, and there is no cached value.
4564 ac_x_includes=NO ac_x_libraries=NO
4566 if mkdir conftestdir; then
4568 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4569 cat > Imakefile <<'EOF'
4571 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4573 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4575 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4576 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4577 for ac_extension in a so sl; do
4578 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4579 test -f $ac_im_libdir/libX11.$ac_extension; then
4580 ac_im_usrlibdir=$ac_im_libdir; break
4583 # Screen out bogus values from the imake configuration. They are
4584 # bogus both because they are the default anyway, and because
4585 # using them would break gcc on systems where it needs fixed includes.
4586 case "$ac_im_incroot" in
4588 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4590 case "$ac_im_usrlibdir" in
4592 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4599 if test "$ac_x_includes" = NO; then
4600 # Guess where to find include files, by looking for this one X11 .h file.
4601 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4603 # First, try using that file with no special directory specified.
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <$x_direct_test_include>
4609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4610 { (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4611 ac_err=`grep -v '^ *+' conftest.out`
4612 if test -z "$ac_err"; then
4614 # We can compile using X headers with no special include directory.
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 # Look for the header file in a standard set of common directories.
4622 # Check X11 before X11Rn because it is often a symlink to the current release.
4625 /usr/X11R6/include \
4626 /usr/X11R5/include \
4627 /usr/X11R4/include \
4630 /usr/include/X11R6 \
4631 /usr/include/X11R5 \
4632 /usr/include/X11R4 \
4634 /usr/local/X11/include \
4635 /usr/local/X11R6/include \
4636 /usr/local/X11R5/include \
4637 /usr/local/X11R4/include \
4639 /usr/local/include/X11 \
4640 /usr/local/include/X11R6 \
4641 /usr/local/include/X11R5 \
4642 /usr/local/include/X11R4 \
4646 /usr/XFree86/include/X11 \
4649 /usr/local/include \
4650 /usr/unsupported/include \
4651 /usr/athena/include \
4652 /usr/local/x11r5/include \
4653 /usr/lpp/Xamples/include \
4655 /usr/openwin/include \
4656 /usr/openwin/share/include \
4659 if test -r "$ac_dir/$x_direct_test_include"; then
4660 ac_x_includes=$ac_dir
4666 fi # $ac_x_includes = NO
4668 if test "$ac_x_libraries" = NO; then
4669 # Check for the libraries.
4671 test -z "$x_direct_test_library" && x_direct_test_library=Xt
4672 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4674 # See if we find them without any special options.
4675 # Don't add to $LIBS permanently.
4676 ac_save_LIBS="$LIBS"
4677 LIBS="-l$x_direct_test_library $LIBS"
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4683 ${x_direct_test_function}()
4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4688 LIBS="$ac_save_LIBS"
4689 # We can link X programs with no special library path.
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 LIBS="$ac_save_LIBS"
4696 # First see if replacing the include by lib works.
4697 # Check X11 before X11Rn because it is often a symlink to the current release.
4698 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4709 /usr/local/X11/lib \
4710 /usr/local/X11R6/lib \
4711 /usr/local/X11R5/lib \
4712 /usr/local/X11R4/lib \
4714 /usr/local/lib/X11 \
4715 /usr/local/lib/X11R6 \
4716 /usr/local/lib/X11R5 \
4717 /usr/local/lib/X11R4 \
4721 /usr/XFree86/lib/X11 \
4725 /usr/unsupported/lib \
4727 /usr/local/x11r5/lib \
4728 /usr/lpp/Xamples/lib \
4732 /usr/openwin/share/lib \
4735 for ac_extension in a so sl; do
4736 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4737 ac_x_libraries=$ac_dir
4744 fi # $ac_x_libraries = NO
4746 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
4747 # Didn't find X anywhere. Cache the known absence of X.
4748 ac_cv_have_x="have_x=no"
4750 # Record where we found X for the cache.
4751 ac_cv_have_x="have_x=yes \
4752 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4756 eval "$ac_cv_have_x"
4759 if test "$have_x" != yes; then
4760 echo "$ac_t""$have_x" 1>&6
4763 # If each of the values was on the command line, it overrides each guess.
4764 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4765 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4766 # Update the cache value to reflect the command line values.
4767 ac_cv_have_x="have_x=yes \
4768 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4769 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
4772 if test "$no_x" = yes; then
4773 # Not all programs may use this symbol, but it does not hurt to define it.
4774 cat >> confdefs.h <<\EOF
4775 #define X_DISPLAY_MISSING 1
4778 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4780 if test -n "$x_includes"; then
4781 X_CFLAGS="$X_CFLAGS -I$x_includes"
4784 # It would also be nice to do this for all -L options, not just this one.
4785 if test -n "$x_libraries"; then
4786 X_LIBS="$X_LIBS -L$x_libraries"
4787 # For Solaris; some versions of Sun CC require a space after -R and
4788 # others require no space. Words are not sufficient . . . .
4789 case "`(uname -sr) 2>/dev/null`" in
4791 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4792 echo "configure:4793: checking whether -R must be followed by a space" >&5
4793 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4812 if test $ac_R_nospace = yes; then
4813 echo "$ac_t""no" 1>&6
4814 X_LIBS="$X_LIBS -R$x_libraries"
4816 LIBS="$ac_xsave_LIBS -R $x_libraries"
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4829 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5
4835 if test $ac_R_space = yes; then
4836 echo "$ac_t""yes" 1>&6
4837 X_LIBS="$X_LIBS -R $x_libraries"
4839 echo "$ac_t""neither works" 1>&6
4842 LIBS="$ac_xsave_LIBS"
4846 # Check for system-dependent libraries X programs must link with.
4847 # Do this before checking for the system-independent R6 libraries
4848 # (-lICE), since we may need -lsocket or whatever for X linking.
4850 if test "$ISC" = yes; then
4851 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4853 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
4854 # libraries were built with DECnet support. And karl@cs.umb.edu says
4855 # the Alpha needs dnet_stub (dnet does not exist).
4856 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4857 echo "configure:4858: checking for dnet_ntoa in -ldnet" >&5
4858 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4860 echo $ac_n "(cached) $ac_c" 1>&6
4862 ac_save_LIBS="$LIBS"
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 /* Override any gcc2 internal prototype to avoid an error. */
4868 /* We use char because int might match the return type of a gcc2
4869 builtin and then its argument prototype would still apply. */
4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4878 eval "ac_cv_lib_$ac_lib_var=yes"
4880 echo "configure: failed program was:" >&5
4881 cat conftest.$ac_ext >&5
4883 eval "ac_cv_lib_$ac_lib_var=no"
4886 LIBS="$ac_save_LIBS"
4889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4890 echo "$ac_t""yes" 1>&6
4891 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4893 echo "$ac_t""no" 1>&6
4896 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4897 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4898 echo "configure:4899: checking for dnet_ntoa in -ldnet_stub" >&5
4899 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 ac_save_LIBS="$LIBS"
4904 LIBS="-ldnet_stub $LIBS"
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* Override any gcc2 internal prototype to avoid an error. */
4909 /* We use char because int might match the return type of a gcc2
4910 builtin and then its argument prototype would still apply. */
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4919 eval "ac_cv_lib_$ac_lib_var=yes"
4921 echo "configure: failed program was:" >&5
4922 cat conftest.$ac_ext >&5
4924 eval "ac_cv_lib_$ac_lib_var=no"
4927 LIBS="$ac_save_LIBS"
4930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4931 echo "$ac_t""yes" 1>&6
4932 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4934 echo "$ac_t""no" 1>&6
4939 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4940 # to get the SysV transport functions.
4941 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4943 # The nsl library prevents programs from opening the X display
4944 # on Irix 5.2, according to dickey@clark.net.
4945 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4946 echo "configure:4947: checking for gethostbyname" >&5
4947 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 /* System header to define __stub macros and hopefully few prototypes,
4954 which can conflict with char gethostbyname(); below. */
4956 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4959 char gethostbyname();
4963 /* The GNU C library defines this for functions which it implements
4964 to always fail with ENOSYS. Some functions are actually named
4965 something starting with __ and the normal name is an alias. */
4966 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4976 eval "ac_cv_func_gethostbyname=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_func_gethostbyname=no"
4986 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4990 echo "$ac_t""no" 1>&6
4993 if test $ac_cv_func_gethostbyname = no; then
4994 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4995 echo "configure:4996: checking for gethostbyname in -lnsl" >&5
4996 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4997 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 ac_save_LIBS="$LIBS"
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 /* Override any gcc2 internal prototype to avoid an error. */
5006 /* We use char because int might match the return type of a gcc2
5007 builtin and then its argument prototype would still apply. */
5008 char gethostbyname();
5014 if { (eval echo configure:5015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5016 eval "ac_cv_lib_$ac_lib_var=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_lib_$ac_lib_var=no"
5024 LIBS="$ac_save_LIBS"
5027 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5028 echo "$ac_t""yes" 1>&6
5029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5031 echo "$ac_t""no" 1>&6
5036 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5037 # socket/setsockopt and other routines are undefined under SCO ODT
5038 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5039 # on later versions), says simon@lia.di.epfl.ch: it contains
5040 # gethostby* variants that don't use the nameserver (or something).
5041 # -lsocket must be given before -lnsl if both are needed.
5042 # We assume that if connect needs -lnsl, so does gethostbyname.
5043 echo $ac_n "checking for connect""... $ac_c" 1>&6
5044 echo "configure:5045: checking for connect" >&5
5045 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5046 echo $ac_n "(cached) $ac_c" 1>&6
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* System header to define __stub macros and hopefully few prototypes,
5052 which can conflict with char connect(); below. */
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined (__stub_connect) || defined (__stub___connect)
5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5074 eval "ac_cv_func_connect=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 eval "ac_cv_func_connect=no"
5084 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5085 echo "$ac_t""yes" 1>&6
5088 echo "$ac_t""no" 1>&6
5091 if test $ac_cv_func_connect = no; then
5092 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5093 echo "configure:5094: checking for connect in -lsocket" >&5
5094 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 ac_save_LIBS="$LIBS"
5099 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5114 eval "ac_cv_lib_$ac_lib_var=yes"
5116 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5
5119 eval "ac_cv_lib_$ac_lib_var=no"
5122 LIBS="$ac_save_LIBS"
5125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5126 echo "$ac_t""yes" 1>&6
5127 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5129 echo "$ac_t""no" 1>&6
5134 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5135 echo $ac_n "checking for remove""... $ac_c" 1>&6
5136 echo "configure:5137: checking for remove" >&5
5137 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5143 /* System header to define __stub macros and hopefully few prototypes,
5144 which can conflict with char remove(); below. */
5146 /* Override any gcc2 internal prototype to avoid an error. */
5147 /* We use char because int might match the return type of a gcc2
5148 builtin and then its argument prototype would still apply. */
5153 /* The GNU C library defines this for functions which it implements
5154 to always fail with ENOSYS. Some functions are actually named
5155 something starting with __ and the normal name is an alias. */
5156 #if defined (__stub_remove) || defined (__stub___remove)
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5166 eval "ac_cv_func_remove=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5171 eval "ac_cv_func_remove=no"
5176 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
5177 echo "$ac_t""yes" 1>&6
5180 echo "$ac_t""no" 1>&6
5183 if test $ac_cv_func_remove = no; then
5184 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5185 echo "configure:5186: checking for remove in -lposix" >&5
5186 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 ac_save_LIBS="$LIBS"
5191 LIBS="-lposix $LIBS"
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5206 eval "ac_cv_lib_$ac_lib_var=yes"
5208 echo "configure: failed program was:" >&5
5209 cat conftest.$ac_ext >&5
5211 eval "ac_cv_lib_$ac_lib_var=no"
5214 LIBS="$ac_save_LIBS"
5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5221 echo "$ac_t""no" 1>&6
5226 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5227 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5228 echo "configure:5229: checking for shmat" >&5
5229 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 /* System header to define __stub macros and hopefully few prototypes,
5236 which can conflict with char shmat(); below. */
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5245 /* The GNU C library defines this for functions which it implements
5246 to always fail with ENOSYS. Some functions are actually named
5247 something starting with __ and the normal name is an alias. */
5248 #if defined (__stub_shmat) || defined (__stub___shmat)
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5258 eval "ac_cv_func_shmat=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_func_shmat=no"
5268 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5272 echo "$ac_t""no" 1>&6
5275 if test $ac_cv_func_shmat = no; then
5276 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5277 echo "configure:5278: checking for shmat in -lipc" >&5
5278 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 ac_save_LIBS="$LIBS"
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5296 if { (eval echo configure:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5298 eval "ac_cv_lib_$ac_lib_var=yes"
5300 echo "configure: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5303 eval "ac_cv_lib_$ac_lib_var=no"
5306 LIBS="$ac_save_LIBS"
5309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5310 echo "$ac_t""yes" 1>&6
5311 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5313 echo "$ac_t""no" 1>&6
5319 # Check for libraries that X11R6 Xt/Xaw programs need.
5320 ac_save_LDFLAGS="$LDFLAGS"
5321 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5322 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5323 # check for ICE first), but we must link in the order -lSM -lICE or
5324 # we get undefined symbols. So assume we have SM if we have ICE.
5325 # These have to be linked with before -lX11, unlike the other
5326 # libraries we check for below, so use a different variable.
5327 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5328 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5329 echo "configure:5330: checking for IceConnectionNumber in -lICE" >&5
5330 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 ac_save_LIBS="$LIBS"
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 /* Override any gcc2 internal prototype to avoid an error. */
5340 /* We use char because int might match the return type of a gcc2
5341 builtin and then its argument prototype would still apply. */
5342 char IceConnectionNumber();
5345 IceConnectionNumber()
5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5350 eval "ac_cv_lib_$ac_lib_var=yes"
5352 echo "configure: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5355 eval "ac_cv_lib_$ac_lib_var=no"
5358 LIBS="$ac_save_LIBS"
5361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5362 echo "$ac_t""yes" 1>&6
5363 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5365 echo "$ac_t""no" 1>&6
5368 LDFLAGS="$ac_save_LDFLAGS"
5373 LIBS="$LIBS $X_EXTRA_LIBS"
5374 CFLAGS="$CFLAGS $X_CFLAGS"
5375 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5376 LDFLAGS="$LDFLAGS $X_LIBS"
5380 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5381 echo "configure:5382: checking for XOpenDisplay in -lX11" >&5
5382 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 ac_save_LIBS="$LIBS"
5387 LIBS="-lX11 ${X_PRE_LIBS} $LIBS"
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5394 char XOpenDisplay();
5400 if { (eval echo configure:5401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5402 eval "ac_cv_lib_$ac_lib_var=yes"
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5407 eval "ac_cv_lib_$ac_lib_var=no"
5410 LIBS="$ac_save_LIBS"
5413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5417 echo "$ac_t""no" 1>&6
5420 if test "$X11_LIBS" = ""; then
5421 echo "configure: warning: The X11 library '-lX11' could not be found.
5422 Please use the configure options '--x-includes=DIR'
5423 and '--x-libraries=DIR' to specify the X location.
5424 See the file 'config.log' for further diagnostics." 1>&2
5430 LIBS="$ice_save_LIBS"
5431 CFLAGS="$ice_save_CFLAGS"
5432 CPPFLAGS="$ice_save_CPPFLAGS"
5433 LDFLAGS="$ice_save_LDFLAGS"
5437 if test "$USE_TCL" = "true"
5440 ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'`
5441 echo $ac_n "checking for tcl.h""... $ac_c" 1>&6
5442 echo "configure:5443: checking for tcl.h" >&5
5443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5444 echo $ac_n "(cached) $ac_c" 1>&6
5446 cat > conftest.$ac_ext <<EOF
5447 #line 5448 "configure"
5448 #include "confdefs.h"
5451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5452 { (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5453 ac_err=`grep -v '^ *+' conftest.out`
5454 if test -z "$ac_err"; then
5456 eval "ac_cv_header_$ac_safe=yes"
5459 echo "configure: failed program was:" >&5
5460 cat conftest.$ac_ext >&5
5462 eval "ac_cv_header_$ac_safe=no"
5466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5467 echo "$ac_t""yes" 1>&6
5470 echo "$ac_t""no" 1>&6
5473 if test "$TCL_INCDIR" = "no"; then
5474 echo "configure: warning: tcl support disabled; tcl.h missing" 1>&2
5479 if test "$USE_TCL" = "true"; then
5481 tcl_libs="tcl8.0 tcl80 tcl7.6 tcl76 tcl"
5482 for tcl_lib in $tcl_libs; do
5483 if test -z "$TCL_LIB"; then
5484 echo $ac_n "checking for main in -l$tcl_lib""... $ac_c" 1>&6
5485 echo "configure:5486: checking for main in -l$tcl_lib" >&5
5486 ac_lib_var=`echo $tcl_lib'_'main | sed 'y%./+-%__p_%'`
5487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 ac_save_LIBS="$LIBS"
5491 LIBS="-l$tcl_lib $LIBS"
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5500 if { (eval echo configure:5501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5502 eval "ac_cv_lib_$ac_lib_var=yes"
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5507 eval "ac_cv_lib_$ac_lib_var=no"
5510 LIBS="$ac_save_LIBS"
5513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5517 echo "$ac_t""no" 1>&6
5522 if test -z "$TCL_LIB"; then
5523 echo "configure: warning: tcl support disabled; Tcl library missing" 1>&2
5532 if test "$USE_TCL" = "true"
5534 ice_save_LIBS="$LIBS"
5535 ice_save_CFLAGS="$CFLAGS"
5536 ice_save_CPPFLAGS="$CPPFLAGS"
5537 ice_save_LDFLAGS="$LDFLAGS"
5539 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5542 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
5543 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
5544 echo "configure:5545: checking for tk.h" >&5
5545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5554 { (eval echo configure:5555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5555 ac_err=`grep -v '^ *+' conftest.out`
5556 if test -z "$ac_err"; then
5558 eval "ac_cv_header_$ac_safe=yes"
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5564 eval "ac_cv_header_$ac_safe=no"
5568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5569 echo "$ac_t""yes" 1>&6
5572 echo "$ac_t""no" 1>&6
5575 if test "$TK_INCDIR" = "no"; then
5576 echo "configure: warning: tcl support disabled; tk.h missing" 1>&2
5580 LIBS="$ice_save_LIBS"
5581 CFLAGS="$ice_save_CFLAGS"
5582 CPPFLAGS="$ice_save_CPPFLAGS"
5583 LDFLAGS="$ice_save_LDFLAGS"
5586 if test "$USE_TCL" = "true"
5588 ice_save_LIBS="$LIBS"
5589 ice_save_CFLAGS="$CFLAGS"
5590 ice_save_CPPFLAGS="$CPPFLAGS"
5591 ice_save_LDFLAGS="$LDFLAGS"
5593 LIBS="$TCL_LIB $X_PRE_LIBS $X11_LIBS $X_EXTRA_LIBS $LIBS"
5594 CFLAGS="$CFLAGS $X_CFLAGS"
5595 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5596 LDFLAGS="$LDFLAGS $X_LIBS"
5599 tk_libs="tk8.0 tk80 tk4.2 tk42 tk"
5600 for tk_lib in $tk_libs; do
5601 if test -z "$TK_LIB"; then
5602 echo $ac_n "checking for main in -l$tk_lib""... $ac_c" 1>&6
5603 echo "configure:5604: checking for main in -l$tk_lib" >&5
5604 ac_lib_var=`echo $tk_lib'_'main | sed 'y%./+-%__p_%'`
5605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 ac_save_LIBS="$LIBS"
5609 LIBS="-l$tk_lib $LIBS"
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5620 eval "ac_cv_lib_$ac_lib_var=yes"
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 eval "ac_cv_lib_$ac_lib_var=no"
5628 LIBS="$ac_save_LIBS"
5631 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5635 echo "$ac_t""no" 1>&6
5640 if test -z "$TK_LIB"; then
5641 echo "configure: warning: tk support disabled; Tk library missing" 1>&2
5649 LIBS="$ice_save_LIBS"
5650 CFLAGS="$ice_save_CFLAGS"
5651 CPPFLAGS="$ice_save_CPPFLAGS"
5652 LDFLAGS="$ice_save_LDFLAGS"
5656 cat > confcache <<\EOF
5657 # This file is a shell script that caches the results of configure
5658 # tests run on this system so they can be shared between configure
5659 # scripts and configure runs. It is not useful on other systems.
5660 # If it contains results you don't want to keep, you may remove or edit it.
5662 # By default, configure uses ./config.cache as the cache file,
5663 # creating it if it does not exist already. You can give configure
5664 # the --cache-file=FILE option to use a different cache file; that is
5665 # what configure does when it calls configure scripts in
5666 # subdirectories, so they share the cache.
5667 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5668 # config.status only pays attention to the cache file if you give it the
5669 # --recheck option to rerun configure.
5672 # The following way of writing the cache mishandles newlines in values,
5673 # but we know of no workaround that is simple, portable, and efficient.
5674 # So, don't put newlines in cache variables' values.
5675 # Ultrix sh set writes to stderr and can't be redirected directly,
5676 # and sets the high bit in the cache file unless we assign to the vars.
5678 case `(ac_space=' '; set) 2>&1` in
5680 # `set' does not quote correctly, so add quotes (double-quote substitution
5681 # turns \\\\ into \\, and sed turns \\ into \).
5683 -e "s/'/'\\\\''/g" \
5684 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5687 # `set' quotes correctly as required by POSIX, so do not add quotes.
5688 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5691 if cmp -s $cache_file confcache; then
5694 if test -w $cache_file; then
5695 echo "updating cache $cache_file"
5696 cat confcache > $cache_file
5698 echo "not updating unwritable cache $cache_file"
5703 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5706 # Let make expand exec_prefix.
5707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5709 # Any assignment to VPATH causes Sun make to only execute
5710 # the first set of double-colon rules, so remove it if not needed.
5711 # If there is a colon in the path, we need to keep it.
5712 if test "x$srcdir" = x.; then
5713 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5716 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5718 DEFS=-DHAVE_CONFIG_H
5720 # Without the "./", some shells look in PATH for config.status.
5721 : ${CONFIG_STATUS=./config.status}
5723 echo creating $CONFIG_STATUS
5724 rm -f $CONFIG_STATUS
5725 cat > $CONFIG_STATUS <<EOF
5727 # Generated automatically by configure.
5728 # Run this file to recreate the current configuration.
5729 # This directory was configured as follows,
5730 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5732 # $0 $ac_configure_args
5734 # Compiler output produced by configure, useful for debugging
5735 # configure, is in ./config.log if it exists.
5737 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5740 case "\$ac_option" in
5741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5742 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5743 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5744 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5745 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5747 -help | --help | --hel | --he | --h)
5748 echo "\$ac_cs_usage"; exit 0 ;;
5749 *) echo "\$ac_cs_usage"; exit 1 ;;
5753 ac_given_srcdir=$srcdir
5755 trap 'rm -fr `echo "GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5757 cat >> $CONFIG_STATUS <<EOF
5759 # Protect against being on the right side of a sed subst in config.status.
5760 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5761 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5764 s%@CFLAGS@%$CFLAGS%g
5765 s%@CPPFLAGS@%$CPPFLAGS%g
5766 s%@CXXFLAGS@%$CXXFLAGS%g
5768 s%@LDFLAGS@%$LDFLAGS%g
5770 s%@exec_prefix@%$exec_prefix%g
5771 s%@prefix@%$prefix%g
5772 s%@program_transform_name@%$program_transform_name%g
5773 s%@bindir@%$bindir%g
5774 s%@sbindir@%$sbindir%g
5775 s%@libexecdir@%$libexecdir%g
5776 s%@datadir@%$datadir%g
5777 s%@sysconfdir@%$sysconfdir%g
5778 s%@sharedstatedir@%$sharedstatedir%g
5779 s%@localstatedir@%$localstatedir%g
5780 s%@libdir@%$libdir%g
5781 s%@includedir@%$includedir%g
5782 s%@oldincludedir@%$oldincludedir%g
5783 s%@infodir@%$infodir%g
5784 s%@mandir@%$mandir%g
5786 s%@host_alias@%$host_alias%g
5787 s%@host_cpu@%$host_cpu%g
5788 s%@host_vendor@%$host_vendor%g
5789 s%@host_os@%$host_os%g
5791 s%@PORTNAME@%$PORTNAME%g
5795 s%@SHARED_LIB@%$SHARED_LIB%g
5796 s%@DLSUFFIX@%$DLSUFFIX%g
5797 s%@DL_LIB@%$DL_LIB%g
5798 s%@USE_TCL@%$USE_TCL%g
5799 s%@USE_PERL@%$USE_PERL%g
5800 s%@HAVECXX@%$HAVECXX%g
5801 s%@INSTALL@%$INSTALL%g
5802 s%@INSTLOPTS@%$INSTLOPTS%g
5803 s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
5804 s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
5805 s%@DASH_N@%$DASH_N%g
5806 s%@BACKSLASH_C@%$BACKSLASH_C%g
5808 s%@LEXLIB@%$LEXLIB%g
5810 s%@SET_MAKE@%$SET_MAKE%g
5811 s%@RANLIB@%$RANLIB%g
5820 s%@TRARGS@%$TRARGS%g
5822 s%@YFLAGS@%$YFLAGS%g
5825 s%@LIBOBJS@%$LIBOBJS%g
5827 s%@GETRUSAGE@%$GETRUSAGE%g
5828 s%@SRANDOM@%$SRANDOM%g
5829 s%@GETHOSTNAME@%$GETHOSTNAME%g
5830 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
5831 s%@INET_ATON@%$INET_ATON%g
5832 s%@STRERROR@%$STRERROR%g
5833 s%@STRERROR2@%$STRERROR2%g
5834 s%@STRDUP@%$STRDUP%g
5835 s%@STRTOL@%$STRTOL%g
5836 s%@STRTOUL@%$STRTOUL%g
5837 s%@STRCASECMP@%$STRCASECMP%g
5838 s%@X_CFLAGS@%$X_CFLAGS%g
5839 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5840 s%@X_LIBS@%$X_LIBS%g
5841 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5842 s%@X11_LIBS@%$X11_LIBS%g
5843 s%@TCL_LIB@%$TCL_LIB%g
5844 s%@TK_LIB@%$TK_LIB%g
5849 cat >> $CONFIG_STATUS <<\EOF
5851 # Split the substitutions into bite-sized pieces for seds with
5852 # small command number limits, like on Digital OSF/1 and HP-UX.
5853 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5854 ac_file=1 # Number of current file.
5855 ac_beg=1 # First line for current file.
5856 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5859 while $ac_more_lines; do
5860 if test $ac_beg -gt 1; then
5861 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5863 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5865 if test ! -s conftest.s$ac_file; then
5867 rm -f conftest.s$ac_file
5869 if test -z "$ac_sed_cmds"; then
5870 ac_sed_cmds="sed -f conftest.s$ac_file"
5872 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5874 ac_file=`expr $ac_file + 1`
5876 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5879 if test -z "$ac_sed_cmds"; then
5884 cat >> $CONFIG_STATUS <<EOF
5886 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile "}
5888 cat >> $CONFIG_STATUS <<\EOF
5889 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5892 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5893 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5894 *) ac_file_in="${ac_file}.in" ;;
5897 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5899 # Remove last slash and all that follows it. Not all systems have dirname.
5900 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5901 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5902 # The file is in a subdirectory.
5903 test ! -d "$ac_dir" && mkdir "$ac_dir"
5904 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5905 # A "../" for each directory in $ac_dir_suffix.
5906 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5908 ac_dir_suffix= ac_dots=
5911 case "$ac_given_srcdir" in
5913 if test -z "$ac_dots"; then top_srcdir=.
5914 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5915 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5917 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5918 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5922 echo creating "$ac_file"
5924 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5926 *Makefile*) ac_comsub="1i\\
5927 # $configure_input" ;;
5931 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5933 s%@configure_input@%$configure_input%g
5934 s%@srcdir@%$srcdir%g
5935 s%@top_srcdir@%$top_srcdir%g
5936 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5940 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5941 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5943 # ac_d sets the value in "#define NAME VALUE" lines.
5944 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5945 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5948 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5949 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5950 ac_uB='\([ ]\)%\1#\2define\3'
5953 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5954 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5955 ac_eB='$%\1#\2define\3'
5959 if test "${CONFIG_HEADERS+set}" != set; then
5961 cat >> $CONFIG_STATUS <<EOF
5962 CONFIG_HEADERS="include/config.h"
5964 cat >> $CONFIG_STATUS <<\EOF
5966 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5969 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5970 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5971 *) ac_file_in="${ac_file}.in" ;;
5974 echo creating $ac_file
5976 rm -f conftest.frag conftest.in conftest.out
5977 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5978 cat $ac_file_inputs > conftest.in
5982 # Transform confdefs.h into a sed script conftest.vals that substitutes
5983 # the proper values into config.h.in to produce config.h. And first:
5984 # Protect against being on the right side of a sed subst in config.status.
5985 # Protect against being in an unquoted here document in config.status.
5987 cat > conftest.hdr <<\EOF
5990 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5994 sed -n -f conftest.hdr confdefs.h > conftest.vals
5997 # This sed command replaces #undef with comments. This is necessary, for
5998 # example, in the case of _POSIX_SOURCE, which is predefined and required
5999 # on some systems where configure will not decide to define it.
6000 cat >> conftest.vals <<\EOF
6001 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6004 # Break up conftest.vals because some shells have a limit on
6005 # the size of here documents, and old seds have small limits too.
6010 ac_lines=`grep -c . conftest.vals`
6011 # grep -c gives empty output for an empty file on some AIX systems.
6012 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6013 # Write a limited-size here document to conftest.frag.
6014 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6015 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6017 sed -f conftest.frag conftest.in > conftest.out
6019 mv conftest.out conftest.in
6021 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6023 mv conftest.tail conftest.vals
6027 cat >> $CONFIG_STATUS <<\EOF
6028 rm -f conftest.frag conftest.h
6029 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6030 cat conftest.in >> conftest.h
6032 if cmp -s $ac_file conftest.h 2>/dev/null; then
6033 echo "$ac_file is unchanged"
6036 # Remove last slash and all that follows it. Not all systems have dirname.
6037 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6038 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6039 # The file is in a subdirectory.
6040 test ! -d "$ac_dir" && mkdir "$ac_dir"
6043 mv conftest.h $ac_file
6049 cat >> $CONFIG_STATUS <<EOF
6050 ac_sources="backend/port/tas/${tas_file} backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
6051 ac_dests="backend/port/tas.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
6054 cat >> $CONFIG_STATUS <<\EOF
6055 srcdir=$ac_given_srcdir
6056 while test -n "$ac_sources"; do
6057 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6058 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6060 echo "linking $srcdir/$ac_source to $ac_dest"
6062 if test ! -r $srcdir/$ac_source; then
6063 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6067 # Make relative symlinks.
6068 # Remove last slash and all that follows it. Not all systems have dirname.
6069 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
6070 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6071 # The dest file is in a subdirectory.
6072 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6073 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
6074 # A "../" for each directory in $ac_dest_dir_suffix.
6075 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
6077 ac_dest_dir_suffix= ac_dots=
6081 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6082 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6085 # Make a symlink if possible; otherwise try a hard link.
6086 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6087 ln $srcdir/$ac_source $ac_dest; then :
6089 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6093 cat >> $CONFIG_STATUS <<EOF
6096 cat >> $CONFIG_STATUS <<\EOF
6100 chmod +x $CONFIG_STATUS
6101 rm -fr confdefs* $ac_clean_files
6102 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1