4 #AC_DEFUN([PGAC_PROG_ANT],[AC_CHECK_PROG(ANT, ant, ant)
8 ## libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
9 ## Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
10 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12 ## This program is free software; you can redistribute it and/or modify
13 ## it under the terms of the GNU General Public License as published by
14 ## the Free Software Foundation; either version 2 of the License, or
15 ## (at your option) any later version.
17 ## This program is distributed in the hope that it will be useful, but
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ## General Public License for more details.
22 ## You should have received a copy of the GNU General Public License
23 ## along with this program; if not, write to the Free Software
24 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ## As a special exception to the GNU General Public License, if you
27 ## distribute this file as part of a program that contains a
28 ## configuration script generated by Autoconf, you may include it under
29 ## the same distribution terms that you use for the rest of that program.
31 # No, PostgreSQL doesn't use libtool (yet), we just borrow stuff from it.
32 # This file was taken on 2000-10-20 from the multi-language branch (since
33 # that is the branch that PostgreSQL would most likely adopt anyway).
36 # ... bunch of stuff removed here ...
38 # AC_PROG_LD - find the path to the GNU or non-GNU linker
43 # ... more stuff removed ...
45 # $Header: /cvsroot/pgsql/configure,v 1.114 2001/03/10 10:38:57 petere Exp $
50 # Look for Flex, set the output variable FLEX to its path if found.
51 # Avoid the buggy version 2.5.3. Also find Flex if its installed
52 # under `lex', but do not accept other Lex programs.
60 # Check for the readline library and dependent libraries, either
61 # termcap or curses. Also try libedit, since NetBSD's is compatible.
62 # Add the required flags to LIBS, define HAVE_LIBREADLINE.
67 # Autoconf macros for configuring the build of Python extension modules
69 # $Header: /cvsroot/pgsql/configure,v 1.114 2001/03/10 10:38:57 petere Exp $
74 # Look for Python and set the output variable `PYTHON'
75 # to `python' if found, empty otherwise.
81 # Finds the names of various install dirs and helper files
82 # necessary to build a Python extension module.
84 # It would be nice if we could check whether the current setup allows
85 # the build of the shared module. Future project.
88 # $Header: /cvsroot/pgsql/configure,v 1.114 2001/03/10 10:38:57 petere Exp $
90 # Autoconf macros to check for Tcl related things
96 # PGAC_PATH_TCLCONFIGSH([SEARCH-PATH])
97 # ------------------------------------
98 # PGAC_PATH_TCLCONFIGSH
101 # PGAC_PATH_TKCONFIGSH([SEARCH-PATH])
102 # ------------------------------------
103 # PGAC_PATH_TKCONFIGSH
105 # Guess values for system-dependent variables and create Makefiles.
106 # Generated automatically using autoconf version 2.13
107 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
109 # This configure script is free software; the Free Software Foundation
110 # gives unlimited permission to copy, distribute and modify it.
114 ac_default_prefix=/usr/local
115 # Any additions from configure.in:
116 ac_default_prefix=/usr/local/pgsql
118 --with-includes=DIRS look for additional header files in DIRS"
120 --with-libraries=DIRS look for additional libraries in DIRS"
122 --with-libs=DIRS alternative spelling of --with-libraries"
124 --enable-locale enable locale support"
126 --enable-recode enable character set recode support"
128 --enable-multibyte enable multibyte character support"
130 --enable-unicode-conversion enable unicode conversion support"
132 --with-pgport=PORTNUM change default port number [5432]"
134 --with-maxbackends=N set default maximum number of connections [32]"
136 --disable-shared do not build shared libraries"
138 --disable-rpath do not embed shared library search path in executables"
140 --enable-debug build with debugging symbols (-g)"
142 --enable-depend turn on automatic dependency tracking"
144 --enable-cassert enable assertion checks (for debugging)"
146 --with-tcl build Tcl and Tk interfaces"
148 --without-tk do not build Tk interfaces if Tcl is enabled"
150 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
152 --with-tkconfig=DIR tkConfig.sh is in DIR"
154 --with-perl build Perl interface and PL/Perl"
156 --with-python build Python interface module"
158 --with-java build JDBC interface & Java tools"
160 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
162 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
164 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
166 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
168 --enable-odbc build the ODBC driver package"
170 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
172 --with-CXX build C++ modules (libpq++)"
174 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
176 --enable-syslog enable logging to syslog"
178 # Initialize some variables set by options.
179 # The variables have the same names as the options, with
180 # dashes changed to underlines.
182 cache_file=./config.cache
191 program_transform_name=s,x,x,
199 bindir='${exec_prefix}/bin'
200 sbindir='${exec_prefix}/sbin'
201 libexecdir='${exec_prefix}/libexec'
202 datadir='${prefix}/share'
203 sysconfdir='${prefix}/etc'
204 sharedstatedir='${prefix}/com'
205 localstatedir='${prefix}/var'
206 libdir='${exec_prefix}/lib'
207 includedir='${prefix}/include'
208 oldincludedir='/usr/include'
209 docdir='${prefix}/doc'
210 mandir='${prefix}/man'
212 # Initialize some other variables.
215 SHELL=${CONFIG_SHELL-/bin/sh}
216 # Maximum number of lines to put in a shell here document.
223 # If the previous option needs an argument, assign it.
224 if test -n "$ac_prev"; then
225 eval "$ac_prev=\$ac_option"
231 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
235 # Accept the important Cygnus configure options, so we can diagnose typos.
239 -bindir | --bindir | --bindi | --bind | --bin | --bi)
241 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
242 bindir="$ac_optarg" ;;
244 -build | --build | --buil | --bui | --bu)
246 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
247 build="$ac_optarg" ;;
249 -cache-file | --cache-file | --cache-fil | --cache-fi \
250 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
251 ac_prev=cache_file ;;
252 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
253 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
254 cache_file="$ac_optarg" ;;
256 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
258 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
260 datadir="$ac_optarg" ;;
262 -disable-* | --disable-*)
263 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
264 # Reject names that are not valid shell variable names.
265 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
266 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
268 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
269 eval "enable_${ac_feature}=no" ;;
271 -enable-* | --enable-*)
272 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
273 # Reject names that are not valid shell variable names.
274 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
275 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
277 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
282 eval "enable_${ac_feature}='$ac_optarg'" ;;
284 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
285 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
286 | --exec | --exe | --ex)
287 ac_prev=exec_prefix ;;
288 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
289 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
290 | --exec=* | --exe=* | --ex=*)
291 exec_prefix="$ac_optarg" ;;
293 -gas | --gas | --ga | --g)
294 # Obsolete; use --with-gas.
297 -help | --help | --hel | --he)
298 # Omit some internal or obsolete options to make the list less imposing.
299 # This message is too long to be a string in the A/UX 3.1 sh.
301 Usage: configure [options] [host]
302 Options: [defaults in brackets after descriptions]
304 --cache-file=FILE cache test results in FILE
305 --help print this message
306 --no-create do not create output files
307 --quiet, --silent do not print \`checking...' messages
308 --version print the version of autoconf that created configure
309 Directory and file names:
310 --prefix=PREFIX install architecture-independent files in PREFIX
312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
314 --bindir=DIR user executables in DIR [EPREFIX/bin]
315 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
316 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
317 --datadir=DIR read-only architecture-independent data in DIR
319 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
320 --sharedstatedir=DIR modifiable architecture-independent data in DIR
322 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
323 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
324 --includedir=DIR C header files in DIR [PREFIX/include]
325 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
326 --docdir=DIR doc documentation in DIR [PREFIX/doc]
327 --mandir=DIR man documentation in DIR [PREFIX/man]
328 --srcdir=DIR find the sources in DIR [configure dir or ..]
329 --program-prefix=PREFIX prepend PREFIX to installed program names
330 --program-suffix=SUFFIX append SUFFIX to installed program names
331 --program-transform-name=PROGRAM
332 run sed PROGRAM on installed program names
336 --build=BUILD configure for building on BUILD [BUILD=HOST]
337 --host=HOST configure for HOST [guessed]
338 --target=TARGET configure for TARGET [TARGET=HOST]
339 Features and packages:
340 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
341 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
342 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
343 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
344 --x-includes=DIR X include files are in DIR
345 --x-libraries=DIR X library files are in DIR
347 if test -n "$ac_help"; then
348 echo "--enable and --with options recognized:$ac_help"
352 -host | --host | --hos | --ho)
354 -host=* | --host=* | --hos=* | --ho=*)
357 -includedir | --includedir | --includedi | --included | --include \
358 | --includ | --inclu | --incl | --inc)
359 ac_prev=includedir ;;
360 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
361 | --includ=* | --inclu=* | --incl=* | --inc=*)
362 includedir="$ac_optarg" ;;
364 -docdir | --docdir | --infodi | --infod | --doc | --inf)
366 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
367 docdir="$ac_optarg" ;;
369 -libdir | --libdir | --libdi | --libd)
371 -libdir=* | --libdir=* | --libdi=* | --libd=*)
372 libdir="$ac_optarg" ;;
374 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
375 | --libexe | --libex | --libe)
376 ac_prev=libexecdir ;;
377 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
378 | --libexe=* | --libex=* | --libe=*)
379 libexecdir="$ac_optarg" ;;
381 -localstatedir | --localstatedir | --localstatedi | --localstated \
382 | --localstate | --localstat | --localsta | --localst \
383 | --locals | --local | --loca | --loc | --lo)
384 ac_prev=localstatedir ;;
385 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
386 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
387 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
388 localstatedir="$ac_optarg" ;;
390 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
392 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
393 mandir="$ac_optarg" ;;
396 # Obsolete; use --without-fp.
399 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
403 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
404 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
407 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
408 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
409 | --oldin | --oldi | --old | --ol | --o)
410 ac_prev=oldincludedir ;;
411 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
412 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
413 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
414 oldincludedir="$ac_optarg" ;;
416 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
418 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
419 prefix="$ac_optarg" ;;
421 -program-prefix | --program-prefix | --program-prefi | --program-pref \
422 | --program-pre | --program-pr | --program-p)
423 ac_prev=program_prefix ;;
424 -program-prefix=* | --program-prefix=* | --program-prefi=* \
425 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
426 program_prefix="$ac_optarg" ;;
428 -program-suffix | --program-suffix | --program-suffi | --program-suff \
429 | --program-suf | --program-su | --program-s)
430 ac_prev=program_suffix ;;
431 -program-suffix=* | --program-suffix=* | --program-suffi=* \
432 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
433 program_suffix="$ac_optarg" ;;
435 -program-transform-name | --program-transform-name \
436 | --program-transform-nam | --program-transform-na \
437 | --program-transform-n | --program-transform- \
438 | --program-transform | --program-transfor \
439 | --program-transfo | --program-transf \
440 | --program-trans | --program-tran \
441 | --progr-tra | --program-tr | --program-t)
442 ac_prev=program_transform_name ;;
443 -program-transform-name=* | --program-transform-name=* \
444 | --program-transform-nam=* | --program-transform-na=* \
445 | --program-transform-n=* | --program-transform-=* \
446 | --program-transform=* | --program-transfor=* \
447 | --program-transfo=* | --program-transf=* \
448 | --program-trans=* | --program-tran=* \
449 | --progr-tra=* | --program-tr=* | --program-t=*)
450 program_transform_name="$ac_optarg" ;;
452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
453 | -silent | --silent | --silen | --sile | --sil)
456 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
458 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
460 sbindir="$ac_optarg" ;;
462 -sharedstatedir | --sharedstatedir | --sharedstatedi \
463 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
464 | --sharedst | --shareds | --shared | --share | --shar \
466 ac_prev=sharedstatedir ;;
467 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
468 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
469 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
471 sharedstatedir="$ac_optarg" ;;
473 -site | --site | --sit)
475 -site=* | --site=* | --sit=*)
478 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
480 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
481 srcdir="$ac_optarg" ;;
483 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
484 | --syscon | --sysco | --sysc | --sys | --sy)
485 ac_prev=sysconfdir ;;
486 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
487 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
488 sysconfdir="$ac_optarg" ;;
490 -target | --target | --targe | --targ | --tar | --ta | --t)
492 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
493 target="$ac_optarg" ;;
495 -v | -verbose | --verbose | --verbos | --verbo | --verb)
498 -version | --version | --versio | --versi | --vers)
499 echo "configure generated by autoconf version 2.13"
503 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
504 # Reject names that are not valid shell variable names.
505 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
506 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
508 ac_package=`echo $ac_package| sed 's/-/_/g'`
513 eval "with_${ac_package}='$ac_optarg'" ;;
515 -without-* | --without-*)
516 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
517 # Reject names that are not valid shell variable names.
518 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
519 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
521 ac_package=`echo $ac_package| sed 's/-/_/g'`
522 eval "with_${ac_package}=no" ;;
525 # Obsolete; use --with-x.
528 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
529 | --x-incl | --x-inc | --x-in | --x-i)
530 ac_prev=x_includes ;;
531 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
532 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
533 x_includes="$ac_optarg" ;;
535 -x-libraries | --x-libraries | --x-librarie | --x-librari \
536 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
537 ac_prev=x_libraries ;;
538 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
539 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
540 x_libraries="$ac_optarg" ;;
542 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
546 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
547 echo "configure: warning: $ac_option: invalid host type" 1>&2
549 if test "x$nonopt" != xNONE; then
550 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
558 if test -n "$ac_prev"; then
559 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
562 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
564 # File descriptor usage:
567 # 2 errors and warnings
568 # 3 some systems may open it to /dev/tty
569 # 4 used on the Kubota Titan
570 # 6 checking for... messages and results
571 # 5 compiler messages saved in config.log
572 if test "$silent" = yes; then
580 This file contains any messages produced by compilers while
581 running configure, to aid debugging if configure makes a mistake.
584 # Strip out --no-create and --no-recursion so they do not pile up.
585 # Also quote any args containing shell metacharacters.
590 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
591 | --no-cr | --no-c) ;;
592 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
593 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
594 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
595 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
596 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
601 # Only set these to C if already set. These must not be set unconditionally
602 # because not all systems understand e.g. LANG=C (notably SCO).
603 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
604 # Non-C LC_CTYPE values break the ctype check.
605 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
606 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
607 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
608 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
611 rm -rf conftest* confdefs.h
612 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
615 # A filename unique to this package, relative to the directory that
616 # configure is in, which we can look for to find out if srcdir is correct.
617 ac_unique_file=src/backend/access/common/heaptuple.c
619 # Find the source files, if location was not specified.
620 if test -z "$srcdir"; then
621 ac_srcdir_defaulted=yes
622 # Try the directory containing this script, then its parent.
624 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
625 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
627 if test ! -r $srcdir/$ac_unique_file; then
631 ac_srcdir_defaulted=no
633 if test ! -r $srcdir/$ac_unique_file; then
634 if test "$ac_srcdir_defaulted" = yes; then
635 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
637 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
640 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
642 # Prefer explicitly selected file to automatically selected ones.
643 if test -z "$CONFIG_SITE"; then
644 if test "x$prefix" != xNONE; then
645 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
647 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
650 for ac_site_file in $CONFIG_SITE; do
651 if test -r "$ac_site_file"; then
652 echo "loading site script $ac_site_file"
657 if test -r "$cache_file"; then
658 echo "loading cache $cache_file"
661 echo "creating cache $cache_file"
666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
667 ac_cpp='$CPP $CPPFLAGS'
668 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
669 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
670 cross_compiling=$ac_cv_prog_cc_cross
674 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
675 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
676 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
683 ac_n= ac_c='\c' ac_t=
695 for ac_dir in config $srcdir/config; do
696 if test -f $ac_dir/install-sh; then
698 ac_install_sh="$ac_aux_dir/install-sh -c"
700 elif test -f $ac_dir/install.sh; then
702 ac_install_sh="$ac_aux_dir/install.sh -c"
706 if test -z "$ac_aux_dir"; then
707 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
709 ac_config_guess=$ac_aux_dir/config.guess
710 ac_config_sub=$ac_aux_dir/config.sub
711 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
716 cat >> confdefs.h <<EOF
717 #define PG_VERSION "$VERSION"
724 # Make sure we can run config.sub.
725 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
726 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
729 echo $ac_n "checking host system type""... $ac_c" 1>&6
730 echo "configure:731: checking host system type" >&5
733 case "$host_alias" in
737 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
738 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
740 *) host_alias=$nonopt ;;
744 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
745 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
746 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
747 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
748 echo "$ac_t""$host" 1>&6
755 echo $ac_n "checking which template to use""... $ac_c" 1>&6
756 echo "configure:757: checking which template to use" >&5
758 # Check whether --with-template was given
759 if test x"${with_template+set}" = xset; then
760 case $with_template in
762 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
765 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
768 withval=$with_template
771 list) echo; ls "$srcdir/src/template"; exit;;
772 *) if test -f "$srcdir/src/template/$with_template" ; then
775 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
780 esac # $with_template
783 # --with-template not given
786 aix*) template=aix ;;
787 beos*) template=beos ;;
788 bsdi*) template=bsdi ;;
789 cygwin*) template=win ;;
790 darwin*) template=darwin ;;
791 dgux*) template=dgux ;;
792 freebsd*) template=freebsd ;;
793 hpux*) template=hpux ;;
794 irix*) template=irix5 ;;
795 linux*) template=linux ;;
796 netbsd*) template=netbsd ;;
797 nextstep*) template=nextstep ;;
798 openbsd*) template=openbsd ;;
799 osf*) template=osf ;;
800 qnx*) template=qnx4 ;;
801 sco*) template=sco ;;
802 solaris*) template=solaris ;;
803 sunos*) template=sunos4 ;;
806 univel) template=univel ;;
808 sysv4*) template=svr4 ;;
809 sysv5uw*) template=unixware ;;
810 ultrix*) template=ultrix4 ;;
813 if test x"$template" = x"" ; then
814 { echo "configure: error:
815 *******************************************************************
816 PostgreSQL has apparently not been ported to your platform yet.
817 To try a manual configuration, look into the src/template directory
818 for a similar platform and use the '--with-template=' option.
820 Please also contact <pgsql-ports@postgresql.org> to see about
821 rectifying this. Include the above 'checking host system type...'
823 *******************************************************************
830 echo "$ac_t""$template" 1>&6
840 # Pick right test-and-set (TAS) code. Most platforms have inline
841 # assembler code in src/include/storage/s_lock.h, so we just use
844 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
845 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
846 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
847 *) need_tas=no; tas_file=dummy.s ;;
851 if test "$need_tas" = yes ; then
859 ## Command line options
864 # Add non-standard directories to the include path
866 # Check whether --with-includes was given
867 if test x"${with_includes+set}" = xset; then
868 case $with_includes in
870 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
873 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
875 esac # $with_includes
880 # Add non-standard directories to the library search path
882 # Check whether --with-libraries was given
883 if test x"${with_libraries+set}" = xset; then
884 case $with_libraries in
886 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
889 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
892 withval=$with_libraries
893 LIBRARY_DIRS=$withval
895 esac # $with_libraries
898 # Check whether --with-libs was given
899 if test x"${with_libs+set}" = xset; then
902 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
905 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
909 LIBRARY_DIRS=$withval
916 # Locale (--enable-locale)
918 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
919 echo "configure:920: checking whether to build with locale support" >&5
920 # Check whether --enable-locale was given
921 if test x"${enable_locale+set}" = xset; then
922 case $enable_locale in
924 cat >> confdefs.h <<\EOF
933 enableval=$enable_locale
934 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
936 esac # $enable_locale
941 echo "$ac_t""$enable_locale" 1>&6
945 # Character set recode (--enable-recode)
947 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
948 echo "configure:949: checking whether to build with recode support" >&5
949 # Check whether --enable-recode was given
950 if test x"${enable_recode+set}" = xset; then
951 case $enable_recode in
953 cat >> confdefs.h <<\EOF
962 enableval=$enable_recode
963 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
965 esac # $enable_recode
970 echo "$ac_t""$enable_recode" 1>&6
977 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
978 echo "configure:979: checking whether to build with multibyte character support" >&5
980 # Check whether --enable-multibyte was given
981 if test x"${enable_multibyte+set}" = xset; then
982 case $enable_multibyte in
990 enableval=$enable_multibyte
994 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
995 MULTIBYTE=$enableval;;
997 { echo "configure: error: argument to --enable-multibyte must be one of:
998 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
999 UNICODE, MULE_INTERNAL,
1000 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1002 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
1006 esac # $enable_multibyte
1011 if test "$enable_multibyte" = yes; then
1013 cat >> confdefs.h <<\EOF
1017 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
1020 echo "$ac_t""no" 1>&6
1027 # Unicode conversion (--enable-unicode-conversion)
1029 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether to build with Unicode conversion support" >&5
1031 # Check whether --enable-unicode-conversion was given
1032 if test x"${enable_unicode_conversion+set}" = xset; then
1033 case $enable_unicode_conversion in
1035 if test -z "$MULTIBYTE"; then
1036 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
1038 cat >> confdefs.h <<\EOF
1039 #define UNICODE_CONVERSION 1
1047 enableval=$enable_unicode_conversion
1048 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
1050 esac # $enable_unicode_conversion
1052 enable_unicode_conversion=no
1055 echo "$ac_t""$enable_unicode_conversion" 1>&6
1058 # Default port number (--with-pgport), default 5432
1060 echo $ac_n "checking for default port number""... $ac_c" 1>&6
1061 echo "configure:1062: checking for default port number" >&5
1062 # Check whether --with-pgport was given
1063 if test x"${with_pgport+set}" = xset; then
1064 case $with_pgport in
1066 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1069 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1072 withval=$with_pgport
1073 default_port=$withval
1079 echo "$ac_t""$default_port" 1>&6
1080 # Need both of these because some places want an integer and some a string
1081 cat >> confdefs.h <<EOF
1082 #define DEF_PGPORT ${default_port}
1085 cat >> confdefs.h <<EOF
1086 #define DEF_PGPORT_STR "${default_port}"
1092 # Maximum number of allowed connections (--with-maxbackends), default 32
1094 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1095 echo "configure:1096: checking for default soft limit on number of connections" >&5
1096 # Check whether --with-maxbackends was given
1097 if test x"${with_maxbackends+set}" = xset; then
1098 case $with_maxbackends in
1100 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1103 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1105 esac # $with_maxbackends
1109 echo "$ac_t""$with_maxbackends" 1>&6
1110 cat >> confdefs.h <<EOF
1111 #define DEF_MAXBACKENDS $with_maxbackends
1117 # Option to disable shared libraries
1119 # Check whether --enable-shared was given
1120 if test x"${enable_shared+set}" = xset; then
1121 case $enable_shared in
1129 enableval=$enable_shared
1130 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1132 esac # $enable_shared
1140 # '-rpath'-like feature can be disabled
1142 # Check whether --enable-rpath was given
1143 if test x"${enable_rpath+set}" = xset; then
1144 case $enable_rpath in
1152 enableval=$enable_rpath
1153 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1155 esac # $enable_rpath
1164 # --enable-debug adds -g to compiler flags
1166 # Check whether --enable-debug was given
1167 if test x"${enable_debug+set}" = xset; then
1168 case $enable_debug in
1176 enableval=$enable_debug
1177 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1179 esac # $enable_debug
1190 # For historical reasons you can also use --with-CC to specify the C compiler
1191 # to use, although the standard way to do this is to set the CC environment
1193 # Check whether --with-CC was given
1194 if test x"${with_CC+set}" = xset; then
1197 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1200 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1209 # On AIX, default compiler to xlc.
1210 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1212 # Save CFLAGS from the environment
1213 has_environ_CFLAGS="${CFLAGS+yes}"
1216 # Extract the first word of "gcc", so it can be a program name with args.
1217 set dummy gcc; 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_CC'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1239 if test -n "$CC"; then
1240 echo "$ac_t""$CC" 1>&6
1242 echo "$ac_t""no" 1>&6
1245 if test -z "$CC"; then
1246 # Extract the first word of "cc", so it can be a program name with args.
1247 set dummy cc; ac_word=$2
1248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1249 echo "configure:1250: checking for $ac_word" >&5
1250 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1253 if test -n "$CC"; then
1254 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1263 ac_prog_rejected=yes
1271 if test $ac_prog_rejected = yes; then
1272 # We found a bogon in the path, so make sure we never use it.
1273 set dummy $ac_cv_prog_CC
1275 if test $# -gt 0; then
1276 # We chose a different compiler from the bogus one.
1277 # However, it has the same basename, so the bogon will be chosen
1278 # first if we set CC to just the basename; use the full file name.
1280 set dummy "$ac_dir/$ac_word" "$@"
1288 if test -n "$CC"; then
1289 echo "$ac_t""$CC" 1>&6
1291 echo "$ac_t""no" 1>&6
1294 if test -z "$CC"; then
1295 case "`uname -s`" in
1297 # Extract the first word of "cl", so it can be a program name with args.
1298 set dummy cl; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5
1301 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test -n "$CC"; then
1305 ac_cv_prog_CC="$CC" # Let the user override the test.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1320 if test -n "$CC"; then
1321 echo "$ac_t""$CC" 1>&6
1323 echo "$ac_t""no" 1>&6
1328 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1331 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1335 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1338 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1339 cross_compiling=$ac_cv_prog_cc_cross
1341 cat > conftest.$ac_ext << EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1349 ac_cv_prog_cc_works=yes
1350 # If we can't run a trivial program, we are probably using a cross compiler.
1351 if (./conftest; exit) 2>/dev/null; then
1352 ac_cv_prog_cc_cross=no
1354 ac_cv_prog_cc_cross=yes
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1359 ac_cv_prog_cc_works=no
1363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1367 cross_compiling=$ac_cv_prog_cc_cross
1369 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1370 if test $ac_cv_prog_cc_works = no; then
1371 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1373 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1375 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1376 cross_compiling=$ac_cv_prog_cc_cross
1378 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether we are using GNU C" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.c <<EOF
1388 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1395 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1397 if test $ac_cv_prog_gcc = yes; then
1403 ac_test_CFLAGS="${CFLAGS+set}"
1404 ac_save_CFLAGS="$CFLAGS"
1406 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 echo 'void f(){}' > conftest.c
1412 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1421 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1422 if test "$ac_test_CFLAGS" = set; then
1423 CFLAGS="$ac_save_CFLAGS"
1424 elif test $ac_cv_prog_cc_g = yes; then
1425 if test "$GCC" = yes; then
1431 if test "$GCC" = yes; then
1439 . "$srcdir/src/template/$template" || exit
1441 if test "$has_environ_CFLAGS" = yes; then
1444 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1447 echo "using CFLAGS=$CFLAGS"
1448 # Check if the compiler still works with the template settings
1449 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1457 cross_compiling=$ac_cv_prog_cc_cross
1459 cat > conftest.$ac_ext << EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467 ac_cv_prog_cc_works=yes
1468 # If we can't run a trivial program, we are probably using a cross compiler.
1469 if (./conftest; exit) 2>/dev/null; then
1470 ac_cv_prog_cc_cross=no
1472 ac_cv_prog_cc_cross=yes
1475 echo "configure: failed program was:" >&5
1476 cat conftest.$ac_ext >&5
1477 ac_cv_prog_cc_works=no
1481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1485 cross_compiling=$ac_cv_prog_cc_cross
1487 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1488 if test $ac_cv_prog_cc_works = no; then
1489 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1491 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1492 echo "configure:1493: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1493 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1494 cross_compiling=$ac_cv_prog_cc_cross
1496 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1497 echo "configure:1498: checking for Cygwin environment" >&5
1498 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1508 #define __CYGWIN__ __CYGWIN32__
1513 if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1526 echo "$ac_t""$ac_cv_cygwin" 1>&6
1528 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1529 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1530 echo "configure:1531: checking for mingw32 environment" >&5
1531 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1542 if { (eval echo configure:1543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1555 echo "$ac_t""$ac_cv_mingw32" 1>&6
1557 test "$ac_cv_mingw32" = yes && MINGW32=yes
1560 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1561 echo "configure:1562: checking for executable suffix" >&5
1562 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1569 echo 'int main () { return 0; }' > conftest.$ac_ext
1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1572 for file in conftest.*; do
1574 *.c | *.o | *.obj) ;;
1575 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1579 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1582 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1587 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1588 echo "$ac_t""${ac_cv_exeext}" 1>&6
1591 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1592 echo "configure:1593: checking how to run the C preprocessor" >&5
1593 # On Suns, sometimes $CPP names a directory.
1594 if test -n "$CPP" && test -d "$CPP"; then
1597 if test -z "$CPP"; then
1598 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1601 # This must be in double quotes, not single quotes, because CPP may get
1602 # substituted into the Makefile and "${CC-cc}" will confuse make.
1604 # On the NeXT, cc -E runs the code through the compiler's parser,
1605 # not just through cpp.
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1613 { (eval echo configure:1614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1615 if test -z "$ac_err"; then
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1622 CPP="${CC-cc} -E -traditional-cpp"
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1632 if test -z "$ac_err"; then
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1639 CPP="${CC-cc} -nologo -E"
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647 { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649 if test -z "$ac_err"; then
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1663 ac_cv_prog_CPP="$CPP"
1665 CPP="$ac_cv_prog_CPP"
1667 ac_cv_prog_CPP="$CPP"
1669 echo "$ac_t""$CPP" 1>&6
1671 if test $ac_cv_prog_gcc = yes; then
1672 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether ${CC-cc} needs -traditional" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 ac_pattern="Autoconf.*'x'"
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1685 egrep "$ac_pattern" >/dev/null 2>&1; then
1687 ac_cv_prog_gcc_traditional=yes
1690 ac_cv_prog_gcc_traditional=no
1695 if test $ac_cv_prog_gcc_traditional = no; then
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "$ac_pattern" >/dev/null 2>&1; then
1705 ac_cv_prog_gcc_traditional=yes
1712 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1713 if test $ac_cv_prog_gcc_traditional = yes; then
1714 CC="$CC -traditional"
1720 # Create compiler version string
1721 if test x"$GCC" = x"yes" ; then
1722 cc_string="GCC `${CC} --version`"
1726 cat >> confdefs.h <<EOF
1727 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1733 # Automatic dependency tracking
1735 # Check whether --enable-depend was given
1736 if test x"${enable_depend+set}" = xset; then
1737 case $enable_depend in
1745 enableval=$enable_depend
1746 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1748 esac # $enable_depend
1757 # Enable assert checks
1759 # Check whether --enable-cassert was given
1760 if test x"${enable_cassert+set}" = xset; then
1761 case $enable_cassert in
1763 cat >> confdefs.h <<\EOF
1764 #define USE_ASSERT_CHECKING 1
1772 enableval=$enable_cassert
1773 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1775 esac # $enable_cassert
1783 # Include directories
1787 # SRCH_INC comes from the template file
1788 for dir in $with_includes $SRCH_INC; do
1789 if test -d "$dir"; then
1790 INCLUDES="$INCLUDES -I$dir"
1792 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1800 # Library directories
1804 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1805 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1806 if test -d "$dir"; then
1807 LIBDIRS="$LIBDIRS -L$dir"
1809 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1818 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether to build with Tcl" >&5
1820 # Check whether --with-tcl was given
1821 if test x"${with_tcl+set}" = xset; then
1831 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1838 echo "$ac_t""$with_tcl" 1>&6
1841 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1842 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1843 echo "configure:1844: checking whether to build with Tk" >&5
1844 if test "$with_tcl" = yes; then
1845 # Check whether --with-tk was given
1846 if test x"${with_tk+set}" = xset; then
1856 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1866 echo "$ac_t""$with_tk" 1>&6
1870 # We see if the path to the TCL/TK configuration scripts is specified.
1871 # This will override the use of tclsh to find the paths to search.
1873 # Check whether --with-tclconfig was given
1874 if test x"${with_tclconfig+set}" = xset; then
1875 case $with_tclconfig in
1877 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1880 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1882 esac # $with_tclconfig
1885 # We see if the path to the TK configuration scripts is specified.
1886 # This will override the use of tclsh to find the paths to search.
1888 # Check whether --with-tkconfig was given
1889 if test x"${with_tkconfig+set}" = xset; then
1890 case $with_tkconfig in
1892 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1895 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1897 esac # $with_tkconfig
1902 # Optionally build Perl modules (Pg.pm and PL/Perl)
1904 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1905 echo "configure:1906: checking whether to build Perl modules" >&5
1906 # Check whether --with-perl was given
1907 if test x"${with_perl+set}" = xset; then
1917 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1924 echo "$ac_t""$with_perl" 1>&6
1929 # Optionally build Python interface module
1931 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether to build Python modules" >&5
1933 # Check whether --with-python was given
1934 if test x"${with_python+set}" = xset; then
1935 case $with_python in
1937 echo "$ac_t""yes" 1>&6
1938 # Extract the first word of "python", so it can be a program name with args.
1939 set dummy python; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 if test -n "$PYTHON"; then
1946 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1950 for ac_dir in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f $ac_dir/$ac_word; then
1953 ac_cv_prog_PYTHON="python"
1960 PYTHON="$ac_cv_prog_PYTHON"
1961 if test -n "$PYTHON"; then
1962 echo "$ac_t""$PYTHON" 1>&6
1964 echo "$ac_t""no" 1>&6
1968 if test "${PYTHON+set}" = set ; then
1969 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1970 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1971 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1972 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1973 python_moduledir="${python_prefix}/lib/python${python_version}"
1974 python_extmakefile="${python_configdir}/Makefile.pre.in"
1976 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1977 echo "configure:1978: checking for Python extension makefile" >&5
1978 if test -f "${python_extmakefile}" ; then
1979 echo "$ac_t""found" 1>&6
1981 echo "$ac_t""no" 1>&6
1982 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1983 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1993 { echo "configure: error: Python not found" 1>&2; exit 1; }
1997 echo "$ac_t""no" 1>&6
2000 withval=$with_python
2001 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
2006 echo "$ac_t""no" 1>&6
2011 # Optionally build the Java/JDBC tools
2013 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether to build Java/JDBC tools" >&5
2015 # Check whether --with-java was given
2016 if test x"${with_java+set}" = xset; then
2019 echo "$ac_t""yes" 1>&6
2020 for ac_prog in ant ant.sh ant.bat
2022 # Extract the first word of "$ac_prog", so it can be a program name with args.
2023 set dummy $ac_prog; ac_word=$2
2024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2025 echo "configure:2026: checking for $ac_word" >&5
2026 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2031 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
2034 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
2037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2039 for ac_dir in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_path_ANT="$ac_dir/$ac_word"
2050 ANT="$ac_cv_path_ANT"
2051 if test -n "$ANT"; then
2052 echo "$ac_t""$ANT" 1>&6
2054 echo "$ac_t""no" 1>&6
2057 test -n "$ANT" && break
2062 echo "$ac_t""no" 1>&6
2066 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
2071 echo "$ac_t""no" 1>&6
2079 # Check whether --with-krb4 was given
2080 if test x"${with_krb4+set}" = xset; then
2083 krb4_prefix=/usr/athena
2091 krb4_prefix=$withval
2098 if test "$with_krb4" = yes; then
2100 echo "$ac_t""building with Kerberos 4 support" 1>&6
2101 cat >> confdefs.h <<\EOF
2106 if test -d "$krb4_prefix/include"; then
2107 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2109 if test -d "$krb4_prefix/lib"; then
2110 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2113 krb_srvtab="/etc/srvtab"
2124 # Check whether --with-krb5 was given
2125 if test x"${with_krb5+set}" = xset; then
2128 krb5_prefix=/usr/athena
2136 krb5_prefix=$withval
2143 if test "$with_krb5" = yes; then
2145 echo "$ac_t""building with Kerberos 5 support" 1>&6
2146 cat >> confdefs.h <<\EOF
2151 if test -d "$krb5_prefix/include"; then
2152 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2154 if test -d "$krb5_prefix/lib"; then
2155 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2158 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2166 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2167 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2168 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2175 # Kerberos configuration parameters
2177 # Check whether --with-krb-srvnam was given
2178 if test x"${with_krb_srvnam+set}" = xset; then
2179 case $with_krb_srvnam in
2181 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2184 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2186 esac # $with_krb_srvnam
2188 with_krb_srvnam="postgres"
2190 cat >> confdefs.h <<EOF
2191 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2200 # Check whether --with-openssl was given
2201 if test x"${with_openssl+set}" = xset; then
2202 case $with_openssl in
2204 openssl_prefix=/usr/local/ssl
2210 withval=$with_openssl
2212 openssl_prefix=$withval
2214 esac # $with_openssl
2219 if test "$with_openssl" = yes; then
2221 echo "$ac_t""building with OpenSSL support" 1>&6
2222 cat >> confdefs.h <<\EOF
2227 if test -d "${openssl_prefix}/include" ; then
2228 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2230 if test -d "${openssl_prefix}/lib" ; then
2231 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2242 # Optionally enable the building of the ODBC driver
2246 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2247 enable_odbc=$with_odbc
2250 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2251 echo "configure:2252: checking whether to build the ODBC driver" >&5
2252 # Check whether --enable-odbc was given
2253 if test x"${enable_odbc+set}" = xset; then
2254 case $enable_odbc in
2262 enableval=$enable_odbc
2263 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2270 echo "$ac_t""$enable_odbc" 1>&6
2274 # Allow for overriding the default location of the odbcinst.ini
2275 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2276 # Check whether --with-odbcinst was given
2277 if test x"${with_odbcinst+set}" = xset; then
2278 case $with_odbcinst in
2280 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2283 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2286 withval=$with_odbcinst
2287 odbcinst_ini_dir=$withval
2289 esac # $with_odbcinst
2291 odbcinst_ini_dir="\${sysconfdir}"
2297 # Assume system is ELF if it predefines __ELF__ as 1,
2298 # otherwise believe host_os based default.
2300 freebsd1*|freebsd2*) elf=yes;;
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "yes" >/dev/null 2>&1; then
2317 if test "X$elf" = "Xyes" ; then
2330 # Optionally build C++ code (i.e., libpq++)
2332 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2333 echo "configure:2334: checking whether to build C++ modules" >&5
2334 # Check whether --with-CXX was given
2335 if test x"${with_CXX+set}" = xset; then
2353 if test "$with_CXX" = yes; then
2355 echo "$ac_t""yes" 1>&6
2357 # If the user has specified CXXFLAGS in the environment, leave it
2358 # alone, else use a default.
2360 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2361 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2364 set dummy $ac_prog; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 if test -n "$CXX"; then
2371 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_CXX="$ac_prog"
2385 CXX="$ac_cv_prog_CXX"
2386 if test -n "$CXX"; then
2387 echo "$ac_t""$CXX" 1>&6
2389 echo "$ac_t""no" 1>&6
2392 test -n "$CXX" && break
2394 test -n "$CXX" || CXX="gcc"
2397 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2398 echo "configure:2399: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp='$CXXCPP $CPPFLAGS'
2403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling=$ac_cv_prog_cxx_cross
2407 cat > conftest.$ac_ext << EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2412 int main(){return(0);}
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415 ac_cv_prog_cxx_works=yes
2416 # If we can't run a trivial program, we are probably using a cross compiler.
2417 if (./conftest; exit) 2>/dev/null; then
2418 ac_cv_prog_cxx_cross=no
2420 ac_cv_prog_cxx_cross=yes
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 ac_cv_prog_cxx_works=no
2429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2433 cross_compiling=$ac_cv_prog_cc_cross
2435 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2436 if test $ac_cv_prog_cxx_works = no; then
2437 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2439 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2440 echo "configure:2441: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2441 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2442 cross_compiling=$ac_cv_prog_cxx_cross
2444 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2445 echo "configure:2446: checking whether we are using GNU C++" >&5
2446 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.C <<EOF
2454 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2461 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2463 if test $ac_cv_prog_gxx = yes; then
2469 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2470 ac_save_CXXFLAGS="$CXXFLAGS"
2472 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether ${CXX-g++} accepts -g" >&5
2474 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 echo 'void f(){}' > conftest.cc
2478 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2479 ac_cv_prog_cxx_g=yes
2487 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2488 if test "$ac_test_CXXFLAGS" = set; then
2489 CXXFLAGS="$ac_save_CXXFLAGS"
2490 elif test $ac_cv_prog_cxx_g = yes; then
2491 if test "$GXX" = yes; then
2497 if test "$GXX" = yes; then
2504 if test "$has_environ_CXXFLAGS" != yes; then
2505 if test "$GXX" = yes; then
2509 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2510 unixware) CXXFLAGS='-O' ;;
2515 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2516 CXXFLAGS="$CXXFLAGS -g"
2518 echo "using CXXFLAGS=$CXXFLAGS"
2520 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2521 echo "configure:2522: checking how to run the C++ preprocessor" >&5
2522 if test -z "$CXXCPP"; then
2523 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2524 echo $ac_n "(cached) $ac_c" 1>&6
2527 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CXXCPP $CPPFLAGS'
2529 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cxx_cross
2532 CXXCPP="${CXX-g++} -E"
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2551 ac_cv_prog_CXXCPP="$CXXCPP"
2553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2556 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2557 cross_compiling=$ac_cv_prog_cc_cross
2560 CXXCPP="$ac_cv_prog_CXXCPP"
2561 echo "$ac_t""$CXXCPP" 1>&6
2566 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2567 ac_cpp='$CXXCPP $CPPFLAGS'
2568 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2569 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2570 cross_compiling=$ac_cv_prog_cxx_cross
2572 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for string""... $ac_c" 1>&6
2574 echo "configure:2575: checking for string" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 cat >> confdefs.h <<\EOF
2601 #define HAVE_CXX_STRING_HEADER 1
2605 echo "$ac_t""no" 1>&6
2609 if test x"$ac_cv_header_string" != xyes ; then
2610 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2611 echo "configure:2612: checking for class string in <string.h>" >&5
2612 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2626 if { (eval echo configure:2627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2628 pgac_cv_class_string_in_string_h=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 pgac_cv_class_string_in_string_h=no
2638 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2640 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2641 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2645 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2648 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2649 cross_compiling=$ac_cv_prog_cc_cross
2652 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2653 echo "configure:2654: checking for namespace std in C++" >&5
2654 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2660 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2661 ac_cpp='$CXXCPP $CPPFLAGS'
2662 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2663 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2664 cross_compiling=$ac_cv_prog_cxx_cross
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2671 #ifdef HAVE_CXX_STRING_HEADER
2674 using namespace std;
2680 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2682 pgac_cv_cxx_namespace_std=yes
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 pgac_cv_cxx_namespace_std=no
2691 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2694 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2695 cross_compiling=$ac_cv_prog_cc_cross
2699 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2701 if test $pgac_cv_cxx_namespace_std = yes ; then
2702 cat >> confdefs.h <<\EOF
2703 #define HAVE_NAMESPACE_STD 1
2709 echo "$ac_t""no" 1>&6
2714 CPPFLAGS="$CPPFLAGS $INCLUDES"
2715 LDFLAGS="$LDFLAGS $LIBDIRS"
2717 echo "using CPPFLAGS=$CPPFLAGS"
2718 echo "using LDFLAGS=$LDFLAGS"
2721 for ac_prog in mawk gawk nawk awk
2723 # Extract the first word of "$ac_prog", so it can be a program name with args.
2724 set dummy $ac_prog; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$AWK"; then
2731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_prog_AWK="$ac_prog"
2745 AWK="$ac_cv_prog_AWK"
2746 if test -n "$AWK"; then
2747 echo "$ac_t""$AWK" 1>&6
2749 echo "$ac_t""no" 1>&6
2752 test -n "$AWK" && break
2755 echo $ac_n "checking for flex""... $ac_c" 1>&6
2756 echo "configure:2757: checking for flex" >&5
2757 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 # Let the user override the test
2761 if test -n "$FLEX"; then
2762 pgac_cv_path_flex=$FLEX
2766 for pgac_dir in $PATH; do
2767 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2770 for pgac_prog in flex lex; do
2771 pgac_candidate="$pgac_dir/$pgac_prog"
2772 if test -f "$pgac_candidate" \
2773 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2775 echo '%%' > conftest.l
2776 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2777 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2778 pgac_broken_flex=$pgac_candidate
2782 pgac_cv_path_flex=$pgac_candidate
2790 : ${pgac_cv_path_flex=no}
2795 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2796 if test x"$pgac_cv_path_flex" = x"no"; then
2797 if test -n "$pgac_broken_flex"; then
2798 echo "configure: warning:
2799 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2800 *** should get version 2.5.4 or later." 1>&2
2803 echo "configure: warning:
2804 *** Without Flex you will not be able to build PostgreSQL from CVS or
2805 *** change any of the scanner definition files. You can obtain Flex from
2806 *** a GNU mirror site. (If you are using the official distribution of
2807 *** PostgreSQL then you do not need to worry about this because the Flex
2808 *** output is pre-generated.)" 1>&2
2811 if test x"$pgac_cv_path_flex" = x"no"; then
2814 FLEX=$pgac_cv_path_flex
2820 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether ln -s works" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2826 if ln -s X conftestdata 2>/dev/null
2829 ac_cv_prog_LN_S="ln -s"
2834 LN_S="$ac_cv_prog_LN_S"
2835 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2836 echo "$ac_t""yes" 1>&6
2838 echo "$ac_t""no" 1>&6
2841 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2842 if test "${with_gnu_ld+set}" = set; then
2843 withval="$with_gnu_ld"
2844 test "$withval" = no || with_gnu_ld=yes
2850 if test "$ac_cv_prog_gcc" = yes; then
2851 # Check if gcc -print-prog-name=ld gives a path.
2852 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2853 echo "configure:2854: checking for ld used by GCC" >&5
2856 # gcc leaves a trailing carriage return which upsets mingw
2857 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2859 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2862 # Accept absolute paths.
2863 [\\/]* | [A-Za-z]:[\\/]*)
2864 re_direlt='/[^/][^/]*/\.\./'
2865 # Canonicalize the path of ld
2866 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2867 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2868 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2870 test -z "$LD" && LD="$ac_prog"
2873 # If it fails, then pretend we aren't using GCC.
2877 # If it is relative, then search for the first ld in PATH.
2881 elif test "$with_gnu_ld" = yes; then
2882 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2883 echo "configure:2884: checking for GNU ld" >&5
2885 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2886 echo "configure:2887: checking for non-GNU ld" >&5
2888 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test -z "$LD"; then
2892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2893 for ac_dir in $PATH; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2896 ac_cv_path_LD="$ac_dir/$ac_prog"
2897 # Check to see if the program is GNU ld. I'd rather use --version,
2898 # but apparently some GNU ld's only accept -v.
2899 # Break only if it was the GNU/non-GNU ld that we prefer.
2900 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2901 test "$with_gnu_ld" != no && break
2903 test "$with_gnu_ld" != yes && break
2909 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2914 if test -n "$LD"; then
2915 echo "$ac_t""$LD" 1>&6
2917 echo "$ac_t""no" 1>&6
2919 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2920 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2921 echo "configure:2922: checking if the linker ($LD) is GNU ld" >&5
2922 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2926 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2927 ac_cv_prog_gnu_ld=yes
2929 ac_cv_prog_gnu_ld=no
2933 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2934 with_gnu_ld=$ac_cv_prog_gnu_ld
2939 case $host_os in sysv5uw*)
2940 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2941 echo "configure:2942: checking whether ld -R works" >&5
2942 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2946 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 pgac_cv_prog_ld_R=yes
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 pgac_cv_prog_ld_R=no
2965 LDFLAGS=$pgac_save_LDFLAGS
2969 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2970 ld_R_works=$pgac_cv_prog_ld_R
2973 # Extract the first word of "ranlib", so it can be a program name with args.
2974 set dummy ranlib; ac_word=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test -n "$RANLIB"; then
2981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2985 for ac_dir in $ac_dummy; do
2986 test -z "$ac_dir" && ac_dir=.
2987 if test -f $ac_dir/$ac_word; then
2988 ac_cv_prog_RANLIB="ranlib"
2993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2996 RANLIB="$ac_cv_prog_RANLIB"
2997 if test -n "$RANLIB"; then
2998 echo "$ac_t""$RANLIB" 1>&6
3000 echo "$ac_t""no" 1>&6
3003 for ac_prog in lorder
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_word" >&5
3009 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 if test -n "$LORDER"; then
3013 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3017 for ac_dir in $ac_dummy; do
3018 test -z "$ac_dir" && ac_dir=.
3019 if test -f $ac_dir/$ac_word; then
3020 ac_cv_prog_LORDER="$ac_prog"
3027 LORDER="$ac_cv_prog_LORDER"
3028 if test -n "$LORDER"; then
3029 echo "$ac_t""$LORDER" 1>&6
3031 echo "$ac_t""no" 1>&6
3034 test -n "$LORDER" && break
3037 # Extract the first word of "tar", so it can be a program name with args.
3038 set dummy tar; ac_word=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3046 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3049 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3054 for ac_dir in $ac_dummy; do
3055 test -z "$ac_dir" && ac_dir=.
3056 if test -f $ac_dir/$ac_word; then
3057 ac_cv_path_TAR="$ac_dir/$ac_word"
3065 TAR="$ac_cv_path_TAR"
3066 if test -n "$TAR"; then
3067 echo "$ac_t""$TAR" 1>&6
3069 echo "$ac_t""no" 1>&6
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_word" >&5
3078 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 if test -n "$PERL"; then
3082 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_prog_PERL="$ac_prog"
3096 PERL="$ac_cv_prog_PERL"
3097 if test -n "$PERL"; then
3098 echo "$ac_t""$PERL" 1>&6
3100 echo "$ac_t""no" 1>&6
3103 test -n "$PERL" && break
3107 for ac_prog in 'bison -y'
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3112 echo "configure:3113: checking for $ac_word" >&5
3113 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 if test -n "$YACC"; then
3117 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3121 for ac_dir in $ac_dummy; do
3122 test -z "$ac_dir" && ac_dir=.
3123 if test -f $ac_dir/$ac_word; then
3124 ac_cv_prog_YACC="$ac_prog"
3131 YACC="$ac_cv_prog_YACC"
3132 if test -n "$YACC"; then
3133 echo "$ac_t""$YACC" 1>&6
3135 echo "$ac_t""no" 1>&6
3138 test -n "$YACC" && break
3141 if test -z "$YACC"; then
3142 echo "configure: warning:
3143 *** Without Bison you will not be able to build PostgreSQL from CVS or
3144 *** change any of the parser definition files. You can obtain Bison from
3145 *** a GNU mirror site. (If you are using the official distribution of
3146 *** PostgreSQL then you do not need to worry about this because the Bison
3147 *** output is pre-generated.) To use a different yacc program (possible,
3148 *** but not recommended), set the environment variable YACC before running
3149 *** 'configure'." 1>&2
3153 if test "$with_tk" = yes; then
3154 # Extract the first word of "wish", so it can be a program name with args.
3155 set dummy wish; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3163 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3166 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3171 for ac_dir in $ac_dummy; do
3172 test -z "$ac_dir" && ac_dir=.
3173 if test -f $ac_dir/$ac_word; then
3174 ac_cv_path_WISH="$ac_dir/$ac_word"
3182 WISH="$ac_cv_path_WISH"
3183 if test -n "$WISH"; then
3184 echo "$ac_t""$WISH" 1>&6
3186 echo "$ac_t""no" 1>&6
3189 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3197 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3198 echo "configure:3199: checking for main in -lsfio" >&5
3199 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_save_LIBS="$LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3213 if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.$ac_ext >&5
3220 eval "ac_cv_lib_$ac_lib_var=no"
3223 LIBS="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3230 cat >> confdefs.h <<EOF
3231 #define $ac_tr_lib 1
3237 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking for readline""... $ac_c" 1>&6
3241 echo "configure:3242: checking for readline" >&5
3243 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 pgac_cv_check_readline=no
3247 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3248 for pgac_rllib in -lreadline -ledit ; do
3249 pgac_save_LIBS=$LIBS
3250 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* Override any gcc2 internal prototype to avoid an error. */
3255 /* We use char because int might match the return type of a gcc2
3256 builtin and then its argument prototype would still apply. */
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3271 LIBS=$pgac_save_LIBS
3274 LIBS=$pgac_save_LIBS
3278 if test "$pgac_cv_check_readline" != no ; then
3279 cat >> confdefs.h <<\EOF
3280 #define HAVE_LIBREADLINE 1
3283 LIBS="$pgac_cv_check_readline $LIBS"
3284 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3286 echo "$ac_t""no" 1>&6
3289 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3290 echo "configure:3291: checking for library containing using_history" >&5
3291 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 ac_func_search_save_LIBS="$LIBS"
3295 ac_cv_search_using_history="no"
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 /* Override any gcc2 internal prototype to avoid an error. */
3300 /* We use char because int might match the return type of a gcc2
3301 builtin and then its argument prototype would still apply. */
3302 char using_history();
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3310 ac_cv_search_using_history="none required"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3316 test "$ac_cv_search_using_history" = "no" && for i in history; do
3317 LIBS="-l$i $ac_func_search_save_LIBS"
3318 cat > conftest.$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3322 /* We use char because int might match the return type of a gcc2
3323 builtin and then its argument prototype would still apply. */
3324 char using_history();
3330 if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3332 ac_cv_search_using_history="-l$i"
3335 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5
3340 LIBS="$ac_func_search_save_LIBS"
3343 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3344 if test "$ac_cv_search_using_history" != "no"; then
3345 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3346 cat >> confdefs.h <<\EOF
3347 #define HAVE_HISTORY_FUNCTIONS 1
3354 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3356 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3357 echo "configure:3358: checking for main in -lbsd" >&5
3358 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3362 ac_save_LIBS="$LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3372 if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3374 eval "ac_cv_lib_$ac_lib_var=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3379 eval "ac_cv_lib_$ac_lib_var=no"
3382 LIBS="$ac_save_LIBS"
3385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3388 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3389 cat >> confdefs.h <<EOF
3390 #define $ac_tr_lib 1
3396 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3401 echo "configure:3402: checking for setproctitle in -lutil" >&5
3402 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 ac_save_LIBS="$LIBS"
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char setproctitle();
3420 if { (eval echo configure:3421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3422 eval "ac_cv_lib_$ac_lib_var=yes"
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3427 eval "ac_cv_lib_$ac_lib_var=no"
3430 LIBS="$ac_save_LIBS"
3433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3437 cat >> confdefs.h <<EOF
3438 #define $ac_tr_lib 1
3444 echo "$ac_t""no" 1>&6
3447 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3448 echo "configure:3449: checking for main in -lm" >&5
3449 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 ac_save_LIBS="$LIBS"
3455 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_lib_$ac_lib_var=no"
3473 LIBS="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3480 cat >> confdefs.h <<EOF
3481 #define $ac_tr_lib 1
3487 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3491 echo "configure:3492: checking for main in -ldl" >&5
3492 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 ac_save_LIBS="$LIBS"
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_lib_$ac_lib_var=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_lib_$ac_lib_var=no"
3516 LIBS="$ac_save_LIBS"
3519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3523 cat >> confdefs.h <<EOF
3524 #define $ac_tr_lib 1
3530 echo "$ac_t""no" 1>&6
3533 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3534 echo "configure:3535: checking for main in -lsocket" >&5
3535 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 ac_save_LIBS="$LIBS"
3540 LIBS="-lsocket $LIBS"
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3551 eval "ac_cv_lib_$ac_lib_var=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 eval "ac_cv_lib_$ac_lib_var=no"
3559 LIBS="$ac_save_LIBS"
3562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3564 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_lib 1
3570 LIBS="-lsocket $LIBS"
3573 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3577 echo "configure:3578: checking for main in -lnsl" >&5
3578 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 ac_save_LIBS="$LIBS"
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 eval "ac_cv_lib_$ac_lib_var=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 eval "ac_cv_lib_$ac_lib_var=no"
3602 LIBS="$ac_save_LIBS"
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3609 cat >> confdefs.h <<EOF
3610 #define $ac_tr_lib 1
3616 echo "$ac_t""no" 1>&6
3619 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3620 echo "configure:3621: checking for main in -lipc" >&5
3621 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 eval "ac_cv_lib_$ac_lib_var=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 eval "ac_cv_lib_$ac_lib_var=no"
3645 LIBS="$ac_save_LIBS"
3648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3652 cat >> confdefs.h <<EOF
3653 #define $ac_tr_lib 1
3659 echo "$ac_t""no" 1>&6
3662 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3663 echo "configure:3664: checking for main in -lIPC" >&5
3664 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 ac_save_LIBS="$LIBS"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 eval "ac_cv_lib_$ac_lib_var=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_lib_$ac_lib_var=no"
3688 LIBS="$ac_save_LIBS"
3691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3693 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3694 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3695 cat >> confdefs.h <<EOF
3696 #define $ac_tr_lib 1
3702 echo "$ac_t""no" 1>&6
3705 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3706 echo "configure:3707: checking for main in -llc" >&5
3707 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 ac_save_LIBS="$LIBS"
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3721 if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3723 eval "ac_cv_lib_$ac_lib_var=yes"
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3728 eval "ac_cv_lib_$ac_lib_var=no"
3731 LIBS="$ac_save_LIBS"
3734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3738 cat >> confdefs.h <<EOF
3739 #define $ac_tr_lib 1
3745 echo "$ac_t""no" 1>&6
3748 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3749 echo "configure:3750: checking for main in -ldld" >&5
3750 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS="$LIBS"
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_lib_$ac_lib_var=no"
3774 LIBS="$ac_save_LIBS"
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_lib 1
3788 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3792 echo "configure:3793: checking for main in -lld" >&5
3793 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS="$LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_lib 1
3831 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3835 echo "configure:3836: checking for main in -lcompat" >&5
3836 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS="$LIBS"
3841 LIBS="-lcompat $LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_lib_$ac_lib_var=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_lib_$ac_lib_var=no"
3860 LIBS="$ac_save_LIBS"
3863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3865 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_lib 1
3871 LIBS="-lcompat $LIBS"
3874 echo "$ac_t""no" 1>&6
3877 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3878 echo "configure:3879: checking for main in -lBSD" >&5
3879 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3883 ac_save_LIBS="$LIBS"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 eval "ac_cv_lib_$ac_lib_var=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_lib_$ac_lib_var=no"
3903 LIBS="$ac_save_LIBS"
3906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3907 echo "$ac_t""yes" 1>&6
3908 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3909 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3910 cat >> confdefs.h <<EOF
3911 #define $ac_tr_lib 1
3917 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3921 echo "configure:3922: checking for main in -lgen" >&5
3922 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 ac_save_LIBS="$LIBS"
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3938 eval "ac_cv_lib_$ac_lib_var=yes"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3943 eval "ac_cv_lib_$ac_lib_var=no"
3946 LIBS="$ac_save_LIBS"
3949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3953 cat >> confdefs.h <<EOF
3954 #define $ac_tr_lib 1
3960 echo "$ac_t""no" 1>&6
3963 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3964 echo "configure:3965: checking for main in -lPW" >&5
3965 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 ac_save_LIBS="$LIBS"
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_lib 1
4003 echo "$ac_t""no" 1>&6
4006 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4007 echo "configure:4008: checking for main in -lresolv" >&5
4008 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS="$LIBS"
4013 LIBS="-lresolv $LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 eval "ac_cv_lib_$ac_lib_var=yes"
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 eval "ac_cv_lib_$ac_lib_var=no"
4032 LIBS="$ac_save_LIBS"
4035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4039 cat >> confdefs.h <<EOF
4040 #define $ac_tr_lib 1
4043 LIBS="-lresolv $LIBS"
4046 echo "$ac_t""no" 1>&6
4049 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4050 echo "configure:4051: checking for main in -lunix" >&5
4051 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 ac_save_LIBS="$LIBS"
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067 eval "ac_cv_lib_$ac_lib_var=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 eval "ac_cv_lib_$ac_lib_var=no"
4075 LIBS="$ac_save_LIBS"
4078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4082 cat >> confdefs.h <<EOF
4083 #define $ac_tr_lib 1
4089 echo "$ac_t""no" 1>&6
4093 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4094 echo "configure:4095: checking for library containing crypt" >&5
4095 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4098 ac_func_search_save_LIBS="$LIBS"
4099 ac_cv_search_crypt="no"
4100 cat > conftest.$ac_ext <<EOF
4101 #line 4102 "configure"
4102 #include "confdefs.h"
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4112 if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114 ac_cv_search_crypt="none required"
4116 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5
4120 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4121 LIBS="-l$i $ac_func_search_save_LIBS"
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4136 ac_cv_search_crypt="-l$i"
4139 echo "configure: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4144 LIBS="$ac_func_search_save_LIBS"
4147 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4148 if test "$ac_cv_search_crypt" != "no"; then
4149 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4154 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4155 echo "configure:4156: checking for __inet_ntoa in -lbind" >&5
4156 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4158 echo $ac_n "(cached) $ac_c" 1>&6
4160 ac_save_LIBS="$LIBS"
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4176 eval "ac_cv_lib_$ac_lib_var=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_lib_$ac_lib_var=no"
4184 LIBS="$ac_save_LIBS"
4187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4188 echo "$ac_t""yes" 1>&6
4189 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4191 cat >> confdefs.h <<EOF
4192 #define $ac_tr_lib 1
4198 echo "$ac_t""no" 1>&6
4201 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
4202 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
4203 echo "configure:4204: checking for zlib.h" >&5
4204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4213 { (eval echo configure:4214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4215 if test -z "$ac_err"; then
4217 eval "ac_cv_header_$ac_safe=yes"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 eval "ac_cv_header_$ac_safe=no"
4227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4230 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4231 echo "configure:4232: checking for inflate in -lz" >&5
4232 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 ac_save_LIBS="$LIBS"
4238 cat > conftest.$ac_ext <<EOF
4239 #line 4240 "configure"
4240 #include "confdefs.h"
4241 /* Override any gcc2 internal prototype to avoid an error. */
4242 /* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_lib_$ac_lib_var=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_lib_$ac_lib_var=no"
4260 LIBS="$ac_save_LIBS"
4263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4264 echo "$ac_t""yes" 1>&6
4265 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4267 cat >> confdefs.h <<EOF
4268 #define $ac_tr_lib 1
4274 echo "$ac_t""no" 1>&6
4279 echo "$ac_t""no" 1>&6
4284 if test "$with_krb4" = yes ; then
4285 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4286 echo "configure:4287: checking for des_encrypt in -ldes" >&5
4287 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS="$LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_lib 1
4329 echo "$ac_t""no" 1>&6
4330 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4333 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4334 echo "configure:4335: checking for krb_sendauth in -lkrb" >&5
4335 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS="$LIBS"
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char krb_sendauth();
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4370 cat >> confdefs.h <<EOF
4371 #define $ac_tr_lib 1
4377 echo "$ac_t""no" 1>&6
4378 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4383 if test "$with_krb5" = yes ; then
4384 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4385 echo "configure:4386: checking for com_err in -lcom_err" >&5
4386 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 ac_save_LIBS="$LIBS"
4391 LIBS="-lcom_err $LIBS"
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406 eval "ac_cv_lib_$ac_lib_var=yes"
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4411 eval "ac_cv_lib_$ac_lib_var=no"
4414 LIBS="$ac_save_LIBS"
4417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4418 echo "$ac_t""yes" 1>&6
4419 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4420 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4421 cat >> confdefs.h <<EOF
4422 #define $ac_tr_lib 1
4425 LIBS="-lcom_err $LIBS"
4428 echo "$ac_t""no" 1>&6
4429 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4432 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4433 echo "configure:4434: checking for krb5_encrypt in -lcrypto" >&5
4434 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4435 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 ac_save_LIBS="$LIBS"
4439 LIBS="-lcrypto $LIBS"
4440 cat > conftest.$ac_ext <<EOF
4441 #line 4442 "configure"
4442 #include "confdefs.h"
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4446 char krb5_encrypt();
4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4454 eval "ac_cv_lib_$ac_lib_var=yes"
4456 echo "configure: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4459 eval "ac_cv_lib_$ac_lib_var=no"
4462 LIBS="$ac_save_LIBS"
4465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4467 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4469 cat >> confdefs.h <<EOF
4470 #define $ac_tr_lib 1
4473 LIBS="-lcrypto $LIBS"
4476 echo "$ac_t""no" 1>&6
4477 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4478 echo "configure:4479: checking for krb5_encrypt in -lk5crypto" >&5
4479 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 ac_save_LIBS="$LIBS"
4484 LIBS="-lk5crypto $LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char krb5_encrypt();
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_lib_$ac_lib_var=no"
4507 LIBS="$ac_save_LIBS"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_lib 1
4518 LIBS="-lk5crypto $LIBS"
4521 echo "$ac_t""no" 1>&6
4522 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4527 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4528 echo "configure:4529: checking for krb5_sendauth in -lkrb5" >&5
4529 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4541 char krb5_sendauth();
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_lib 1
4571 echo "$ac_t""no" 1>&6
4572 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4577 if test "$with_openssl" = yes ; then
4578 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4579 echo "configure:4580: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4580 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 ac_save_LIBS="$LIBS"
4585 LIBS="-lcrypto $LIBS"
4586 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure"
4588 #include "confdefs.h"
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4592 char CRYPTO_new_ex_data();
4595 CRYPTO_new_ex_data()
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4600 eval "ac_cv_lib_$ac_lib_var=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4605 eval "ac_cv_lib_$ac_lib_var=no"
4608 LIBS="$ac_save_LIBS"
4611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4613 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4614 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4615 cat >> confdefs.h <<EOF
4616 #define $ac_tr_lib 1
4619 LIBS="-lcrypto $LIBS"
4622 echo "$ac_t""no" 1>&6
4623 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4626 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4627 echo "configure:4628: checking for SSL_library_init in -lssl" >&5
4628 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 ac_save_LIBS="$LIBS"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 /* Override any gcc2 internal prototype to avoid an error. */
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char SSL_library_init();
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 eval "ac_cv_lib_$ac_lib_var=yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 eval "ac_cv_lib_$ac_lib_var=no"
4656 LIBS="$ac_save_LIBS"
4659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4660 echo "$ac_t""yes" 1>&6
4661 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4662 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4663 cat >> confdefs.h <<EOF
4664 #define $ac_tr_lib 1
4670 echo "$ac_t""no" 1>&6
4671 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4680 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
4682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4684 echo "configure:4685: checking for $ac_hdr" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4711 cat >> confdefs.h <<EOF
4712 #define $ac_tr_hdr 1
4716 echo "$ac_t""no" 1>&6
4721 for ac_hdr in netinet/in.h
4723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4725 echo "configure:4726: checking for $ac_hdr" >&5
4726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4727 echo $ac_n "(cached) $ac_c" 1>&6
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4735 { (eval echo configure:4736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4737 if test -z "$ac_err"; then
4739 eval "ac_cv_header_$ac_safe=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 eval "ac_cv_header_$ac_safe=no"
4749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4752 cat >> confdefs.h <<EOF
4753 #define $ac_tr_hdr 1
4757 echo "$ac_t""no" 1>&6
4761 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4762 echo "configure:4763: checking for netinet/tcp.h" >&5
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4767 #ifdef HAVE_NETINET_IN_H
4768 #include <netinet/in.h>
4770 #include <netinet/tcp.h>
4773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4774 { (eval echo configure:4775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4776 if test -z "$ac_err"; then
4778 cat >> confdefs.h <<\EOF
4779 #define HAVE_NETINET_TCP_H 1
4781 echo "$ac_t""yes" 1>&6
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 echo "$ac_t""no" 1>&6
4791 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4792 echo "configure:4793: checking whether string.h and strings.h may both be included" >&5
4793 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4800 #include <strings.h>
4803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4804 { (eval echo configure:4805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4806 if test -z "$ac_err"; then
4808 cat > conftest.$ac_ext <<EOF
4809 #line 4810 "configure"
4810 #include "confdefs.h"
4812 #include <strings.h>
4815 int n = strcasecmp("a", "b");
4818 if { (eval echo configure:4819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4820 pgac_cv_header_strings_both=yes
4822 echo "configure: failed program was:" >&5
4823 cat conftest.$ac_ext >&5
4825 pgac_cv_header_strings_both=no
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 pgac_cv_header_strings_both=no
4838 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4839 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4840 cat >> confdefs.h <<\EOF
4841 #define STRING_H_WITH_STRINGS_H 1
4846 for ac_hdr in readline/readline.h readline.h
4848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4850 echo "configure:4851: checking for $ac_hdr" >&5
4851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4860 { (eval echo configure:4861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4862 if test -z "$ac_err"; then
4864 eval "ac_cv_header_$ac_safe=yes"
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4870 eval "ac_cv_header_$ac_safe=no"
4874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4875 echo "$ac_t""yes" 1>&6
4876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4877 cat >> confdefs.h <<EOF
4878 #define $ac_tr_hdr 1
4882 echo "$ac_t""no" 1>&6
4886 for ac_hdr in readline/history.h history.h
4888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_hdr" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_hdr 1
4922 echo "$ac_t""no" 1>&6
4927 if test "$with_krb4" = yes ; then
4928 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4929 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4930 echo "configure:4931: checking for krb.h" >&5
4931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4940 { (eval echo configure:4941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4942 if test -z "$ac_err"; then
4944 eval "ac_cv_header_$ac_safe=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 eval "ac_cv_header_$ac_safe=no"
4954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4958 echo "$ac_t""no" 1>&6
4959 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4964 if test "$with_krb5" = yes ; then
4965 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4966 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4967 echo "configure:4968: checking for krb5.h" >&5
4968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4969 echo $ac_n "(cached) $ac_c" 1>&6
4971 cat > conftest.$ac_ext <<EOF
4972 #line 4973 "configure"
4973 #include "confdefs.h"
4976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4977 { (eval echo configure:4978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4979 if test -z "$ac_err"; then
4981 eval "ac_cv_header_$ac_safe=yes"
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 eval "ac_cv_header_$ac_safe=no"
4991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4995 echo "$ac_t""no" 1>&6
4996 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4999 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5000 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5001 echo "configure:5002: checking for com_err.h" >&5
5002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5008 #include <com_err.h>
5010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5011 { (eval echo configure:5012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5013 if test -z "$ac_err"; then
5015 eval "ac_cv_header_$ac_safe=yes"
5018 echo "configure: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5021 eval "ac_cv_header_$ac_safe=no"
5025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5026 echo "$ac_t""yes" 1>&6
5029 echo "$ac_t""no" 1>&6
5030 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5035 if test "$with_openssl" = yes ; then
5036 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5037 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5038 echo "configure:5039: checking for openssl/ssl.h" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 #include <openssl/ssl.h>
5047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5048 { (eval echo configure:5049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5050 if test -z "$ac_err"; then
5052 eval "ac_cv_header_$ac_safe=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5058 eval "ac_cv_header_$ac_safe=no"
5062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5066 echo "$ac_t""no" 1>&6
5067 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5070 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5071 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5072 echo "configure:5073: checking for openssl/err.h" >&5
5073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 #include <openssl/err.h>
5081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5082 { (eval echo configure:5083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5084 if test -z "$ac_err"; then
5086 eval "ac_cv_header_$ac_safe=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 eval "ac_cv_header_$ac_safe=no"
5096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5100 echo "$ac_t""no" 1>&6
5101 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5108 ## Types, structures, compiler characteristics
5110 echo $ac_n "checking for working const""... $ac_c" 1>&6
5111 echo "configure:5112: checking for working const" >&5
5112 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5121 /* Ultrix mips cc rejects this. */
5122 typedef int charset[2]; const charset x;
5123 /* SunOS 4.1.1 cc rejects this. */
5124 char const *const *ccp;
5126 /* NEC SVR4.0.2 mips cc rejects this. */
5127 struct point {int x, y;};
5128 static struct point const zero = {0,0};
5129 /* AIX XL C 1.02.0.0 rejects this.
5130 It does not let you subtract one const X* pointer from another in an arm
5131 of an if-expression whose if-part is not a constant expression */
5132 const char *g = "string";
5133 ccp = &g + (g ? g-g : 0);
5134 /* HPUX 7.0 cc rejects these. */
5137 ccp = (char const *const *) p;
5138 { /* SCO 3.2v4 cc rejects this. */
5140 char const *s = 0 ? (char *) 0 : (char const *) 0;
5144 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5146 const int *foo = &x[0];
5149 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5150 typedef const int *iptr;
5154 { /* AIX XL C 1.02.0.0 rejects this saying
5155 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5156 struct s { int j; const int *ap[3]; };
5157 struct s *b; b->j = 5;
5159 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5165 if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5169 echo "configure: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5177 echo "$ac_t""$ac_cv_c_const" 1>&6
5178 if test $ac_cv_c_const = no; then
5179 cat >> confdefs.h <<\EOF
5185 echo $ac_n "checking for inline""... $ac_c" 1>&6
5186 echo "configure:5187: checking for inline" >&5
5187 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5191 for ac_kw in inline __inline__ __inline; do
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5200 if { (eval echo configure:5201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5202 ac_cv_c_inline=$ac_kw; break
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5212 echo "$ac_t""$ac_cv_c_inline" 1>&6
5213 case "$ac_cv_c_inline" in
5215 no) cat >> confdefs.h <<\EOF
5219 *) cat >> confdefs.h <<EOF
5220 #define inline $ac_cv_c_inline
5227 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5228 echo "configure:5229: checking for preprocessor stringizing operator" >&5
5229 if eval "test \"`echo '$''{'ac_cv_c_stringize'+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"
5238 char *s = x(teststring);
5241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 egrep "#teststring" >/dev/null 2>&1; then
5244 ac_cv_c_stringize=no
5247 ac_cv_c_stringize=yes
5253 if test "${ac_cv_c_stringize}" = yes
5255 cat >> confdefs.h <<\EOF
5256 #define HAVE_STRINGIZE 1
5260 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5262 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5263 echo "configure:5264: checking for signed types" >&5
5264 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5265 echo $ac_n "(cached) $ac_c" 1>&6
5267 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure"
5269 #include "confdefs.h"
5272 signed char c; signed short s; signed int i;
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 pgac_cv_c_signed=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5287 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5288 if test x"$pgac_cv_c_signed" = xno ; then
5289 cat >> confdefs.h <<\EOF
5294 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5295 echo "configure:5296: checking for volatile" >&5
5296 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5304 extern volatile int i;
5307 if { (eval echo configure:5308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5309 pgac_cv_c_volatile=yes
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 pgac_cv_c_volatile=no
5319 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5320 if test x"$pgac_cv_c_volatile" = xno ; then
5321 cat >> confdefs.h <<\EOF
5326 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5327 echo "configure:5328: checking whether struct tm is in sys/time.h or time.h" >&5
5328 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5331 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure"
5333 #include "confdefs.h"
5334 #include <sys/types.h>
5337 struct tm *tp; tp->tm_sec;
5340 if { (eval echo configure:5341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5342 ac_cv_struct_tm=time.h
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 ac_cv_struct_tm=sys/time.h
5352 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5353 if test $ac_cv_struct_tm = sys/time.h; then
5354 cat >> confdefs.h <<\EOF
5355 #define TM_IN_SYS_TIME 1
5360 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5361 echo "configure:5362: checking for tm_zone in struct tm" >&5
5362 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5363 echo $ac_n "(cached) $ac_c" 1>&6
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5368 #include <sys/types.h>
5369 #include <$ac_cv_struct_tm>
5371 struct tm tm; tm.tm_zone;
5374 if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5376 ac_cv_struct_tm_zone=yes
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 ac_cv_struct_tm_zone=no
5386 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5387 if test "$ac_cv_struct_tm_zone" = yes; then
5388 cat >> confdefs.h <<\EOF
5389 #define HAVE_TM_ZONE 1
5393 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5394 echo "configure:5395: checking for tzname" >&5
5395 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5402 #ifndef tzname /* For SGI. */
5403 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5411 ac_cv_var_tzname=yes
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5421 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5422 if test $ac_cv_var_tzname = yes; then
5423 cat >> confdefs.h <<\EOF
5424 #define HAVE_TZNAME 1
5430 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5431 echo "configure:5432: checking for union semun" >&5
5432 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 #include <sys/types.h>
5439 #include <sys/ipc.h>
5440 #include <sys/sem.h>
5445 if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5447 pgac_cv_union_semun=yes
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 pgac_cv_union_semun=no
5457 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5458 if test x"$pgac_cv_union_semun" = xyes ; then
5459 cat >> confdefs.h <<\EOF
5460 #define HAVE_UNION_SEMUN 1
5464 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5465 echo "configure:5466: checking for struct sockaddr_un" >&5
5466 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 cat > conftest.$ac_ext <<EOF
5470 #line 5471 "configure"
5471 #include "confdefs.h"
5472 #include <sys/types.h>
5473 #ifdef HAVE_SYS_UN_H
5477 struct sockaddr_un un;
5480 if { (eval echo configure:5481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5482 pgac_cv_struct_sockaddr_un=yes
5484 echo "configure: failed program was:" >&5
5485 cat conftest.$ac_ext >&5
5487 pgac_cv_struct_sockaddr_un=no
5492 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5493 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5494 cat >> confdefs.h <<\EOF
5495 #define HAVE_STRUCT_SOCKADDR_UN 1
5501 ## Functions, global variables
5503 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5504 echo "configure:5505: checking for int timezone" >&5
5505 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5508 cat > conftest.$ac_ext <<EOF
5509 #line 5510 "configure"
5510 #include "confdefs.h"
5514 res = timezone / 60;
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5519 pgac_cv_var_int_timezone=yes
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 pgac_cv_var_int_timezone=no
5529 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5530 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5531 cat >> confdefs.h <<\EOF
5532 #define HAVE_INT_TIMEZONE
5536 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5537 echo "configure:5538: checking types of arguments for accept()" >&5
5538 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5548 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5549 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5550 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure"
5552 #include "confdefs.h"
5553 #ifdef HAVE_SYS_TYPES_H
5554 #include <sys/types.h>
5556 #ifdef HAVE_SYS_SOCKET_H
5557 #include <sys/socket.h>
5559 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5564 if { (eval echo configure:5565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5566 ac_not_found=no; break 3
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5577 if test "$ac_not_found" = yes; then
5578 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5580 if test "$ac_cv_func_accept_arg3" = "void"; then
5581 ac_cv_func_accept_arg3=int
5589 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5590 cat >> confdefs.h <<EOF
5591 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5594 cat >> confdefs.h <<EOF
5595 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5598 cat >> confdefs.h <<EOF
5599 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5603 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5604 echo "configure:5605: checking whether gettimeofday takes only one argument" >&5
5605 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5611 #include <sys/time.h>
5614 struct timezone *tzp;
5615 gettimeofday(tp,tzp);
5618 if { (eval echo configure:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620 pgac_cv_func_gettimeofday_1arg=no
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 pgac_cv_func_gettimeofday_1arg=yes
5630 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5631 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5632 cat >> confdefs.h <<\EOF
5633 #define GETTIMEOFDAY_1ARG
5638 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_func" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func(); below. */
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5671 eval "ac_cv_func_$ac_func=yes"
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 eval "ac_cv_func_$ac_func=no"
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h <<EOF
5685 #define $ac_tr_func 1
5689 echo "$ac_t""no" 1>&6
5694 cat > conftest.$ac_ext <<EOF
5695 #line 5696 "configure"
5696 #include "confdefs.h"
5699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 egrep "fdatasync" >/dev/null 2>&1; then
5702 cat >> confdefs.h <<\EOF
5703 #define HAVE_FDATASYNC_DECL 1
5710 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5711 echo "configure:5712: checking for PS_STRINGS" >&5
5712 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 #include <machine/vmparam.h>
5719 #include <sys/exec.h>
5722 PS_STRINGS->ps_nargvstr = 1;
5723 PS_STRINGS->ps_argvstr = "foo";
5726 if { (eval echo configure:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5728 pgac_cv_var_PS_STRINGS=yes
5730 echo "configure: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5733 pgac_cv_var_PS_STRINGS=no
5738 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5739 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5740 cat >> confdefs.h <<\EOF
5741 #define HAVE_PS_STRINGS
5747 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5748 echo "configure:5749: checking for snprintf" >&5
5749 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5750 echo $ac_n "(cached) $ac_c" 1>&6
5752 cat > conftest.$ac_ext <<EOF
5753 #line 5754 "configure"
5754 #include "confdefs.h"
5755 /* System header to define __stub macros and hopefully few prototypes,
5756 which can conflict with char snprintf(); below. */
5758 /* Override any gcc2 internal prototype to avoid an error. */
5759 /* We use char because int might match the return type of a gcc2
5760 builtin and then its argument prototype would still apply. */
5765 /* The GNU C library defines this for functions which it implements
5766 to always fail with ENOSYS. Some functions are actually named
5767 something starting with __ and the normal name is an alias. */
5768 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5778 eval "ac_cv_func_snprintf=yes"
5780 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5783 eval "ac_cv_func_snprintf=no"
5788 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5789 echo "$ac_t""yes" 1>&6
5790 cat >> confdefs.h <<\EOF
5791 #define HAVE_SNPRINTF 1
5795 echo "$ac_t""no" 1>&6
5796 SNPRINTF='snprintf.o'
5799 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5800 echo "configure:5801: checking for vsnprintf" >&5
5801 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5802 echo $ac_n "(cached) $ac_c" 1>&6
5804 cat > conftest.$ac_ext <<EOF
5805 #line 5806 "configure"
5806 #include "confdefs.h"
5807 /* System header to define __stub macros and hopefully few prototypes,
5808 which can conflict with char vsnprintf(); below. */
5810 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5817 /* The GNU C library defines this for functions which it implements
5818 to always fail with ENOSYS. Some functions are actually named
5819 something starting with __ and the normal name is an alias. */
5820 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5830 eval "ac_cv_func_vsnprintf=yes"
5832 echo "configure: failed program was:" >&5
5833 cat conftest.$ac_ext >&5
5835 eval "ac_cv_func_vsnprintf=no"
5840 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5842 cat >> confdefs.h <<\EOF
5843 #define HAVE_VSNPRINTF 1
5847 echo "$ac_t""no" 1>&6
5848 SNPRINTF='snprintf.o'
5852 cat > conftest.$ac_ext <<EOF
5853 #line 5854 "configure"
5854 #include "confdefs.h"
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 egrep "snprintf" >/dev/null 2>&1; then
5860 cat >> confdefs.h <<\EOF
5861 #define HAVE_SNPRINTF_DECL 1
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873 egrep "vsnprintf" >/dev/null 2>&1; then
5875 cat >> confdefs.h <<\EOF
5876 #define HAVE_VSNPRINTF_DECL 1
5883 # do this one the hard way in case isinf() is a macro
5884 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5885 echo "configure:5886: checking for isinf" >&5
5886 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6
5889 cat > conftest.$ac_ext <<EOF
5890 #line 5891 "configure"
5891 #include "confdefs.h"
5895 double x = 0.0; int res = isinf(x);
5898 if { (eval echo configure:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5900 ac_cv_func_isinf=yes
5902 echo "configure: failed program was:" >&5
5903 cat conftest.$ac_ext >&5
5910 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5912 if test $ac_cv_func_isinf = yes ; then
5913 cat >> confdefs.h <<\EOF
5914 #define HAVE_ISINF 1
5920 # Look for a way to implement a substitute for isinf()
5921 for ac_func in fpclass fp_class fp_class_d class
5923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5924 echo "configure:5925: checking for $ac_func" >&5
5925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5928 cat > conftest.$ac_ext <<EOF
5929 #line 5930 "configure"
5930 #include "confdefs.h"
5931 /* System header to define __stub macros and hopefully few prototypes,
5932 which can conflict with char $ac_func(); below. */
5934 /* Override any gcc2 internal prototype to avoid an error. */
5935 /* We use char because int might match the return type of a gcc2
5936 builtin and then its argument prototype would still apply. */
5941 /* The GNU C library defines this for functions which it implements
5942 to always fail with ENOSYS. Some functions are actually named
5943 something starting with __ and the normal name is an alias. */
5944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5954 eval "ac_cv_func_$ac_func=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 eval "ac_cv_func_$ac_func=no"
5964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5965 echo "$ac_t""yes" 1>&6
5966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5967 cat >> confdefs.h <<EOF
5968 #define $ac_tr_func 1
5972 echo "$ac_t""no" 1>&6
5979 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5980 echo "configure:5981: checking for getrusage" >&5
5981 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5987 /* System header to define __stub macros and hopefully few prototypes,
5988 which can conflict with char getrusage(); below. */
5990 /* Override any gcc2 internal prototype to avoid an error. */
5991 /* We use char because int might match the return type of a gcc2
5992 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6008 if { (eval echo configure:6009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6010 eval "ac_cv_func_getrusage=yes"
6012 echo "configure: failed program was:" >&5
6013 cat conftest.$ac_ext >&5
6015 eval "ac_cv_func_getrusage=no"
6020 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6021 echo "$ac_t""yes" 1>&6
6022 cat >> confdefs.h <<\EOF
6023 #define HAVE_GETRUSAGE 1
6027 echo "$ac_t""no" 1>&6
6028 GETRUSAGE='getrusage.o'
6032 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6033 echo "configure:6034: checking for srandom" >&5
6034 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6035 echo $ac_n "(cached) $ac_c" 1>&6
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6040 /* System header to define __stub macros and hopefully few prototypes,
6041 which can conflict with char srandom(); below. */
6043 /* Override any gcc2 internal prototype to avoid an error. */
6044 /* We use char because int might match the return type of a gcc2
6045 builtin and then its argument prototype would still apply. */
6050 /* The GNU C library defines this for functions which it implements
6051 to always fail with ENOSYS. Some functions are actually named
6052 something starting with __ and the normal name is an alias. */
6053 #if defined (__stub_srandom) || defined (__stub___srandom)
6061 if { (eval echo configure:6062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6063 eval "ac_cv_func_srandom=yes"
6065 echo "configure: failed program was:" >&5
6066 cat conftest.$ac_ext >&5
6068 eval "ac_cv_func_srandom=no"
6073 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6074 echo "$ac_t""yes" 1>&6
6075 cat >> confdefs.h <<\EOF
6076 #define HAVE_SRANDOM 1
6080 echo "$ac_t""no" 1>&6
6085 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6086 echo "configure:6087: checking for gethostname" >&5
6087 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char gethostname(); below. */
6096 /* Override any gcc2 internal prototype to avoid an error. */
6097 /* We use char because int might match the return type of a gcc2
6098 builtin and then its argument prototype would still apply. */
6103 /* The GNU C library defines this for functions which it implements
6104 to always fail with ENOSYS. Some functions are actually named
6105 something starting with __ and the normal name is an alias. */
6106 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 eval "ac_cv_func_gethostname=yes"
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6121 eval "ac_cv_func_gethostname=no"
6126 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6128 cat >> confdefs.h <<\EOF
6129 #define HAVE_GETHOSTNAME 1
6133 echo "$ac_t""no" 1>&6
6134 GETHOSTNAME='gethostname.o'
6138 echo $ac_n "checking for random""... $ac_c" 1>&6
6139 echo "configure:6140: checking for random" >&5
6140 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* System header to define __stub macros and hopefully few prototypes,
6147 which can conflict with char random(); below. */
6149 /* Override any gcc2 internal prototype to avoid an error. */
6150 /* We use char because int might match the return type of a gcc2
6151 builtin and then its argument prototype would still apply. */
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined (__stub_random) || defined (__stub___random)
6167 if { (eval echo configure:6168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6169 eval "ac_cv_func_random=yes"
6171 echo "configure: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6174 eval "ac_cv_func_random=no"
6179 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6180 echo "$ac_t""yes" 1>&6
6181 cat >> confdefs.h <<\EOF
6182 #define HAVE_RANDOM 1
6186 echo "$ac_t""no" 1>&6
6187 MISSING_RANDOM='random.o'
6191 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6192 echo "configure:6193: checking for inet_aton" >&5
6193 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char inet_aton(); below. */
6202 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6209 /* The GNU C library defines this for functions which it implements
6210 to always fail with ENOSYS. Some functions are actually named
6211 something starting with __ and the normal name is an alias. */
6212 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6222 eval "ac_cv_func_inet_aton=yes"
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6227 eval "ac_cv_func_inet_aton=no"
6232 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6233 echo "$ac_t""yes" 1>&6
6234 cat >> confdefs.h <<\EOF
6235 #define HAVE_INET_ATON 1
6239 echo "$ac_t""no" 1>&6
6240 INET_ATON='inet_aton.o'
6244 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6245 echo "configure:6246: checking for strerror" >&5
6246 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6247 echo $ac_n "(cached) $ac_c" 1>&6
6249 cat > conftest.$ac_ext <<EOF
6250 #line 6251 "configure"
6251 #include "confdefs.h"
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char strerror(); below. */
6255 /* Override any gcc2 internal prototype to avoid an error. */
6256 /* We use char because int might match the return type of a gcc2
6257 builtin and then its argument prototype would still apply. */
6262 /* The GNU C library defines this for functions which it implements
6263 to always fail with ENOSYS. Some functions are actually named
6264 something starting with __ and the normal name is an alias. */
6265 #if defined (__stub_strerror) || defined (__stub___strerror)
6273 if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275 eval "ac_cv_func_strerror=yes"
6277 echo "configure: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 eval "ac_cv_func_strerror=no"
6285 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6286 echo "$ac_t""yes" 1>&6
6287 cat >> confdefs.h <<\EOF
6288 #define HAVE_STRERROR 1
6292 echo "$ac_t""no" 1>&6
6293 STRERROR='strerror.o'
6297 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6298 echo "configure:6299: checking for strdup" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char strdup(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_strdup) || defined (__stub___strdup)
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 eval "ac_cv_func_strdup=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_func_strdup=no"
6338 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 cat >> confdefs.h <<\EOF
6341 #define HAVE_STRDUP 1
6345 echo "$ac_t""no" 1>&6
6346 STRDUP='../../utils/strdup.o'
6350 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6351 echo "configure:6352: checking for strtol" >&5
6352 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* System header to define __stub macros and hopefully few prototypes,
6359 which can conflict with char strtol(); below. */
6361 /* Override any gcc2 internal prototype to avoid an error. */
6362 /* We use char because int might match the return type of a gcc2
6363 builtin and then its argument prototype would still apply. */
6368 /* The GNU C library defines this for functions which it implements
6369 to always fail with ENOSYS. Some functions are actually named
6370 something starting with __ and the normal name is an alias. */
6371 #if defined (__stub_strtol) || defined (__stub___strtol)
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 eval "ac_cv_func_strtol=yes"
6383 echo "configure: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6386 eval "ac_cv_func_strtol=no"
6391 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6392 echo "$ac_t""yes" 1>&6
6393 cat >> confdefs.h <<\EOF
6394 #define HAVE_STRTOL 1
6398 echo "$ac_t""no" 1>&6
6403 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6404 echo "configure:6405: checking for strtoul" >&5
6405 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6406 echo $ac_n "(cached) $ac_c" 1>&6
6408 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure"
6410 #include "confdefs.h"
6411 /* System header to define __stub macros and hopefully few prototypes,
6412 which can conflict with char strtoul(); below. */
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6421 /* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6432 if { (eval echo configure:6433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6434 eval "ac_cv_func_strtoul=yes"
6436 echo "configure: failed program was:" >&5
6437 cat conftest.$ac_ext >&5
6439 eval "ac_cv_func_strtoul=no"
6444 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6445 echo "$ac_t""yes" 1>&6
6446 cat >> confdefs.h <<\EOF
6447 #define HAVE_STRTOUL 1
6451 echo "$ac_t""no" 1>&6
6456 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6457 echo "configure:6458: checking for strcasecmp" >&5
6458 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char strcasecmp(); below. */
6467 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6474 /* The GNU C library defines this for functions which it implements
6475 to always fail with ENOSYS. Some functions are actually named
6476 something starting with __ and the normal name is an alias. */
6477 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6485 if { (eval echo configure:6486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6487 eval "ac_cv_func_strcasecmp=yes"
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 eval "ac_cv_func_strcasecmp=no"
6497 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 cat >> confdefs.h <<\EOF
6500 #define HAVE_STRCASECMP 1
6504 echo "$ac_t""no" 1>&6
6505 STRCASECMP='strcasecmp.o'
6509 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6510 echo "configure:6511: checking for cbrt" >&5
6511 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 cat > conftest.$ac_ext <<EOF
6515 #line 6516 "configure"
6516 #include "confdefs.h"
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char cbrt(); below. */
6520 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6527 /* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6540 eval "ac_cv_func_cbrt=yes"
6542 echo "configure: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 eval "ac_cv_func_cbrt=no"
6550 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6551 echo "$ac_t""yes" 1>&6
6552 cat >> confdefs.h <<\EOF
6557 echo "$ac_t""no" 1>&6
6558 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6559 echo "configure:6560: checking for cbrt in -lm" >&5
6560 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 ac_save_LIBS="$LIBS"
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_lib_$ac_lib_var=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_lib_$ac_lib_var=no"
6588 LIBS="$ac_save_LIBS"
6591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 cat >> confdefs.h <<\EOF
6598 echo "$ac_t""no" 1>&6
6604 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6605 # this hackery with HPUXMATHLIB allows us to cope.
6609 if [ -r /lib/pa1.1/libm.a ] ; then
6610 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6615 echo $ac_n "checking for rint""... $ac_c" 1>&6
6616 echo "configure:6617: checking for rint" >&5
6617 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6623 /* System header to define __stub macros and hopefully few prototypes,
6624 which can conflict with char rint(); below. */
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6633 /* The GNU C library defines this for functions which it implements
6634 to always fail with ENOSYS. Some functions are actually named
6635 something starting with __ and the normal name is an alias. */
6636 #if defined (__stub_rint) || defined (__stub___rint)
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_func_rint=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_func_rint=no"
6656 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6658 cat >> confdefs.h <<\EOF
6663 echo "$ac_t""no" 1>&6
6664 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6665 echo "configure:6666: checking for rint in -lm" >&5
6666 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6670 ac_save_LIBS="$LIBS"
6671 LIBS="-lm $HPUXMATHLIB $LIBS"
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6686 eval "ac_cv_lib_$ac_lib_var=yes"
6688 echo "configure: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 eval "ac_cv_lib_$ac_lib_var=no"
6694 LIBS="$ac_save_LIBS"
6697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 cat >> confdefs.h <<\EOF
6704 echo "$ac_t""no" 1>&6
6711 # Readline versions < 2.1 don't have rl_completion_append_character
6712 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6713 echo "configure:6714: checking for rl_completion_append_character" >&5
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure"
6716 #include "confdefs.h"
6718 #ifdef HAVE_READLINE_H
6719 # include <readline.h>
6721 #ifdef HAVE_READLINE_READLINE_H
6722 # include <readline/readline.h>
6725 rl_completion_append_character = 'x';
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 echo "$ac_t""yes" 1>&6
6731 cat >> confdefs.h <<\EOF
6732 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6739 echo "$ac_t""no" 1>&6
6744 # Check whether readline's filename_completion_function is declared.
6745 # Some prehistoric versions of readline, in particular those shipped
6746 # with earlier Cygwins don't have this declared, although it's in the
6748 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6749 echo "configure:6750: checking whether filename_completion_function is declared" >&5
6750 if test "$ac_cv_header_readline_h" = yes; then
6751 _readline_header='readline.h'
6752 elif test "$ac_cv_header_readline_readline_h" = yes; then
6753 _readline_header='readline/readline.h'
6755 _readline_header='xxx'
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 #include <$_readline_header>
6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 egrep "filename_completion_function" >/dev/null 2>&1; then
6765 cat >> confdefs.h <<\EOF
6766 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6769 echo "$ac_t""yes" 1>&6
6772 echo "$ac_t""no" 1>&6
6779 echo $ac_n "checking for finite""... $ac_c" 1>&6
6780 echo "configure:6781: checking for finite" >&5
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
6786 int dummy=finite(1.0);
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 cat >> confdefs.h <<\EOF
6792 #define HAVE_FINITE 1
6794 echo "$ac_t""yes" 1>&6
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6799 echo "$ac_t""no" 1>&6
6803 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6804 echo "configure:6805: checking for sigsetjmp" >&5
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6810 sigjmp_buf x; sigsetjmp(x, 1);
6813 if { (eval echo configure:6814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6815 cat >> confdefs.h <<\EOF
6816 #define HAVE_SIGSETJMP 1
6818 echo "$ac_t""yes" 1>&6
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 echo "$ac_t""no" 1>&6
6828 # Check whether --enable-syslog was given
6829 if test x"${enable_syslog+set}" = xset; then
6830 case $enable_syslog in
6832 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6833 echo "configure:6834: checking for syslog" >&5
6834 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* System header to define __stub macros and hopefully few prototypes,
6841 which can conflict with char syslog(); below. */
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6850 /* The GNU C library defines this for functions which it implements
6851 to always fail with ENOSYS. Some functions are actually named
6852 something starting with __ and the normal name is an alias. */
6853 #if defined (__stub_syslog) || defined (__stub___syslog)
6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6863 eval "ac_cv_func_syslog=yes"
6865 echo "configure: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 eval "ac_cv_func_syslog=no"
6873 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6874 echo "$ac_t""yes" 1>&6
6875 cat >> confdefs.h <<\EOF
6876 #define ENABLE_SYSLOG 1
6880 echo "$ac_t""no" 1>&6
6881 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6889 enableval=$enable_syslog
6890 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6892 esac # $enable_syslog
6899 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6900 echo "configure:6901: checking for optreset" >&5
6901 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6909 extern int optreset; optreset = 1;
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914 pgac_cv_var_int_optreset=yes
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6919 pgac_cv_var_int_optreset=no
6924 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6925 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6926 cat >> confdefs.h <<\EOF
6927 #define HAVE_INT_OPTRESET 1
6933 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6934 echo "configure:6935: checking whether long int is 64 bits" >&5
6935 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 if test "$cross_compiling" = yes; then
6939 pgac_cv_type_long_int_64=no
6940 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6945 typedef long int int64;
6948 * These are globals to discourage the compiler from folding all the
6949 * arithmetic tests down to compile-time constants.
6954 int does_int64_work()
6958 if (sizeof(int64) != 8)
6959 return 0; /* definitely not the right size */
6961 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6969 exit(! does_int64_work());
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6974 pgac_cv_type_long_int_64=yes
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 pgac_cv_type_long_int_64=no
6986 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6988 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6989 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_LONG_INT_64
6997 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6998 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6999 echo "configure:7000: checking whether long long int is 64 bits" >&5
7000 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7003 if test "$cross_compiling" = yes; then
7004 pgac_cv_type_long_long_int_64=no
7005 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 typedef long long int int64;
7013 * These are globals to discourage the compiler from folding all the
7014 * arithmetic tests down to compile-time constants.
7019 int does_int64_work()
7023 if (sizeof(int64) != 8)
7024 return 0; /* definitely not the right size */
7026 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7034 exit(! does_int64_work());
7037 if { (eval echo configure:7038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7039 pgac_cv_type_long_long_int_64=yes
7041 echo "configure: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7044 pgac_cv_type_long_long_int_64=no
7051 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7053 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7054 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7055 cat >> confdefs.h <<\EOF
7056 #define HAVE_LONG_LONG_INT_64
7065 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7066 if [ x$SNPRINTF = x ] ; then
7067 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7068 echo "configure:7069: checking whether snprintf handles 'long long int' as %lld" >&5
7069 if test "$cross_compiling" = yes; then
7070 echo "$ac_t""assuming not on target machine" 1>&6
7071 # Force usage of our own snprintf, since we cannot test foreign snprintf
7072 SNPRINTF='snprintf.o'
7073 INT64_FORMAT='"%lld"'
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure"
7078 #include "confdefs.h"
7080 typedef long long int int64;
7081 #define INT64_FORMAT "%lld"
7086 int does_int64_snprintf_work()
7091 if (sizeof(int64) != 8)
7092 return 0; /* doesn't look like the right size */
7095 snprintf(buf, 100, INT64_FORMAT, c);
7096 if (strcmp(buf, "800000140000005") != 0)
7097 return 0; /* either multiply or snprintf is busted */
7101 exit(! does_int64_snprintf_work());
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7106 echo "$ac_t""yes" 1>&6
7107 INT64_FORMAT='"%lld"'
7110 echo "configure: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7113 echo "$ac_t""no" 1>&6
7114 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7115 echo "configure:7116: checking whether snprintf handles 'long long int' as %qd" >&5
7116 if test "$cross_compiling" = yes; then
7117 echo "$ac_t""assuming not on target machine" 1>&6
7118 # Force usage of our own snprintf, since we cannot test foreign snprintf
7119 SNPRINTF='snprintf.o'
7120 INT64_FORMAT='"%lld"'
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7127 typedef long long int int64;
7128 #define INT64_FORMAT "%qd"
7133 int does_int64_snprintf_work()
7138 if (sizeof(int64) != 8)
7139 return 0; /* doesn't look like the right size */
7142 snprintf(buf, 100, INT64_FORMAT, c);
7143 if (strcmp(buf, "800000140000005") != 0)
7144 return 0; /* either multiply or snprintf is busted */
7148 exit(! does_int64_snprintf_work());
7151 if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7153 echo "$ac_t""yes" 1>&6
7154 INT64_FORMAT='"%qd"'
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 echo "$ac_t""no" 1>&6
7161 # Force usage of our own snprintf, since system snprintf is broken
7162 SNPRINTF='snprintf.o'
7163 INT64_FORMAT='"%lld"'
7174 # here if we previously decided we needed to use our own snprintf
7175 INT64_FORMAT='"%lld"'
7178 # Here if we are not using 'long long int' at all
7179 INT64_FORMAT='"%ld"'
7182 cat >> confdefs.h <<EOF
7183 #define INT64_FORMAT $INT64_FORMAT
7188 for ac_func in strtoll strtoq
7190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_func" >&5
7192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7198 /* System header to define __stub macros and hopefully few prototypes,
7199 which can conflict with char $ac_func(); below. */
7201 /* Override any gcc2 internal prototype to avoid an error. */
7202 /* We use char because int might match the return type of a gcc2
7203 builtin and then its argument prototype would still apply. */
7208 /* The GNU C library defines this for functions which it implements
7209 to always fail with ENOSYS. Some functions are actually named
7210 something starting with __ and the normal name is an alias. */
7211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 eval "ac_cv_func_$ac_func=yes"
7223 echo "configure: failed program was:" >&5
7224 cat conftest.$ac_ext >&5
7226 eval "ac_cv_func_$ac_func=no"
7231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7232 echo "$ac_t""yes" 1>&6
7233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7234 cat >> confdefs.h <<EOF
7235 #define $ac_tr_func 1
7239 echo "$ac_t""no" 1>&6
7243 for ac_func in strtoull strtouq
7245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7246 echo "configure:7247: checking for $ac_func" >&5
7247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7248 echo $ac_n "(cached) $ac_c" 1>&6
7250 cat > conftest.$ac_ext <<EOF
7251 #line 7252 "configure"
7252 #include "confdefs.h"
7253 /* System header to define __stub macros and hopefully few prototypes,
7254 which can conflict with char $ac_func(); below. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7257 /* We use char because int might match the return type of a gcc2
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 eval "ac_cv_func_$ac_func=yes"
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7281 eval "ac_cv_func_$ac_func=no"
7286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7289 cat >> confdefs.h <<EOF
7290 #define $ac_tr_func 1
7294 echo "$ac_t""no" 1>&6
7299 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7300 echo "configure:7301: checking for atexit" >&5
7301 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7302 echo $ac_n "(cached) $ac_c" 1>&6
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7307 /* System header to define __stub macros and hopefully few prototypes,
7308 which can conflict with char atexit(); below. */
7310 /* Override any gcc2 internal prototype to avoid an error. */
7311 /* We use char because int might match the return type of a gcc2
7312 builtin and then its argument prototype would still apply. */
7317 /* The GNU C library defines this for functions which it implements
7318 to always fail with ENOSYS. Some functions are actually named
7319 something starting with __ and the normal name is an alias. */
7320 #if defined (__stub_atexit) || defined (__stub___atexit)
7328 if { (eval echo configure:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7330 eval "ac_cv_func_atexit=yes"
7332 echo "configure: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7335 eval "ac_cv_func_atexit=no"
7340 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7341 echo "$ac_t""yes" 1>&6
7342 cat >> confdefs.h <<\EOF
7343 #define HAVE_ATEXIT 1
7347 echo "$ac_t""no" 1>&6
7348 for ac_func in on_exit
7350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7351 echo "configure:7352: checking for $ac_func" >&5
7352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7353 echo $ac_n "(cached) $ac_c" 1>&6
7355 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure"
7357 #include "confdefs.h"
7358 /* System header to define __stub macros and hopefully few prototypes,
7359 which can conflict with char $ac_func(); below. */
7361 /* Override any gcc2 internal prototype to avoid an error. */
7362 /* We use char because int might match the return type of a gcc2
7363 builtin and then its argument prototype would still apply. */
7368 /* The GNU C library defines this for functions which it implements
7369 to always fail with ENOSYS. Some functions are actually named
7370 something starting with __ and the normal name is an alias. */
7371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7379 if { (eval echo configure:7380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7381 eval "ac_cv_func_$ac_func=yes"
7383 echo "configure: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7386 eval "ac_cv_func_$ac_func=no"
7391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7392 echo "$ac_t""yes" 1>&6
7393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7394 cat >> confdefs.h <<EOF
7395 #define $ac_tr_func 1
7397 cat >> confdefs.h <<\EOF
7398 #define HAVE_ON_EXIT 1
7402 echo "$ac_t""no" 1>&6
7403 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7411 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7412 echo "configure:7413: checking size of unsigned long" >&5
7413 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7414 echo $ac_n "(cached) $ac_c" 1>&6
7416 if test "$cross_compiling" = yes; then
7417 ac_cv_sizeof_unsigned_long=4
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7425 FILE *f=fopen("conftestval", "w");
7427 fprintf(f, "%d\n", sizeof(unsigned long));
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7433 ac_cv_sizeof_unsigned_long=`cat conftestval`
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 ac_cv_sizeof_unsigned_long=0
7444 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7445 cat >> confdefs.h <<EOF
7446 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7450 cat >> confdefs.h <<EOF
7451 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7456 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7457 echo "configure:7458: checking alignment of short" >&5
7458 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7459 echo $ac_n "(cached) $ac_c" 1>&6
7461 if test "$cross_compiling" = yes; then
7462 pgac_cv_alignof_short='sizeof(short)'
7464 cat > conftest.$ac_ext <<EOF
7465 #line 7466 "configure"
7466 #include "confdefs.h"
7468 struct { char filler; short field; } mystruct;
7471 FILE *f=fopen("conftestval", "w");
7473 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7477 if { (eval echo configure:7478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7479 pgac_cv_alignof_short=`cat conftestval`
7481 echo "configure: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7484 pgac_cv_alignof_short='sizeof(short)'
7490 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7491 cat >> confdefs.h <<EOF
7492 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7496 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7497 echo "configure:7498: checking alignment of int" >&5
7498 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7501 if test "$cross_compiling" = yes; then
7502 pgac_cv_alignof_int='sizeof(int)'
7504 cat > conftest.$ac_ext <<EOF
7505 #line 7506 "configure"
7506 #include "confdefs.h"
7508 struct { char filler; int field; } mystruct;
7511 FILE *f=fopen("conftestval", "w");
7513 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7517 if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7519 pgac_cv_alignof_int=`cat conftestval`
7521 echo "configure: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7524 pgac_cv_alignof_int='sizeof(int)'
7530 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7531 cat >> confdefs.h <<EOF
7532 #define ALIGNOF_INT $pgac_cv_alignof_int
7536 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7537 echo "configure:7538: checking alignment of long" >&5
7538 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7539 echo $ac_n "(cached) $ac_c" 1>&6
7541 if test "$cross_compiling" = yes; then
7542 pgac_cv_alignof_long='sizeof(long)'
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7548 struct { char filler; long field; } mystruct;
7551 FILE *f=fopen("conftestval", "w");
7553 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7559 pgac_cv_alignof_long=`cat conftestval`
7561 echo "configure: failed program was:" >&5
7562 cat conftest.$ac_ext >&5
7564 pgac_cv_alignof_long='sizeof(long)'
7570 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7571 cat >> confdefs.h <<EOF
7572 #define ALIGNOF_LONG $pgac_cv_alignof_long
7576 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7577 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7578 echo "configure:7579: checking alignment of long long int" >&5
7579 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7580 echo $ac_n "(cached) $ac_c" 1>&6
7582 if test "$cross_compiling" = yes; then
7583 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7589 struct { char filler; long long int field; } mystruct;
7592 FILE *f=fopen("conftestval", "w");
7594 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7600 pgac_cv_alignof_long_long_int=`cat conftestval`
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7605 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7611 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7612 cat >> confdefs.h <<EOF
7613 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7618 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7619 echo "configure:7620: checking alignment of double" >&5
7620 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7623 if test "$cross_compiling" = yes; then
7624 pgac_cv_alignof_double='sizeof(double)'
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure"
7628 #include "confdefs.h"
7630 struct { char filler; double field; } mystruct;
7633 FILE *f=fopen("conftestval", "w");
7635 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7639 if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7641 pgac_cv_alignof_double=`cat conftestval`
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 pgac_cv_alignof_double='sizeof(double)'
7652 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7653 cat >> confdefs.h <<EOF
7654 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7660 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7661 MAX_ALIGNOF=$pgac_cv_alignof_long
7662 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7663 MAX_ALIGNOF=$pgac_cv_alignof_double
7665 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7666 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7669 MAX_ALIGNOF="$pgac_cv_alignof_double"
7671 cat >> confdefs.h <<EOF
7672 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7676 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7677 echo "configure:7678: checking for POSIX signal interface" >&5
7678 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7681 cat > conftest.$ac_ext <<EOF
7682 #line 7683 "configure"
7683 #include "confdefs.h"
7687 struct sigaction act, oact;
7688 sigemptyset(&act.sa_mask);
7689 act.sa_flags = SA_RESTART;
7690 sigaction(0, &act, &oact);
7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 pgac_cv_func_posix_signals=yes
7697 echo "configure: failed program was:" >&5
7698 cat conftest.$ac_ext >&5
7700 pgac_cv_func_posix_signals=no
7705 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7706 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7707 cat >> confdefs.h <<\EOF
7708 #define HAVE_POSIX_SIGNALS
7712 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7716 # Check for Tcl configuration script tclConfig.sh
7717 if test "$with_tcl" = yes; then
7718 for ac_prog in tclsh tcl
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_word" >&5
7724 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7732 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7737 for ac_dir in $ac_dummy; do
7738 test -z "$ac_dir" && ac_dir=.
7739 if test -f $ac_dir/$ac_word; then
7740 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7748 TCLSH="$ac_cv_path_TCLSH"
7749 if test -n "$TCLSH"; then
7750 echo "$ac_t""$TCLSH" 1>&6
7752 echo "$ac_t""no" 1>&6
7755 test -n "$TCLSH" && break
7758 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7759 echo "configure:7760: checking for tclConfig.sh" >&5
7760 # Let user override test
7761 if test -z "$TCL_CONFIG_SH"; then
7762 pgac_test_dirs="$with_tclconfig"
7764 set X $pgac_test_dirs; shift
7765 if test $# -eq 0; then
7766 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7767 set X `echo 'puts $auto_path' | $TCLSH`; shift
7771 if test -r "$pgac_dir/tclConfig.sh"; then
7772 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7778 if test -z "$TCL_CONFIG_SH"; then
7779 echo "$ac_t""no" 1>&6
7780 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7782 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7789 # Check for Tk configuration script tkConfig.sh
7790 if test "$with_tk" = yes; then
7791 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7792 echo "configure:7793: checking for tkConfig.sh" >&5
7793 # Let user override test
7794 if test -z "$TK_CONFIG_SH"; then
7795 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7797 set X $pgac_test_dirs; shift
7798 if test $# -eq 0; then
7799 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7800 set X `echo 'puts $auto_path' | $TCLSH`; shift
7804 if test -r "$pgac_dir/tkConfig.sh"; then
7805 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7811 if test -z "$TK_CONFIG_SH"; then
7812 echo "$ac_t""no" 1>&6
7813 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7815 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7824 # Check for DocBook and tools
7826 for ac_prog in onsgmls nsgmls
7828 # Extract the first word of "$ac_prog", so it can be a program name with args.
7829 set dummy $ac_prog; ac_word=$2
7830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7831 echo "configure:7832: checking for $ac_word" >&5
7832 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7833 echo $ac_n "(cached) $ac_c" 1>&6
7835 if test -n "$NSGMLS"; then
7836 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7840 for ac_dir in $ac_dummy; do
7841 test -z "$ac_dir" && ac_dir=.
7842 if test -f $ac_dir/$ac_word; then
7843 ac_cv_prog_NSGMLS="$ac_prog"
7850 NSGMLS="$ac_cv_prog_NSGMLS"
7851 if test -n "$NSGMLS"; then
7852 echo "$ac_t""$NSGMLS" 1>&6
7854 echo "$ac_t""no" 1>&6
7857 test -n "$NSGMLS" && break
7860 # If you don't have nsgmls you won't get very far, so save the cycles.
7861 if test -n "$NSGMLS"; then
7862 for ac_prog in openjade jade
7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
7865 set dummy $ac_prog; ac_word=$2
7866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7867 echo "configure:7868: checking for $ac_word" >&5
7868 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 if test -n "$JADE"; then
7872 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7876 for ac_dir in $ac_dummy; do
7877 test -z "$ac_dir" && ac_dir=.
7878 if test -f $ac_dir/$ac_word; then
7879 ac_cv_prog_JADE="$ac_prog"
7886 JADE="$ac_cv_prog_JADE"
7887 if test -n "$JADE"; then
7888 echo "$ac_t""$JADE" 1>&6
7890 echo "$ac_t""no" 1>&6
7893 test -n "$JADE" && break
7897 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7898 echo "configure:7899: checking for DocBook V3.1" >&5
7899 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat >conftest.sgml <<EOF
7903 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7907 <title>random</title>
7909 <title>testsect</title>
7916 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7917 if test $? -eq 0; then
7918 pgac_cv_check_docbook=yes
7920 pgac_cv_check_docbook=no
7925 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7927 have_docbook=$pgac_cv_check_docbook
7930 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7931 echo "configure:7932: checking for DocBook stylesheets" >&5
7932 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7935 if test -n "$DOCBOOKSTYLE"; then
7936 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7938 for pgac_prefix in /usr /usr/local /opt; do
7939 for pgac_infix in share lib; do
7940 for pgac_postfix in \
7941 sgml/stylesheets/nwalsh-modular \
7942 sgml/stylesheets/docbook \
7943 sgml/docbook/dsssl/modular
7945 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7946 if test -r "$pgac_candidate/html/docbook.dsl" \
7947 && test -r "$pgac_candidate/print/docbook.dsl"
7949 pgac_cv_path_stylesheets=$pgac_candidate
7958 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7960 if test -n "$DOCBOOKSTYLE"; then
7961 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7963 echo "$ac_t""no" 1>&6
7965 for ac_prog in sgmlspl
7967 # Extract the first word of "$ac_prog", so it can be a program name with args.
7968 set dummy $ac_prog; ac_word=$2
7969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7970 echo "configure:7971: checking for $ac_word" >&5
7971 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7972 echo $ac_n "(cached) $ac_c" 1>&6
7974 if test -n "$SGMLSPL"; then
7975 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7979 for ac_dir in $ac_dummy; do
7980 test -z "$ac_dir" && ac_dir=.
7981 if test -f $ac_dir/$ac_word; then
7982 ac_cv_prog_SGMLSPL="$ac_prog"
7989 SGMLSPL="$ac_cv_prog_SGMLSPL"
7990 if test -n "$SGMLSPL"; then
7991 echo "$ac_t""$SGMLSPL" 1>&6
7993 echo "$ac_t""no" 1>&6
7996 test -n "$SGMLSPL" && break
8001 # check whether 'test -ef' works
8002 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
8011 if test "$test_ef_works" = yes ; then
8012 # prepare build tree if outside source tree
8013 if test "$srcdir" -ef . ; then : ; else
8014 abs_top_srcdir=`cd $srcdir && pwd`
8015 echo $ac_n "preparing build tree... $ac_c" 1>&6
8016 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8017 || { echo "configure: error: failed" 1>&2; exit 1; }
8018 echo "$ac_t""done" 1>&6
8023 cat > confcache <<\EOF
8024 # This file is a shell script that caches the results of configure
8025 # tests run on this system so they can be shared between configure
8026 # scripts and configure runs. It is not useful on other systems.
8027 # If it contains results you don't want to keep, you may remove or edit it.
8029 # By default, configure uses ./config.cache as the cache file,
8030 # creating it if it does not exist already. You can give configure
8031 # the --cache-file=FILE option to use a different cache file; that is
8032 # what configure does when it calls configure scripts in
8033 # subdirectories, so they share the cache.
8034 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8035 # config.status only pays attention to the cache file if you give it the
8036 # --recheck option to rerun configure.
8039 # The following way of writing the cache mishandles newlines in values,
8040 # but we know of no workaround that is simple, portable, and efficient.
8041 # So, don't put newlines in cache variables' values.
8042 # Ultrix sh set writes to stderr and can't be redirected directly,
8043 # and sets the high bit in the cache file unless we assign to the vars.
8045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8047 # `set' does not quote correctly, so add quotes (double-quote substitution
8048 # turns \\\\ into \\, and sed turns \\ into \).
8050 -e "s/'/'\\\\''/g" \
8051 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8054 # `set' quotes correctly as required by POSIX, so do not add quotes.
8055 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8058 if cmp -s $cache_file confcache; then
8061 if test -w $cache_file; then
8062 echo "updating cache $cache_file"
8063 cat confcache > $cache_file
8065 echo "not updating unwritable cache $cache_file"
8070 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8072 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8073 # Let make expand exec_prefix.
8074 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8076 # Any assignment to VPATH causes Sun make to only execute
8077 # the first set of double-colon rules, so remove it if not needed.
8078 # If there is a colon in the path, we need to keep it.
8079 if test "x$srcdir" = x.; then
8080 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8083 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8085 DEFS=-DHAVE_CONFIG_H
8087 # Without the "./", some shells look in PATH for config.status.
8088 : ${CONFIG_STATUS=./config.status}
8090 echo creating $CONFIG_STATUS
8091 rm -f $CONFIG_STATUS
8092 cat > $CONFIG_STATUS <<EOF
8094 # Generated automatically by configure.
8095 # Run this file to recreate the current configuration.
8096 # This directory was configured as follows,
8097 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8099 # $0 $ac_configure_args
8101 # Compiler output produced by configure, useful for debugging
8102 # configure, is in ./config.log if it exists.
8104 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8107 case "\$ac_option" in
8108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8109 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8110 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8111 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8112 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8114 -help | --help | --hel | --he | --h)
8115 echo "\$ac_cs_usage"; exit 0 ;;
8116 *) echo "\$ac_cs_usage"; exit 1 ;;
8120 ac_given_srcdir=$srcdir
8122 trap 'rm -fr `echo "
8126 src/backend/port/Makefile
8127 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8129 cat >> $CONFIG_STATUS <<EOF
8131 # Protect against being on the right side of a sed subst in config.status.
8132 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8133 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8138 s%@CFLAGS@%$CFLAGS%g
8139 s%@CPPFLAGS@%$CPPFLAGS%g
8140 s%@CXXFLAGS@%$CXXFLAGS%g
8141 s%@FFLAGS@%$FFLAGS%g
8143 s%@LDFLAGS@%$LDFLAGS%g
8145 s%@exec_prefix@%$exec_prefix%g
8146 s%@prefix@%$prefix%g
8147 s%@program_transform_name@%$program_transform_name%g
8148 s%@bindir@%$bindir%g
8149 s%@sbindir@%$sbindir%g
8150 s%@libexecdir@%$libexecdir%g
8151 s%@datadir@%$datadir%g
8152 s%@sysconfdir@%$sysconfdir%g
8153 s%@sharedstatedir@%$sharedstatedir%g
8154 s%@localstatedir@%$localstatedir%g
8155 s%@libdir@%$libdir%g
8156 s%@includedir@%$includedir%g
8157 s%@oldincludedir@%$oldincludedir%g
8158 s%@docdir@%$docdir%g
8159 s%@mandir@%$mandir%g
8160 s%@VERSION@%$VERSION%g
8162 s%@host_alias@%$host_alias%g
8163 s%@host_cpu@%$host_cpu%g
8164 s%@host_vendor@%$host_vendor%g
8165 s%@host_os@%$host_os%g
8166 s%@PORTNAME@%$PORTNAME%g
8168 s%@MULTIBYTE@%$MULTIBYTE%g
8169 s%@default_port@%$default_port%g
8170 s%@enable_shared@%$enable_shared%g
8171 s%@enable_rpath@%$enable_rpath%g
8173 s%@EXEEXT@%$EXEEXT%g
8176 s%@autodepend@%$autodepend%g
8177 s%@INCLUDES@%$INCLUDES%g
8178 s%@with_tcl@%$with_tcl%g
8179 s%@with_tk@%$with_tk%g
8180 s%@with_perl@%$with_perl%g
8181 s%@PYTHON@%$PYTHON%g
8182 s%@python_version@%$python_version%g
8183 s%@python_prefix@%$python_prefix%g
8184 s%@python_execprefix@%$python_execprefix%g
8185 s%@python_configdir@%$python_configdir%g
8186 s%@python_moduledir@%$python_moduledir%g
8187 s%@python_extmakefile@%$python_extmakefile%g
8188 s%@with_python@%$with_python%g
8189 s%@with_java@%$with_java%g
8190 s%@with_krb4@%$with_krb4%g
8191 s%@with_krb5@%$with_krb5%g
8192 s%@krb_srvtab@%$krb_srvtab%g
8193 s%@with_openssl@%$with_openssl%g
8194 s%@enable_odbc@%$enable_odbc%g
8195 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8196 s%@ELF_SYS@%$ELF_SYS%g
8198 s%@CXXCPP@%$CXXCPP%g
8200 s%@with_CXX@%$with_CXX%g
8203 s%@FLEXFLAGS@%$FLEXFLAGS%g
8206 s%@with_gnu_ld@%$with_gnu_ld%g
8207 s%@ld_R_works@%$ld_R_works%g
8208 s%@RANLIB@%$RANLIB%g
8209 s%@LORDER@%$LORDER%g
8213 s%@YFLAGS@%$YFLAGS%g
8215 s%@SNPRINTF@%$SNPRINTF%g
8217 s%@GETRUSAGE@%$GETRUSAGE%g
8218 s%@SRANDOM@%$SRANDOM%g
8219 s%@GETHOSTNAME@%$GETHOSTNAME%g
8220 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8221 s%@INET_ATON@%$INET_ATON%g
8222 s%@STRERROR@%$STRERROR%g
8223 s%@STRDUP@%$STRDUP%g
8224 s%@STRTOL@%$STRTOL%g
8225 s%@STRTOUL@%$STRTOUL%g
8226 s%@STRCASECMP@%$STRCASECMP%g
8227 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8228 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8230 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8231 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8232 s%@NSGMLS@%$NSGMLS%g
8234 s%@have_docbook@%$have_docbook%g
8235 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8236 s%@SGMLSPL@%$SGMLSPL%g
8237 s%@abs_top_srcdir@%$abs_top_srcdir%g
8242 cat >> $CONFIG_STATUS <<\EOF
8244 # Split the substitutions into bite-sized pieces for seds with
8245 # small command number limits, like on Digital OSF/1 and HP-UX.
8246 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8247 ac_file=1 # Number of current file.
8248 ac_beg=1 # First line for current file.
8249 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8252 while $ac_more_lines; do
8253 if test $ac_beg -gt 1; then
8254 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8256 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8258 if test ! -s conftest.s$ac_file; then
8260 rm -f conftest.s$ac_file
8262 if test -z "$ac_sed_cmds"; then
8263 ac_sed_cmds="sed -f conftest.s$ac_file"
8265 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8267 ac_file=`expr $ac_file + 1`
8269 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8272 if test -z "$ac_sed_cmds"; then
8277 cat >> $CONFIG_STATUS <<EOF
8279 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8282 src/backend/port/Makefile
8285 cat >> $CONFIG_STATUS <<\EOF
8286 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8287 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8289 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8290 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8291 *) ac_file_in="${ac_file}.in" ;;
8294 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8296 # Remove last slash and all that follows it. Not all systems have dirname.
8297 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8298 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8299 # The file is in a subdirectory.
8300 test ! -d "$ac_dir" && mkdir "$ac_dir"
8301 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8302 # A "../" for each directory in $ac_dir_suffix.
8303 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8305 ac_dir_suffix= ac_dots=
8308 case "$ac_given_srcdir" in
8310 if test -z "$ac_dots"; then top_srcdir=.
8311 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8312 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8314 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8315 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8319 echo creating "$ac_file"
8321 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8323 *Makefile*) ac_comsub="1i\\
8324 # $configure_input" ;;
8328 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8330 s%@configure_input@%$configure_input%g
8331 s%@srcdir@%$srcdir%g
8332 s%@top_srcdir@%$top_srcdir%g
8333 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8340 # ac_d sets the value in "#define NAME VALUE" lines.
8341 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8342 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8345 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8346 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8347 ac_uB='\([ ]\)%\1#\2define\3'
8350 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8351 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8352 ac_eB='$%\1#\2define\3'
8356 if test "${CONFIG_HEADERS+set}" != set; then
8358 cat >> $CONFIG_STATUS <<EOF
8359 CONFIG_HEADERS="src/include/config.h"
8361 cat >> $CONFIG_STATUS <<\EOF
8363 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8366 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8367 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8368 *) ac_file_in="${ac_file}.in" ;;
8371 echo creating $ac_file
8373 rm -f conftest.frag conftest.in conftest.out
8374 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8375 cat $ac_file_inputs > conftest.in
8379 # Transform confdefs.h into a sed script conftest.vals that substitutes
8380 # the proper values into config.h.in to produce config.h. And first:
8381 # Protect against being on the right side of a sed subst in config.status.
8382 # Protect against being in an unquoted here document in config.status.
8384 cat > conftest.hdr <<\EOF
8387 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8391 sed -n -f conftest.hdr confdefs.h > conftest.vals
8394 # This sed command replaces #undef with comments. This is necessary, for
8395 # example, in the case of _POSIX_SOURCE, which is predefined and required
8396 # on some systems where configure will not decide to define it.
8397 cat >> conftest.vals <<\EOF
8398 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8401 # Break up conftest.vals because some shells have a limit on
8402 # the size of here documents, and old seds have small limits too.
8407 ac_lines=`grep -c . conftest.vals`
8408 # grep -c gives empty output for an empty file on some AIX systems.
8409 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8410 # Write a limited-size here document to conftest.frag.
8411 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8412 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8414 sed -f conftest.frag conftest.in > conftest.out
8416 mv conftest.out conftest.in
8418 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8420 mv conftest.tail conftest.vals
8424 cat >> $CONFIG_STATUS <<\EOF
8425 rm -f conftest.frag conftest.h
8426 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8427 cat conftest.in >> conftest.h
8429 if cmp -s $ac_file conftest.h 2>/dev/null; then
8430 echo "$ac_file is unchanged"
8433 # Remove last slash and all that follows it. Not all systems have dirname.
8434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8436 # The file is in a subdirectory.
8437 test ! -d "$ac_dir" && mkdir "$ac_dir"
8440 mv conftest.h $ac_file
8446 cat >> $CONFIG_STATUS <<EOF
8447 ac_sources="src/backend/port/dynloader/${template}.c src/backend/port/dynloader/${template}.h src/include/port/${template}.h src/makefiles/Makefile.${template} src/backend/port/tas/${tas_file}"
8448 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8451 cat >> $CONFIG_STATUS <<\EOF
8452 srcdir=$ac_given_srcdir
8453 while test -n "$ac_sources"; do
8454 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8455 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8457 echo "linking $srcdir/$ac_source to $ac_dest"
8459 if test ! -r $srcdir/$ac_source; then
8460 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8464 # Make relative symlinks.
8465 # Remove last slash and all that follows it. Not all systems have dirname.
8466 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8467 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8468 # The dest file is in a subdirectory.
8469 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8470 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8471 # A "../" for each directory in $ac_dest_dir_suffix.
8472 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8474 ac_dest_dir_suffix= ac_dots=
8478 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8479 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8482 # Make a symlink if possible; otherwise try a hard link.
8483 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8484 ln $srcdir/$ac_source $ac_dest; then :
8486 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8490 cat >> $CONFIG_STATUS <<EOF
8493 cat >> $CONFIG_STATUS <<\EOF
8495 # Update timestamp for config.h (see Makefile.global)
8496 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8500 chmod +x $CONFIG_STATUS
8501 rm -fr confdefs* $ac_clean_files
8502 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1