6 # $Header: /cvsroot/pgsql/configure,v 1.68 2000/10/24 14:55:28 tgl Exp $
11 # Look for Flex, set the output variable FLEX to its path if found.
12 # Avoid the buggy version 2.5.3. Also find Flex if its installed
13 # under `lex', but do not accept other Lex programs.
18 # Autoconf macros for configuring the build of Python extension modules
20 # $Header: /cvsroot/pgsql/configure,v 1.68 2000/10/24 14:55:28 tgl Exp $
25 # Look for Python and set the output variable `PYTHON'
26 # to `python' if found, empty otherwise.
32 # Finds the names of various install dirs and helper files
33 # necessary to build a Python extension module.
35 # It would be nice if we could check whether the current setup allows
36 # the build of the shared module. Future project.
39 # $Header: /cvsroot/pgsql/configure,v 1.68 2000/10/24 14:55:28 tgl Exp $
41 # Autoconf macros to check for Tcl related things
47 # PGAC_PATH_TCLCONFIGSH([SEARCH-PATH])
48 # ------------------------------------
49 # PGAC_PATH_TCLCONFIGSH
52 # PGAC_PATH_TKCONFIGSH([SEARCH-PATH])
53 # ------------------------------------
54 # PGAC_PATH_TKCONFIGSH
56 # Guess values for system-dependent variables and create Makefiles.
57 # Generated automatically using autoconf version 2.13
58 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
60 # This configure script is free software; the Free Software Foundation
61 # gives unlimited permission to copy, distribute and modify it.
65 ac_default_prefix=/usr/local
66 # Any additions from configure.in:
67 ac_default_prefix=/usr/local/pgsql
69 --with-includes=DIRS look for additional header files in DIRS"
71 --with-libraries=DIRS look for additional libraries in DIRS"
73 --with-libs=DIRS alternative spelling of --with-libraries"
75 --enable-locale enable locale support"
77 --enable-recode enable character set recode support"
79 --enable-multibyte enable multibyte character support"
81 --with-pgport=PORTNUM change default port number [5432]"
83 --with-maxbackends=N set default maximum number of connections [32]"
85 --disable-shared do not build shared libraries"
87 --enable-depend turn on automatic dependency tracking"
89 --enable-debug build with debugging symbols (-g)"
91 --enable-cassert enable assertion checks (for debugging)"
93 --with-tcl build Tcl and Tk interfaces"
95 --without-tk do not build Tk interfaces if Tcl is enabled"
97 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
99 --with-tkconfig=DIR tkConfig.sh is in DIR"
101 --with-perl build Perl interface and PL/Perl"
103 --with-python build Python interface module"
105 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
107 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
109 --with-krb-srvnam=NAME name of the PostgreSQL service principal in Kerberos [postgres]"
111 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
113 --enable-odbc build the ODBC driver package"
115 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
117 --with-CXX build C++ modules (libpq++)"
119 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
121 --enable-syslog enable logging to syslog"
123 # Initialize some variables set by options.
124 # The variables have the same names as the options, with
125 # dashes changed to underlines.
127 cache_file=./config.cache
136 program_transform_name=s,x,x,
144 bindir='${exec_prefix}/bin'
145 sbindir='${exec_prefix}/sbin'
146 libexecdir='${exec_prefix}/libexec'
147 datadir='${prefix}/share'
148 sysconfdir='${prefix}/etc'
149 sharedstatedir='${prefix}/com'
150 localstatedir='${prefix}/var'
151 libdir='${exec_prefix}/lib'
152 includedir='${prefix}/include'
153 oldincludedir='/usr/include'
154 docdir='${prefix}/doc'
155 mandir='${prefix}/man'
157 # Initialize some other variables.
160 SHELL=${CONFIG_SHELL-/bin/sh}
161 # Maximum number of lines to put in a shell here document.
168 # If the previous option needs an argument, assign it.
169 if test -n "$ac_prev"; then
170 eval "$ac_prev=\$ac_option"
176 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
180 # Accept the important Cygnus configure options, so we can diagnose typos.
184 -bindir | --bindir | --bindi | --bind | --bin | --bi)
186 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
187 bindir="$ac_optarg" ;;
189 -build | --build | --buil | --bui | --bu)
191 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
192 build="$ac_optarg" ;;
194 -cache-file | --cache-file | --cache-fil | --cache-fi \
195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
196 ac_prev=cache_file ;;
197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
199 cache_file="$ac_optarg" ;;
201 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
203 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
205 datadir="$ac_optarg" ;;
207 -disable-* | --disable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}=no" ;;
216 -enable-* | --enable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
227 eval "enable_${ac_feature}='$ac_optarg'" ;;
229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
231 | --exec | --exe | --ex)
232 ac_prev=exec_prefix ;;
233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
235 | --exec=* | --exe=* | --ex=*)
236 exec_prefix="$ac_optarg" ;;
238 -gas | --gas | --ga | --g)
239 # Obsolete; use --with-gas.
242 -help | --help | --hel | --he)
243 # Omit some internal or obsolete options to make the list less imposing.
244 # This message is too long to be a string in the A/UX 3.1 sh.
246 Usage: configure [options] [host]
247 Options: [defaults in brackets after descriptions]
249 --cache-file=FILE cache test results in FILE
250 --help print this message
251 --no-create do not create output files
252 --quiet, --silent do not print \`checking...' messages
253 --version print the version of autoconf that created configure
254 Directory and file names:
255 --prefix=PREFIX install architecture-independent files in PREFIX
257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
259 --bindir=DIR user executables in DIR [EPREFIX/bin]
260 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
261 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
262 --datadir=DIR read-only architecture-independent data in DIR
264 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
265 --sharedstatedir=DIR modifiable architecture-independent data in DIR
267 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
268 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
269 --includedir=DIR C header files in DIR [PREFIX/include]
270 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
271 --docdir=DIR doc documentation in DIR [PREFIX/doc]
272 --mandir=DIR man documentation in DIR [PREFIX/man]
273 --srcdir=DIR find the sources in DIR [configure dir or ..]
274 --program-prefix=PREFIX prepend PREFIX to installed program names
275 --program-suffix=SUFFIX append SUFFIX to installed program names
276 --program-transform-name=PROGRAM
277 run sed PROGRAM on installed program names
281 --build=BUILD configure for building on BUILD [BUILD=HOST]
282 --host=HOST configure for HOST [guessed]
283 --target=TARGET configure for TARGET [TARGET=HOST]
284 Features and packages:
285 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
286 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
287 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
288 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
289 --x-includes=DIR X include files are in DIR
290 --x-libraries=DIR X library files are in DIR
292 if test -n "$ac_help"; then
293 echo "--enable and --with options recognized:$ac_help"
297 -host | --host | --hos | --ho)
299 -host=* | --host=* | --hos=* | --ho=*)
302 -includedir | --includedir | --includedi | --included | --include \
303 | --includ | --inclu | --incl | --inc)
304 ac_prev=includedir ;;
305 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
306 | --includ=* | --inclu=* | --incl=* | --inc=*)
307 includedir="$ac_optarg" ;;
309 -docdir | --docdir | --infodi | --infod | --doc | --inf)
311 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
312 docdir="$ac_optarg" ;;
314 -libdir | --libdir | --libdi | --libd)
316 -libdir=* | --libdir=* | --libdi=* | --libd=*)
317 libdir="$ac_optarg" ;;
319 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
320 | --libexe | --libex | --libe)
321 ac_prev=libexecdir ;;
322 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
323 | --libexe=* | --libex=* | --libe=*)
324 libexecdir="$ac_optarg" ;;
326 -localstatedir | --localstatedir | --localstatedi | --localstated \
327 | --localstate | --localstat | --localsta | --localst \
328 | --locals | --local | --loca | --loc | --lo)
329 ac_prev=localstatedir ;;
330 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
331 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
332 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
333 localstatedir="$ac_optarg" ;;
335 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
337 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
338 mandir="$ac_optarg" ;;
341 # Obsolete; use --without-fp.
344 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
348 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
349 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
352 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
353 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
354 | --oldin | --oldi | --old | --ol | --o)
355 ac_prev=oldincludedir ;;
356 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
357 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
358 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
359 oldincludedir="$ac_optarg" ;;
361 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
363 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 prefix="$ac_optarg" ;;
366 -program-prefix | --program-prefix | --program-prefi | --program-pref \
367 | --program-pre | --program-pr | --program-p)
368 ac_prev=program_prefix ;;
369 -program-prefix=* | --program-prefix=* | --program-prefi=* \
370 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
371 program_prefix="$ac_optarg" ;;
373 -program-suffix | --program-suffix | --program-suffi | --program-suff \
374 | --program-suf | --program-su | --program-s)
375 ac_prev=program_suffix ;;
376 -program-suffix=* | --program-suffix=* | --program-suffi=* \
377 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
378 program_suffix="$ac_optarg" ;;
380 -program-transform-name | --program-transform-name \
381 | --program-transform-nam | --program-transform-na \
382 | --program-transform-n | --program-transform- \
383 | --program-transform | --program-transfor \
384 | --program-transfo | --program-transf \
385 | --program-trans | --program-tran \
386 | --progr-tra | --program-tr | --program-t)
387 ac_prev=program_transform_name ;;
388 -program-transform-name=* | --program-transform-name=* \
389 | --program-transform-nam=* | --program-transform-na=* \
390 | --program-transform-n=* | --program-transform-=* \
391 | --program-transform=* | --program-transfor=* \
392 | --program-transfo=* | --program-transf=* \
393 | --program-trans=* | --program-tran=* \
394 | --progr-tra=* | --program-tr=* | --program-t=*)
395 program_transform_name="$ac_optarg" ;;
397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
398 | -silent | --silent | --silen | --sile | --sil)
401 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
403 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
405 sbindir="$ac_optarg" ;;
407 -sharedstatedir | --sharedstatedir | --sharedstatedi \
408 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
409 | --sharedst | --shareds | --shared | --share | --shar \
411 ac_prev=sharedstatedir ;;
412 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
413 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
414 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
416 sharedstatedir="$ac_optarg" ;;
418 -site | --site | --sit)
420 -site=* | --site=* | --sit=*)
423 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
425 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 srcdir="$ac_optarg" ;;
428 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
429 | --syscon | --sysco | --sysc | --sys | --sy)
430 ac_prev=sysconfdir ;;
431 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
432 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
433 sysconfdir="$ac_optarg" ;;
435 -target | --target | --targe | --targ | --tar | --ta | --t)
437 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
438 target="$ac_optarg" ;;
440 -v | -verbose | --verbose | --verbos | --verbo | --verb)
443 -version | --version | --versio | --versi | --vers)
444 echo "configure generated by autoconf version 2.13"
448 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}='$ac_optarg'" ;;
460 -without-* | --without-*)
461 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
462 # Reject names that are not valid shell variable names.
463 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
466 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}=no" ;;
470 # Obsolete; use --with-x.
473 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
474 | --x-incl | --x-inc | --x-in | --x-i)
475 ac_prev=x_includes ;;
476 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
477 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
478 x_includes="$ac_optarg" ;;
480 -x-libraries | --x-libraries | --x-librarie | --x-librari \
481 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
482 ac_prev=x_libraries ;;
483 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
484 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
485 x_libraries="$ac_optarg" ;;
487 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
491 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
492 echo "configure: warning: $ac_option: invalid host type" 1>&2
494 if test "x$nonopt" != xNONE; then
495 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
503 if test -n "$ac_prev"; then
504 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
507 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
509 # File descriptor usage:
512 # 2 errors and warnings
513 # 3 some systems may open it to /dev/tty
514 # 4 used on the Kubota Titan
515 # 6 checking for... messages and results
516 # 5 compiler messages saved in config.log
517 if test "$silent" = yes; then
525 This file contains any messages produced by compilers while
526 running configure, to aid debugging if configure makes a mistake.
529 # Strip out --no-create and --no-recursion so they do not pile up.
530 # Also quote any args containing shell metacharacters.
535 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
536 | --no-cr | --no-c) ;;
537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
539 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
540 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
541 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
546 # Only set these to C if already set. These must not be set unconditionally
547 # because not all systems understand e.g. LANG=C (notably SCO).
548 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
549 # Non-C LC_CTYPE values break the ctype check.
550 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
551 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
552 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
553 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
556 rm -rf conftest* confdefs.h
557 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
560 # A filename unique to this package, relative to the directory that
561 # configure is in, which we can look for to find out if srcdir is correct.
562 ac_unique_file=src/backend/access/common/heaptuple.c
564 # Find the source files, if location was not specified.
565 if test -z "$srcdir"; then
566 ac_srcdir_defaulted=yes
567 # Try the directory containing this script, then its parent.
569 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
570 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
572 if test ! -r $srcdir/$ac_unique_file; then
576 ac_srcdir_defaulted=no
578 if test ! -r $srcdir/$ac_unique_file; then
579 if test "$ac_srcdir_defaulted" = yes; then
580 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
582 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
585 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
587 # Prefer explicitly selected file to automatically selected ones.
588 if test -z "$CONFIG_SITE"; then
589 if test "x$prefix" != xNONE; then
590 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
592 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
595 for ac_site_file in $CONFIG_SITE; do
596 if test -r "$ac_site_file"; then
597 echo "loading site script $ac_site_file"
602 if test -r "$cache_file"; then
603 echo "loading cache $cache_file"
606 echo "creating cache $cache_file"
611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
612 ac_cpp='$CPP $CPPFLAGS'
613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
615 cross_compiling=$ac_cv_prog_cc_cross
619 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
620 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
621 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
628 ac_n= ac_c='\c' ac_t=
640 for ac_dir in config $srcdir/config; do
641 if test -f $ac_dir/install-sh; then
643 ac_install_sh="$ac_aux_dir/install-sh -c"
645 elif test -f $ac_dir/install.sh; then
647 ac_install_sh="$ac_aux_dir/install.sh -c"
651 if test -z "$ac_aux_dir"; then
652 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
654 ac_config_guess=$ac_aux_dir/config.guess
655 ac_config_sub=$ac_aux_dir/config.sub
656 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
661 cat >> confdefs.h <<EOF
662 #define PG_VERSION "$VERSION"
666 abs_top_srcdir=`cd $srcdir && pwd`
668 abs_top_builddir=`pwd`
672 # Make sure we can run config.sub.
673 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
674 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
677 echo $ac_n "checking host system type""... $ac_c" 1>&6
678 echo "configure:679: checking host system type" >&5
681 case "$host_alias" in
685 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
686 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
688 *) host_alias=$nonopt ;;
692 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
693 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
694 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
695 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
696 echo "$ac_t""$host" 1>&6
703 echo $ac_n "checking which template to use""... $ac_c" 1>&6
704 echo "configure:705: checking which template to use" >&5
706 # Check whether --with-template was given
707 if test x"${with_template+set}" = xset; then
708 case $with_template in
710 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
713 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
716 withval=$with_template
719 list) echo; ls "$srcdir/src/template"; exit;;
720 *) if test -f "$srcdir/src/template/$with_template" ; then
723 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
728 esac # $with_template
731 # --with-template not given
734 aix*) template=aix ;;
735 beos*) template=beos ;;
736 bsdi*) template=bsdi ;;
737 cygwin*) template=win ;;
738 dgux*) template=dgux ;;
739 freebsd*) template=freebsd ;;
740 hpux*) template=hpux ;;
741 irix*) template=irix5 ;;
742 linux*) template=linux ;;
743 netbsd*) template=netbsd ;;
744 nextstep*) template=nextstep ;;
745 openbsd*) template=openbsd ;;
746 osf*) template=osf ;;
747 qnx*) template=qnx4 ;;
748 sco*) template=sco ;;
749 solaris*) template=solaris ;;
750 sunos*) template=sunos4 ;;
753 univel) template=univel ;;
755 sysv4*) template=svr4 ;;
756 sysv5uw*) template=unixware ;;
757 ultrix*) template=ultrix4 ;;
760 if test x"$template" = x"" ; then
761 { echo "configure: error:
762 *******************************************************************
763 PostgreSQL has apparently not been ported to your platform yet.
764 To try a manual configuration, look into the src/template directory
765 for a similar platform and use the \`--with-template=' option.
767 Please also contact <pgsql-ports@postgresql.org> to see about
768 rectifying this. Include the above \`checking host system type...'
770 *******************************************************************
777 echo "$ac_t""$template" 1>&6
787 # Pick right test-and-set (TAS) code. Most platforms have inline
788 # assembler code in src/include/storage/s_lock.h, so we just use
791 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
792 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
793 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
794 *) need_tas=no; tas_file=dummy.s ;;
798 if test "$need_tas" = yes ; then
806 ## Command line options
811 # Add non-standard directories to the include path
813 # Check whether --with-includes was given
814 if test x"${with_includes+set}" = xset; then
815 case $with_includes in
817 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
820 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
822 esac # $with_includes
827 # Add non-standard directories to the library search path
829 # Check whether --with-libraries was given
830 if test x"${with_libraries+set}" = xset; then
831 case $with_libraries in
833 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
836 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
839 withval=$with_libraries
840 LIBRARY_DIRS=$withval
842 esac # $with_libraries
845 # Check whether --with-libs was given
846 if test x"${with_libs+set}" = xset; then
849 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
852 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
856 LIBRARY_DIRS=$withval
863 # Locale (--enable-locale)
865 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
866 echo "configure:867: checking whether to build with locale support" >&5
867 # Check whether --enable-locale was given
868 if test x"${enable_locale+set}" = xset; then
869 case $enable_locale in
871 cat >> confdefs.h <<\EOF
880 enableval=$enable_locale
881 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
883 esac # $enable_locale
888 echo "$ac_t""$enable_locale" 1>&6
892 # Character set recode (--enable-recode)
894 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
895 echo "configure:896: checking whether to build with recode support" >&5
896 # Check whether --enable-recode was given
897 if test x"${enable_recode+set}" = xset; then
898 case $enable_recode in
900 cat >> confdefs.h <<\EOF
909 enableval=$enable_recode
910 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
912 esac # $enable_recode
917 echo "$ac_t""$enable_recode" 1>&6
924 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
925 echo "configure:926: checking whether to build with multibyte character support" >&5
927 # Check whether --enable-multibyte was given
928 if test x"${enable_multibyte+set}" = xset; then
929 case $enable_multibyte in
937 enableval=$enable_multibyte
941 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
942 MULTIBYTE=$enableval;;
944 { echo "configure: error: argument to --enable-multibyte must be one of:
945 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
946 UNICODE, MULE_INTERNAL,
947 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
949 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
953 esac # $enable_multibyte
958 if test "$enable_multibyte" = yes; then
960 cat >> confdefs.h <<\EOF
964 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
967 echo "$ac_t""no" 1>&6
975 # Default port number (--with-pgport), default 5432
977 echo $ac_n "checking for default port number""... $ac_c" 1>&6
978 echo "configure:979: checking for default port number" >&5
979 # Check whether --with-pgport was given
980 if test x"${with_pgport+set}" = xset; then
983 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
986 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
990 default_port=$withval
996 # Need both of these because backend wants an integer and frontend a string
997 cat >> confdefs.h <<EOF
998 #define DEF_PGPORT ${default_port}
1001 cat >> confdefs.h <<EOF
1002 #define DEF_PGPORT_STR "${default_port}"
1005 echo "$ac_t""$default_port" 1>&6
1009 # Maximum number of allowed connections (--with-maxbackends), default 32
1011 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1012 echo "configure:1013: checking for default soft limit on number of connections" >&5
1013 # Check whether --with-maxbackends was given
1014 if test x"${with_maxbackends+set}" = xset; then
1015 case $with_maxbackends in
1017 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1020 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1022 esac # $with_maxbackends
1026 echo "$ac_t""$with_maxbackends" 1>&6
1027 cat >> confdefs.h <<EOF
1028 #define DEF_MAXBACKENDS $with_maxbackends
1034 # Option to disable shared libraries
1036 # Check whether --enable-shared was given
1037 if test x"${enable_shared+set}" = xset; then
1038 case $enable_shared in
1046 enableval=$enable_shared
1047 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1049 esac # $enable_shared
1061 # For historical reasons you can also use --with-CC to specify the C compiler
1062 # to use, although the standard way to do this is to set the CC environment
1064 # Check whether --with-CC was given
1065 if test x"${with_CC+set}" = xset; then
1068 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1071 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1080 # On AIX, default compiler to xlc.
1081 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1083 # Extract the first word of "gcc", so it can be a program name with args.
1084 set dummy gcc; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC="$CC" # Let the user override the test.
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1112 if test -z "$CC"; then
1113 # Extract the first word of "cc", so it can be a program name with args.
1114 set dummy cc; ac_word=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1126 for ac_dir in $ac_dummy; do
1127 test -z "$ac_dir" && ac_dir=.
1128 if test -f $ac_dir/$ac_word; then
1129 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1130 ac_prog_rejected=yes
1138 if test $ac_prog_rejected = yes; then
1139 # We found a bogon in the path, so make sure we never use it.
1140 set dummy $ac_cv_prog_CC
1142 if test $# -gt 0; then
1143 # We chose a different compiler from the bogus one.
1144 # However, it has the same basename, so the bogon will be chosen
1145 # first if we set CC to just the basename; use the full file name.
1147 set dummy "$ac_dir/$ac_word" "$@"
1155 if test -n "$CC"; then
1156 echo "$ac_t""$CC" 1>&6
1158 echo "$ac_t""no" 1>&6
1161 if test -z "$CC"; then
1162 case "`uname -s`" in
1164 # Extract the first word of "cl", so it can be a program name with args.
1165 set dummy cl; ac_word=$2
1166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1167 echo "configure:1168: checking for $ac_word" >&5
1168 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 if test -n "$CC"; then
1172 ac_cv_prog_CC="$CC" # Let the user override the test.
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1187 if test -n "$CC"; then
1188 echo "$ac_t""$CC" 1>&6
1190 echo "$ac_t""no" 1>&6
1195 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1202 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1203 ac_cpp='$CPP $CPPFLAGS'
1204 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1205 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1206 cross_compiling=$ac_cv_prog_cc_cross
1208 cat > conftest.$ac_ext << EOF
1210 #line 1211 "configure"
1211 #include "confdefs.h"
1215 if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1216 ac_cv_prog_cc_works=yes
1217 # If we can't run a trivial program, we are probably using a cross compiler.
1218 if (./conftest; exit) 2>/dev/null; then
1219 ac_cv_prog_cc_cross=no
1221 ac_cv_prog_cc_cross=yes
1224 echo "configure: failed program was:" >&5
1225 cat conftest.$ac_ext >&5
1226 ac_cv_prog_cc_works=no
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cc_cross
1236 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1237 if test $ac_cv_prog_cc_works = no; then
1238 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1240 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1242 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1243 cross_compiling=$ac_cv_prog_cc_cross
1245 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether we are using GNU C" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 cat > conftest.c <<EOF
1255 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1262 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1264 if test $ac_cv_prog_gcc = yes; then
1270 ac_test_CFLAGS="${CFLAGS+set}"
1271 ac_save_CFLAGS="$CFLAGS"
1273 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether ${CC-cc} accepts -g" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 echo 'void f(){}' > conftest.c
1279 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1288 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1289 if test "$ac_test_CFLAGS" = set; then
1290 CFLAGS="$ac_save_CFLAGS"
1291 elif test $ac_cv_prog_cc_g = yes; then
1292 if test "$GCC" = yes; then
1298 if test "$GCC" = yes; then
1306 . "$srcdir/src/template/$template" || exit
1307 echo "using CFLAGS=$CFLAGS"
1308 # Check if the compiler still works with the template settings
1309 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1310 echo "configure:1311: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1314 ac_cpp='$CPP $CPPFLAGS'
1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1317 cross_compiling=$ac_cv_prog_cc_cross
1319 cat > conftest.$ac_ext << EOF
1321 #line 1322 "configure"
1322 #include "confdefs.h"
1326 if { (eval echo configure:1327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1327 ac_cv_prog_cc_works=yes
1328 # If we can't run a trivial program, we are probably using a cross compiler.
1329 if (./conftest; exit) 2>/dev/null; then
1330 ac_cv_prog_cc_cross=no
1332 ac_cv_prog_cc_cross=yes
1335 echo "configure: failed program was:" >&5
1336 cat conftest.$ac_ext >&5
1337 ac_cv_prog_cc_works=no
1341 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1344 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1345 cross_compiling=$ac_cv_prog_cc_cross
1347 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1348 if test $ac_cv_prog_cc_works = no; then
1349 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1351 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1353 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1354 cross_compiling=$ac_cv_prog_cc_cross
1356 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1357 echo "configure:1358: checking for Cygwin environment" >&5
1358 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1368 #define __CYGWIN__ __CYGWIN32__
1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1386 echo "$ac_t""$ac_cv_cygwin" 1>&6
1388 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1389 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1390 echo "configure:1391: checking for mingw32 environment" >&5
1391 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 if { (eval echo configure:1403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1406 echo "configure: failed program was:" >&5
1407 cat conftest.$ac_ext >&5
1415 echo "$ac_t""$ac_cv_mingw32" 1>&6
1417 test "$ac_cv_mingw32" = yes && MINGW32=yes
1420 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1421 echo "configure:1422: checking for executable suffix" >&5
1422 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1429 echo 'int main () { return 0; }' > conftest.$ac_ext
1431 if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1432 for file in conftest.*; do
1434 *.c | *.o | *.obj) ;;
1435 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1439 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1442 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1447 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1448 echo "$ac_t""${ac_cv_exeext}" 1>&6
1451 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1452 echo "configure:1453: checking how to run the C preprocessor" >&5
1453 # On Suns, sometimes $CPP names a directory.
1454 if test -n "$CPP" && test -d "$CPP"; then
1457 if test -z "$CPP"; then
1458 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 # This must be in double quotes, not single quotes, because CPP may get
1462 # substituted into the Makefile and "${CC-cc}" will confuse make.
1464 # On the NeXT, cc -E runs the code through the compiler's parser,
1465 # not just through cpp.
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1473 { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1475 if test -z "$ac_err"; then
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 CPP="${CC-cc} -E -traditional-cpp"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490 { (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1492 if test -z "$ac_err"; then
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1499 CPP="${CC-cc} -nologo -E"
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1509 if test -z "$ac_err"; then
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1523 ac_cv_prog_CPP="$CPP"
1525 CPP="$ac_cv_prog_CPP"
1527 ac_cv_prog_CPP="$CPP"
1529 echo "$ac_t""$CPP" 1>&6
1531 if test $ac_cv_prog_gcc = yes; then
1532 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1533 echo "configure:1534: checking whether ${CC-cc} needs -traditional" >&5
1534 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 ac_pattern="Autoconf.*'x'"
1538 cat > conftest.$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1545 egrep "$ac_pattern" >/dev/null 2>&1; then
1547 ac_cv_prog_gcc_traditional=yes
1550 ac_cv_prog_gcc_traditional=no
1555 if test $ac_cv_prog_gcc_traditional = no; then
1556 cat > conftest.$ac_ext <<EOF
1557 #line 1558 "configure"
1558 #include "confdefs.h"
1562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1563 egrep "$ac_pattern" >/dev/null 2>&1; then
1565 ac_cv_prog_gcc_traditional=yes
1572 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1573 if test $ac_cv_prog_gcc_traditional = yes; then
1574 CC="$CC -traditional"
1580 # Create compiler version string
1581 if test x"$GCC" = x"yes" ; then
1582 cc_string="GCC `${CC} --version`"
1586 cat >> confdefs.h <<EOF
1587 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1593 # Automatic dependency tracking
1595 # Check whether --enable-depend was given
1596 if test x"${enable_depend+set}" = xset; then
1597 case $enable_depend in
1605 enableval=$enable_depend
1606 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1608 esac # $enable_depend
1617 # --enable-debug adds -g to compiler flags
1619 # Check whether --enable-debug was given
1620 if test x"${enable_debug+set}" = xset; then
1621 case $enable_debug in
1629 enableval=$enable_debug
1630 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1632 esac # $enable_debug
1640 # Enable assert checks
1642 # Check whether --enable-cassert was given
1643 if test x"${enable_cassert+set}" = xset; then
1644 case $enable_cassert in
1646 cat >> confdefs.h <<\EOF
1647 #define USE_ASSERT_CHECKING 1
1655 enableval=$enable_cassert
1656 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1658 esac # $enable_cassert
1666 # Include directories
1670 # SRCH_INC comes from the template file
1671 for dir in $with_includes $SRCH_INC; do
1672 if test -d "$dir"; then
1673 INCLUDES="$INCLUDES -I$dir"
1675 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1683 # Library directories
1687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1688 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1689 if test -d "$dir"; then
1690 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
1692 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1701 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether to build with Tcl" >&5
1703 # Check whether --with-tcl was given
1704 if test x"${with_tcl+set}" = xset; then
1714 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1721 echo "$ac_t""$with_tcl" 1>&6
1724 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1725 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1726 echo "configure:1727: checking whether to build with Tk" >&5
1727 if test "$with_tcl" = yes; then
1728 # Check whether --with-tk was given
1729 if test x"${with_tk+set}" = xset; then
1739 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1749 echo "$ac_t""$with_tk" 1>&6
1753 # We see if the path to the TCL/TK configuration scripts is specified.
1754 # This will override the use of tclsh to find the paths to search.
1756 # Check whether --with-tclconfig was given
1757 if test x"${with_tclconfig+set}" = xset; then
1758 case $with_tclconfig in
1760 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1763 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1765 esac # $with_tclconfig
1768 # We see if the path to the TK configuration scripts is specified.
1769 # This will override the use of tclsh to find the paths to search.
1771 # Check whether --with-tkconfig was given
1772 if test x"${with_tkconfig+set}" = xset; then
1773 case $with_tkconfig in
1775 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1778 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1780 esac # $with_tkconfig
1785 # Optionally build Perl modules (Pg.pm and PL/Perl)
1787 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether to build Perl modules" >&5
1789 # Check whether --with-perl was given
1790 if test x"${with_perl+set}" = xset; then
1800 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1807 echo "$ac_t""$with_perl" 1>&6
1812 # Optionally build Python interface module
1814 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1815 echo "configure:1816: checking whether to build Python modules" >&5
1816 # Check whether --with-python was given
1817 if test x"${with_python+set}" = xset; then
1818 case $with_python in
1820 echo "$ac_t""yes" 1>&6
1821 # Extract the first word of "python", so it can be a program name with args.
1822 set dummy python; ac_word=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test -n "$PYTHON"; then
1829 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1833 for ac_dir in $ac_dummy; do
1834 test -z "$ac_dir" && ac_dir=.
1835 if test -f $ac_dir/$ac_word; then
1836 ac_cv_prog_PYTHON="python"
1843 PYTHON="$ac_cv_prog_PYTHON"
1844 if test -n "$PYTHON"; then
1845 echo "$ac_t""$PYTHON" 1>&6
1847 echo "$ac_t""no" 1>&6
1851 if test "${PYTHON+set}" = set ; then
1852 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1853 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1854 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1855 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1856 python_moduledir="${python_prefix}/lib/python${python_version}"
1857 python_extmakefile="${python_configdir}/Makefile.pre.in"
1859 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1860 echo "configure:1861: checking for Python extension makefile" >&5
1861 if test -f "${python_extmakefile}" ; then
1862 echo "$ac_t""found" 1>&6
1864 echo "$ac_t""no" 1>&6
1865 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1866 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1876 { echo "configure: error: Python not found" 1>&2; exit 1; }
1880 echo "$ac_t""no" 1>&6
1883 withval=$with_python
1884 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1889 echo "$ac_t""no" 1>&6
1898 # Check whether --with-krb4 was given
1899 if test x"${with_krb4+set}" = xset; then
1902 krb4_prefix=/usr/athena
1910 krb4_prefix=$withval
1917 if test "$with_krb4" = yes; then
1919 echo "$ac_t""building with Kerberos 4 support" 1>&6
1920 cat >> confdefs.h <<\EOF
1925 if test -d "$krb4_prefix"; then
1926 if test -d "$krb4_prefix/include"; then
1927 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1929 if test -d "$krb4_prefix/lib"; then
1930 krb_libdir="-L$krb4_prefix/lib"
1931 LIBS="$krb_libdir $LIBS"
1934 # Test for these libraries is below
1935 KRB_LIBS="$krb_libdir -lkrb -ldes"
1937 krb_srvtab="/etc/srvtab"
1948 # Check whether --with-krb5 was given
1949 if test x"${with_krb5+set}" = xset; then
1952 krb5_prefix=/usr/athena
1960 krb5_prefix=$withval
1967 if test "$with_krb5" = yes; then
1969 echo "$ac_t""building with Kerberos 5 support" 1>&6
1970 cat >> confdefs.h <<\EOF
1975 if test -d "$krb5_prefix"; then
1976 if test -d "$krb5_prefix/include"; then
1977 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1979 if test -d "$krb5_prefix/lib"; then
1980 krb_libdir="-L$krb5_prefix/lib"
1981 LIBS="$krb_libdir $LIBS"
1985 # Test for these libraries is below
1986 KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
1988 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1996 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1997 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1998 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2006 # Kerberos configuration parameters
2008 # Check whether --with-krb-srvnam was given
2009 if test x"${with_krb_srvnam+set}" = xset; then
2010 case $with_krb_srvnam in
2012 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2015 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2017 esac # $with_krb_srvnam
2019 with_krb_srvnam="postgres"
2021 cat >> confdefs.h <<EOF
2022 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2031 # Check whether --with-openssl was given
2032 if test x"${with_openssl+set}" = xset; then
2033 case $with_openssl in
2035 openssl_prefix=/usr/local/ssl
2041 withval=$with_openssl
2043 openssl_prefix=$withval
2045 esac # $with_openssl
2050 if test "$with_openssl" = yes; then
2052 echo "$ac_t""building with OpenSSL support" 1>&6
2053 cat >> confdefs.h <<\EOF
2058 if test -d "${openssl_prefix}/include" ; then
2059 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2061 if test -d "${openssl_prefix}/lib" ; then
2062 openssl_libdir="${openssl_prefix}/lib"
2063 LIBS="$LIBS -L${openssl_prefix}/lib"
2065 openssl_libdir="${openssl_prefix}"
2066 LIBS="$LIBS -L${openssl_prefix}"
2075 # OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
2076 # use both of them you'll have to figure it out yourself.
2077 if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
2078 { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2083 # Optionally enable the building of the ODBC driver
2087 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2088 enable_odbc=$with_odbc
2091 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2092 echo "configure:2093: checking whether to build the ODBC driver" >&5
2093 # Check whether --enable-odbc was given
2094 if test x"${enable_odbc+set}" = xset; then
2095 case $enable_odbc in
2103 enableval=$enable_odbc
2104 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2111 echo "$ac_t""$enable_odbc" 1>&6
2115 # Allow for overriding the default location of the odbcinst.ini
2116 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2117 # Check whether --with-odbcinst was given
2118 if test x"${with_odbcinst+set}" = xset; then
2119 case $with_odbcinst in
2121 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2124 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2127 withval=$with_odbcinst
2128 odbcinst_ini_dir=$withval
2130 esac # $with_odbcinst
2132 odbcinst_ini_dir="\${sysconfdir}"
2138 # Assume system is ELF if it predefines __ELF__ as 1,
2139 # otherwise believe host_os based default.
2141 freebsd1*|freebsd2*) elf=yes;;
2144 cat > conftest.$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2153 egrep "yes" >/dev/null 2>&1; then
2158 if test "X$elf" = "Xyes" ; then
2171 # Optionally build C++ code (i.e., libpq++)
2173 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2174 echo "configure:2175: checking whether to build C++ modules" >&5
2175 # Check whether --with-CXX was given
2176 if test x"${with_CXX+set}" = xset; then
2194 if test "$with_CXX" = yes; then
2196 echo "$ac_t""yes" 1>&6
2197 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_word" >&5
2203 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 if test -n "$CXX"; then
2207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2211 for ac_dir in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/$ac_word; then
2214 ac_cv_prog_CXX="$ac_prog"
2221 CXX="$ac_cv_prog_CXX"
2222 if test -n "$CXX"; then
2223 echo "$ac_t""$CXX" 1>&6
2225 echo "$ac_t""no" 1>&6
2228 test -n "$CXX" && break
2230 test -n "$CXX" || CXX="gcc"
2233 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2238 ac_cpp='$CXXCPP $CPPFLAGS'
2239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2241 cross_compiling=$ac_cv_prog_cxx_cross
2243 cat > conftest.$ac_ext << EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2248 int main(){return(0);}
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 ac_cv_prog_cxx_works=yes
2252 # If we can't run a trivial program, we are probably using a cross compiler.
2253 if (./conftest; exit) 2>/dev/null; then
2254 ac_cv_prog_cxx_cross=no
2256 ac_cv_prog_cxx_cross=yes
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 ac_cv_prog_cxx_works=no
2265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2269 cross_compiling=$ac_cv_prog_cc_cross
2271 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2272 if test $ac_cv_prog_cxx_works = no; then
2273 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2275 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2276 echo "configure:2277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2277 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2278 cross_compiling=$ac_cv_prog_cxx_cross
2280 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2281 echo "configure:2282: checking whether we are using GNU C++" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.C <<EOF
2290 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2297 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2299 if test $ac_cv_prog_gxx = yes; then
2305 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2306 ac_save_CXXFLAGS="$CXXFLAGS"
2308 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2309 echo "configure:2310: checking whether ${CXX-g++} accepts -g" >&5
2310 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 echo 'void f(){}' > conftest.cc
2314 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2315 ac_cv_prog_cxx_g=yes
2323 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2324 if test "$ac_test_CXXFLAGS" = set; then
2325 CXXFLAGS="$ac_save_CXXFLAGS"
2326 elif test $ac_cv_prog_cxx_g = yes; then
2327 if test "$GXX" = yes; then
2333 if test "$GXX" = yes; then
2340 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2341 echo "configure:2342: checking how to run the C++ preprocessor" >&5
2342 if test -z "$CXXCPP"; then
2343 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2348 ac_cpp='$CXXCPP $CPPFLAGS'
2349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2351 cross_compiling=$ac_cv_prog_cxx_cross
2352 CXXCPP="${CXX-g++} -E"
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2359 { (eval echo configure:2360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2361 if test -z "$ac_err"; then
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2371 ac_cv_prog_CXXCPP="$CXXCPP"
2373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2377 cross_compiling=$ac_cv_prog_cc_cross
2380 CXXCPP="$ac_cv_prog_CXXCPP"
2381 echo "$ac_t""$CXXCPP" 1>&6
2386 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2389 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2390 cross_compiling=$ac_cv_prog_cxx_cross
2392 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for string""... $ac_c" 1>&6
2394 echo "configure:2395: checking for string" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 cat >> confdefs.h <<\EOF
2421 #define HAVE_CXX_STRING_HEADER 1
2425 echo "$ac_t""no" 1>&6
2429 if test x"$ac_cv_header_string" != xyes ; then
2430 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2431 echo "configure:2432: checking for class string in <string.h>" >&5
2432 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2448 pgac_cv_class_string_in_string_h=yes
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 pgac_cv_class_string_in_string_h=no
2458 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2460 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2461 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2465 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2468 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2469 cross_compiling=$ac_cv_prog_cc_cross
2472 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2473 echo "configure:2474: checking for namespace std in C++" >&5
2474 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2480 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2481 ac_cpp='$CXXCPP $CPPFLAGS'
2482 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2483 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2484 cross_compiling=$ac_cv_prog_cxx_cross
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2491 #ifdef HAVE_CXX_STRING_HEADER
2494 using namespace std;
2500 if { (eval echo configure:2501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2502 pgac_cv_cxx_namespace_std=yes
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2507 pgac_cv_cxx_namespace_std=no
2511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2515 cross_compiling=$ac_cv_prog_cc_cross
2519 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2521 if test $pgac_cv_cxx_namespace_std = yes ; then
2522 cat >> confdefs.h <<\EOF
2523 #define HAVE_NAMESPACE_STD 1
2529 echo "$ac_t""no" 1>&6
2534 CPPFLAGS="$CPPFLAGS $INCLUDES"
2535 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
2537 echo "using CPPFLAGS=$CPPFLAGS"
2538 echo "using LDFLAGS=$LDFLAGS"
2541 # Figure out how to invoke "install" and what install options to use.
2543 # Find a good install program. We prefer a C program (faster),
2544 # so one script is as good as another. But avoid the broken or
2545 # incompatible versions:
2546 # SysV /etc/install, /usr/sbin/install
2547 # SunOS /usr/etc/install
2548 # IRIX /sbin/install
2550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2553 # ./install, which can be erroneously created by make from ./install.sh.
2554 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2555 echo "configure:2556: checking for a BSD compatible install" >&5
2556 if test -z "$INSTALL"; then
2557 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2561 for ac_dir in $PATH; do
2562 # Account for people who put trailing slashes in PATH elements.
2564 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 if test -f $ac_dir/$ac_prog; then
2571 if test $ac_prog = install &&
2572 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2576 ac_cv_path_install="$ac_dir/$ac_prog -c"
2587 if test "${ac_cv_path_install+set}" = set; then
2588 INSTALL="$ac_cv_path_install"
2590 # As a last resort, use the slow shell script. We don't cache a
2591 # path for INSTALL within a source directory, because that will
2592 # break other packages using the cache if that directory is
2593 # removed, or if the path is relative.
2594 INSTALL="$ac_install_sh"
2597 echo "$ac_t""$INSTALL" 1>&6
2599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2600 # It thinks the first close brace ends the variable substitution.
2601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2607 # When Autoconf chooses install-sh as install program it tries to generate
2608 # a relative path to it in each makefile where it subsitutes it. This clashes
2609 # with our Makefile.global concept. This workaround helps.
2611 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2614 # Fix Autoconf's brain-dead defaults for script installs.
2615 INSTALL_SCRIPT="\${INSTALL} -m 755"
2617 # HPUX wants shared libs to be mode 555. Add your platform's special
2618 # needs here if necessary.
2620 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2621 *) INSTL_SHLIB_OPTS="-m 644" ;;
2624 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2628 for ac_prog in mawk gawk nawk awk
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633 echo "configure:2634: checking for $ac_word" >&5
2634 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2635 echo $ac_n "(cached) $ac_c" 1>&6
2637 if test -n "$AWK"; then
2638 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2642 for ac_dir in $ac_dummy; do
2643 test -z "$ac_dir" && ac_dir=.
2644 if test -f $ac_dir/$ac_word; then
2645 ac_cv_prog_AWK="$ac_prog"
2652 AWK="$ac_cv_prog_AWK"
2653 if test -n "$AWK"; then
2654 echo "$ac_t""$AWK" 1>&6
2656 echo "$ac_t""no" 1>&6
2659 test -n "$AWK" && break
2662 echo $ac_n "checking for flex""... $ac_c" 1>&6
2663 echo "configure:2664: checking for flex" >&5
2664 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 # Let the user override the test
2668 if test -n "$FLEX"; then
2669 pgac_cv_path_flex=$FLEX
2673 for pgac_dir in $PATH; do
2674 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2677 for pgac_prog in flex lex; do
2678 pgac_candidate="$pgac_dir/$pgac_prog"
2679 if test -f "$pgac_candidate" \
2680 && $pgac_candidate --version >/dev/null 2>&1
2682 echo '%%' > conftest.l
2683 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2684 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2685 pgac_broken_flex=$pgac_candidate
2689 pgac_cv_path_flex=$pgac_candidate
2697 : ${pgac_cv_path_flex=no}
2702 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2703 if test x"$pgac_cv_path_flex" = x"no"; then
2704 if test -n "$pgac_broken_flex"; then
2705 echo "configure: warning:
2707 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2708 should get version 2.5.4 or later.
2712 echo "configure: warning:
2714 Without Flex you won't be able to build PostgreSQL from scratch, or change
2715 any of the scanner definition files. You can obtain Flex from a GNU mirror
2716 site. (If you are using the official distribution of PostgreSQL then you
2717 do not need to worry about this because the lexer files are pre-generated.)
2721 if test x"$pgac_cv_path_flex" = x"no"; then
2724 FLEX=$pgac_cv_path_flex
2730 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2731 echo "configure:2732: checking whether ln -s works" >&5
2732 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2736 if ln -s X conftestdata 2>/dev/null
2739 ac_cv_prog_LN_S="ln -s"
2744 LN_S="$ac_cv_prog_LN_S"
2745 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2746 echo "$ac_t""yes" 1>&6
2748 echo "$ac_t""no" 1>&6
2751 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2752 if test "${with_gnu_ld+set}" = set; then
2753 withval="$with_gnu_ld"
2754 test "$withval" = no || with_gnu_ld=yes
2760 if test "$ac_cv_prog_gcc" = yes; then
2761 # Check if gcc -print-prog-name=ld gives a path.
2762 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2763 echo "configure:2764: checking for ld used by GCC" >&5
2766 # gcc leaves a trailing carriage return which upsets mingw
2767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2772 # Accept absolute paths.
2773 [\\/]* | [A-Za-z]:[\\/]*)
2774 re_direlt='/[^/][^/]*/\.\./'
2775 # Canonicalize the path of ld
2776 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2777 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2778 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2780 test -z "$LD" && LD="$ac_prog"
2783 # If it fails, then pretend we aren't using GCC.
2787 # If it is relative, then search for the first ld in PATH.
2791 elif test "$with_gnu_ld" = yes; then
2792 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2793 echo "configure:2794: checking for GNU ld" >&5
2795 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2796 echo "configure:2797: checking for non-GNU ld" >&5
2798 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2801 if test -z "$LD"; then
2802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2803 for ac_dir in $PATH; do
2804 test -z "$ac_dir" && ac_dir=.
2805 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2806 ac_cv_path_LD="$ac_dir/$ac_prog"
2807 # Check to see if the program is GNU ld. I'd rather use --version,
2808 # but apparently some GNU ld's only accept -v.
2809 # Break only if it was the GNU/non-GNU ld that we prefer.
2810 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2811 test "$with_gnu_ld" != no && break
2813 test "$with_gnu_ld" != yes && break
2819 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2824 if test -n "$LD"; then
2825 echo "$ac_t""$LD" 1>&6
2827 echo "$ac_t""no" 1>&6
2829 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2830 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2831 echo "configure:2832: checking if the linker ($LD) is GNU ld" >&5
2832 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2836 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2837 ac_cv_prog_gnu_ld=yes
2839 ac_cv_prog_gnu_ld=no
2843 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2844 with_gnu_ld=$ac_cv_prog_gnu_ld
2847 # Extract the first word of "ranlib", so it can be a program name with args.
2848 set dummy ranlib; ac_word=$2
2849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_word" >&5
2851 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 if test -n "$RANLIB"; then
2855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2859 for ac_dir in $ac_dummy; do
2860 test -z "$ac_dir" && ac_dir=.
2861 if test -f $ac_dir/$ac_word; then
2862 ac_cv_prog_RANLIB="ranlib"
2867 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2870 RANLIB="$ac_cv_prog_RANLIB"
2871 if test -n "$RANLIB"; then
2872 echo "$ac_t""$RANLIB" 1>&6
2874 echo "$ac_t""no" 1>&6
2877 for ac_prog in lorder
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_word" >&5
2883 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 if test -n "$LORDER"; then
2887 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2891 for ac_dir in $ac_dummy; do
2892 test -z "$ac_dir" && ac_dir=.
2893 if test -f $ac_dir/$ac_word; then
2894 ac_cv_prog_LORDER="$ac_prog"
2901 LORDER="$ac_cv_prog_LORDER"
2902 if test -n "$LORDER"; then
2903 echo "$ac_t""$LORDER" 1>&6
2905 echo "$ac_t""no" 1>&6
2908 test -n "$LORDER" && break
2911 # Extract the first word of "tar", so it can be a program name with args.
2912 set dummy tar; ac_word=$2
2913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_word" >&5
2915 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2920 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2923 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2928 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 if test -f $ac_dir/$ac_word; then
2931 ac_cv_path_TAR="$ac_dir/$ac_word"
2939 TAR="$ac_cv_path_TAR"
2940 if test -n "$TAR"; then
2941 echo "$ac_t""$TAR" 1>&6
2943 echo "$ac_t""no" 1>&6
2948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2949 set dummy $ac_prog; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$PERL"; then
2956 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 for ac_dir in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_PERL="$ac_prog"
2970 PERL="$ac_cv_prog_PERL"
2971 if test -n "$PERL"; then
2972 echo "$ac_t""$PERL" 1>&6
2974 echo "$ac_t""no" 1>&6
2977 test -n "$PERL" && break
2980 for ac_prog in 'bison -y' byacc
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_word" >&5
2986 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 if test -n "$YACC"; then
2990 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2994 for ac_dir in $ac_dummy; do
2995 test -z "$ac_dir" && ac_dir=.
2996 if test -f $ac_dir/$ac_word; then
2997 ac_cv_prog_YACC="$ac_prog"
3004 YACC="$ac_cv_prog_YACC"
3005 if test -n "$YACC"; then
3006 echo "$ac_t""$YACC" 1>&6
3008 echo "$ac_t""no" 1>&6
3011 test -n "$YACC" && break
3013 test -n "$YACC" || YACC="yacc"
3016 if test "$with_tk" = yes; then
3017 # Extract the first word of "wish", so it can be a program name with args.
3018 set dummy wish; ac_word=$2
3019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3020 echo "configure:3021: checking for $ac_word" >&5
3021 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3026 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3029 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3034 for ac_dir in $ac_dummy; do
3035 test -z "$ac_dir" && ac_dir=.
3036 if test -f $ac_dir/$ac_word; then
3037 ac_cv_path_WISH="$ac_dir/$ac_word"
3045 WISH="$ac_cv_path_WISH"
3046 if test -n "$WISH"; then
3047 echo "$ac_t""$WISH" 1>&6
3049 echo "$ac_t""no" 1>&6
3052 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
3060 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3061 echo "configure:3062: checking for main in -lsfio" >&5
3062 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 ac_save_LIBS="$LIBS"
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 eval "ac_cv_lib_$ac_lib_var=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3083 eval "ac_cv_lib_$ac_lib_var=no"
3086 LIBS="$ac_save_LIBS"
3089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_lib 1
3100 echo "$ac_t""no" 1>&6
3103 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3104 echo "configure:3105: checking for main in -lncurses" >&5
3105 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
3106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_save_LIBS="$LIBS"
3110 LIBS="-lncurses $LIBS"
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3121 eval "ac_cv_lib_$ac_lib_var=yes"
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 eval "ac_cv_lib_$ac_lib_var=no"
3129 LIBS="$ac_save_LIBS"
3132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3133 echo "$ac_t""yes" 1>&6
3134 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3136 cat >> confdefs.h <<EOF
3137 #define $ac_tr_lib 1
3140 LIBS="-lncurses $LIBS"
3143 echo "$ac_t""no" 1>&6
3144 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3145 echo "configure:3146: checking for main in -lcurses" >&5
3146 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 ac_save_LIBS="$LIBS"
3151 LIBS="-lcurses $LIBS"
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3162 eval "ac_cv_lib_$ac_lib_var=yes"
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3167 eval "ac_cv_lib_$ac_lib_var=no"
3170 LIBS="$ac_save_LIBS"
3173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3174 echo "$ac_t""yes" 1>&6
3175 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3176 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3177 cat >> confdefs.h <<EOF
3178 #define $ac_tr_lib 1
3181 LIBS="-lcurses $LIBS"
3184 echo "$ac_t""no" 1>&6
3189 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3190 echo "configure:3191: checking for main in -ltermcap" >&5
3191 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 ac_save_LIBS="$LIBS"
3196 LIBS="-ltermcap $LIBS"
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure"
3199 #include "confdefs.h"
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207 eval "ac_cv_lib_$ac_lib_var=yes"
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 eval "ac_cv_lib_$ac_lib_var=no"
3215 LIBS="$ac_save_LIBS"
3218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3219 echo "$ac_t""yes" 1>&6
3220 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3222 cat >> confdefs.h <<EOF
3223 #define $ac_tr_lib 1
3226 LIBS="-ltermcap $LIBS"
3229 echo "$ac_t""no" 1>&6
3232 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3233 echo "configure:3234: checking for readline in -lreadline" >&5
3234 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3236 echo $ac_n "(cached) $ac_c" 1>&6
3238 ac_save_LIBS="$LIBS"
3239 LIBS="-lreadline $LIBS"
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3252 if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3254 eval "ac_cv_lib_$ac_lib_var=yes"
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 eval "ac_cv_lib_$ac_lib_var=no"
3262 LIBS="$ac_save_LIBS"
3265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3266 echo "$ac_t""yes" 1>&6
3267 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3269 cat >> confdefs.h <<EOF
3270 #define $ac_tr_lib 1
3273 LIBS="-lreadline $LIBS"
3276 echo "$ac_t""no" 1>&6
3280 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3281 echo "configure:3282: checking for library containing using_history" >&5
3282 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 ac_func_search_save_LIBS="$LIBS"
3286 ac_cv_search_using_history="no"
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* Override any gcc2 internal prototype to avoid an error. */
3291 /* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3293 char using_history();
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3301 ac_cv_search_using_history="none required"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3307 test "$ac_cv_search_using_history" = "no" && for i in history; do
3308 LIBS="-l$i $ac_func_search_save_LIBS"
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* Override any gcc2 internal prototype to avoid an error. */
3313 /* We use char because int might match the return type of a gcc2
3314 builtin and then its argument prototype would still apply. */
3315 char using_history();
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3323 ac_cv_search_using_history="-l$i"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5
3331 LIBS="$ac_func_search_save_LIBS"
3334 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3335 if test "$ac_cv_search_using_history" != "no"; then
3336 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3337 cat >> confdefs.h <<\EOF
3338 #define HAVE_HISTORY_FUNCTIONS 1
3345 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3347 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3348 echo "configure:3349: checking for main in -lbsd" >&5
3349 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_save_LIBS="$LIBS"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3363 if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3365 eval "ac_cv_lib_$ac_lib_var=yes"
3367 echo "configure: failed program was:" >&5
3368 cat conftest.$ac_ext >&5
3370 eval "ac_cv_lib_$ac_lib_var=no"
3373 LIBS="$ac_save_LIBS"
3376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3380 cat >> confdefs.h <<EOF
3381 #define $ac_tr_lib 1
3387 echo "$ac_t""no" 1>&6
3391 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3392 echo "configure:3393: checking for setproctitle in -lutil" >&5
3393 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 ac_save_LIBS="$LIBS"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 /* Override any gcc2 internal prototype to avoid an error. */
3403 /* We use char because int might match the return type of a gcc2
3404 builtin and then its argument prototype would still apply. */
3405 char setproctitle();
3411 if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 eval "ac_cv_lib_$ac_lib_var=yes"
3415 echo "configure: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3418 eval "ac_cv_lib_$ac_lib_var=no"
3421 LIBS="$ac_save_LIBS"
3424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6
3426 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3428 cat >> confdefs.h <<EOF
3429 #define $ac_tr_lib 1
3435 echo "$ac_t""no" 1>&6
3438 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3439 echo "configure:3440: checking for main in -lm" >&5
3440 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 ac_save_LIBS="$LIBS"
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3461 eval "ac_cv_lib_$ac_lib_var=no"
3464 LIBS="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3470 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3471 cat >> confdefs.h <<EOF
3472 #define $ac_tr_lib 1
3478 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3482 echo "configure:3483: checking for main in -ldl" >&5
3483 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_save_LIBS="$LIBS"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 eval "ac_cv_lib_$ac_lib_var=yes"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 eval "ac_cv_lib_$ac_lib_var=no"
3507 LIBS="$ac_save_LIBS"
3510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3514 cat >> confdefs.h <<EOF
3515 #define $ac_tr_lib 1
3521 echo "$ac_t""no" 1>&6
3524 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3525 echo "configure:3526: checking for main in -lsocket" >&5
3526 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_save_LIBS="$LIBS"
3531 LIBS="-lsocket $LIBS"
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3540 if { (eval echo configure:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3542 eval "ac_cv_lib_$ac_lib_var=yes"
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 eval "ac_cv_lib_$ac_lib_var=no"
3550 LIBS="$ac_save_LIBS"
3553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3554 echo "$ac_t""yes" 1>&6
3555 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3557 cat >> confdefs.h <<EOF
3558 #define $ac_tr_lib 1
3561 LIBS="-lsocket $LIBS"
3564 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3568 echo "configure:3569: checking for main in -lnsl" >&5
3569 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS="$LIBS"
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3585 eval "ac_cv_lib_$ac_lib_var=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3590 eval "ac_cv_lib_$ac_lib_var=no"
3593 LIBS="$ac_save_LIBS"
3596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3598 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3599 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3600 cat >> confdefs.h <<EOF
3601 #define $ac_tr_lib 1
3607 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3611 echo "configure:3612: checking for main in -lipc" >&5
3612 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 ac_save_LIBS="$LIBS"
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3626 if { (eval echo configure:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 eval "ac_cv_lib_$ac_lib_var=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3633 eval "ac_cv_lib_$ac_lib_var=no"
3636 LIBS="$ac_save_LIBS"
3639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3643 cat >> confdefs.h <<EOF
3644 #define $ac_tr_lib 1
3650 echo "$ac_t""no" 1>&6
3653 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3654 echo "configure:3655: checking for main in -lIPC" >&5
3655 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 ac_save_LIBS="$LIBS"
3661 cat > conftest.$ac_ext <<EOF
3662 #line 3663 "configure"
3663 #include "confdefs.h"
3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3671 eval "ac_cv_lib_$ac_lib_var=yes"
3673 echo "configure: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3676 eval "ac_cv_lib_$ac_lib_var=no"
3679 LIBS="$ac_save_LIBS"
3682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3686 cat >> confdefs.h <<EOF
3687 #define $ac_tr_lib 1
3693 echo "$ac_t""no" 1>&6
3696 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3697 echo "configure:3698: checking for main in -llc" >&5
3698 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 ac_save_LIBS="$LIBS"
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_lib_$ac_lib_var=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_lib_$ac_lib_var=no"
3722 LIBS="$ac_save_LIBS"
3725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3726 echo "$ac_t""yes" 1>&6
3727 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3728 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3729 cat >> confdefs.h <<EOF
3730 #define $ac_tr_lib 1
3736 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3740 echo "configure:3741: checking for main in -ldld" >&5
3741 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 ac_save_LIBS="$LIBS"
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 eval "ac_cv_lib_$ac_lib_var=yes"
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 eval "ac_cv_lib_$ac_lib_var=no"
3765 LIBS="$ac_save_LIBS"
3768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3771 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3772 cat >> confdefs.h <<EOF
3773 #define $ac_tr_lib 1
3779 echo "$ac_t""no" 1>&6
3782 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3783 echo "configure:3784: checking for main in -lln" >&5
3784 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 ac_save_LIBS="$LIBS"
3790 cat > conftest.$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3800 eval "ac_cv_lib_$ac_lib_var=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3805 eval "ac_cv_lib_$ac_lib_var=no"
3808 LIBS="$ac_save_LIBS"
3811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3815 cat >> confdefs.h <<EOF
3816 #define $ac_tr_lib 1
3822 echo "$ac_t""no" 1>&6
3825 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3826 echo "configure:3827: checking for main in -lld" >&5
3827 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 ac_save_LIBS="$LIBS"
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3841 if { (eval echo configure:3842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3843 eval "ac_cv_lib_$ac_lib_var=yes"
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3848 eval "ac_cv_lib_$ac_lib_var=no"
3851 LIBS="$ac_save_LIBS"
3854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3857 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3858 cat >> confdefs.h <<EOF
3859 #define $ac_tr_lib 1
3865 echo "$ac_t""no" 1>&6
3868 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3869 echo "configure:3870: checking for main in -lcompat" >&5
3870 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 ac_save_LIBS="$LIBS"
3875 LIBS="-lcompat $LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3886 eval "ac_cv_lib_$ac_lib_var=yes"
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 eval "ac_cv_lib_$ac_lib_var=no"
3894 LIBS="$ac_save_LIBS"
3897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3899 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3900 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3901 cat >> confdefs.h <<EOF
3902 #define $ac_tr_lib 1
3905 LIBS="-lcompat $LIBS"
3908 echo "$ac_t""no" 1>&6
3911 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3912 echo "configure:3913: checking for main in -lBSD" >&5
3913 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 ac_save_LIBS="$LIBS"
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3929 eval "ac_cv_lib_$ac_lib_var=yes"
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 eval "ac_cv_lib_$ac_lib_var=no"
3937 LIBS="$ac_save_LIBS"
3940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3942 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3943 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3944 cat >> confdefs.h <<EOF
3945 #define $ac_tr_lib 1
3951 echo "$ac_t""no" 1>&6
3954 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3955 echo "configure:3956: checking for main in -lgen" >&5
3956 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3958 echo $ac_n "(cached) $ac_c" 1>&6
3960 ac_save_LIBS="$LIBS"
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3970 if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3972 eval "ac_cv_lib_$ac_lib_var=yes"
3974 echo "configure: failed program was:" >&5
3975 cat conftest.$ac_ext >&5
3977 eval "ac_cv_lib_$ac_lib_var=no"
3980 LIBS="$ac_save_LIBS"
3983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3984 echo "$ac_t""yes" 1>&6
3985 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3986 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3987 cat >> confdefs.h <<EOF
3988 #define $ac_tr_lib 1
3994 echo "$ac_t""no" 1>&6
3997 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3998 echo "configure:3999: checking for main in -lPW" >&5
3999 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 ac_save_LIBS="$LIBS"
4005 cat > conftest.$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.$ac_ext >&5
4020 eval "ac_cv_lib_$ac_lib_var=no"
4023 LIBS="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4030 cat >> confdefs.h <<EOF
4031 #define $ac_tr_lib 1
4037 echo "$ac_t""no" 1>&6
4041 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4042 echo "configure:4043: checking for library containing crypt" >&5
4043 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 ac_func_search_save_LIBS="$LIBS"
4047 ac_cv_search_crypt="no"
4048 cat > conftest.$ac_ext <<EOF
4049 #line 4050 "configure"
4050 #include "confdefs.h"
4051 /* Override any gcc2 internal prototype to avoid an error. */
4052 /* We use char because int might match the return type of a gcc2
4053 builtin and then its argument prototype would still apply. */
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4062 ac_cv_search_crypt="none required"
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4068 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4069 LIBS="-l$i $ac_func_search_save_LIBS"
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4084 ac_cv_search_crypt="-l$i"
4087 echo "configure: failed program was:" >&5
4088 cat conftest.$ac_ext >&5
4092 LIBS="$ac_func_search_save_LIBS"
4095 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4096 if test "$ac_cv_search_crypt" != "no"; then
4097 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4102 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4103 echo "configure:4104: checking for inflate in -lz" >&5
4104 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 ac_save_LIBS="$LIBS"
4110 cat > conftest.$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4122 if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4124 eval "ac_cv_lib_$ac_lib_var=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_lib_$ac_lib_var=no"
4132 LIBS="$ac_save_LIBS"
4135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4138 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4139 cat >> confdefs.h <<EOF
4140 #define $ac_tr_lib 1
4146 echo "$ac_t""no" 1>&6
4150 echo $ac_n "checking for library containing __inet_ntoa""... $ac_c" 1>&6
4151 echo "configure:4152: checking for library containing __inet_ntoa" >&5
4152 if eval "test \"`echo '$''{'ac_cv_search___inet_ntoa'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 ac_func_search_save_LIBS="$LIBS"
4156 ac_cv_search___inet_ntoa="no"
4157 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* Override any gcc2 internal prototype to avoid an error. */
4161 /* We use char because int might match the return type of a gcc2
4162 builtin and then its argument prototype would still apply. */
4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4171 ac_cv_search___inet_ntoa="none required"
4173 echo "configure: failed program was:" >&5
4174 cat conftest.$ac_ext >&5
4177 test "$ac_cv_search___inet_ntoa" = "no" && for i in bind; do
4178 LIBS="-l$i $ac_func_search_save_LIBS"
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 /* Override any gcc2 internal prototype to avoid an error. */
4183 /* We use char because int might match the return type of a gcc2
4184 builtin and then its argument prototype would still apply. */
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 ac_cv_search___inet_ntoa="-l$i"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4201 LIBS="$ac_func_search_save_LIBS"
4204 echo "$ac_t""$ac_cv_search___inet_ntoa" 1>&6
4205 if test "$ac_cv_search___inet_ntoa" != "no"; then
4206 test "$ac_cv_search___inet_ntoa" = "none required" || LIBS="$ac_cv_search___inet_ntoa $LIBS"
4213 if test "$with_krb4" = yes ; then
4214 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4215 echo "configure:4216: checking for des_encrypt in -ldes" >&5
4216 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 ac_save_LIBS="$LIBS"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 eval "ac_cv_lib_$ac_lib_var=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_lib_$ac_lib_var=no"
4244 LIBS="$ac_save_LIBS"
4247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4251 cat >> confdefs.h <<EOF
4252 #define $ac_tr_lib 1
4258 echo "$ac_t""no" 1>&6
4259 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4262 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4263 echo "configure:4264: checking for krb_sendauth in -lkrb" >&5
4264 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 ac_save_LIBS="$LIBS"
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* Override any gcc2 internal prototype to avoid an error. */
4274 /* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4276 char krb_sendauth();
4282 if { (eval echo configure:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284 eval "ac_cv_lib_$ac_lib_var=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 eval "ac_cv_lib_$ac_lib_var=no"
4292 LIBS="$ac_save_LIBS"
4295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4299 cat >> confdefs.h <<EOF
4300 #define $ac_tr_lib 1
4306 echo "$ac_t""no" 1>&6
4307 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4312 if test "$with_krb5" = yes ; then
4313 echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
4314 echo "configure:4315: checking for main in -lcom_err" >&5
4315 ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
4316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 ac_save_LIBS="$LIBS"
4320 LIBS="-lcom_err $LIBS"
4321 cat > conftest.$ac_ext <<EOF
4322 #line 4323 "configure"
4323 #include "confdefs.h"
4329 if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4331 eval "ac_cv_lib_$ac_lib_var=yes"
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4336 eval "ac_cv_lib_$ac_lib_var=no"
4339 LIBS="$ac_save_LIBS"
4342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4343 echo "$ac_t""yes" 1>&6
4344 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_lib 1
4350 LIBS="-lcom_err $LIBS"
4353 echo "$ac_t""no" 1>&6
4354 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4357 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
4358 echo "configure:4359: checking for main in -lcrypto" >&5
4359 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS="$LIBS"
4364 LIBS="-lcrypto $LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4375 eval "ac_cv_lib_$ac_lib_var=yes"
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4380 eval "ac_cv_lib_$ac_lib_var=no"
4383 LIBS="$ac_save_LIBS"
4386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4390 cat >> confdefs.h <<EOF
4391 #define $ac_tr_lib 1
4394 LIBS="-lcrypto $LIBS"
4397 echo "$ac_t""no" 1>&6
4398 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4401 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
4402 echo "configure:4403: checking for main in -lkrb5" >&5
4403 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS="$LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4434 cat >> confdefs.h <<EOF
4435 #define $ac_tr_lib 1
4441 echo "$ac_t""no" 1>&6
4442 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4447 if test "$with_openssl" = yes ; then
4448 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4449 echo "configure:4450: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4450 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4452 echo $ac_n "(cached) $ac_c" 1>&6
4454 ac_save_LIBS="$LIBS"
4455 LIBS="-lcrypto $LIBS"
4456 cat > conftest.$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* Override any gcc2 internal prototype to avoid an error. */
4460 /* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462 char CRYPTO_new_ex_data();
4465 CRYPTO_new_ex_data()
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_lib_$ac_lib_var=no"
4478 LIBS="$ac_save_LIBS"
4481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4484 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4485 cat >> confdefs.h <<EOF
4486 #define $ac_tr_lib 1
4489 LIBS="-lcrypto $LIBS"
4492 echo "$ac_t""no" 1>&6
4493 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4496 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4497 echo "configure:4498: checking for SSL_library_init in -lssl" >&5
4498 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS="$LIBS"
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char SSL_library_init();
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_lib_$ac_lib_var=no"
4526 LIBS="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4533 cat >> confdefs.h <<EOF
4534 #define $ac_tr_lib 1
4540 echo "$ac_t""no" 1>&6
4541 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4550 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
4552 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4553 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_hdr" >&5
4555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4564 { (eval echo configure:4565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4566 if test -z "$ac_err"; then
4568 eval "ac_cv_header_$ac_safe=yes"
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4574 eval "ac_cv_header_$ac_safe=no"
4578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4580 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4581 cat >> confdefs.h <<EOF
4582 #define $ac_tr_hdr 1
4586 echo "$ac_t""no" 1>&6
4591 for ac_hdr in netinet/in.h
4593 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4594 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_hdr" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4605 { (eval echo configure:4606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4607 if test -z "$ac_err"; then
4609 eval "ac_cv_header_$ac_safe=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.$ac_ext >&5
4615 eval "ac_cv_header_$ac_safe=no"
4619 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4622 cat >> confdefs.h <<EOF
4623 #define $ac_tr_hdr 1
4627 echo "$ac_t""no" 1>&6
4631 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4632 echo "configure:4633: checking for netinet/tcp.h" >&5
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4637 #ifdef HAVE_NETINET_IN_H
4638 #include <netinet/in.h>
4640 #include <netinet/tcp.h>
4643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4644 { (eval echo configure:4645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4646 if test -z "$ac_err"; then
4648 cat >> confdefs.h <<\EOF
4649 #define HAVE_NETINET_TCP_H 1
4651 echo "$ac_t""yes" 1>&6
4654 echo "configure: failed program was:" >&5
4655 cat conftest.$ac_ext >&5
4657 echo "$ac_t""no" 1>&6
4661 for ac_hdr in readline/readline.h readline.h
4663 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4664 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_hdr" >&5
4666 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 eval "ac_cv_header_$ac_safe=yes"
4682 echo "configure: failed program was:" >&5
4683 cat conftest.$ac_ext >&5
4685 eval "ac_cv_header_$ac_safe=no"
4689 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4692 cat >> confdefs.h <<EOF
4693 #define $ac_tr_hdr 1
4697 echo "$ac_t""no" 1>&6
4701 for ac_hdr in readline/history.h history.h
4703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4705 echo "configure:4706: checking for $ac_hdr" >&5
4706 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4707 echo $ac_n "(cached) $ac_c" 1>&6
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4715 { (eval echo configure:4716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4717 if test -z "$ac_err"; then
4719 eval "ac_cv_header_$ac_safe=yes"
4722 echo "configure: failed program was:" >&5
4723 cat conftest.$ac_ext >&5
4725 eval "ac_cv_header_$ac_safe=no"
4729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4730 echo "$ac_t""yes" 1>&6
4731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4732 cat >> confdefs.h <<EOF
4733 #define $ac_tr_hdr 1
4737 echo "$ac_t""no" 1>&6
4742 if test "$with_krb4" = yes ; then
4743 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4744 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4745 echo "configure:4746: checking for krb.h" >&5
4746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 cat > conftest.$ac_ext <<EOF
4750 #line 4751 "configure"
4751 #include "confdefs.h"
4754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4755 { (eval echo configure:4756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4757 if test -z "$ac_err"; then
4759 eval "ac_cv_header_$ac_safe=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4765 eval "ac_cv_header_$ac_safe=no"
4769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4770 echo "$ac_t""yes" 1>&6
4773 echo "$ac_t""no" 1>&6
4774 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4779 if test "$with_krb5" = yes ; then
4780 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4781 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4782 echo "configure:4783: checking for krb5.h" >&5
4783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4792 { (eval echo configure:4793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4794 if test -z "$ac_err"; then
4796 eval "ac_cv_header_$ac_safe=yes"
4799 echo "configure: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4802 eval "ac_cv_header_$ac_safe=no"
4806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4807 echo "$ac_t""yes" 1>&6
4810 echo "$ac_t""no" 1>&6
4811 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4814 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4815 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4816 echo "configure:4817: checking for com_err.h" >&5
4817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 cat > conftest.$ac_ext <<EOF
4821 #line 4822 "configure"
4822 #include "confdefs.h"
4823 #include <com_err.h>
4825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4826 { (eval echo configure:4827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4828 if test -z "$ac_err"; then
4830 eval "ac_cv_header_$ac_safe=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.$ac_ext >&5
4836 eval "ac_cv_header_$ac_safe=no"
4840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4841 echo "$ac_t""yes" 1>&6
4844 echo "$ac_t""no" 1>&6
4845 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4850 if test "$with_openssl" = yes ; then
4851 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4852 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for openssl/ssl.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4860 #include <openssl/ssl.h>
4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4865 if test -z "$ac_err"; then
4867 eval "ac_cv_header_$ac_safe=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_header_$ac_safe=no"
4877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4881 echo "$ac_t""no" 1>&6
4882 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4885 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4886 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4887 echo "configure:4888: checking for openssl/err.h" >&5
4888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4894 #include <openssl/err.h>
4896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4897 { (eval echo configure:4898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4899 if test -z "$ac_err"; then
4901 eval "ac_cv_header_$ac_safe=yes"
4904 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4907 eval "ac_cv_header_$ac_safe=no"
4911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4912 echo "$ac_t""yes" 1>&6
4915 echo "$ac_t""no" 1>&6
4916 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4923 ## Types, structures, compiler characteristics
4925 echo $ac_n "checking for working const""... $ac_c" 1>&6
4926 echo "configure:4927: checking for working const" >&5
4927 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4936 /* Ultrix mips cc rejects this. */
4937 typedef int charset[2]; const charset x;
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *ccp;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in an arm
4946 of an if-expression whose if-part is not a constant expression */
4947 const char *g = "string";
4948 ccp = &g + (g ? g-g : 0);
4949 /* HPUX 7.0 cc rejects these. */
4952 ccp = (char const *const *) p;
4953 { /* SCO 3.2v4 cc rejects this. */
4955 char const *s = 0 ? (char *) 0 : (char const *) 0;
4959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4961 const int *foo = &x[0];
4964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4965 typedef const int *iptr;
4969 { /* AIX XL C 1.02.0.0 rejects this saying
4970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4971 struct s { int j; const int *ap[3]; };
4972 struct s *b; b->j = 5;
4974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4980 if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4992 echo "$ac_t""$ac_cv_c_const" 1>&6
4993 if test $ac_cv_c_const = no; then
4994 cat >> confdefs.h <<\EOF
5000 echo $ac_n "checking for inline""... $ac_c" 1>&6
5001 echo "configure:5002: checking for inline" >&5
5002 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5006 for ac_kw in inline __inline__ __inline; do
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5015 if { (eval echo configure:5016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5017 ac_cv_c_inline=$ac_kw; break
5019 echo "configure: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5027 echo "$ac_t""$ac_cv_c_inline" 1>&6
5028 case "$ac_cv_c_inline" in
5030 no) cat >> confdefs.h <<\EOF
5034 *) cat >> confdefs.h <<EOF
5035 #define inline $ac_cv_c_inline
5042 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5043 echo "configure:5044: checking for preprocessor stringizing operator" >&5
5044 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5045 echo $ac_n "(cached) $ac_c" 1>&6
5047 cat > conftest.$ac_ext <<EOF
5048 #line 5049 "configure"
5049 #include "confdefs.h"
5053 char *s = x(teststring);
5056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5057 egrep "#teststring" >/dev/null 2>&1; then
5059 ac_cv_c_stringize=no
5062 ac_cv_c_stringize=yes
5068 if test "${ac_cv_c_stringize}" = yes
5070 cat >> confdefs.h <<\EOF
5071 #define HAVE_STRINGIZE 1
5075 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5077 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5078 echo "configure:5079: checking for signed types" >&5
5079 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5087 signed char c; signed short s; signed int i;
5090 if { (eval echo configure:5091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 pgac_cv_c_signed=yes
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5102 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5103 if test x"$pgac_cv_c_signed" = xno ; then
5104 cat >> confdefs.h <<\EOF
5109 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5110 echo "configure:5111: checking for volatile" >&5
5111 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5119 extern volatile int i;
5122 if { (eval echo configure:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5124 pgac_cv_c_volatile=yes
5126 echo "configure: failed program was:" >&5
5127 cat conftest.$ac_ext >&5
5129 pgac_cv_c_volatile=no
5134 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5135 if test x"$pgac_cv_c_volatile" = xno ; then
5136 cat >> confdefs.h <<\EOF
5141 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5142 echo "configure:5143: checking whether struct tm is in sys/time.h or time.h" >&5
5143 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 #include <sys/types.h>
5152 struct tm *tp; tp->tm_sec;
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 ac_cv_struct_tm=time.h
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 ac_cv_struct_tm=sys/time.h
5167 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5168 if test $ac_cv_struct_tm = sys/time.h; then
5169 cat >> confdefs.h <<\EOF
5170 #define TM_IN_SYS_TIME 1
5175 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5176 echo "configure:5177: checking for tm_zone in struct tm" >&5
5177 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 cat > conftest.$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5183 #include <sys/types.h>
5184 #include <$ac_cv_struct_tm>
5186 struct tm tm; tm.tm_zone;
5189 if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 ac_cv_struct_tm_zone=yes
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 ac_cv_struct_tm_zone=no
5201 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5202 if test "$ac_cv_struct_tm_zone" = yes; then
5203 cat >> confdefs.h <<\EOF
5204 #define HAVE_TM_ZONE 1
5208 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5209 echo "configure:5210: checking for tzname" >&5
5210 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5217 #ifndef tzname /* For SGI. */
5218 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5226 ac_cv_var_tzname=yes
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5236 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5237 if test $ac_cv_var_tzname = yes; then
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_TZNAME 1
5245 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5246 echo "configure:5247: checking for union semun" >&5
5247 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 cat > conftest.$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5253 #include <sys/types.h>
5254 #include <sys/ipc.h>
5255 #include <sys/sem.h>
5260 if { (eval echo configure:5261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5262 pgac_cv_union_semun=yes
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 pgac_cv_union_semun=no
5272 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5273 if test x"$pgac_cv_union_semun" = xyes ; then
5274 cat >> confdefs.h <<\EOF
5275 #define HAVE_UNION_SEMUN 1
5279 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5280 echo "configure:5281: checking for struct sockaddr_un" >&5
5281 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5287 #include <sys/types.h>
5288 #ifdef HAVE_SYS_UN_H
5292 struct sockaddr_un un;
5295 if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5297 pgac_cv_struct_sockaddr_un=yes
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5302 pgac_cv_struct_sockaddr_un=no
5307 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5308 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5309 cat >> confdefs.h <<\EOF
5310 #define HAVE_STRUCT_SOCKADDR_UN 1
5316 ## Functions, global variables
5318 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5319 echo "configure:5320: checking for int timezone" >&5
5320 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5328 int res = timezone / 60;
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333 pgac_cv_var_int_timezone=yes
5335 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 pgac_cv_var_int_timezone=no
5343 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5344 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5345 cat >> confdefs.h <<\EOF
5346 #define HAVE_INT_TIMEZONE
5350 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5351 echo "configure:5352: checking types of arguments for accept()" >&5
5352 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5353 echo $ac_n "(cached) $ac_c" 1>&6
5355 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5362 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5363 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5364 cat > conftest.$ac_ext <<EOF
5365 #line 5366 "configure"
5366 #include "confdefs.h"
5367 #ifdef HAVE_SYS_TYPES_H
5368 #include <sys/types.h>
5370 #ifdef HAVE_SYS_SOCKET_H
5371 #include <sys/socket.h>
5373 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5380 ac_not_found=no; break 3
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5391 if test "$ac_not_found" = yes; then
5392 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5400 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5401 cat >> confdefs.h <<EOF
5402 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5405 cat >> confdefs.h <<EOF
5406 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5409 cat >> confdefs.h <<EOF
5410 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5414 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5415 echo "configure:5416: checking whether gettimeofday takes only one argument" >&5
5416 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 #include <sys/time.h>
5425 struct timezone *tzp;
5426 gettimeofday(tp,tzp);
5429 if { (eval echo configure:5430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5431 pgac_cv_func_gettimeofday_1arg=no
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 pgac_cv_func_gettimeofday_1arg=yes
5441 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5442 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5443 cat >> confdefs.h <<\EOF
5444 #define GETTIMEOFDAY_1ARG
5449 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5450 echo "configure:5451: checking for fcntl(F_SETLK)" >&5
5452 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5462 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5463 lck.l_type = F_WRLCK;
5464 fcntl(0, F_SETLK, &lck);
5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5469 cat >> confdefs.h <<\EOF
5470 #define HAVE_FCNTL_SETLK 1
5472 echo "$ac_t""yes" 1>&6
5474 echo "configure: failed program was:" >&5
5475 cat conftest.$ac_ext >&5
5477 echo "$ac_t""no" 1>&6
5483 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_func" >&5
5487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 /* System header to define __stub macros and hopefully few prototypes,
5494 which can conflict with char $ac_func(); below. */
5496 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5503 /* The GNU C library defines this for functions which it implements
5504 to always fail with ENOSYS. Some functions are actually named
5505 something starting with __ and the normal name is an alias. */
5506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5514 if { (eval echo configure:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5516 eval "ac_cv_func_$ac_func=yes"
5518 echo "configure: failed program was:" >&5
5519 cat conftest.$ac_ext >&5
5521 eval "ac_cv_func_$ac_func=no"
5526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5527 echo "$ac_t""yes" 1>&6
5528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5529 cat >> confdefs.h <<EOF
5530 #define $ac_tr_func 1
5534 echo "$ac_t""no" 1>&6
5539 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5540 echo "configure:5541: checking for PS_STRINGS" >&5
5541 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5542 echo $ac_n "(cached) $ac_c" 1>&6
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 #include <machine/vmparam.h>
5548 #include <sys/exec.h>
5551 PS_STRINGS->ps_nargvstr = 1;
5552 PS_STRINGS->ps_argvstr = "foo";
5555 if { (eval echo configure:5556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5557 pgac_cv_var_PS_STRINGS=yes
5559 echo "configure: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 pgac_cv_var_PS_STRINGS=no
5567 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5568 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5569 cat >> confdefs.h <<\EOF
5570 #define HAVE_PS_STRINGS
5576 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5577 echo "configure:5578: checking for snprintf" >&5
5578 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5579 echo $ac_n "(cached) $ac_c" 1>&6
5581 cat > conftest.$ac_ext <<EOF
5582 #line 5583 "configure"
5583 #include "confdefs.h"
5584 /* System header to define __stub macros and hopefully few prototypes,
5585 which can conflict with char snprintf(); below. */
5587 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 eval "ac_cv_func_snprintf=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 eval "ac_cv_func_snprintf=no"
5617 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5619 cat >> confdefs.h <<\EOF
5620 #define HAVE_SNPRINTF 1
5624 echo "$ac_t""no" 1>&6
5625 SNPRINTF='snprintf.o'
5628 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5629 echo "configure:5630: checking for vsnprintf" >&5
5630 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 /* System header to define __stub macros and hopefully few prototypes,
5637 which can conflict with char vsnprintf(); below. */
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5646 /* The GNU C library defines this for functions which it implements
5647 to always fail with ENOSYS. Some functions are actually named
5648 something starting with __ and the normal name is an alias. */
5649 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 eval "ac_cv_func_vsnprintf=yes"
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 eval "ac_cv_func_vsnprintf=no"
5669 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5670 echo "$ac_t""yes" 1>&6
5671 cat >> confdefs.h <<\EOF
5672 #define HAVE_VSNPRINTF 1
5676 echo "$ac_t""no" 1>&6
5677 SNPRINTF='snprintf.o'
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687 egrep "snprintf" >/dev/null 2>&1; then
5689 cat >> confdefs.h <<\EOF
5690 #define HAVE_SNPRINTF_DECL 1
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702 egrep "vsnprintf" >/dev/null 2>&1; then
5704 cat >> confdefs.h <<\EOF
5705 #define HAVE_VSNPRINTF_DECL 1
5712 # do this one the hard way in case isinf() is a macro
5713 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5714 echo "configure:5715: checking for isinf" >&5
5715 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5716 echo $ac_n "(cached) $ac_c" 1>&6
5718 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure"
5720 #include "confdefs.h"
5724 double x = 0.0; int res = isinf(x);
5727 if { (eval echo configure:5728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5729 ac_cv_func_isinf=yes
5731 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5739 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5741 if test $ac_cv_func_isinf = yes ; then
5742 cat >> confdefs.h <<\EOF
5743 #define HAVE_ISINF 1
5749 # Look for a way to implement a substitute for isinf()
5750 for ac_func in fpclass fp_class fp_class_d class
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h <<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5808 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5809 echo "configure:5810: checking for getrusage" >&5
5810 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char getrusage(); below. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5826 /* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 eval "ac_cv_func_getrusage=yes"
5841 echo "configure: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 eval "ac_cv_func_getrusage=no"
5849 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5850 echo "$ac_t""yes" 1>&6
5851 cat >> confdefs.h <<\EOF
5852 #define HAVE_GETRUSAGE 1
5856 echo "$ac_t""no" 1>&6
5857 GETRUSAGE='getrusage.o'
5861 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5862 echo "configure:5863: checking for srandom" >&5
5863 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* System header to define __stub macros and hopefully few prototypes,
5870 which can conflict with char srandom(); below. */
5872 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5879 /* The GNU C library defines this for functions which it implements
5880 to always fail with ENOSYS. Some functions are actually named
5881 something starting with __ and the normal name is an alias. */
5882 #if defined (__stub_srandom) || defined (__stub___srandom)
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 eval "ac_cv_func_srandom=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5897 eval "ac_cv_func_srandom=no"
5902 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_SRANDOM 1
5909 echo "$ac_t""no" 1>&6
5914 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5915 echo "configure:5916: checking for gethostname" >&5
5916 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 /* System header to define __stub macros and hopefully few prototypes,
5923 which can conflict with char gethostname(); below. */
5925 /* Override any gcc2 internal prototype to avoid an error. */
5926 /* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5932 /* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_func_gethostname=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_func_gethostname=no"
5955 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5956 echo "$ac_t""yes" 1>&6
5957 cat >> confdefs.h <<\EOF
5958 #define HAVE_GETHOSTNAME 1
5962 echo "$ac_t""no" 1>&6
5963 GETHOSTNAME='gethostname.o'
5967 echo $ac_n "checking for random""... $ac_c" 1>&6
5968 echo "configure:5969: checking for random" >&5
5969 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char random(); below. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_random) || defined (__stub___random)
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_func_random=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_func_random=no"
6008 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 cat >> confdefs.h <<\EOF
6011 #define HAVE_RANDOM 1
6015 echo "$ac_t""no" 1>&6
6016 MISSING_RANDOM='random.o'
6020 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6021 echo "configure:6022: checking for inet_aton" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char inet_aton(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_inet_aton=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_inet_aton=no"
6061 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 cat >> confdefs.h <<\EOF
6064 #define HAVE_INET_ATON 1
6068 echo "$ac_t""no" 1>&6
6069 INET_ATON='inet_aton.o'
6073 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6074 echo "configure:6075: checking for strerror" >&5
6075 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 /* System header to define __stub macros and hopefully few prototypes,
6082 which can conflict with char strerror(); below. */
6084 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6091 /* The GNU C library defines this for functions which it implements
6092 to always fail with ENOSYS. Some functions are actually named
6093 something starting with __ and the normal name is an alias. */
6094 #if defined (__stub_strerror) || defined (__stub___strerror)
6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6104 eval "ac_cv_func_strerror=yes"
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 eval "ac_cv_func_strerror=no"
6114 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6115 echo "$ac_t""yes" 1>&6
6116 cat >> confdefs.h <<\EOF
6117 #define HAVE_STRERROR 1
6121 echo "$ac_t""no" 1>&6
6122 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
6127 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6128 echo "configure:6129: checking for strdup" >&5
6129 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6130 echo $ac_n "(cached) $ac_c" 1>&6
6132 cat > conftest.$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6135 /* System header to define __stub macros and hopefully few prototypes,
6136 which can conflict with char strdup(); below. */
6138 /* Override any gcc2 internal prototype to avoid an error. */
6139 /* We use char because int might match the return type of a gcc2
6140 builtin and then its argument prototype would still apply. */
6145 /* The GNU C library defines this for functions which it implements
6146 to always fail with ENOSYS. Some functions are actually named
6147 something starting with __ and the normal name is an alias. */
6148 #if defined (__stub_strdup) || defined (__stub___strdup)
6156 if { (eval echo configure:6157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6158 eval "ac_cv_func_strdup=yes"
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6163 eval "ac_cv_func_strdup=no"
6168 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6170 cat >> confdefs.h <<\EOF
6171 #define HAVE_STRDUP 1
6175 echo "$ac_t""no" 1>&6
6176 STRDUP='../../utils/strdup.o'
6180 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6181 echo "configure:6182: checking for strtol" >&5
6182 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 cat > conftest.$ac_ext <<EOF
6186 #line 6187 "configure"
6187 #include "confdefs.h"
6188 /* System header to define __stub macros and hopefully few prototypes,
6189 which can conflict with char strtol(); below. */
6191 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined (__stub_strtol) || defined (__stub___strtol)
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 eval "ac_cv_func_strtol=yes"
6213 echo "configure: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 eval "ac_cv_func_strtol=no"
6221 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6222 echo "$ac_t""yes" 1>&6
6223 cat >> confdefs.h <<\EOF
6224 #define HAVE_STRTOL 1
6228 echo "$ac_t""no" 1>&6
6233 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6234 echo "configure:6235: checking for strtoul" >&5
6235 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6236 echo $ac_n "(cached) $ac_c" 1>&6
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char strtoul(); below. */
6244 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6251 /* The GNU C library defines this for functions which it implements
6252 to always fail with ENOSYS. Some functions are actually named
6253 something starting with __ and the normal name is an alias. */
6254 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6262 if { (eval echo configure:6263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6264 eval "ac_cv_func_strtoul=yes"
6266 echo "configure: failed program was:" >&5
6267 cat conftest.$ac_ext >&5
6269 eval "ac_cv_func_strtoul=no"
6274 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6275 echo "$ac_t""yes" 1>&6
6276 cat >> confdefs.h <<\EOF
6277 #define HAVE_STRTOUL 1
6281 echo "$ac_t""no" 1>&6
6286 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6287 echo "configure:6288: checking for strcasecmp" >&5
6288 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6289 echo $ac_n "(cached) $ac_c" 1>&6
6291 cat > conftest.$ac_ext <<EOF
6292 #line 6293 "configure"
6293 #include "confdefs.h"
6294 /* System header to define __stub macros and hopefully few prototypes,
6295 which can conflict with char strcasecmp(); below. */
6297 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6304 /* The GNU C library defines this for functions which it implements
6305 to always fail with ENOSYS. Some functions are actually named
6306 something starting with __ and the normal name is an alias. */
6307 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6315 if { (eval echo configure:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6317 eval "ac_cv_func_strcasecmp=yes"
6319 echo "configure: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6322 eval "ac_cv_func_strcasecmp=no"
6327 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6328 echo "$ac_t""yes" 1>&6
6329 cat >> confdefs.h <<\EOF
6330 #define HAVE_STRCASECMP 1
6334 echo "$ac_t""no" 1>&6
6335 STRCASECMP='strcasecmp.o'
6339 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6340 echo "configure:6341: checking for cbrt" >&5
6341 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6344 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6347 /* System header to define __stub macros and hopefully few prototypes,
6348 which can conflict with char cbrt(); below. */
6350 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6357 /* The GNU C library defines this for functions which it implements
6358 to always fail with ENOSYS. Some functions are actually named
6359 something starting with __ and the normal name is an alias. */
6360 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6370 eval "ac_cv_func_cbrt=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 eval "ac_cv_func_cbrt=no"
6380 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 cat >> confdefs.h <<\EOF
6387 echo "$ac_t""no" 1>&6
6388 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6389 echo "configure:6390: checking for cbrt in -lm" >&5
6390 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6
6394 ac_save_LIBS="$LIBS"
6396 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure"
6398 #include "confdefs.h"
6399 /* Override any gcc2 internal prototype to avoid an error. */
6400 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6410 eval "ac_cv_lib_$ac_lib_var=yes"
6412 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5
6415 eval "ac_cv_lib_$ac_lib_var=no"
6418 LIBS="$ac_save_LIBS"
6421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6422 echo "$ac_t""yes" 1>&6
6423 cat >> confdefs.h <<\EOF
6428 echo "$ac_t""no" 1>&6
6434 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6435 # this hackery with HPUXMATHLIB allows us to cope.
6439 if [ -r /lib/pa1.1/libm.a ] ; then
6440 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6445 echo $ac_n "checking for rint""... $ac_c" 1>&6
6446 echo "configure:6447: checking for rint" >&5
6447 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6450 cat > conftest.$ac_ext <<EOF
6451 #line 6452 "configure"
6452 #include "confdefs.h"
6453 /* System header to define __stub macros and hopefully few prototypes,
6454 which can conflict with char rint(); below. */
6456 /* Override any gcc2 internal prototype to avoid an error. */
6457 /* We use char because int might match the return type of a gcc2
6458 builtin and then its argument prototype would still apply. */
6463 /* The GNU C library defines this for functions which it implements
6464 to always fail with ENOSYS. Some functions are actually named
6465 something starting with __ and the normal name is an alias. */
6466 #if defined (__stub_rint) || defined (__stub___rint)
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6476 eval "ac_cv_func_rint=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6481 eval "ac_cv_func_rint=no"
6486 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6488 cat >> confdefs.h <<\EOF
6493 echo "$ac_t""no" 1>&6
6494 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6495 echo "configure:6496: checking for rint in -lm" >&5
6496 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6500 ac_save_LIBS="$LIBS"
6501 LIBS="-lm $HPUXMATHLIB $LIBS"
6502 cat > conftest.$ac_ext <<EOF
6503 #line 6504 "configure"
6504 #include "confdefs.h"
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6516 eval "ac_cv_lib_$ac_lib_var=yes"
6518 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5
6521 eval "ac_cv_lib_$ac_lib_var=no"
6524 LIBS="$ac_save_LIBS"
6527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6528 echo "$ac_t""yes" 1>&6
6529 cat >> confdefs.h <<\EOF
6534 echo "$ac_t""no" 1>&6
6541 # Readline versions < 2.1 don't have rl_completion_append_character
6542 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6543 echo "configure:6544: checking for rl_completion_append_character" >&5
6544 cat > conftest.$ac_ext <<EOF
6545 #line 6546 "configure"
6546 #include "confdefs.h"
6548 #ifdef HAVE_READLINE_H
6549 # include <readline.h>
6551 #ifdef HAVE_READLINE_READLINE_H
6552 # include <readline/readline.h>
6555 rl_completion_append_character = 'x';
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560 echo "$ac_t""yes" 1>&6
6561 cat >> confdefs.h <<\EOF
6562 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6566 echo "configure: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6569 echo "$ac_t""no" 1>&6
6574 # Check whether readline's filename_completion_function is declared.
6575 # Some prehistoric versions of readline, in particular those shipped
6576 # with earlier Cygwins don't have this declared, although it's in the
6578 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6579 echo "configure:6580: checking whether filename_completion_function is declared" >&5
6580 if test "$ac_cv_header_readline_h" = yes; then
6581 _readline_header='readline.h'
6582 elif test "$ac_cv_header_readline_readline_h" = yes; then
6583 _readline_header='readline/readline.h'
6585 _readline_header='xxx'
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 #include <$_readline_header>
6592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593 egrep "filename_completion_function" >/dev/null 2>&1; then
6595 cat >> confdefs.h <<\EOF
6596 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6599 echo "$ac_t""yes" 1>&6
6602 echo "$ac_t""no" 1>&6
6609 echo $ac_n "checking for finite""... $ac_c" 1>&6
6610 echo "configure:6611: checking for finite" >&5
6611 cat > conftest.$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6616 int dummy=finite(1.0);
6619 if { (eval echo configure:6620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6621 cat >> confdefs.h <<\EOF
6622 #define HAVE_FINITE 1
6624 echo "$ac_t""yes" 1>&6
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 echo "$ac_t""no" 1>&6
6633 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6634 echo "configure:6635: checking for sigsetjmp" >&5
6635 cat > conftest.$ac_ext <<EOF
6636 #line 6637 "configure"
6637 #include "confdefs.h"
6640 sigjmp_buf x; sigsetjmp(x, 1);
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 cat >> confdefs.h <<\EOF
6646 #define HAVE_SIGSETJMP 1
6648 echo "$ac_t""yes" 1>&6
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6653 echo "$ac_t""no" 1>&6
6658 # Check whether --enable-syslog was given
6659 if test x"${enable_syslog+set}" = xset; then
6660 case $enable_syslog in
6662 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6663 echo "configure:6664: checking for syslog" >&5
6664 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char syslog(); below. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6680 /* The GNU C library defines this for functions which it implements
6681 to always fail with ENOSYS. Some functions are actually named
6682 something starting with __ and the normal name is an alias. */
6683 #if defined (__stub_syslog) || defined (__stub___syslog)
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_func_syslog=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_func_syslog=no"
6703 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 cat >> confdefs.h <<\EOF
6706 #define ENABLE_SYSLOG 1
6710 echo "$ac_t""no" 1>&6
6711 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6719 enableval=$enable_syslog
6720 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6722 esac # $enable_syslog
6730 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6731 echo "configure:6732: checking whether long int is 64 bits" >&5
6732 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6733 echo $ac_n "(cached) $ac_c" 1>&6
6735 if test "$cross_compiling" = yes; then
6736 pgac_cv_type_long_int_64=no
6737 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 typedef long int int64;
6745 * These are globals to discourage the compiler from folding all the
6746 * arithmetic tests down to compile-time constants.
6751 int does_int64_work()
6755 if (sizeof(int64) != 8)
6756 return 0; /* definitely not the right size */
6758 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6766 exit(! does_int64_work());
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6771 pgac_cv_type_long_int_64=yes
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 pgac_cv_type_long_int_64=no
6783 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6785 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6786 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6787 cat >> confdefs.h <<\EOF
6788 #define HAVE_LONG_INT_64
6794 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6795 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6796 echo "configure:6797: checking whether long long int is 64 bits" >&5
6797 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 if test "$cross_compiling" = yes; then
6801 pgac_cv_type_long_long_int_64=no
6802 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 typedef long long int int64;
6810 * These are globals to discourage the compiler from folding all the
6811 * arithmetic tests down to compile-time constants.
6816 int does_int64_work()
6820 if (sizeof(int64) != 8)
6821 return 0; /* definitely not the right size */
6823 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6831 exit(! does_int64_work());
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6836 pgac_cv_type_long_long_int_64=yes
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 pgac_cv_type_long_long_int_64=no
6848 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6850 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6851 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6852 cat >> confdefs.h <<\EOF
6853 #define HAVE_LONG_LONG_INT_64
6862 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6863 if [ x$SNPRINTF = x ] ; then
6864 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6865 echo "configure:6866: checking whether snprintf handles 'long long int' as %lld" >&5
6866 if test "$cross_compiling" = yes; then
6867 echo "$ac_t""assuming not on target machine" 1>&6
6868 # Force usage of our own snprintf, since we cannot test foreign snprintf
6869 SNPRINTF='snprintf.o'
6870 INT64_FORMAT='"%lld"'
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6877 typedef long long int int64;
6878 #define INT64_FORMAT "%lld"
6883 int does_int64_snprintf_work()
6888 if (sizeof(int64) != 8)
6889 return 0; /* doesn't look like the right size */
6892 snprintf(buf, 100, INT64_FORMAT, c);
6893 if (strcmp(buf, "800000140000005") != 0)
6894 return 0; /* either multiply or snprintf is busted */
6898 exit(! does_int64_snprintf_work());
6901 if { (eval echo configure:6902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6903 echo "$ac_t""yes" 1>&6
6904 INT64_FORMAT='"%lld"'
6907 echo "configure: failed program was:" >&5
6908 cat conftest.$ac_ext >&5
6910 echo "$ac_t""no" 1>&6
6911 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6912 echo "configure:6913: checking whether snprintf handles 'long long int' as %qd" >&5
6913 if test "$cross_compiling" = yes; then
6914 echo "$ac_t""assuming not on target machine" 1>&6
6915 # Force usage of our own snprintf, since we cannot test foreign snprintf
6916 SNPRINTF='snprintf.o'
6917 INT64_FORMAT='"%lld"'
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6924 typedef long long int int64;
6925 #define INT64_FORMAT "%qd"
6930 int does_int64_snprintf_work()
6935 if (sizeof(int64) != 8)
6936 return 0; /* doesn't look like the right size */
6939 snprintf(buf, 100, INT64_FORMAT, c);
6940 if (strcmp(buf, "800000140000005") != 0)
6941 return 0; /* either multiply or snprintf is busted */
6945 exit(! does_int64_snprintf_work());
6948 if { (eval echo configure:6949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6950 echo "$ac_t""yes" 1>&6
6951 INT64_FORMAT='"%qd"'
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6957 echo "$ac_t""no" 1>&6
6958 # Force usage of our own snprintf, since system snprintf is broken
6959 SNPRINTF='snprintf.o'
6960 INT64_FORMAT='"%lld"'
6971 # here if we previously decided we needed to use our own snprintf
6972 INT64_FORMAT='"%lld"'
6975 # Here if we are not using 'long long int' at all
6976 INT64_FORMAT='"%ld"'
6979 cat >> confdefs.h <<EOF
6980 #define INT64_FORMAT $INT64_FORMAT
6986 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6987 echo "configure:6988: checking alignment of short" >&5
6988 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6991 if test "$cross_compiling" = yes; then
6992 pgac_cv_alignof_short='sizeof(short)'
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6998 struct { char filler; short field; } mystruct;
7001 FILE *f=fopen("conftestval", "w");
7003 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7007 if { (eval echo configure:7008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7009 pgac_cv_alignof_short=`cat conftestval`
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7014 pgac_cv_alignof_short='sizeof(short)'
7020 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7021 cat >> confdefs.h <<EOF
7022 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7026 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7027 echo "configure:7028: checking alignment of int" >&5
7028 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7031 if test "$cross_compiling" = yes; then
7032 pgac_cv_alignof_int='sizeof(int)'
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7038 struct { char filler; int field; } mystruct;
7041 FILE *f=fopen("conftestval", "w");
7043 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7047 if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7049 pgac_cv_alignof_int=`cat conftestval`
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 pgac_cv_alignof_int='sizeof(int)'
7060 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7061 cat >> confdefs.h <<EOF
7062 #define ALIGNOF_INT $pgac_cv_alignof_int
7066 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7067 echo "configure:7068: checking alignment of long" >&5
7068 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7071 if test "$cross_compiling" = yes; then
7072 pgac_cv_alignof_long='sizeof(long)'
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7078 struct { char filler; long field; } mystruct;
7081 FILE *f=fopen("conftestval", "w");
7083 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7087 if { (eval echo configure:7088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7089 pgac_cv_alignof_long=`cat conftestval`
7091 echo "configure: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 pgac_cv_alignof_long='sizeof(long)'
7100 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7101 cat >> confdefs.h <<EOF
7102 #define ALIGNOF_LONG $pgac_cv_alignof_long
7106 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7107 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7108 echo "configure:7109: checking alignment of long long int" >&5
7109 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 if test "$cross_compiling" = yes; then
7113 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7115 cat > conftest.$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7119 struct { char filler; long long int field; } mystruct;
7122 FILE *f=fopen("conftestval", "w");
7124 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7130 pgac_cv_alignof_long_long_int=`cat conftestval`
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7135 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7141 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7142 cat >> confdefs.h <<EOF
7143 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7148 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7149 echo "configure:7150: checking alignment of double" >&5
7150 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7151 echo $ac_n "(cached) $ac_c" 1>&6
7153 if test "$cross_compiling" = yes; then
7154 pgac_cv_alignof_double='sizeof(double)'
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7160 struct { char filler; double field; } mystruct;
7163 FILE *f=fopen("conftestval", "w");
7165 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7171 pgac_cv_alignof_double=`cat conftestval`
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 pgac_cv_alignof_double='sizeof(double)'
7182 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7183 cat >> confdefs.h <<EOF
7184 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7190 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7191 MAX_ALIGNOF=$pgac_cv_alignof_long
7192 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7193 MAX_ALIGNOF=$pgac_cv_alignof_double
7195 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7196 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7199 MAX_ALIGNOF="$pgac_cv_alignof_double"
7201 cat >> confdefs.h <<EOF
7202 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7206 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7207 echo "configure:7208: checking for POSIX signal interface" >&5
7208 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7209 echo $ac_n "(cached) $ac_c" 1>&6
7211 cat > conftest.$ac_ext <<EOF
7212 #line 7213 "configure"
7213 #include "confdefs.h"
7217 struct sigaction act, oact;
7218 sigemptyset(&act.sa_mask);
7219 act.sa_flags = SA_RESTART;
7220 sigaction(0, &act, &oact);
7223 if { (eval echo configure:7224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7225 pgac_cv_func_posix_signals=yes
7227 echo "configure: failed program was:" >&5
7228 cat conftest.$ac_ext >&5
7230 pgac_cv_func_posix_signals=no
7235 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7236 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7237 cat >> confdefs.h <<\EOF
7238 #define HAVE_POSIX_SIGNALS
7242 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7246 # Check for Tcl configuration script tclConfig.sh
7247 if test "$with_tcl" = yes; then
7248 for ac_prog in tclsh tcl
7250 # Extract the first word of "$ac_prog", so it can be a program name with args.
7251 set dummy $ac_prog; ac_word=$2
7252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_word" >&5
7254 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7259 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7262 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7267 for ac_dir in $ac_dummy; do
7268 test -z "$ac_dir" && ac_dir=.
7269 if test -f $ac_dir/$ac_word; then
7270 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7278 TCLSH="$ac_cv_path_TCLSH"
7279 if test -n "$TCLSH"; then
7280 echo "$ac_t""$TCLSH" 1>&6
7282 echo "$ac_t""no" 1>&6
7285 test -n "$TCLSH" && break
7288 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7289 echo "configure:7290: checking for tclConfig.sh" >&5
7290 # Let user override test
7291 if test -z "$TCL_CONFIG_SH"; then
7292 pgac_test_dirs="$with_tclconfig"
7294 set X $pgac_test_dirs; shift
7295 if test $# -eq 0; then
7296 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7297 set X `echo 'puts $auto_path' | $TCLSH`; shift
7301 if test -r "$pgac_dir/tclConfig.sh"; then
7302 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7308 if test -z "$TCL_CONFIG_SH"; then
7309 echo "$ac_t""no" 1>&6
7310 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7312 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7319 # Check for Tk configuration script tkConfig.sh
7320 if test "$with_tk" = yes; then
7321 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7322 echo "configure:7323: checking for tkConfig.sh" >&5
7323 # Let user override test
7324 if test -z "$TK_CONFIG_SH"; then
7325 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7327 set X $pgac_test_dirs; shift
7328 if test $# -eq 0; then
7329 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7330 set X `echo 'puts $auto_path' | $TCLSH`; shift
7334 if test -r "$pgac_dir/tkConfig.sh"; then
7335 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7341 if test -z "$TK_CONFIG_SH"; then
7342 echo "$ac_t""no" 1>&6
7343 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7345 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7353 # Finally ready to produce output files ...
7355 if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
7356 echo $ac_n "preparing build tree... $ac_c" 1>&6
7357 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
7358 || { echo "configure: error: failed" 1>&2; exit 1; }
7359 echo "$ac_t""done" 1>&6
7363 cat > confcache <<\EOF
7364 # This file is a shell script that caches the results of configure
7365 # tests run on this system so they can be shared between configure
7366 # scripts and configure runs. It is not useful on other systems.
7367 # If it contains results you don't want to keep, you may remove or edit it.
7369 # By default, configure uses ./config.cache as the cache file,
7370 # creating it if it does not exist already. You can give configure
7371 # the --cache-file=FILE option to use a different cache file; that is
7372 # what configure does when it calls configure scripts in
7373 # subdirectories, so they share the cache.
7374 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7375 # config.status only pays attention to the cache file if you give it the
7376 # --recheck option to rerun configure.
7379 # The following way of writing the cache mishandles newlines in values,
7380 # but we know of no workaround that is simple, portable, and efficient.
7381 # So, don't put newlines in cache variables' values.
7382 # Ultrix sh set writes to stderr and can't be redirected directly,
7383 # and sets the high bit in the cache file unless we assign to the vars.
7385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7387 # `set' does not quote correctly, so add quotes (double-quote substitution
7388 # turns \\\\ into \\, and sed turns \\ into \).
7390 -e "s/'/'\\\\''/g" \
7391 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7394 # `set' quotes correctly as required by POSIX, so do not add quotes.
7395 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7398 if cmp -s $cache_file confcache; then
7401 if test -w $cache_file; then
7402 echo "updating cache $cache_file"
7403 cat confcache > $cache_file
7405 echo "not updating unwritable cache $cache_file"
7410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7413 # Let make expand exec_prefix.
7414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7416 # Any assignment to VPATH causes Sun make to only execute
7417 # the first set of double-colon rules, so remove it if not needed.
7418 # If there is a colon in the path, we need to keep it.
7419 if test "x$srcdir" = x.; then
7420 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7423 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7425 DEFS=-DHAVE_CONFIG_H
7427 # Without the "./", some shells look in PATH for config.status.
7428 : ${CONFIG_STATUS=./config.status}
7430 echo creating $CONFIG_STATUS
7431 rm -f $CONFIG_STATUS
7432 cat > $CONFIG_STATUS <<EOF
7434 # Generated automatically by configure.
7435 # Run this file to recreate the current configuration.
7436 # This directory was configured as follows,
7437 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7439 # $0 $ac_configure_args
7441 # Compiler output produced by configure, useful for debugging
7442 # configure, is in ./config.log if it exists.
7444 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7447 case "\$ac_option" in
7448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7449 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7450 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7451 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7452 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7454 -help | --help | --hel | --he | --h)
7455 echo "\$ac_cs_usage"; exit 0 ;;
7456 *) echo "\$ac_cs_usage"; exit 1 ;;
7460 ac_given_srcdir=$srcdir
7461 ac_given_INSTALL="$INSTALL"
7463 trap 'rm -fr `echo "
7467 src/backend/port/Makefile
7468 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7470 cat >> $CONFIG_STATUS <<EOF
7472 # Protect against being on the right side of a sed subst in config.status.
7473 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7474 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7478 s%@with_gnu_ld@%$with_gnu_ld%g
7480 s%@CFLAGS@%$CFLAGS%g
7481 s%@CPPFLAGS@%$CPPFLAGS%g
7482 s%@CXXFLAGS@%$CXXFLAGS%g
7483 s%@FFLAGS@%$FFLAGS%g
7485 s%@LDFLAGS@%$LDFLAGS%g
7487 s%@exec_prefix@%$exec_prefix%g
7488 s%@prefix@%$prefix%g
7489 s%@program_transform_name@%$program_transform_name%g
7490 s%@bindir@%$bindir%g
7491 s%@sbindir@%$sbindir%g
7492 s%@libexecdir@%$libexecdir%g
7493 s%@datadir@%$datadir%g
7494 s%@sysconfdir@%$sysconfdir%g
7495 s%@sharedstatedir@%$sharedstatedir%g
7496 s%@localstatedir@%$localstatedir%g
7497 s%@libdir@%$libdir%g
7498 s%@includedir@%$includedir%g
7499 s%@oldincludedir@%$oldincludedir%g
7500 s%@docdir@%$docdir%g
7501 s%@mandir@%$mandir%g
7502 s%@VERSION@%$VERSION%g
7503 s%@abs_top_srcdir@%$abs_top_srcdir%g
7504 s%@abs_top_builddir@%$abs_top_builddir%g
7506 s%@host_alias@%$host_alias%g
7507 s%@host_cpu@%$host_cpu%g
7508 s%@host_vendor@%$host_vendor%g
7509 s%@host_os@%$host_os%g
7510 s%@PORTNAME@%$PORTNAME%g
7512 s%@MULTIBYTE@%$MULTIBYTE%g
7513 s%@enable_shared@%$enable_shared%g
7515 s%@EXEEXT@%$EXEEXT%g
7518 s%@autodepend@%$autodepend%g
7519 s%@INCLUDES@%$INCLUDES%g
7520 s%@with_tcl@%$with_tcl%g
7521 s%@with_tk@%$with_tk%g
7522 s%@with_perl@%$with_perl%g
7523 s%@PYTHON@%$PYTHON%g
7524 s%@python_version@%$python_version%g
7525 s%@python_prefix@%$python_prefix%g
7526 s%@python_execprefix@%$python_execprefix%g
7527 s%@python_configdir@%$python_configdir%g
7528 s%@python_moduledir@%$python_moduledir%g
7529 s%@python_extmakefile@%$python_extmakefile%g
7530 s%@with_python@%$with_python%g
7531 s%@with_krb4@%$with_krb4%g
7532 s%@with_krb5@%$with_krb5%g
7533 s%@krb_srvtab@%$krb_srvtab%g
7534 s%@KRB_LIBS@%$KRB_LIBS%g
7535 s%@with_openssl@%$with_openssl%g
7536 s%@enable_odbc@%$enable_odbc%g
7537 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7538 s%@ELF_SYS@%$ELF_SYS%g
7540 s%@CXXCPP@%$CXXCPP%g
7542 s%@with_CXX@%$with_CXX%g
7543 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7544 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7545 s%@INSTALL_DATA@%$INSTALL_DATA%g
7546 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7549 s%@FLEXFLAGS@%$FLEXFLAGS%g
7551 s%@RANLIB@%$RANLIB%g
7552 s%@LORDER@%$LORDER%g
7556 s%@YFLAGS@%$YFLAGS%g
7558 s%@SNPRINTF@%$SNPRINTF%g
7560 s%@GETRUSAGE@%$GETRUSAGE%g
7561 s%@SRANDOM@%$SRANDOM%g
7562 s%@GETHOSTNAME@%$GETHOSTNAME%g
7563 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7564 s%@INET_ATON@%$INET_ATON%g
7565 s%@STRERROR@%$STRERROR%g
7566 s%@STRERROR2@%$STRERROR2%g
7567 s%@STRDUP@%$STRDUP%g
7568 s%@STRTOL@%$STRTOL%g
7569 s%@STRTOUL@%$STRTOUL%g
7570 s%@STRCASECMP@%$STRCASECMP%g
7571 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7572 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7574 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7575 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7580 cat >> $CONFIG_STATUS <<\EOF
7582 # Split the substitutions into bite-sized pieces for seds with
7583 # small command number limits, like on Digital OSF/1 and HP-UX.
7584 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7585 ac_file=1 # Number of current file.
7586 ac_beg=1 # First line for current file.
7587 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7590 while $ac_more_lines; do
7591 if test $ac_beg -gt 1; then
7592 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7594 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7596 if test ! -s conftest.s$ac_file; then
7598 rm -f conftest.s$ac_file
7600 if test -z "$ac_sed_cmds"; then
7601 ac_sed_cmds="sed -f conftest.s$ac_file"
7603 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7605 ac_file=`expr $ac_file + 1`
7607 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7610 if test -z "$ac_sed_cmds"; then
7615 cat >> $CONFIG_STATUS <<EOF
7617 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7620 src/backend/port/Makefile
7623 cat >> $CONFIG_STATUS <<\EOF
7624 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7627 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7628 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7629 *) ac_file_in="${ac_file}.in" ;;
7632 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7634 # Remove last slash and all that follows it. Not all systems have dirname.
7635 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7636 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7637 # The file is in a subdirectory.
7638 test ! -d "$ac_dir" && mkdir "$ac_dir"
7639 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7640 # A "../" for each directory in $ac_dir_suffix.
7641 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7643 ac_dir_suffix= ac_dots=
7646 case "$ac_given_srcdir" in
7648 if test -z "$ac_dots"; then top_srcdir=.
7649 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7650 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7652 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7653 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7656 case "$ac_given_INSTALL" in
7657 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7658 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7661 echo creating "$ac_file"
7663 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7665 *Makefile*) ac_comsub="1i\\
7666 # $configure_input" ;;
7670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7672 s%@configure_input@%$configure_input%g
7673 s%@srcdir@%$srcdir%g
7674 s%@top_srcdir@%$top_srcdir%g
7675 s%@INSTALL@%$INSTALL%g
7676 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7680 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7681 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7683 # ac_d sets the value in "#define NAME VALUE" lines.
7684 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7685 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7688 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7689 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7690 ac_uB='\([ ]\)%\1#\2define\3'
7693 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7694 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7695 ac_eB='$%\1#\2define\3'
7699 if test "${CONFIG_HEADERS+set}" != set; then
7701 cat >> $CONFIG_STATUS <<EOF
7702 CONFIG_HEADERS="src/include/config.h"
7704 cat >> $CONFIG_STATUS <<\EOF
7706 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7709 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7710 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7711 *) ac_file_in="${ac_file}.in" ;;
7714 echo creating $ac_file
7716 rm -f conftest.frag conftest.in conftest.out
7717 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7718 cat $ac_file_inputs > conftest.in
7722 # Transform confdefs.h into a sed script conftest.vals that substitutes
7723 # the proper values into config.h.in to produce config.h. And first:
7724 # Protect against being on the right side of a sed subst in config.status.
7725 # Protect against being in an unquoted here document in config.status.
7727 cat > conftest.hdr <<\EOF
7730 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7734 sed -n -f conftest.hdr confdefs.h > conftest.vals
7737 # This sed command replaces #undef with comments. This is necessary, for
7738 # example, in the case of _POSIX_SOURCE, which is predefined and required
7739 # on some systems where configure will not decide to define it.
7740 cat >> conftest.vals <<\EOF
7741 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7744 # Break up conftest.vals because some shells have a limit on
7745 # the size of here documents, and old seds have small limits too.
7750 ac_lines=`grep -c . conftest.vals`
7751 # grep -c gives empty output for an empty file on some AIX systems.
7752 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7753 # Write a limited-size here document to conftest.frag.
7754 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7755 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7757 sed -f conftest.frag conftest.in > conftest.out
7759 mv conftest.out conftest.in
7761 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7763 mv conftest.tail conftest.vals
7767 cat >> $CONFIG_STATUS <<\EOF
7768 rm -f conftest.frag conftest.h
7769 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7770 cat conftest.in >> conftest.h
7772 if cmp -s $ac_file conftest.h 2>/dev/null; then
7773 echo "$ac_file is unchanged"
7776 # Remove last slash and all that follows it. Not all systems have dirname.
7777 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7778 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7779 # The file is in a subdirectory.
7780 test ! -d "$ac_dir" && mkdir "$ac_dir"
7783 mv conftest.h $ac_file
7789 cat >> $CONFIG_STATUS <<EOF
7790 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}"
7791 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
7794 cat >> $CONFIG_STATUS <<\EOF
7795 srcdir=$ac_given_srcdir
7796 while test -n "$ac_sources"; do
7797 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7798 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7800 echo "linking $srcdir/$ac_source to $ac_dest"
7802 if test ! -r $srcdir/$ac_source; then
7803 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7807 # Make relative symlinks.
7808 # Remove last slash and all that follows it. Not all systems have dirname.
7809 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7810 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7811 # The dest file is in a subdirectory.
7812 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7813 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7814 # A "../" for each directory in $ac_dest_dir_suffix.
7815 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7817 ac_dest_dir_suffix= ac_dots=
7821 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7822 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7825 # Make a symlink if possible; otherwise try a hard link.
7826 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7827 ln $srcdir/$ac_source $ac_dest; then :
7829 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7833 cat >> $CONFIG_STATUS <<EOF
7836 cat >> $CONFIG_STATUS <<\EOF
7837 echo "timestamp file" > src/include/stamp-h
7841 chmod +x $CONFIG_STATUS
7842 rm -fr confdefs* $ac_clean_files
7843 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1