3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --enable-uniconv enable unicode conversion support"
30 --with-pgport=PORTNUM change default port number [5432]"
32 --with-maxbackends=N set default maximum number of connections [32]"
34 --disable-shared do not build shared libraries"
36 --disable-rpath do not embed shared library search path in executables"
38 --enable-depend turn on automatic dependency tracking"
40 --enable-debug build with debugging symbols (-g)"
42 --enable-cassert enable assertion checks (for debugging)"
44 --with-tcl build Tcl and Tk interfaces"
46 --without-tk do not build Tk interfaces if Tcl is enabled"
48 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
50 --with-tkconfig=DIR tkConfig.sh is in DIR"
52 --with-perl build Perl interface and PL/Perl"
54 --with-python build Python interface module"
56 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
58 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
60 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
62 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
64 --enable-odbc build the ODBC driver package"
66 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
68 --with-CXX build C++ modules (libpq++)"
70 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
72 --enable-syslog enable logging to syslog"
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
78 cache_file=./config.cache
87 program_transform_name=s,x,x,
95 bindir='${exec_prefix}/bin'
96 sbindir='${exec_prefix}/sbin'
97 libexecdir='${exec_prefix}/libexec'
98 datadir='${prefix}/share'
99 sysconfdir='${prefix}/etc'
100 sharedstatedir='${prefix}/com'
101 localstatedir='${prefix}/var'
102 libdir='${exec_prefix}/lib'
103 includedir='${prefix}/include'
104 oldincludedir='/usr/include'
105 docdir='${prefix}/doc'
106 mandir='${prefix}/man'
108 # Initialize some other variables.
111 SHELL=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
127 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 # Accept the important Cygnus configure options, so we can diagnose typos.
135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
138 bindir="$ac_optarg" ;;
140 -build | --build | --buil | --bui | --bu)
142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
143 build="$ac_optarg" ;;
145 -cache-file | --cache-file | --cache-fil | --cache-fi \
146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
147 ac_prev=cache_file ;;
148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
150 cache_file="$ac_optarg" ;;
152 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 datadir="$ac_optarg" ;;
158 -disable-* | --disable-*)
159 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* | --enable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
181 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
182 | --exec | --exe | --ex)
183 ac_prev=exec_prefix ;;
184 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
185 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
186 | --exec=* | --exe=* | --ex=*)
187 exec_prefix="$ac_optarg" ;;
189 -gas | --gas | --ga | --g)
190 # Obsolete; use --with-gas.
193 -help | --help | --hel | --he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --docdir=DIR doc documentation in DIR [PREFIX/doc]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
248 -host | --host | --hos | --ho)
250 -host=* | --host=* | --hos=* | --ho=*)
253 -includedir | --includedir | --includedi | --included | --include \
254 | --includ | --inclu | --incl | --inc)
255 ac_prev=includedir ;;
256 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
257 | --includ=* | --inclu=* | --incl=* | --inc=*)
258 includedir="$ac_optarg" ;;
260 -docdir | --docdir | --infodi | --infod | --doc | --inf)
262 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
263 docdir="$ac_optarg" ;;
265 -libdir | --libdir | --libdi | --libd)
267 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 libdir="$ac_optarg" ;;
270 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
271 | --libexe | --libex | --libe)
272 ac_prev=libexecdir ;;
273 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
274 | --libexe=* | --libex=* | --libe=*)
275 libexecdir="$ac_optarg" ;;
277 -localstatedir | --localstatedir | --localstatedi | --localstated \
278 | --localstate | --localstat | --localsta | --localst \
279 | --locals | --local | --loca | --loc | --lo)
280 ac_prev=localstatedir ;;
281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
282 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
283 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
284 localstatedir="$ac_optarg" ;;
286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
289 mandir="$ac_optarg" ;;
292 # Obsolete; use --without-fp.
295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
305 | --oldin | --oldi | --old | --ol | --o)
306 ac_prev=oldincludedir ;;
307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
310 oldincludedir="$ac_optarg" ;;
312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 prefix="$ac_optarg" ;;
317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
318 | --program-pre | --program-pr | --program-p)
319 ac_prev=program_prefix ;;
320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
322 program_prefix="$ac_optarg" ;;
324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
325 | --program-suf | --program-su | --program-s)
326 ac_prev=program_suffix ;;
327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
329 program_suffix="$ac_optarg" ;;
331 -program-transform-name | --program-transform-name \
332 | --program-transform-nam | --program-transform-na \
333 | --program-transform-n | --program-transform- \
334 | --program-transform | --program-transfor \
335 | --program-transfo | --program-transf \
336 | --program-trans | --program-tran \
337 | --progr-tra | --program-tr | --program-t)
338 ac_prev=program_transform_name ;;
339 -program-transform-name=* | --program-transform-name=* \
340 | --program-transform-nam=* | --program-transform-na=* \
341 | --program-transform-n=* | --program-transform-=* \
342 | --program-transform=* | --program-transfor=* \
343 | --program-transfo=* | --program-transf=* \
344 | --program-trans=* | --program-tran=* \
345 | --progr-tra=* | --program-tr=* | --program-t=*)
346 program_transform_name="$ac_optarg" ;;
348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
349 | -silent | --silent | --silen | --sile | --sil)
352 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 sbindir="$ac_optarg" ;;
358 -sharedstatedir | --sharedstatedir | --sharedstatedi \
359 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
360 | --sharedst | --shareds | --shared | --share | --shar \
362 ac_prev=sharedstatedir ;;
363 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
364 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
365 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 sharedstatedir="$ac_optarg" ;;
369 -site | --site | --sit)
371 -site=* | --site=* | --sit=*)
374 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 srcdir="$ac_optarg" ;;
379 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
380 | --syscon | --sysco | --sysc | --sys | --sy)
381 ac_prev=sysconfdir ;;
382 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
383 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
384 sysconfdir="$ac_optarg" ;;
386 -target | --target | --targe | --targ | --tar | --ta | --t)
388 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
389 target="$ac_optarg" ;;
391 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 -version | --version | --versio | --versi | --vers)
395 echo "configure generated by autoconf version 2.13"
399 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* | --without-*)
412 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
421 # Obsolete; use --with-x.
424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
425 | --x-incl | --x-inc | --x-in | --x-i)
426 ac_prev=x_includes ;;
427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
429 x_includes="$ac_optarg" ;;
431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
433 ac_prev=x_libraries ;;
434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
436 x_libraries="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c) ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
490 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file=src/backend/access/common/heaptuple.c
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted=yes
518 # Try the directory containing this script, then its parent.
520 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 if test ! -r $srcdir/$ac_unique_file; then
527 ac_srcdir_defaulted=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE; then
541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 for ac_site_file in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
557 echo "creating cache $cache_file"
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp='$CPP $CPPFLAGS'
564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
579 ac_n= ac_c='\c' ac_t=
591 for ac_dir in config $srcdir/config; do
592 if test -f $ac_dir/install-sh; then
594 ac_install_sh="$ac_aux_dir/install-sh -c"
596 elif test -f $ac_dir/install.sh; then
598 ac_install_sh="$ac_aux_dir/install.sh -c"
602 if test -z "$ac_aux_dir"; then
603 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
605 ac_config_guess=$ac_aux_dir/config.guess
606 ac_config_sub=$ac_aux_dir/config.sub
607 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612 cat >> confdefs.h <<EOF
613 #define PG_VERSION "$VERSION"
617 abs_top_srcdir=`cd $srcdir && pwd`
619 abs_top_builddir=`pwd`
623 # Make sure we can run config.sub.
624 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
625 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
628 echo $ac_n "checking host system type""... $ac_c" 1>&6
629 echo "configure:630: checking host system type" >&5
632 case "$host_alias" in
636 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
637 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
639 *) host_alias=$nonopt ;;
643 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
644 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
645 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
646 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
647 echo "$ac_t""$host" 1>&6
654 echo $ac_n "checking which template to use""... $ac_c" 1>&6
655 echo "configure:656: checking which template to use" >&5
657 # Check whether --with-template was given
658 if test x"${with_template+set}" = xset; then
659 case $with_template in
661 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
664 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
667 withval=$with_template
670 list) echo; ls "$srcdir/src/template"; exit;;
671 *) if test -f "$srcdir/src/template/$with_template" ; then
674 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
679 esac # $with_template
682 # --with-template not given
685 aix*) template=aix ;;
686 beos*) template=beos ;;
687 bsdi*) template=bsdi ;;
688 cygwin*) template=win ;;
689 dgux*) template=dgux ;;
690 freebsd*) template=freebsd ;;
691 hpux*) template=hpux ;;
692 irix*) template=irix5 ;;
693 linux*) template=linux ;;
694 netbsd*) template=netbsd ;;
695 nextstep*) template=nextstep ;;
696 openbsd*) template=openbsd ;;
697 osf*) template=osf ;;
698 qnx*) template=qnx4 ;;
699 sco*) template=sco ;;
700 solaris*) template=solaris ;;
701 sunos*) template=sunos4 ;;
704 univel) template=univel ;;
706 sysv4*) template=svr4 ;;
707 sysv5uw*) template=unixware ;;
708 ultrix*) template=ultrix4 ;;
711 if test x"$template" = x"" ; then
712 { echo "configure: error:
713 *******************************************************************
714 PostgreSQL has apparently not been ported to your platform yet.
715 To try a manual configuration, look into the src/template directory
716 for a similar platform and use the \`--with-template=' option.
718 Please also contact <pgsql-ports@postgresql.org> to see about
719 rectifying this. Include the above \`checking host system type...'
721 *******************************************************************
728 echo "$ac_t""$template" 1>&6
738 # Pick right test-and-set (TAS) code. Most platforms have inline
739 # assembler code in src/include/storage/s_lock.h, so we just use
742 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
743 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
744 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
745 *) need_tas=no; tas_file=dummy.s ;;
749 if test "$need_tas" = yes ; then
757 ## Command line options
762 # Add non-standard directories to the include path
764 # Check whether --with-includes was given
765 if test x"${with_includes+set}" = xset; then
766 case $with_includes in
768 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
771 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
773 esac # $with_includes
778 # Add non-standard directories to the library search path
780 # Check whether --with-libraries was given
781 if test x"${with_libraries+set}" = xset; then
782 case $with_libraries in
784 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
787 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
790 withval=$with_libraries
791 LIBRARY_DIRS=$withval
793 esac # $with_libraries
796 # Check whether --with-libs was given
797 if test x"${with_libs+set}" = xset; then
800 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
803 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
807 LIBRARY_DIRS=$withval
814 # Locale (--enable-locale)
816 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
817 echo "configure:818: checking whether to build with locale support" >&5
818 # Check whether --enable-locale was given
819 if test x"${enable_locale+set}" = xset; then
820 case $enable_locale in
822 cat >> confdefs.h <<\EOF
831 enableval=$enable_locale
832 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
834 esac # $enable_locale
839 echo "$ac_t""$enable_locale" 1>&6
843 # Character set recode (--enable-recode)
845 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
846 echo "configure:847: checking whether to build with recode support" >&5
847 # Check whether --enable-recode was given
848 if test x"${enable_recode+set}" = xset; then
849 case $enable_recode in
851 cat >> confdefs.h <<\EOF
860 enableval=$enable_recode
861 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
863 esac # $enable_recode
868 echo "$ac_t""$enable_recode" 1>&6
875 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
876 echo "configure:877: checking whether to build with multibyte character support" >&5
878 # Check whether --enable-multibyte was given
879 if test x"${enable_multibyte+set}" = xset; then
880 case $enable_multibyte in
888 enableval=$enable_multibyte
892 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
893 MULTIBYTE=$enableval;;
895 { echo "configure: error: argument to --enable-multibyte must be one of:
896 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
897 UNICODE, MULE_INTERNAL,
898 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
900 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
904 esac # $enable_multibyte
909 if test "$enable_multibyte" = yes; then
911 cat >> confdefs.h <<\EOF
915 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
918 echo "$ac_t""no" 1>&6
925 # Unicode conversion (--enable-uniconv)
927 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
928 echo "configure:929: checking whether to build with Unicode conversion support" >&5
929 # Check whether --enable-uniconv was given
930 if test x"${enable_uniconv+set}" = xset; then
931 case $enable_uniconv in
933 cat >> confdefs.h <<\EOF
934 #define UNICODE_CONVERSION 1
942 enableval=$enable_uniconv
943 { echo "configure: error: no argument expected for --enable-uniconv option" 1>&2; exit 1; }
945 esac # $enable_uniconv
950 echo "$ac_t""$enable_uniconv" 1>&6
953 # Default port number (--with-pgport), default 5432
955 echo $ac_n "checking for default port number""... $ac_c" 1>&6
956 echo "configure:957: checking for default port number" >&5
957 # Check whether --with-pgport was given
958 if test x"${with_pgport+set}" = xset; then
961 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
964 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
968 default_port=$withval
974 # Need both of these because backend wants an integer and frontend a string
975 cat >> confdefs.h <<EOF
976 #define DEF_PGPORT ${default_port}
979 cat >> confdefs.h <<EOF
980 #define DEF_PGPORT_STR "${default_port}"
983 echo "$ac_t""$default_port" 1>&6
987 # Maximum number of allowed connections (--with-maxbackends), default 32
989 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
990 echo "configure:991: checking for default soft limit on number of connections" >&5
991 # Check whether --with-maxbackends was given
992 if test x"${with_maxbackends+set}" = xset; then
993 case $with_maxbackends in
995 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
998 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1000 esac # $with_maxbackends
1004 echo "$ac_t""$with_maxbackends" 1>&6
1005 cat >> confdefs.h <<EOF
1006 #define DEF_MAXBACKENDS $with_maxbackends
1012 # Option to disable shared libraries
1014 # Check whether --enable-shared was given
1015 if test x"${enable_shared+set}" = xset; then
1016 case $enable_shared in
1024 enableval=$enable_shared
1025 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1027 esac # $enable_shared
1035 # '-rpath'-like feature can be disabled
1037 # Check whether --enable-rpath was given
1038 if test x"${enable_rpath+set}" = xset; then
1039 case $enable_rpath in
1047 enableval=$enable_rpath
1048 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1050 esac # $enable_rpath
1062 # For historical reasons you can also use --with-CC to specify the C compiler
1063 # to use, although the standard way to do this is to set the CC environment
1065 # Check whether --with-CC was given
1066 if test x"${with_CC+set}" = xset; then
1069 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1072 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1081 # On AIX, default compiler to xlc.
1082 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1084 # Extract the first word of "gcc", so it can be a program name with args.
1085 set dummy gcc; ac_word=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1088: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 if test -n "$CC"; then
1092 ac_cv_prog_CC="$CC" # Let the user override the test.
1094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1096 for ac_dir in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1107 if test -n "$CC"; then
1108 echo "$ac_t""$CC" 1>&6
1110 echo "$ac_t""no" 1>&6
1113 if test -z "$CC"; then
1114 # Extract the first word of "cc", so it can be a program name with args.
1115 set dummy cc; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1127 for ac_dir in $ac_dummy; do
1128 test -z "$ac_dir" && ac_dir=.
1129 if test -f $ac_dir/$ac_word; then
1130 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1131 ac_prog_rejected=yes
1139 if test $ac_prog_rejected = yes; then
1140 # We found a bogon in the path, so make sure we never use it.
1141 set dummy $ac_cv_prog_CC
1143 if test $# -gt 0; then
1144 # We chose a different compiler from the bogus one.
1145 # However, it has the same basename, so the bogon will be chosen
1146 # first if we set CC to just the basename; use the full file name.
1148 set dummy "$ac_dir/$ac_word" "$@"
1156 if test -n "$CC"; then
1157 echo "$ac_t""$CC" 1>&6
1159 echo "$ac_t""no" 1>&6
1162 if test -z "$CC"; then
1163 case "`uname -s`" in
1165 # Extract the first word of "cl", so it can be a program name with args.
1166 set dummy cl; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$CC"; then
1173 ac_cv_prog_CC="$CC" # Let the user override the test.
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1188 if test -n "$CC"; then
1189 echo "$ac_t""$CC" 1>&6
1191 echo "$ac_t""no" 1>&6
1196 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1199 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1203 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1204 ac_cpp='$CPP $CPPFLAGS'
1205 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1206 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1207 cross_compiling=$ac_cv_prog_cc_cross
1209 cat > conftest.$ac_ext << EOF
1211 #line 1212 "configure"
1212 #include "confdefs.h"
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 ac_cv_prog_cc_works=yes
1218 # If we can't run a trivial program, we are probably using a cross compiler.
1219 if (./conftest; exit) 2>/dev/null; then
1220 ac_cv_prog_cc_cross=no
1222 ac_cv_prog_cc_cross=yes
1225 echo "configure: failed program was:" >&5
1226 cat conftest.$ac_ext >&5
1227 ac_cv_prog_cc_works=no
1231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1232 ac_cpp='$CPP $CPPFLAGS'
1233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1235 cross_compiling=$ac_cv_prog_cc_cross
1237 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1238 if test $ac_cv_prog_cc_works = no; then
1239 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1243 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1244 cross_compiling=$ac_cv_prog_cc_cross
1246 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1247 echo "configure:1248: checking whether we are using GNU C" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1249 echo $ac_n "(cached) $ac_c" 1>&6
1251 cat > conftest.c <<EOF
1256 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1263 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1265 if test $ac_cv_prog_gcc = yes; then
1271 ac_test_CFLAGS="${CFLAGS+set}"
1272 ac_save_CFLAGS="$CFLAGS"
1274 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1275 echo "configure:1276: checking whether ${CC-cc} accepts -g" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 echo 'void f(){}' > conftest.c
1280 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1289 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1290 if test "$ac_test_CFLAGS" = set; then
1291 CFLAGS="$ac_save_CFLAGS"
1292 elif test $ac_cv_prog_cc_g = yes; then
1293 if test "$GCC" = yes; then
1299 if test "$GCC" = yes; then
1307 . "$srcdir/src/template/$template" || exit
1308 echo "using CFLAGS=$CFLAGS"
1309 # Check if the compiler still works with the template settings
1310 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1314 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1317 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1318 cross_compiling=$ac_cv_prog_cc_cross
1320 cat > conftest.$ac_ext << EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1327 if { (eval echo configure:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1328 ac_cv_prog_cc_works=yes
1329 # If we can't run a trivial program, we are probably using a cross compiler.
1330 if (./conftest; exit) 2>/dev/null; then
1331 ac_cv_prog_cc_cross=no
1333 ac_cv_prog_cc_cross=yes
1336 echo "configure: failed program was:" >&5
1337 cat conftest.$ac_ext >&5
1338 ac_cv_prog_cc_works=no
1342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1346 cross_compiling=$ac_cv_prog_cc_cross
1348 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1349 if test $ac_cv_prog_cc_works = no; then
1350 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1352 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1353 echo "configure:1354: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1354 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1355 cross_compiling=$ac_cv_prog_cc_cross
1357 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1358 echo "configure:1359: checking for Cygwin environment" >&5
1359 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1369 #define __CYGWIN__ __CYGWIN32__
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 echo "configure: failed program was:" >&5
1379 cat conftest.$ac_ext >&5
1387 echo "$ac_t""$ac_cv_cygwin" 1>&6
1389 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1390 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1391 echo "configure:1392: checking for mingw32 environment" >&5
1392 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1403 if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1407 echo "configure: failed program was:" >&5
1408 cat conftest.$ac_ext >&5
1416 echo "$ac_t""$ac_cv_mingw32" 1>&6
1418 test "$ac_cv_mingw32" = yes && MINGW32=yes
1421 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1422 echo "configure:1423: checking for executable suffix" >&5
1423 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1430 echo 'int main () { return 0; }' > conftest.$ac_ext
1432 if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1433 for file in conftest.*; do
1435 *.c | *.o | *.obj) ;;
1436 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1440 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1443 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1448 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1449 echo "$ac_t""${ac_cv_exeext}" 1>&6
1452 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1453 echo "configure:1454: checking how to run the C preprocessor" >&5
1454 # On Suns, sometimes $CPP names a directory.
1455 if test -n "$CPP" && test -d "$CPP"; then
1458 if test -z "$CPP"; then
1459 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 # This must be in double quotes, not single quotes, because CPP may get
1463 # substituted into the Makefile and "${CC-cc}" will confuse make.
1465 # On the NeXT, cc -E runs the code through the compiler's parser,
1466 # not just through cpp.
1467 cat > conftest.$ac_ext <<EOF
1468 #line 1469 "configure"
1469 #include "confdefs.h"
1473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1474 { (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1476 if test -z "$ac_err"; then
1480 echo "configure: failed program was:" >&5
1481 cat conftest.$ac_ext >&5
1483 CPP="${CC-cc} -E -traditional-cpp"
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1491 { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1493 if test -z "$ac_err"; then
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1500 CPP="${CC-cc} -nologo -E"
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1508 { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1510 if test -z "$ac_err"; then
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1524 ac_cv_prog_CPP="$CPP"
1526 CPP="$ac_cv_prog_CPP"
1528 ac_cv_prog_CPP="$CPP"
1530 echo "$ac_t""$CPP" 1>&6
1532 if test $ac_cv_prog_gcc = yes; then
1533 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1534 echo "configure:1535: checking whether ${CC-cc} needs -traditional" >&5
1535 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 ac_pattern="Autoconf.*'x'"
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1546 egrep "$ac_pattern" >/dev/null 2>&1; then
1548 ac_cv_prog_gcc_traditional=yes
1551 ac_cv_prog_gcc_traditional=no
1556 if test $ac_cv_prog_gcc_traditional = no; then
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1564 egrep "$ac_pattern" >/dev/null 2>&1; then
1566 ac_cv_prog_gcc_traditional=yes
1573 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1574 if test $ac_cv_prog_gcc_traditional = yes; then
1575 CC="$CC -traditional"
1581 # Create compiler version string
1582 if test x"$GCC" = x"yes" ; then
1583 cc_string="GCC `${CC} --version`"
1587 cat >> confdefs.h <<EOF
1588 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1594 # Automatic dependency tracking
1596 # Check whether --enable-depend was given
1597 if test x"${enable_depend+set}" = xset; then
1598 case $enable_depend in
1606 enableval=$enable_depend
1607 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1609 esac # $enable_depend
1618 # --enable-debug adds -g to compiler flags
1620 # Check whether --enable-debug was given
1621 if test x"${enable_debug+set}" = xset; then
1622 case $enable_debug in
1630 enableval=$enable_debug
1631 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1633 esac # $enable_debug
1641 # Enable assert checks
1643 # Check whether --enable-cassert was given
1644 if test x"${enable_cassert+set}" = xset; then
1645 case $enable_cassert in
1647 cat >> confdefs.h <<\EOF
1648 #define USE_ASSERT_CHECKING 1
1656 enableval=$enable_cassert
1657 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1659 esac # $enable_cassert
1667 # Include directories
1671 # SRCH_INC comes from the template file
1672 for dir in $with_includes $SRCH_INC; do
1673 if test -d "$dir"; then
1674 INCLUDES="$INCLUDES -I$dir"
1676 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1684 # Library directories
1688 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1689 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1690 if test -d "$dir"; then
1691 LIBDIRS="$LIBDIRS -L$dir"
1693 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1702 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1703 echo "configure:1704: checking whether to build with Tcl" >&5
1704 # Check whether --with-tcl was given
1705 if test x"${with_tcl+set}" = xset; then
1715 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1722 echo "$ac_t""$with_tcl" 1>&6
1725 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1726 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1727 echo "configure:1728: checking whether to build with Tk" >&5
1728 if test "$with_tcl" = yes; then
1729 # Check whether --with-tk was given
1730 if test x"${with_tk+set}" = xset; then
1740 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1750 echo "$ac_t""$with_tk" 1>&6
1754 # We see if the path to the TCL/TK configuration scripts is specified.
1755 # This will override the use of tclsh to find the paths to search.
1757 # Check whether --with-tclconfig was given
1758 if test x"${with_tclconfig+set}" = xset; then
1759 case $with_tclconfig in
1761 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1764 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1766 esac # $with_tclconfig
1769 # We see if the path to the TK configuration scripts is specified.
1770 # This will override the use of tclsh to find the paths to search.
1772 # Check whether --with-tkconfig was given
1773 if test x"${with_tkconfig+set}" = xset; then
1774 case $with_tkconfig in
1776 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1779 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1781 esac # $with_tkconfig
1786 # Optionally build Perl modules (Pg.pm and PL/Perl)
1788 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1789 echo "configure:1790: checking whether to build Perl modules" >&5
1790 # Check whether --with-perl was given
1791 if test x"${with_perl+set}" = xset; then
1801 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1808 echo "$ac_t""$with_perl" 1>&6
1813 # Optionally build Python interface module
1815 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether to build Python modules" >&5
1817 # Check whether --with-python was given
1818 if test x"${with_python+set}" = xset; then
1819 case $with_python in
1821 echo "$ac_t""yes" 1>&6
1822 # Extract the first word of "python", so it can be a program name with args.
1823 set dummy python; ac_word=$2
1824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_word" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test -n "$PYTHON"; then
1830 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1834 for ac_dir in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f $ac_dir/$ac_word; then
1837 ac_cv_prog_PYTHON="python"
1844 PYTHON="$ac_cv_prog_PYTHON"
1845 if test -n "$PYTHON"; then
1846 echo "$ac_t""$PYTHON" 1>&6
1848 echo "$ac_t""no" 1>&6
1852 if test "${PYTHON+set}" = set ; then
1853 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1854 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1855 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1856 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1857 python_moduledir="${python_prefix}/lib/python${python_version}"
1858 python_extmakefile="${python_configdir}/Makefile.pre.in"
1860 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1861 echo "configure:1862: checking for Python extension makefile" >&5
1862 if test -f "${python_extmakefile}" ; then
1863 echo "$ac_t""found" 1>&6
1865 echo "$ac_t""no" 1>&6
1866 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1867 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1877 { echo "configure: error: Python not found" 1>&2; exit 1; }
1881 echo "$ac_t""no" 1>&6
1884 withval=$with_python
1885 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1890 echo "$ac_t""no" 1>&6
1899 # Check whether --with-krb4 was given
1900 if test x"${with_krb4+set}" = xset; then
1903 krb4_prefix=/usr/athena
1911 krb4_prefix=$withval
1918 if test "$with_krb4" = yes; then
1920 echo "$ac_t""building with Kerberos 4 support" 1>&6
1921 cat >> confdefs.h <<\EOF
1926 if test -d "$krb4_prefix/include"; then
1927 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1929 if test -d "$krb4_prefix/lib"; then
1930 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1933 krb_srvtab="/etc/srvtab"
1944 # Check whether --with-krb5 was given
1945 if test x"${with_krb5+set}" = xset; then
1948 krb5_prefix=/usr/athena
1956 krb5_prefix=$withval
1963 if test "$with_krb5" = yes; then
1965 echo "$ac_t""building with Kerberos 5 support" 1>&6
1966 cat >> confdefs.h <<\EOF
1971 if test -d "$krb5_prefix/include"; then
1972 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1974 if test -d "$krb5_prefix/lib"; then
1975 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1978 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1986 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1987 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1988 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1995 # Kerberos configuration parameters
1997 # Check whether --with-krb-srvnam was given
1998 if test x"${with_krb_srvnam+set}" = xset; then
1999 case $with_krb_srvnam in
2001 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2004 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2006 esac # $with_krb_srvnam
2008 with_krb_srvnam="postgres"
2010 cat >> confdefs.h <<EOF
2011 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2020 # Check whether --with-openssl was given
2021 if test x"${with_openssl+set}" = xset; then
2022 case $with_openssl in
2024 openssl_prefix=/usr/local/ssl
2030 withval=$with_openssl
2032 openssl_prefix=$withval
2034 esac # $with_openssl
2039 if test "$with_openssl" = yes; then
2041 echo "$ac_t""building with OpenSSL support" 1>&6
2042 cat >> confdefs.h <<\EOF
2047 if test -d "${openssl_prefix}/include" ; then
2048 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2050 if test -d "${openssl_prefix}/lib" ; then
2051 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2062 # Optionally enable the building of the ODBC driver
2066 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2067 enable_odbc=$with_odbc
2070 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2071 echo "configure:2072: checking whether to build the ODBC driver" >&5
2072 # Check whether --enable-odbc was given
2073 if test x"${enable_odbc+set}" = xset; then
2074 case $enable_odbc in
2082 enableval=$enable_odbc
2083 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2090 echo "$ac_t""$enable_odbc" 1>&6
2094 # Allow for overriding the default location of the odbcinst.ini
2095 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2096 # Check whether --with-odbcinst was given
2097 if test x"${with_odbcinst+set}" = xset; then
2098 case $with_odbcinst in
2100 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2103 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2106 withval=$with_odbcinst
2107 odbcinst_ini_dir=$withval
2109 esac # $with_odbcinst
2111 odbcinst_ini_dir="\${sysconfdir}"
2117 # Assume system is ELF if it predefines __ELF__ as 1,
2118 # otherwise believe host_os based default.
2120 freebsd1*|freebsd2*) elf=yes;;
2123 cat > conftest.$ac_ext <<EOF
2124 #line 2125 "configure"
2125 #include "confdefs.h"
2131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2132 egrep "yes" >/dev/null 2>&1; then
2137 if test "X$elf" = "Xyes" ; then
2150 # Optionally build C++ code (i.e., libpq++)
2152 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2153 echo "configure:2154: checking whether to build C++ modules" >&5
2154 # Check whether --with-CXX was given
2155 if test x"${with_CXX+set}" = xset; then
2173 if test "$with_CXX" = yes; then
2175 echo "$ac_t""yes" 1>&6
2177 # If the user has specified CXXFLAGS in the environment, leave it
2178 # alone, else use a default.
2180 has_cmdline_CXXFLAGS="${CXXFLAGS+yes}"
2181 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 if test -n "$CXX"; then
2191 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2195 for ac_dir in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_CXX="$ac_prog"
2205 CXX="$ac_cv_prog_CXX"
2206 if test -n "$CXX"; then
2207 echo "$ac_t""$CXX" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 test -n "$CXX" && break
2214 test -n "$CXX" || CXX="gcc"
2217 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2218 echo "configure:2219: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2222 ac_cpp='$CXXCPP $CPPFLAGS'
2223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2225 cross_compiling=$ac_cv_prog_cxx_cross
2227 cat > conftest.$ac_ext << EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2232 int main(){return(0);}
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 ac_cv_prog_cxx_works=yes
2236 # If we can't run a trivial program, we are probably using a cross compiler.
2237 if (./conftest; exit) 2>/dev/null; then
2238 ac_cv_prog_cxx_cross=no
2240 ac_cv_prog_cxx_cross=yes
2243 echo "configure: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2245 ac_cv_prog_cxx_works=no
2249 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2252 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2253 cross_compiling=$ac_cv_prog_cc_cross
2255 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2256 if test $ac_cv_prog_cxx_works = no; then
2257 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2259 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2260 echo "configure:2261: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2261 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2262 cross_compiling=$ac_cv_prog_cxx_cross
2264 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2265 echo "configure:2266: checking whether we are using GNU C++" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.C <<EOF
2274 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2281 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2283 if test $ac_cv_prog_gxx = yes; then
2289 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2290 ac_save_CXXFLAGS="$CXXFLAGS"
2292 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether ${CXX-g++} accepts -g" >&5
2294 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 echo 'void f(){}' > conftest.cc
2298 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2299 ac_cv_prog_cxx_g=yes
2307 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2308 if test "$ac_test_CXXFLAGS" = set; then
2309 CXXFLAGS="$ac_save_CXXFLAGS"
2310 elif test $ac_cv_prog_cxx_g = yes; then
2311 if test "$GXX" = yes; then
2317 if test "$GXX" = yes; then
2324 if test "$has_cmdline_CXXFLAGS" != yes; then
2325 if test "$GXX" = yes; then
2329 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2330 unixware) CXXFLAGS='-O' ;;
2335 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2336 CXXFLAGS="$CXXFLAGS -g"
2338 echo "using CXXFLAGS=$CXXFLAGS"
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 $LIBDIRS"
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 gawk mawk 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 >/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
2849 # Extract the first word of "ranlib", so it can be a program name with args.
2850 set dummy ranlib; ac_word=$2
2851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2852 echo "configure:2853: checking for $ac_word" >&5
2853 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 if test -n "$RANLIB"; then
2857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2861 for ac_dir in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f $ac_dir/$ac_word; then
2864 ac_cv_prog_RANLIB="ranlib"
2869 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2872 RANLIB="$ac_cv_prog_RANLIB"
2873 if test -n "$RANLIB"; then
2874 echo "$ac_t""$RANLIB" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 for ac_prog in lorder
2881 # Extract the first word of "$ac_prog", so it can be a program name with args.
2882 set dummy $ac_prog; ac_word=$2
2883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2884 echo "configure:2885: checking for $ac_word" >&5
2885 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 if test -n "$LORDER"; then
2889 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2893 for ac_dir in $ac_dummy; do
2894 test -z "$ac_dir" && ac_dir=.
2895 if test -f $ac_dir/$ac_word; then
2896 ac_cv_prog_LORDER="$ac_prog"
2903 LORDER="$ac_cv_prog_LORDER"
2904 if test -n "$LORDER"; then
2905 echo "$ac_t""$LORDER" 1>&6
2907 echo "$ac_t""no" 1>&6
2910 test -n "$LORDER" && break
2913 # Extract the first word of "tar", so it can be a program name with args.
2914 set dummy tar; ac_word=$2
2915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2916 echo "configure:2917: checking for $ac_word" >&5
2917 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2922 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2925 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2930 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 if test -f $ac_dir/$ac_word; then
2933 ac_cv_path_TAR="$ac_dir/$ac_word"
2941 TAR="$ac_cv_path_TAR"
2942 if test -n "$TAR"; then
2943 echo "$ac_t""$TAR" 1>&6
2945 echo "$ac_t""no" 1>&6
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2953 echo "configure:2954: checking for $ac_word" >&5
2954 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2957 if test -n "$PERL"; then
2958 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2962 for ac_dir in $ac_dummy; do
2963 test -z "$ac_dir" && ac_dir=.
2964 if test -f $ac_dir/$ac_word; then
2965 ac_cv_prog_PERL="$ac_prog"
2972 PERL="$ac_cv_prog_PERL"
2973 if test -n "$PERL"; then
2974 echo "$ac_t""$PERL" 1>&6
2976 echo "$ac_t""no" 1>&6
2979 test -n "$PERL" && break
2982 for ac_prog in 'bison -y' byacc
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$YACC"; then
2992 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_YACC="$ac_prog"
3006 YACC="$ac_cv_prog_YACC"
3007 if test -n "$YACC"; then
3008 echo "$ac_t""$YACC" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$YACC" && break
3015 test -n "$YACC" || YACC="yacc"
3018 if test "$with_tk" = yes; then
3019 # Extract the first word of "wish", so it can be a program name with args.
3020 set dummy wish; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3028 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3031 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_path_WISH="$ac_dir/$ac_word"
3047 WISH="$ac_cv_path_WISH"
3048 if test -n "$WISH"; then
3049 echo "$ac_t""$WISH" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
3062 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3063 echo "configure:3064: checking for main in -lsfio" >&5
3064 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 ac_save_LIBS="$LIBS"
3070 cat > conftest.$ac_ext <<EOF
3071 #line 3072 "configure"
3072 #include "confdefs.h"
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3080 eval "ac_cv_lib_$ac_lib_var=yes"
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 eval "ac_cv_lib_$ac_lib_var=no"
3088 LIBS="$ac_save_LIBS"
3091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3092 echo "$ac_t""yes" 1>&6
3093 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3095 cat >> confdefs.h <<EOF
3096 #define $ac_tr_lib 1
3102 echo "$ac_t""no" 1>&6
3105 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3106 echo "configure:3107: checking for main in -lncurses" >&5
3107 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
3108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 ac_save_LIBS="$LIBS"
3112 LIBS="-lncurses $LIBS"
3113 cat > conftest.$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3128 eval "ac_cv_lib_$ac_lib_var=no"
3131 LIBS="$ac_save_LIBS"
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3138 cat >> confdefs.h <<EOF
3139 #define $ac_tr_lib 1
3142 LIBS="-lncurses $LIBS"
3145 echo "$ac_t""no" 1>&6
3146 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3147 echo "configure:3148: checking for main in -lcurses" >&5
3148 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 ac_save_LIBS="$LIBS"
3153 LIBS="-lcurses $LIBS"
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3162 if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3164 eval "ac_cv_lib_$ac_lib_var=yes"
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 eval "ac_cv_lib_$ac_lib_var=no"
3172 LIBS="$ac_save_LIBS"
3175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3179 cat >> confdefs.h <<EOF
3180 #define $ac_tr_lib 1
3183 LIBS="-lcurses $LIBS"
3186 echo "$ac_t""no" 1>&6
3191 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3192 echo "configure:3193: checking for main in -ltermcap" >&5
3193 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 ac_save_LIBS="$LIBS"
3198 LIBS="-ltermcap $LIBS"
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3209 eval "ac_cv_lib_$ac_lib_var=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 eval "ac_cv_lib_$ac_lib_var=no"
3217 LIBS="$ac_save_LIBS"
3220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3224 cat >> confdefs.h <<EOF
3225 #define $ac_tr_lib 1
3228 LIBS="-ltermcap $LIBS"
3231 echo "$ac_t""no" 1>&6
3234 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3235 echo "configure:3236: checking for readline in -lreadline" >&5
3236 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 ac_save_LIBS="$LIBS"
3241 LIBS="-lreadline $LIBS"
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */
3254 if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3256 eval "ac_cv_lib_$ac_lib_var=yes"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 eval "ac_cv_lib_$ac_lib_var=no"
3264 LIBS="$ac_save_LIBS"
3267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3271 cat >> confdefs.h <<EOF
3272 #define $ac_tr_lib 1
3275 LIBS="-lreadline $LIBS"
3278 echo "$ac_t""no" 1>&6
3282 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3283 echo "configure:3284: checking for library containing using_history" >&5
3284 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 ac_func_search_save_LIBS="$LIBS"
3288 ac_cv_search_using_history="no"
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3295 char using_history();
3301 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3303 ac_cv_search_using_history="none required"
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3309 test "$ac_cv_search_using_history" = "no" && for i in history; do
3310 LIBS="-l$i $ac_func_search_save_LIBS"
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* Override any gcc2 internal prototype to avoid an error. */
3315 /* We use char because int might match the return type of a gcc2
3316 builtin and then its argument prototype would still apply. */
3317 char using_history();
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3325 ac_cv_search_using_history="-l$i"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3333 LIBS="$ac_func_search_save_LIBS"
3336 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3337 if test "$ac_cv_search_using_history" != "no"; then
3338 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3339 cat >> confdefs.h <<\EOF
3340 #define HAVE_HISTORY_FUNCTIONS 1
3347 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3349 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3350 echo "configure:3351: checking for main in -lbsd" >&5
3351 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 ac_save_LIBS="$LIBS"
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3367 eval "ac_cv_lib_$ac_lib_var=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_lib_$ac_lib_var=no"
3375 LIBS="$ac_save_LIBS"
3378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3379 echo "$ac_t""yes" 1>&6
3380 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3382 cat >> confdefs.h <<EOF
3383 #define $ac_tr_lib 1
3389 echo "$ac_t""no" 1>&6
3393 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3394 echo "configure:3395: checking for setproctitle in -lutil" >&5
3395 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 ac_save_LIBS="$LIBS"
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* Override any gcc2 internal prototype to avoid an error. */
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3407 char setproctitle();
3413 if { (eval echo configure:3414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415 eval "ac_cv_lib_$ac_lib_var=yes"
3417 echo "configure: failed program was:" >&5
3418 cat conftest.$ac_ext >&5
3420 eval "ac_cv_lib_$ac_lib_var=no"
3423 LIBS="$ac_save_LIBS"
3426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3427 echo "$ac_t""yes" 1>&6
3428 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3430 cat >> confdefs.h <<EOF
3431 #define $ac_tr_lib 1
3437 echo "$ac_t""no" 1>&6
3440 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3441 echo "configure:3442: checking for main in -lm" >&5
3442 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 ac_save_LIBS="$LIBS"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 eval "ac_cv_lib_$ac_lib_var=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3463 eval "ac_cv_lib_$ac_lib_var=no"
3466 LIBS="$ac_save_LIBS"
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3473 cat >> confdefs.h <<EOF
3474 #define $ac_tr_lib 1
3480 echo "$ac_t""no" 1>&6
3483 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3484 echo "configure:3485: checking for main in -ldl" >&5
3485 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 ac_save_LIBS="$LIBS"
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 eval "ac_cv_lib_$ac_lib_var=yes"
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3506 eval "ac_cv_lib_$ac_lib_var=no"
3509 LIBS="$ac_save_LIBS"
3512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3516 cat >> confdefs.h <<EOF
3517 #define $ac_tr_lib 1
3523 echo "$ac_t""no" 1>&6
3526 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3527 echo "configure:3528: checking for main in -lsocket" >&5
3528 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_save_LIBS="$LIBS"
3533 LIBS="-lsocket $LIBS"
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3542 if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3544 eval "ac_cv_lib_$ac_lib_var=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.$ac_ext >&5
3549 eval "ac_cv_lib_$ac_lib_var=no"
3552 LIBS="$ac_save_LIBS"
3555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3556 echo "$ac_t""yes" 1>&6
3557 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3558 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3559 cat >> confdefs.h <<EOF
3560 #define $ac_tr_lib 1
3563 LIBS="-lsocket $LIBS"
3566 echo "$ac_t""no" 1>&6
3569 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3570 echo "configure:3571: checking for main in -lnsl" >&5
3571 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_save_LIBS="$LIBS"
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3585 if { (eval echo configure:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587 eval "ac_cv_lib_$ac_lib_var=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.$ac_ext >&5
3592 eval "ac_cv_lib_$ac_lib_var=no"
3595 LIBS="$ac_save_LIBS"
3598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3602 cat >> confdefs.h <<EOF
3603 #define $ac_tr_lib 1
3609 echo "$ac_t""no" 1>&6
3612 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3613 echo "configure:3614: checking for main in -lipc" >&5
3614 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 ac_save_LIBS="$LIBS"
3620 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3628 if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3630 eval "ac_cv_lib_$ac_lib_var=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_lib_$ac_lib_var=no"
3638 LIBS="$ac_save_LIBS"
3641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3644 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3645 cat >> confdefs.h <<EOF
3646 #define $ac_tr_lib 1
3652 echo "$ac_t""no" 1>&6
3655 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3656 echo "configure:3657: checking for main in -lIPC" >&5
3657 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_save_LIBS="$LIBS"
3663 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3671 if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 eval "ac_cv_lib_$ac_lib_var=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 eval "ac_cv_lib_$ac_lib_var=no"
3681 LIBS="$ac_save_LIBS"
3684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3685 echo "$ac_t""yes" 1>&6
3686 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3687 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3688 cat >> confdefs.h <<EOF
3689 #define $ac_tr_lib 1
3695 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3699 echo "configure:3700: checking for main in -llc" >&5
3700 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 ac_save_LIBS="$LIBS"
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 eval "ac_cv_lib_$ac_lib_var=no"
3724 LIBS="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3731 cat >> confdefs.h <<EOF
3732 #define $ac_tr_lib 1
3738 echo "$ac_t""no" 1>&6
3741 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3742 echo "configure:3743: checking for main in -ldld" >&5
3743 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3745 echo $ac_n "(cached) $ac_c" 1>&6
3747 ac_save_LIBS="$LIBS"
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3757 if { (eval echo configure:3758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3759 eval "ac_cv_lib_$ac_lib_var=yes"
3761 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5
3764 eval "ac_cv_lib_$ac_lib_var=no"
3767 LIBS="$ac_save_LIBS"
3770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3771 echo "$ac_t""yes" 1>&6
3772 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3774 cat >> confdefs.h <<EOF
3775 #define $ac_tr_lib 1
3781 echo "$ac_t""no" 1>&6
3784 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3785 echo "configure:3786: checking for main in -lln" >&5
3786 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 ac_save_LIBS="$LIBS"
3792 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3800 if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3802 eval "ac_cv_lib_$ac_lib_var=yes"
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3807 eval "ac_cv_lib_$ac_lib_var=no"
3810 LIBS="$ac_save_LIBS"
3813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3814 echo "$ac_t""yes" 1>&6
3815 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3817 cat >> confdefs.h <<EOF
3818 #define $ac_tr_lib 1
3824 echo "$ac_t""no" 1>&6
3827 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3828 echo "configure:3829: checking for main in -lld" >&5
3829 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 ac_save_LIBS="$LIBS"
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3845 eval "ac_cv_lib_$ac_lib_var=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 eval "ac_cv_lib_$ac_lib_var=no"
3853 LIBS="$ac_save_LIBS"
3856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3860 cat >> confdefs.h <<EOF
3861 #define $ac_tr_lib 1
3867 echo "$ac_t""no" 1>&6
3870 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3871 echo "configure:3872: checking for main in -lcompat" >&5
3872 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 ac_save_LIBS="$LIBS"
3877 LIBS="-lcompat $LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_lib_$ac_lib_var=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_lib_$ac_lib_var=no"
3896 LIBS="$ac_save_LIBS"
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3901 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3903 cat >> confdefs.h <<EOF
3904 #define $ac_tr_lib 1
3907 LIBS="-lcompat $LIBS"
3910 echo "$ac_t""no" 1>&6
3913 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3914 echo "configure:3915: checking for main in -lBSD" >&5
3915 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 ac_save_LIBS="$LIBS"
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 eval "ac_cv_lib_$ac_lib_var=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_lib_$ac_lib_var=no"
3939 LIBS="$ac_save_LIBS"
3942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3944 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3945 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3946 cat >> confdefs.h <<EOF
3947 #define $ac_tr_lib 1
3953 echo "$ac_t""no" 1>&6
3956 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3957 echo "configure:3958: checking for main in -lgen" >&5
3958 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 ac_save_LIBS="$LIBS"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3974 eval "ac_cv_lib_$ac_lib_var=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_lib_$ac_lib_var=no"
3982 LIBS="$ac_save_LIBS"
3985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3988 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3989 cat >> confdefs.h <<EOF
3990 #define $ac_tr_lib 1
3996 echo "$ac_t""no" 1>&6
3999 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4000 echo "configure:4001: checking for main in -lPW" >&5
4001 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4002 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 ac_save_LIBS="$LIBS"
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4017 eval "ac_cv_lib_$ac_lib_var=yes"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4022 eval "ac_cv_lib_$ac_lib_var=no"
4025 LIBS="$ac_save_LIBS"
4028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4029 echo "$ac_t""yes" 1>&6
4030 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4031 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4032 cat >> confdefs.h <<EOF
4033 #define $ac_tr_lib 1
4039 echo "$ac_t""no" 1>&6
4043 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4044 echo "configure:4045: checking for library containing crypt" >&5
4045 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 ac_func_search_save_LIBS="$LIBS"
4049 ac_cv_search_crypt="no"
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 /* We use char because int might match the return type of a gcc2
4055 builtin and then its argument prototype would still apply. */
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4064 ac_cv_search_crypt="none required"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4070 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4071 LIBS="-l$i $ac_func_search_save_LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 ac_cv_search_crypt="-l$i"
4089 echo "configure: failed program was:" >&5
4090 cat conftest.$ac_ext >&5
4094 LIBS="$ac_func_search_save_LIBS"
4097 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4098 if test "$ac_cv_search_crypt" != "no"; then
4099 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4104 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4105 echo "configure:4106: checking for inflate in -lz" >&5
4106 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 ac_save_LIBS="$LIBS"
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_lib 1
4148 echo "$ac_t""no" 1>&6
4151 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4152 echo "configure:4153: checking for __inet_ntoa in -lbind" >&5
4153 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_save_LIBS="$LIBS"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 eval "ac_cv_lib_$ac_lib_var=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_lib_$ac_lib_var=no"
4181 LIBS="$ac_save_LIBS"
4184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4185 echo "$ac_t""yes" 1>&6
4186 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4188 cat >> confdefs.h <<EOF
4189 #define $ac_tr_lib 1
4195 echo "$ac_t""no" 1>&6
4200 if test "$with_krb4" = yes ; then
4201 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4202 echo "configure:4203: checking for des_encrypt in -ldes" >&5
4203 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4204 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4205 echo $ac_n "(cached) $ac_c" 1>&6
4207 ac_save_LIBS="$LIBS"
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4223 eval "ac_cv_lib_$ac_lib_var=yes"
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4228 eval "ac_cv_lib_$ac_lib_var=no"
4231 LIBS="$ac_save_LIBS"
4234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4235 echo "$ac_t""yes" 1>&6
4236 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4237 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4238 cat >> confdefs.h <<EOF
4239 #define $ac_tr_lib 1
4245 echo "$ac_t""no" 1>&6
4246 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4249 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4250 echo "configure:4251: checking for krb_sendauth in -lkrb" >&5
4251 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 ac_save_LIBS="$LIBS"
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure"
4259 #include "confdefs.h"
4260 /* Override any gcc2 internal prototype to avoid an error. */
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263 char krb_sendauth();
4269 if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4271 eval "ac_cv_lib_$ac_lib_var=yes"
4273 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4276 eval "ac_cv_lib_$ac_lib_var=no"
4279 LIBS="$ac_save_LIBS"
4282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4283 echo "$ac_t""yes" 1>&6
4284 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4285 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4286 cat >> confdefs.h <<EOF
4287 #define $ac_tr_lib 1
4293 echo "$ac_t""no" 1>&6
4294 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4299 if test "$with_krb5" = yes ; then
4300 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4301 echo "configure:4302: checking for com_err in -lcom_err" >&5
4302 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4304 echo $ac_n "(cached) $ac_c" 1>&6
4306 ac_save_LIBS="$LIBS"
4307 LIBS="-lcom_err $LIBS"
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322 eval "ac_cv_lib_$ac_lib_var=yes"
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 eval "ac_cv_lib_$ac_lib_var=no"
4330 LIBS="$ac_save_LIBS"
4333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4334 echo "$ac_t""yes" 1>&6
4335 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4336 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4337 cat >> confdefs.h <<EOF
4338 #define $ac_tr_lib 1
4341 LIBS="-lcom_err $LIBS"
4344 echo "$ac_t""no" 1>&6
4345 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4348 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4349 echo "configure:4350: checking for krb5_encrypt in -lcrypto" >&5
4350 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 ac_save_LIBS="$LIBS"
4355 LIBS="-lcrypto $LIBS"
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4362 char krb5_encrypt();
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 eval "ac_cv_lib_$ac_lib_var=yes"
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4375 eval "ac_cv_lib_$ac_lib_var=no"
4378 LIBS="$ac_save_LIBS"
4381 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4382 echo "$ac_t""yes" 1>&6
4383 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4384 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4385 cat >> confdefs.h <<EOF
4386 #define $ac_tr_lib 1
4389 LIBS="-lcrypto $LIBS"
4392 echo "$ac_t""no" 1>&6
4393 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4394 echo "configure:4395: checking for krb5_encrypt in -lk5crypto" >&5
4395 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4399 ac_save_LIBS="$LIBS"
4400 LIBS="-lk5crypto $LIBS"
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4407 char krb5_encrypt();
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415 eval "ac_cv_lib_$ac_lib_var=yes"
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 eval "ac_cv_lib_$ac_lib_var=no"
4423 LIBS="$ac_save_LIBS"
4426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4429 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4430 cat >> confdefs.h <<EOF
4431 #define $ac_tr_lib 1
4434 LIBS="-lk5crypto $LIBS"
4437 echo "$ac_t""no" 1>&6
4438 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4443 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4444 echo "configure:4445: checking for krb5_sendauth in -lkrb5" >&5
4445 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 ac_save_LIBS="$LIBS"
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4457 char krb5_sendauth();
4463 if { (eval echo configure:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4465 eval "ac_cv_lib_$ac_lib_var=yes"
4467 echo "configure: failed program was:" >&5
4468 cat conftest.$ac_ext >&5
4470 eval "ac_cv_lib_$ac_lib_var=no"
4473 LIBS="$ac_save_LIBS"
4476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4480 cat >> confdefs.h <<EOF
4481 #define $ac_tr_lib 1
4487 echo "$ac_t""no" 1>&6
4488 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4493 if test "$with_openssl" = yes ; then
4494 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4495 echo "configure:4496: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4496 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 ac_save_LIBS="$LIBS"
4501 LIBS="-lcrypto $LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4508 char CRYPTO_new_ex_data();
4511 CRYPTO_new_ex_data()
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 eval "ac_cv_lib_$ac_lib_var=yes"
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4521 eval "ac_cv_lib_$ac_lib_var=no"
4524 LIBS="$ac_save_LIBS"
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4531 cat >> confdefs.h <<EOF
4532 #define $ac_tr_lib 1
4535 LIBS="-lcrypto $LIBS"
4538 echo "$ac_t""no" 1>&6
4539 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4542 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4543 echo "configure:4544: checking for SSL_library_init in -lssl" >&5
4544 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4548 ac_save_LIBS="$LIBS"
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 /* Override any gcc2 internal prototype to avoid an error. */
4554 /* We use char because int might match the return type of a gcc2
4555 builtin and then its argument prototype would still apply. */
4556 char SSL_library_init();
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564 eval "ac_cv_lib_$ac_lib_var=yes"
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4569 eval "ac_cv_lib_$ac_lib_var=no"
4572 LIBS="$ac_save_LIBS"
4575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4579 cat >> confdefs.h <<EOF
4580 #define $ac_tr_lib 1
4586 echo "$ac_t""no" 1>&6
4587 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4596 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
4598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4600 echo "configure:4601: checking for $ac_hdr" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4610 { (eval echo configure:4611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4612 if test -z "$ac_err"; then
4614 eval "ac_cv_header_$ac_safe=yes"
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 eval "ac_cv_header_$ac_safe=no"
4624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4627 cat >> confdefs.h <<EOF
4628 #define $ac_tr_hdr 1
4632 echo "$ac_t""no" 1>&6
4637 for ac_hdr in netinet/in.h
4639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_hdr" >&5
4642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4651 { (eval echo configure:4652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4653 if test -z "$ac_err"; then
4655 eval "ac_cv_header_$ac_safe=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_header_$ac_safe=no"
4665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4668 cat >> confdefs.h <<EOF
4669 #define $ac_tr_hdr 1
4673 echo "$ac_t""no" 1>&6
4677 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4678 echo "configure:4679: checking for netinet/tcp.h" >&5
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4683 #ifdef HAVE_NETINET_IN_H
4684 #include <netinet/in.h>
4686 #include <netinet/tcp.h>
4689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4690 { (eval echo configure:4691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4692 if test -z "$ac_err"; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_NETINET_TCP_H 1
4697 echo "$ac_t""yes" 1>&6
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4703 echo "$ac_t""no" 1>&6
4707 for ac_hdr in readline/readline.h readline.h
4709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4725 eval "ac_cv_header_$ac_safe=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 eval "ac_cv_header_$ac_safe=no"
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h <<EOF
4739 #define $ac_tr_hdr 1
4743 echo "$ac_t""no" 1>&6
4747 for ac_hdr in readline/history.h history.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4788 if test "$with_krb4" = yes ; then
4789 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4791 echo "configure:4792: checking for krb.h" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4805 eval "ac_cv_header_$ac_safe=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_header_$ac_safe=no"
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4819 echo "$ac_t""no" 1>&6
4820 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4825 if test "$with_krb5" = yes ; then
4826 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4827 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4828 echo "configure:4829: checking for krb5.h" >&5
4829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4838 { (eval echo configure:4839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4840 if test -z "$ac_err"; then
4842 eval "ac_cv_header_$ac_safe=yes"
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4848 eval "ac_cv_header_$ac_safe=no"
4852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4856 echo "$ac_t""no" 1>&6
4857 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4860 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4861 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4862 echo "configure:4863: checking for com_err.h" >&5
4863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4864 echo $ac_n "(cached) $ac_c" 1>&6
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <com_err.h>
4871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4872 { (eval echo configure:4873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4874 if test -z "$ac_err"; then
4876 eval "ac_cv_header_$ac_safe=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 eval "ac_cv_header_$ac_safe=no"
4886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4887 echo "$ac_t""yes" 1>&6
4890 echo "$ac_t""no" 1>&6
4891 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4896 if test "$with_openssl" = yes ; then
4897 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4898 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4899 echo "configure:4900: checking for openssl/ssl.h" >&5
4900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4901 echo $ac_n "(cached) $ac_c" 1>&6
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 #include <openssl/ssl.h>
4908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4909 { (eval echo configure:4910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4911 if test -z "$ac_err"; then
4913 eval "ac_cv_header_$ac_safe=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_header_$ac_safe=no"
4923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4924 echo "$ac_t""yes" 1>&6
4927 echo "$ac_t""no" 1>&6
4928 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4931 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4932 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4933 echo "configure:4934: checking for openssl/err.h" >&5
4934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 cat > conftest.$ac_ext <<EOF
4938 #line 4939 "configure"
4939 #include "confdefs.h"
4940 #include <openssl/err.h>
4942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4943 { (eval echo configure:4944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4945 if test -z "$ac_err"; then
4947 eval "ac_cv_header_$ac_safe=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5
4953 eval "ac_cv_header_$ac_safe=no"
4957 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4958 echo "$ac_t""yes" 1>&6
4961 echo "$ac_t""no" 1>&6
4962 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4969 ## Types, structures, compiler characteristics
4971 echo $ac_n "checking for working const""... $ac_c" 1>&6
4972 echo "configure:4973: checking for working const" >&5
4973 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4982 /* Ultrix mips cc rejects this. */
4983 typedef int charset[2]; const charset x;
4984 /* SunOS 4.1.1 cc rejects this. */
4985 char const *const *ccp;
4987 /* NEC SVR4.0.2 mips cc rejects this. */
4988 struct point {int x, y;};
4989 static struct point const zero = {0,0};
4990 /* AIX XL C 1.02.0.0 rejects this.
4991 It does not let you subtract one const X* pointer from another in an arm
4992 of an if-expression whose if-part is not a constant expression */
4993 const char *g = "string";
4994 ccp = &g + (g ? g-g : 0);
4995 /* HPUX 7.0 cc rejects these. */
4998 ccp = (char const *const *) p;
4999 { /* SCO 3.2v4 cc rejects this. */
5001 char const *s = 0 ? (char *) 0 : (char const *) 0;
5005 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5007 const int *foo = &x[0];
5010 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5011 typedef const int *iptr;
5015 { /* AIX XL C 1.02.0.0 rejects this saying
5016 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5017 struct s { int j; const int *ap[3]; };
5018 struct s *b; b->j = 5;
5020 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5026 if { (eval echo configure:5027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5038 echo "$ac_t""$ac_cv_c_const" 1>&6
5039 if test $ac_cv_c_const = no; then
5040 cat >> confdefs.h <<\EOF
5046 echo $ac_n "checking for inline""... $ac_c" 1>&6
5047 echo "configure:5048: checking for inline" >&5
5048 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5052 for ac_kw in inline __inline__ __inline; do
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5061 if { (eval echo configure:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5063 ac_cv_c_inline=$ac_kw; break
5065 echo "configure: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5073 echo "$ac_t""$ac_cv_c_inline" 1>&6
5074 case "$ac_cv_c_inline" in
5076 no) cat >> confdefs.h <<\EOF
5080 *) cat >> confdefs.h <<EOF
5081 #define inline $ac_cv_c_inline
5088 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5089 echo "configure:5090: checking for preprocessor stringizing operator" >&5
5090 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5099 char *s = x(teststring);
5102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103 egrep "#teststring" >/dev/null 2>&1; then
5105 ac_cv_c_stringize=no
5108 ac_cv_c_stringize=yes
5114 if test "${ac_cv_c_stringize}" = yes
5116 cat >> confdefs.h <<\EOF
5117 #define HAVE_STRINGIZE 1
5121 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5123 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5124 echo "configure:5125: checking for signed types" >&5
5125 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5133 signed char c; signed short s; signed int i;
5136 if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5138 pgac_cv_c_signed=yes
5140 echo "configure: failed program was:" >&5
5141 cat conftest.$ac_ext >&5
5148 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5149 if test x"$pgac_cv_c_signed" = xno ; then
5150 cat >> confdefs.h <<\EOF
5155 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5156 echo "configure:5157: checking for volatile" >&5
5157 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5165 extern volatile int i;
5168 if { (eval echo configure:5169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5170 pgac_cv_c_volatile=yes
5172 echo "configure: failed program was:" >&5
5173 cat conftest.$ac_ext >&5
5175 pgac_cv_c_volatile=no
5180 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5181 if test x"$pgac_cv_c_volatile" = xno ; then
5182 cat >> confdefs.h <<\EOF
5187 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5188 echo "configure:5189: checking whether struct tm is in sys/time.h or time.h" >&5
5189 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5190 echo $ac_n "(cached) $ac_c" 1>&6
5192 cat > conftest.$ac_ext <<EOF
5193 #line 5194 "configure"
5194 #include "confdefs.h"
5195 #include <sys/types.h>
5198 struct tm *tp; tp->tm_sec;
5201 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5203 ac_cv_struct_tm=time.h
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 ac_cv_struct_tm=sys/time.h
5213 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5214 if test $ac_cv_struct_tm = sys/time.h; then
5215 cat >> confdefs.h <<\EOF
5216 #define TM_IN_SYS_TIME 1
5221 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5222 echo "configure:5223: checking for tm_zone in struct tm" >&5
5223 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6
5226 cat > conftest.$ac_ext <<EOF
5227 #line 5228 "configure"
5228 #include "confdefs.h"
5229 #include <sys/types.h>
5230 #include <$ac_cv_struct_tm>
5232 struct tm tm; tm.tm_zone;
5235 if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 ac_cv_struct_tm_zone=yes
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 ac_cv_struct_tm_zone=no
5247 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5248 if test "$ac_cv_struct_tm_zone" = yes; then
5249 cat >> confdefs.h <<\EOF
5250 #define HAVE_TM_ZONE 1
5254 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5255 echo "configure:5256: checking for tzname" >&5
5256 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5263 #ifndef tzname /* For SGI. */
5264 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5272 ac_cv_var_tzname=yes
5274 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5282 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5283 if test $ac_cv_var_tzname = yes; then
5284 cat >> confdefs.h <<\EOF
5285 #define HAVE_TZNAME 1
5291 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5292 echo "configure:5293: checking for union semun" >&5
5293 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5299 #include <sys/types.h>
5300 #include <sys/ipc.h>
5301 #include <sys/sem.h>
5306 if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 pgac_cv_union_semun=yes
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 pgac_cv_union_semun=no
5318 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5319 if test x"$pgac_cv_union_semun" = xyes ; then
5320 cat >> confdefs.h <<\EOF
5321 #define HAVE_UNION_SEMUN 1
5325 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5326 echo "configure:5327: checking for struct sockaddr_un" >&5
5327 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 #include <sys/types.h>
5334 #ifdef HAVE_SYS_UN_H
5338 struct sockaddr_un un;
5341 if { (eval echo configure:5342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5343 pgac_cv_struct_sockaddr_un=yes
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 pgac_cv_struct_sockaddr_un=no
5353 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5354 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5355 cat >> confdefs.h <<\EOF
5356 #define HAVE_STRUCT_SOCKADDR_UN 1
5362 ## Functions, global variables
5364 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5365 echo "configure:5366: checking for int timezone" >&5
5366 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 cat > conftest.$ac_ext <<EOF
5370 #line 5371 "configure"
5371 #include "confdefs.h"
5374 int res = timezone / 60;
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 pgac_cv_var_int_timezone=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 pgac_cv_var_int_timezone=no
5389 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5390 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5391 cat >> confdefs.h <<\EOF
5392 #define HAVE_INT_TIMEZONE
5396 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5397 echo "configure:5398: checking types of arguments for accept()" >&5
5398 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5408 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5409 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 #ifdef HAVE_SYS_TYPES_H
5414 #include <sys/types.h>
5416 #ifdef HAVE_SYS_SOCKET_H
5417 #include <sys/socket.h>
5419 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5424 if { (eval echo configure:5425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5426 ac_not_found=no; break 3
5428 echo "configure: failed program was:" >&5
5429 cat conftest.$ac_ext >&5
5437 if test "$ac_not_found" = yes; then
5438 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5446 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5447 cat >> confdefs.h <<EOF
5448 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5451 cat >> confdefs.h <<EOF
5452 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5455 cat >> confdefs.h <<EOF
5456 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5460 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5461 echo "configure:5462: checking whether gettimeofday takes only one argument" >&5
5462 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure"
5467 #include "confdefs.h"
5468 #include <sys/time.h>
5471 struct timezone *tzp;
5472 gettimeofday(tp,tzp);
5475 if { (eval echo configure:5476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5477 pgac_cv_func_gettimeofday_1arg=no
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 pgac_cv_func_gettimeofday_1arg=yes
5487 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5488 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5489 cat >> confdefs.h <<\EOF
5490 #define GETTIMEOFDAY_1ARG
5495 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5496 echo "configure:5497: checking for fcntl(F_SETLK)" >&5
5498 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5500 cat > conftest.$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5508 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5509 lck.l_type = F_WRLCK;
5510 fcntl(0, F_SETLK, &lck);
5513 if { (eval echo configure:5514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5515 cat >> confdefs.h <<\EOF
5516 #define HAVE_FCNTL_SETLK 1
5518 echo "$ac_t""yes" 1>&6
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 echo "$ac_t""no" 1>&6
5529 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5532 echo "configure:5533: checking for $ac_func" >&5
5533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5539 /* System header to define __stub macros and hopefully few prototypes,
5540 which can conflict with char $ac_func(); below. */
5542 /* Override any gcc2 internal prototype to avoid an error. */
5543 /* We use char because int might match the return type of a gcc2
5544 builtin and then its argument prototype would still apply. */
5549 /* The GNU C library defines this for functions which it implements
5550 to always fail with ENOSYS. Some functions are actually named
5551 something starting with __ and the normal name is an alias. */
5552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 eval "ac_cv_func_$ac_func=yes"
5564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 eval "ac_cv_func_$ac_func=no"
5572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5573 echo "$ac_t""yes" 1>&6
5574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5575 cat >> confdefs.h <<EOF
5576 #define $ac_tr_func 1
5580 echo "$ac_t""no" 1>&6
5585 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5586 echo "configure:5587: checking for PS_STRINGS" >&5
5587 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <machine/vmparam.h>
5594 #include <sys/exec.h>
5597 PS_STRINGS->ps_nargvstr = 1;
5598 PS_STRINGS->ps_argvstr = "foo";
5601 if { (eval echo configure:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5603 pgac_cv_var_PS_STRINGS=yes
5605 echo "configure: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5608 pgac_cv_var_PS_STRINGS=no
5613 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5614 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5615 cat >> confdefs.h <<\EOF
5616 #define HAVE_PS_STRINGS
5622 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5623 echo "configure:5624: checking for snprintf" >&5
5624 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5630 /* System header to define __stub macros and hopefully few prototypes,
5631 which can conflict with char snprintf(); below. */
5633 /* Override any gcc2 internal prototype to avoid an error. */
5634 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5640 /* The GNU C library defines this for functions which it implements
5641 to always fail with ENOSYS. Some functions are actually named
5642 something starting with __ and the normal name is an alias. */
5643 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 eval "ac_cv_func_snprintf=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 eval "ac_cv_func_snprintf=no"
5663 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5664 echo "$ac_t""yes" 1>&6
5665 cat >> confdefs.h <<\EOF
5666 #define HAVE_SNPRINTF 1
5670 echo "$ac_t""no" 1>&6
5671 SNPRINTF='snprintf.o'
5674 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5675 echo "configure:5676: checking for vsnprintf" >&5
5676 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5682 /* System header to define __stub macros and hopefully few prototypes,
5683 which can conflict with char vsnprintf(); below. */
5685 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5692 /* The GNU C library defines this for functions which it implements
5693 to always fail with ENOSYS. Some functions are actually named
5694 something starting with __ and the normal name is an alias. */
5695 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_func_vsnprintf=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_func_vsnprintf=no"
5715 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_VSNPRINTF 1
5722 echo "$ac_t""no" 1>&6
5723 SNPRINTF='snprintf.o'
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5733 egrep "snprintf" >/dev/null 2>&1; then
5735 cat >> confdefs.h <<\EOF
5736 #define HAVE_SNPRINTF_DECL 1
5742 cat > conftest.$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5748 egrep "vsnprintf" >/dev/null 2>&1; then
5750 cat >> confdefs.h <<\EOF
5751 #define HAVE_VSNPRINTF_DECL 1
5758 # do this one the hard way in case isinf() is a macro
5759 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5760 echo "configure:5761: checking for isinf" >&5
5761 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5770 double x = 0.0; int res = isinf(x);
5773 if { (eval echo configure:5774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5775 ac_cv_func_isinf=yes
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5785 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5787 if test $ac_cv_func_isinf = yes ; then
5788 cat >> confdefs.h <<\EOF
5789 #define HAVE_ISINF 1
5795 # Look for a way to implement a substitute for isinf()
5796 for ac_func in fpclass fp_class fp_class_d class
5798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5799 echo "configure:5800: checking for $ac_func" >&5
5800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 /* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char $ac_func(); below. */
5809 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 eval "ac_cv_func_$ac_func=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_func_$ac_func=no"
5839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5840 echo "$ac_t""yes" 1>&6
5841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5842 cat >> confdefs.h <<EOF
5843 #define $ac_tr_func 1
5847 echo "$ac_t""no" 1>&6
5854 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5855 echo "configure:5856: checking for getrusage" >&5
5856 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* System header to define __stub macros and hopefully few prototypes,
5863 which can conflict with char getrusage(); below. */
5865 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5872 /* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5885 eval "ac_cv_func_getrusage=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 eval "ac_cv_func_getrusage=no"
5895 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 cat >> confdefs.h <<\EOF
5898 #define HAVE_GETRUSAGE 1
5902 echo "$ac_t""no" 1>&6
5903 GETRUSAGE='getrusage.o'
5907 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5908 echo "configure:5909: checking for srandom" >&5
5909 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 cat > conftest.$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5915 /* System header to define __stub macros and hopefully few prototypes,
5916 which can conflict with char srandom(); below. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5925 /* The GNU C library defines this for functions which it implements
5926 to always fail with ENOSYS. Some functions are actually named
5927 something starting with __ and the normal name is an alias. */
5928 #if defined (__stub_srandom) || defined (__stub___srandom)
5936 if { (eval echo configure:5937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5938 eval "ac_cv_func_srandom=yes"
5940 echo "configure: failed program was:" >&5
5941 cat conftest.$ac_ext >&5
5943 eval "ac_cv_func_srandom=no"
5948 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5949 echo "$ac_t""yes" 1>&6
5950 cat >> confdefs.h <<\EOF
5951 #define HAVE_SRANDOM 1
5955 echo "$ac_t""no" 1>&6
5960 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5961 echo "configure:5962: checking for gethostname" >&5
5962 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5963 echo $ac_n "(cached) $ac_c" 1>&6
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5968 /* System header to define __stub macros and hopefully few prototypes,
5969 which can conflict with char gethostname(); below. */
5971 /* Override any gcc2 internal prototype to avoid an error. */
5972 /* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5978 /* The GNU C library defines this for functions which it implements
5979 to always fail with ENOSYS. Some functions are actually named
5980 something starting with __ and the normal name is an alias. */
5981 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5989 if { (eval echo configure:5990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5991 eval "ac_cv_func_gethostname=yes"
5993 echo "configure: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5996 eval "ac_cv_func_gethostname=no"
6001 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6002 echo "$ac_t""yes" 1>&6
6003 cat >> confdefs.h <<\EOF
6004 #define HAVE_GETHOSTNAME 1
6008 echo "$ac_t""no" 1>&6
6009 GETHOSTNAME='gethostname.o'
6013 echo $ac_n "checking for random""... $ac_c" 1>&6
6014 echo "configure:6015: checking for random" >&5
6015 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6016 echo $ac_n "(cached) $ac_c" 1>&6
6018 cat > conftest.$ac_ext <<EOF
6019 #line 6020 "configure"
6020 #include "confdefs.h"
6021 /* System header to define __stub macros and hopefully few prototypes,
6022 which can conflict with char random(); below. */
6024 /* Override any gcc2 internal prototype to avoid an error. */
6025 /* We use char because int might match the return type of a gcc2
6026 builtin and then its argument prototype would still apply. */
6031 /* The GNU C library defines this for functions which it implements
6032 to always fail with ENOSYS. Some functions are actually named
6033 something starting with __ and the normal name is an alias. */
6034 #if defined (__stub_random) || defined (__stub___random)
6042 if { (eval echo configure:6043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6044 eval "ac_cv_func_random=yes"
6046 echo "configure: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6049 eval "ac_cv_func_random=no"
6054 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6056 cat >> confdefs.h <<\EOF
6057 #define HAVE_RANDOM 1
6061 echo "$ac_t""no" 1>&6
6062 MISSING_RANDOM='random.o'
6066 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6067 echo "configure:6068: checking for inet_aton" >&5
6068 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6069 echo $ac_n "(cached) $ac_c" 1>&6
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure"
6073 #include "confdefs.h"
6074 /* System header to define __stub macros and hopefully few prototypes,
6075 which can conflict with char inet_aton(); below. */
6077 /* Override any gcc2 internal prototype to avoid an error. */
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6084 /* The GNU C library defines this for functions which it implements
6085 to always fail with ENOSYS. Some functions are actually named
6086 something starting with __ and the normal name is an alias. */
6087 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6095 if { (eval echo configure:6096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6097 eval "ac_cv_func_inet_aton=yes"
6099 echo "configure: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6102 eval "ac_cv_func_inet_aton=no"
6107 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6109 cat >> confdefs.h <<\EOF
6110 #define HAVE_INET_ATON 1
6114 echo "$ac_t""no" 1>&6
6115 INET_ATON='inet_aton.o'
6119 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6120 echo "configure:6121: checking for strerror" >&5
6121 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char strerror(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_strerror) || defined (__stub___strerror)
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 eval "ac_cv_func_strerror=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 eval "ac_cv_func_strerror=no"
6160 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6162 cat >> confdefs.h <<\EOF
6163 #define HAVE_STRERROR 1
6167 echo "$ac_t""no" 1>&6
6168 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
6173 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6174 echo "configure:6175: checking for strdup" >&5
6175 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6178 cat > conftest.$ac_ext <<EOF
6179 #line 6180 "configure"
6180 #include "confdefs.h"
6181 /* System header to define __stub macros and hopefully few prototypes,
6182 which can conflict with char strdup(); below. */
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6191 /* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194 #if defined (__stub_strdup) || defined (__stub___strdup)
6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 eval "ac_cv_func_strdup=yes"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.$ac_ext >&5
6209 eval "ac_cv_func_strdup=no"
6214 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 cat >> confdefs.h <<\EOF
6217 #define HAVE_STRDUP 1
6221 echo "$ac_t""no" 1>&6
6222 STRDUP='../../utils/strdup.o'
6226 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6227 echo "configure:6228: checking for strtol" >&5
6228 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6229 echo $ac_n "(cached) $ac_c" 1>&6
6231 cat > conftest.$ac_ext <<EOF
6232 #line 6233 "configure"
6233 #include "confdefs.h"
6234 /* System header to define __stub macros and hopefully few prototypes,
6235 which can conflict with char strtol(); below. */
6237 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6244 /* The GNU C library defines this for functions which it implements
6245 to always fail with ENOSYS. Some functions are actually named
6246 something starting with __ and the normal name is an alias. */
6247 #if defined (__stub_strtol) || defined (__stub___strtol)
6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6257 eval "ac_cv_func_strtol=yes"
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6262 eval "ac_cv_func_strtol=no"
6267 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6268 echo "$ac_t""yes" 1>&6
6269 cat >> confdefs.h <<\EOF
6270 #define HAVE_STRTOL 1
6274 echo "$ac_t""no" 1>&6
6279 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6280 echo "configure:6281: checking for strtoul" >&5
6281 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6282 echo $ac_n "(cached) $ac_c" 1>&6
6284 cat > conftest.$ac_ext <<EOF
6285 #line 6286 "configure"
6286 #include "confdefs.h"
6287 /* System header to define __stub macros and hopefully few prototypes,
6288 which can conflict with char strtoul(); below. */
6290 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6297 /* The GNU C library defines this for functions which it implements
6298 to always fail with ENOSYS. Some functions are actually named
6299 something starting with __ and the normal name is an alias. */
6300 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6308 if { (eval echo configure:6309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310 eval "ac_cv_func_strtoul=yes"
6312 echo "configure: failed program was:" >&5
6313 cat conftest.$ac_ext >&5
6315 eval "ac_cv_func_strtoul=no"
6320 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6321 echo "$ac_t""yes" 1>&6
6322 cat >> confdefs.h <<\EOF
6323 #define HAVE_STRTOUL 1
6327 echo "$ac_t""no" 1>&6
6332 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6333 echo "configure:6334: checking for strcasecmp" >&5
6334 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6335 echo $ac_n "(cached) $ac_c" 1>&6
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char strcasecmp(); below. */
6343 /* Override any gcc2 internal prototype to avoid an error. */
6344 /* We use char because int might match the return type of a gcc2
6345 builtin and then its argument prototype would still apply. */
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6363 eval "ac_cv_func_strcasecmp=yes"
6365 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5
6368 eval "ac_cv_func_strcasecmp=no"
6373 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6374 echo "$ac_t""yes" 1>&6
6375 cat >> confdefs.h <<\EOF
6376 #define HAVE_STRCASECMP 1
6380 echo "$ac_t""no" 1>&6
6381 STRCASECMP='strcasecmp.o'
6385 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6386 echo "configure:6387: checking for cbrt" >&5
6387 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 cat > conftest.$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char cbrt(); below. */
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6416 eval "ac_cv_func_cbrt=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6421 eval "ac_cv_func_cbrt=no"
6426 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 cat >> confdefs.h <<\EOF
6433 echo "$ac_t""no" 1>&6
6434 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6435 echo "configure:6436: checking for cbrt in -lm" >&5
6436 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6438 echo $ac_n "(cached) $ac_c" 1>&6
6440 ac_save_LIBS="$LIBS"
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 /* Override any gcc2 internal prototype to avoid an error. */
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 eval "ac_cv_lib_$ac_lib_var=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_lib_$ac_lib_var=no"
6464 LIBS="$ac_save_LIBS"
6467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6468 echo "$ac_t""yes" 1>&6
6469 cat >> confdefs.h <<\EOF
6474 echo "$ac_t""no" 1>&6
6480 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6481 # this hackery with HPUXMATHLIB allows us to cope.
6485 if [ -r /lib/pa1.1/libm.a ] ; then
6486 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6491 echo $ac_n "checking for rint""... $ac_c" 1>&6
6492 echo "configure:6493: checking for rint" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 cat > conftest.$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char rint(); below. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_rint) || defined (__stub___rint)
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 eval "ac_cv_func_rint=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_func_rint=no"
6532 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 cat >> confdefs.h <<\EOF
6539 echo "$ac_t""no" 1>&6
6540 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6541 echo "configure:6542: checking for rint in -lm" >&5
6542 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6546 ac_save_LIBS="$LIBS"
6547 LIBS="-lm $HPUXMATHLIB $LIBS"
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 eval "ac_cv_lib_$ac_lib_var=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_lib_$ac_lib_var=no"
6570 LIBS="$ac_save_LIBS"
6573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6574 echo "$ac_t""yes" 1>&6
6575 cat >> confdefs.h <<\EOF
6580 echo "$ac_t""no" 1>&6
6587 # Readline versions < 2.1 don't have rl_completion_append_character
6588 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6589 echo "configure:6590: checking for rl_completion_append_character" >&5
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6594 #ifdef HAVE_READLINE_H
6595 # include <readline.h>
6597 #ifdef HAVE_READLINE_READLINE_H
6598 # include <readline/readline.h>
6601 rl_completion_append_character = 'x';
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 echo "$ac_t""yes" 1>&6
6607 cat >> confdefs.h <<\EOF
6608 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6615 echo "$ac_t""no" 1>&6
6620 # Check whether readline's filename_completion_function is declared.
6621 # Some prehistoric versions of readline, in particular those shipped
6622 # with earlier Cygwins don't have this declared, although it's in the
6624 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6625 echo "configure:6626: checking whether filename_completion_function is declared" >&5
6626 if test "$ac_cv_header_readline_h" = yes; then
6627 _readline_header='readline.h'
6628 elif test "$ac_cv_header_readline_readline_h" = yes; then
6629 _readline_header='readline/readline.h'
6631 _readline_header='xxx'
6633 cat > conftest.$ac_ext <<EOF
6634 #line 6635 "configure"
6635 #include "confdefs.h"
6636 #include <$_readline_header>
6638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6639 egrep "filename_completion_function" >/dev/null 2>&1; then
6641 cat >> confdefs.h <<\EOF
6642 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6645 echo "$ac_t""yes" 1>&6
6648 echo "$ac_t""no" 1>&6
6655 echo $ac_n "checking for finite""... $ac_c" 1>&6
6656 echo "configure:6657: checking for finite" >&5
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6662 int dummy=finite(1.0);
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 cat >> confdefs.h <<\EOF
6668 #define HAVE_FINITE 1
6670 echo "$ac_t""yes" 1>&6
6672 echo "configure: failed program was:" >&5
6673 cat conftest.$ac_ext >&5
6675 echo "$ac_t""no" 1>&6
6679 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6680 echo "configure:6681: checking for sigsetjmp" >&5
6681 cat > conftest.$ac_ext <<EOF
6682 #line 6683 "configure"
6683 #include "confdefs.h"
6686 sigjmp_buf x; sigsetjmp(x, 1);
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 cat >> confdefs.h <<\EOF
6692 #define HAVE_SIGSETJMP 1
6694 echo "$ac_t""yes" 1>&6
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 echo "$ac_t""no" 1>&6
6704 # Check whether --enable-syslog was given
6705 if test x"${enable_syslog+set}" = xset; then
6706 case $enable_syslog in
6708 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6709 echo "configure:6710: checking for syslog" >&5
6710 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char syslog(); below. */
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_syslog) || defined (__stub___syslog)
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6739 eval "ac_cv_func_syslog=yes"
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 eval "ac_cv_func_syslog=no"
6749 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 cat >> confdefs.h <<\EOF
6752 #define ENABLE_SYSLOG 1
6756 echo "$ac_t""no" 1>&6
6757 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6765 enableval=$enable_syslog
6766 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6768 esac # $enable_syslog
6776 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6777 echo "configure:6778: checking whether long int is 64 bits" >&5
6778 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6779 echo $ac_n "(cached) $ac_c" 1>&6
6781 if test "$cross_compiling" = yes; then
6782 pgac_cv_type_long_int_64=no
6783 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 typedef long int int64;
6791 * These are globals to discourage the compiler from folding all the
6792 * arithmetic tests down to compile-time constants.
6797 int does_int64_work()
6801 if (sizeof(int64) != 8)
6802 return 0; /* definitely not the right size */
6804 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6812 exit(! does_int64_work());
6815 if { (eval echo configure:6816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6817 pgac_cv_type_long_int_64=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 pgac_cv_type_long_int_64=no
6829 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6831 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6832 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6833 cat >> confdefs.h <<\EOF
6834 #define HAVE_LONG_INT_64
6840 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6841 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6842 echo "configure:6843: checking whether long long int is 64 bits" >&5
6843 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 if test "$cross_compiling" = yes; then
6847 pgac_cv_type_long_long_int_64=no
6848 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 typedef long long int int64;
6856 * These are globals to discourage the compiler from folding all the
6857 * arithmetic tests down to compile-time constants.
6862 int does_int64_work()
6866 if (sizeof(int64) != 8)
6867 return 0; /* definitely not the right size */
6869 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6877 exit(! does_int64_work());
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6882 pgac_cv_type_long_long_int_64=yes
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 pgac_cv_type_long_long_int_64=no
6894 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6896 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6897 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6898 cat >> confdefs.h <<\EOF
6899 #define HAVE_LONG_LONG_INT_64
6908 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6909 if [ x$SNPRINTF = x ] ; then
6910 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6911 echo "configure:6912: checking whether snprintf handles 'long long int' as %lld" >&5
6912 if test "$cross_compiling" = yes; then
6913 echo "$ac_t""assuming not on target machine" 1>&6
6914 # Force usage of our own snprintf, since we cannot test foreign snprintf
6915 SNPRINTF='snprintf.o'
6916 INT64_FORMAT='"%lld"'
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6923 typedef long long int int64;
6924 #define INT64_FORMAT "%lld"
6929 int does_int64_snprintf_work()
6934 if (sizeof(int64) != 8)
6935 return 0; /* doesn't look like the right size */
6938 snprintf(buf, 100, INT64_FORMAT, c);
6939 if (strcmp(buf, "800000140000005") != 0)
6940 return 0; /* either multiply or snprintf is busted */
6944 exit(! does_int64_snprintf_work());
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6949 echo "$ac_t""yes" 1>&6
6950 INT64_FORMAT='"%lld"'
6953 echo "configure: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 echo "$ac_t""no" 1>&6
6957 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6958 echo "configure:6959: checking whether snprintf handles 'long long int' as %qd" >&5
6959 if test "$cross_compiling" = yes; then
6960 echo "$ac_t""assuming not on target machine" 1>&6
6961 # Force usage of our own snprintf, since we cannot test foreign snprintf
6962 SNPRINTF='snprintf.o'
6963 INT64_FORMAT='"%lld"'
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6970 typedef long long int int64;
6971 #define INT64_FORMAT "%qd"
6976 int does_int64_snprintf_work()
6981 if (sizeof(int64) != 8)
6982 return 0; /* doesn't look like the right size */
6985 snprintf(buf, 100, INT64_FORMAT, c);
6986 if (strcmp(buf, "800000140000005") != 0)
6987 return 0; /* either multiply or snprintf is busted */
6991 exit(! does_int64_snprintf_work());
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6996 echo "$ac_t""yes" 1>&6
6997 INT64_FORMAT='"%qd"'
7000 echo "configure: failed program was:" >&5
7001 cat conftest.$ac_ext >&5
7003 echo "$ac_t""no" 1>&6
7004 # Force usage of our own snprintf, since system snprintf is broken
7005 SNPRINTF='snprintf.o'
7006 INT64_FORMAT='"%lld"'
7017 # here if we previously decided we needed to use our own snprintf
7018 INT64_FORMAT='"%lld"'
7021 # Here if we are not using 'long long int' at all
7022 INT64_FORMAT='"%ld"'
7025 cat >> confdefs.h <<EOF
7026 #define INT64_FORMAT $INT64_FORMAT
7032 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7033 echo "configure:7034: checking alignment of short" >&5
7034 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 if test "$cross_compiling" = yes; then
7038 pgac_cv_alignof_short='sizeof(short)'
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7044 struct { char filler; short field; } mystruct;
7047 FILE *f=fopen("conftestval", "w");
7049 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7053 if { (eval echo configure:7054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7055 pgac_cv_alignof_short=`cat conftestval`
7057 echo "configure: failed program was:" >&5
7058 cat conftest.$ac_ext >&5
7060 pgac_cv_alignof_short='sizeof(short)'
7066 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7067 cat >> confdefs.h <<EOF
7068 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7072 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7073 echo "configure:7074: checking alignment of int" >&5
7074 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 if test "$cross_compiling" = yes; then
7078 pgac_cv_alignof_int='sizeof(int)'
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7084 struct { char filler; int field; } mystruct;
7087 FILE *f=fopen("conftestval", "w");
7089 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7095 pgac_cv_alignof_int=`cat conftestval`
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 pgac_cv_alignof_int='sizeof(int)'
7106 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7107 cat >> confdefs.h <<EOF
7108 #define ALIGNOF_INT $pgac_cv_alignof_int
7112 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7113 echo "configure:7114: checking alignment of long" >&5
7114 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7115 echo $ac_n "(cached) $ac_c" 1>&6
7117 if test "$cross_compiling" = yes; then
7118 pgac_cv_alignof_long='sizeof(long)'
7120 cat > conftest.$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7124 struct { char filler; long field; } mystruct;
7127 FILE *f=fopen("conftestval", "w");
7129 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7133 if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7135 pgac_cv_alignof_long=`cat conftestval`
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7140 pgac_cv_alignof_long='sizeof(long)'
7146 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7147 cat >> confdefs.h <<EOF
7148 #define ALIGNOF_LONG $pgac_cv_alignof_long
7152 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7153 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7154 echo "configure:7155: checking alignment of long long int" >&5
7155 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 if test "$cross_compiling" = yes; then
7159 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7165 struct { char filler; long long int field; } mystruct;
7168 FILE *f=fopen("conftestval", "w");
7170 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7176 pgac_cv_alignof_long_long_int=`cat conftestval`
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7187 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7188 cat >> confdefs.h <<EOF
7189 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7194 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7195 echo "configure:7196: checking alignment of double" >&5
7196 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7197 echo $ac_n "(cached) $ac_c" 1>&6
7199 if test "$cross_compiling" = yes; then
7200 pgac_cv_alignof_double='sizeof(double)'
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7206 struct { char filler; double field; } mystruct;
7209 FILE *f=fopen("conftestval", "w");
7211 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7215 if { (eval echo configure:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7217 pgac_cv_alignof_double=`cat conftestval`
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7222 pgac_cv_alignof_double='sizeof(double)'
7228 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7229 cat >> confdefs.h <<EOF
7230 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7236 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7237 MAX_ALIGNOF=$pgac_cv_alignof_long
7238 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7239 MAX_ALIGNOF=$pgac_cv_alignof_double
7241 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7242 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7245 MAX_ALIGNOF="$pgac_cv_alignof_double"
7247 cat >> confdefs.h <<EOF
7248 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7252 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7253 echo "configure:7254: checking for POSIX signal interface" >&5
7254 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7263 struct sigaction act, oact;
7264 sigemptyset(&act.sa_mask);
7265 act.sa_flags = SA_RESTART;
7266 sigaction(0, &act, &oact);
7269 if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7271 pgac_cv_func_posix_signals=yes
7273 echo "configure: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7276 pgac_cv_func_posix_signals=no
7281 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7282 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7283 cat >> confdefs.h <<\EOF
7284 #define HAVE_POSIX_SIGNALS
7288 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7292 # Check for Tcl configuration script tclConfig.sh
7293 if test "$with_tcl" = yes; then
7294 for ac_prog in tclsh tcl
7296 # Extract the first word of "$ac_prog", so it can be a program name with args.
7297 set dummy $ac_prog; ac_word=$2
7298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7299 echo "configure:7300: checking for $ac_word" >&5
7300 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7301 echo $ac_n "(cached) $ac_c" 1>&6
7305 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7308 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7313 for ac_dir in $ac_dummy; do
7314 test -z "$ac_dir" && ac_dir=.
7315 if test -f $ac_dir/$ac_word; then
7316 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7324 TCLSH="$ac_cv_path_TCLSH"
7325 if test -n "$TCLSH"; then
7326 echo "$ac_t""$TCLSH" 1>&6
7328 echo "$ac_t""no" 1>&6
7331 test -n "$TCLSH" && break
7334 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7335 echo "configure:7336: checking for tclConfig.sh" >&5
7336 # Let user override test
7337 if test -z "$TCL_CONFIG_SH"; then
7338 pgac_test_dirs="$with_tclconfig"
7340 set X $pgac_test_dirs; shift
7341 if test $# -eq 0; then
7342 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7343 set X `echo 'puts $auto_path' | $TCLSH`; shift
7347 if test -r "$pgac_dir/tclConfig.sh"; then
7348 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7354 if test -z "$TCL_CONFIG_SH"; then
7355 echo "$ac_t""no" 1>&6
7356 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7358 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7365 # Check for Tk configuration script tkConfig.sh
7366 if test "$with_tk" = yes; then
7367 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7368 echo "configure:7369: checking for tkConfig.sh" >&5
7369 # Let user override test
7370 if test -z "$TK_CONFIG_SH"; then
7371 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7373 set X $pgac_test_dirs; shift
7374 if test $# -eq 0; then
7375 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7376 set X `echo 'puts $auto_path' | $TCLSH`; shift
7380 if test -r "$pgac_dir/tkConfig.sh"; then
7381 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7387 if test -z "$TK_CONFIG_SH"; then
7388 echo "$ac_t""no" 1>&6
7389 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7391 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7399 # Finally ready to produce output files ...
7401 if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
7402 echo $ac_n "preparing build tree... $ac_c" 1>&6
7403 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
7404 || { echo "configure: error: failed" 1>&2; exit 1; }
7405 echo "$ac_t""done" 1>&6
7409 cat > confcache <<\EOF
7410 # This file is a shell script that caches the results of configure
7411 # tests run on this system so they can be shared between configure
7412 # scripts and configure runs. It is not useful on other systems.
7413 # If it contains results you don't want to keep, you may remove or edit it.
7415 # By default, configure uses ./config.cache as the cache file,
7416 # creating it if it does not exist already. You can give configure
7417 # the --cache-file=FILE option to use a different cache file; that is
7418 # what configure does when it calls configure scripts in
7419 # subdirectories, so they share the cache.
7420 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7421 # config.status only pays attention to the cache file if you give it the
7422 # --recheck option to rerun configure.
7425 # The following way of writing the cache mishandles newlines in values,
7426 # but we know of no workaround that is simple, portable, and efficient.
7427 # So, don't put newlines in cache variables' values.
7428 # Ultrix sh set writes to stderr and can't be redirected directly,
7429 # and sets the high bit in the cache file unless we assign to the vars.
7431 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7433 # `set' does not quote correctly, so add quotes (double-quote substitution
7434 # turns \\\\ into \\, and sed turns \\ into \).
7436 -e "s/'/'\\\\''/g" \
7437 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7440 # `set' quotes correctly as required by POSIX, so do not add quotes.
7441 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7444 if cmp -s $cache_file confcache; then
7447 if test -w $cache_file; then
7448 echo "updating cache $cache_file"
7449 cat confcache > $cache_file
7451 echo "not updating unwritable cache $cache_file"
7456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7458 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7459 # Let make expand exec_prefix.
7460 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7462 # Any assignment to VPATH causes Sun make to only execute
7463 # the first set of double-colon rules, so remove it if not needed.
7464 # If there is a colon in the path, we need to keep it.
7465 if test "x$srcdir" = x.; then
7466 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7469 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7471 DEFS=-DHAVE_CONFIG_H
7473 # Without the "./", some shells look in PATH for config.status.
7474 : ${CONFIG_STATUS=./config.status}
7476 echo creating $CONFIG_STATUS
7477 rm -f $CONFIG_STATUS
7478 cat > $CONFIG_STATUS <<EOF
7480 # Generated automatically by configure.
7481 # Run this file to recreate the current configuration.
7482 # This directory was configured as follows,
7483 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7485 # $0 $ac_configure_args
7487 # Compiler output produced by configure, useful for debugging
7488 # configure, is in ./config.log if it exists.
7490 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7493 case "\$ac_option" in
7494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7495 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7496 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7497 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7498 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7500 -help | --help | --hel | --he | --h)
7501 echo "\$ac_cs_usage"; exit 0 ;;
7502 *) echo "\$ac_cs_usage"; exit 1 ;;
7506 ac_given_srcdir=$srcdir
7507 ac_given_INSTALL="$INSTALL"
7509 trap 'rm -fr `echo "
7513 src/backend/port/Makefile
7514 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7516 cat >> $CONFIG_STATUS <<EOF
7518 # Protect against being on the right side of a sed subst in config.status.
7519 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7520 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7524 s%@CFLAGS@%$CFLAGS%g
7525 s%@CPPFLAGS@%$CPPFLAGS%g
7526 s%@CXXFLAGS@%$CXXFLAGS%g
7527 s%@FFLAGS@%$FFLAGS%g
7529 s%@LDFLAGS@%$LDFLAGS%g
7531 s%@exec_prefix@%$exec_prefix%g
7532 s%@prefix@%$prefix%g
7533 s%@program_transform_name@%$program_transform_name%g
7534 s%@bindir@%$bindir%g
7535 s%@sbindir@%$sbindir%g
7536 s%@libexecdir@%$libexecdir%g
7537 s%@datadir@%$datadir%g
7538 s%@sysconfdir@%$sysconfdir%g
7539 s%@sharedstatedir@%$sharedstatedir%g
7540 s%@localstatedir@%$localstatedir%g
7541 s%@libdir@%$libdir%g
7542 s%@includedir@%$includedir%g
7543 s%@oldincludedir@%$oldincludedir%g
7544 s%@docdir@%$docdir%g
7545 s%@mandir@%$mandir%g
7546 s%@VERSION@%$VERSION%g
7547 s%@abs_top_srcdir@%$abs_top_srcdir%g
7548 s%@abs_top_builddir@%$abs_top_builddir%g
7550 s%@host_alias@%$host_alias%g
7551 s%@host_cpu@%$host_cpu%g
7552 s%@host_vendor@%$host_vendor%g
7553 s%@host_os@%$host_os%g
7554 s%@PORTNAME@%$PORTNAME%g
7556 s%@MULTIBYTE@%$MULTIBYTE%g
7557 s%@enable_shared@%$enable_shared%g
7558 s%@enable_rpath@%$enable_rpath%g
7560 s%@EXEEXT@%$EXEEXT%g
7563 s%@autodepend@%$autodepend%g
7564 s%@INCLUDES@%$INCLUDES%g
7565 s%@with_tcl@%$with_tcl%g
7566 s%@with_tk@%$with_tk%g
7567 s%@with_perl@%$with_perl%g
7568 s%@PYTHON@%$PYTHON%g
7569 s%@python_version@%$python_version%g
7570 s%@python_prefix@%$python_prefix%g
7571 s%@python_execprefix@%$python_execprefix%g
7572 s%@python_configdir@%$python_configdir%g
7573 s%@python_moduledir@%$python_moduledir%g
7574 s%@python_extmakefile@%$python_extmakefile%g
7575 s%@with_python@%$with_python%g
7576 s%@with_krb4@%$with_krb4%g
7577 s%@with_krb5@%$with_krb5%g
7578 s%@krb_srvtab@%$krb_srvtab%g
7579 s%@with_openssl@%$with_openssl%g
7580 s%@enable_odbc@%$enable_odbc%g
7581 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7582 s%@ELF_SYS@%$ELF_SYS%g
7584 s%@CXXCPP@%$CXXCPP%g
7586 s%@with_CXX@%$with_CXX%g
7587 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7588 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7589 s%@INSTALL_DATA@%$INSTALL_DATA%g
7590 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7593 s%@FLEXFLAGS@%$FLEXFLAGS%g
7596 s%@with_gnu_ld@%$with_gnu_ld%g
7597 s%@RANLIB@%$RANLIB%g
7598 s%@LORDER@%$LORDER%g
7602 s%@YFLAGS@%$YFLAGS%g
7604 s%@SNPRINTF@%$SNPRINTF%g
7606 s%@GETRUSAGE@%$GETRUSAGE%g
7607 s%@SRANDOM@%$SRANDOM%g
7608 s%@GETHOSTNAME@%$GETHOSTNAME%g
7609 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7610 s%@INET_ATON@%$INET_ATON%g
7611 s%@STRERROR@%$STRERROR%g
7612 s%@STRERROR2@%$STRERROR2%g
7613 s%@STRDUP@%$STRDUP%g
7614 s%@STRTOL@%$STRTOL%g
7615 s%@STRTOUL@%$STRTOUL%g
7616 s%@STRCASECMP@%$STRCASECMP%g
7617 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7618 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7620 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7621 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7626 cat >> $CONFIG_STATUS <<\EOF
7628 # Split the substitutions into bite-sized pieces for seds with
7629 # small command number limits, like on Digital OSF/1 and HP-UX.
7630 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7631 ac_file=1 # Number of current file.
7632 ac_beg=1 # First line for current file.
7633 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7636 while $ac_more_lines; do
7637 if test $ac_beg -gt 1; then
7638 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7640 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7642 if test ! -s conftest.s$ac_file; then
7644 rm -f conftest.s$ac_file
7646 if test -z "$ac_sed_cmds"; then
7647 ac_sed_cmds="sed -f conftest.s$ac_file"
7649 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7651 ac_file=`expr $ac_file + 1`
7653 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7656 if test -z "$ac_sed_cmds"; then
7661 cat >> $CONFIG_STATUS <<EOF
7663 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7666 src/backend/port/Makefile
7669 cat >> $CONFIG_STATUS <<\EOF
7670 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7671 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7673 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7674 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7675 *) ac_file_in="${ac_file}.in" ;;
7678 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7680 # Remove last slash and all that follows it. Not all systems have dirname.
7681 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7682 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7683 # The file is in a subdirectory.
7684 test ! -d "$ac_dir" && mkdir "$ac_dir"
7685 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7686 # A "../" for each directory in $ac_dir_suffix.
7687 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7689 ac_dir_suffix= ac_dots=
7692 case "$ac_given_srcdir" in
7694 if test -z "$ac_dots"; then top_srcdir=.
7695 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7696 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7698 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7699 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7702 case "$ac_given_INSTALL" in
7703 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7704 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7707 echo creating "$ac_file"
7709 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7711 *Makefile*) ac_comsub="1i\\
7712 # $configure_input" ;;
7716 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7718 s%@configure_input@%$configure_input%g
7719 s%@srcdir@%$srcdir%g
7720 s%@top_srcdir@%$top_srcdir%g
7721 s%@INSTALL@%$INSTALL%g
7722 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7726 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7727 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7729 # ac_d sets the value in "#define NAME VALUE" lines.
7730 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7731 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7734 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7735 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7736 ac_uB='\([ ]\)%\1#\2define\3'
7739 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7740 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7741 ac_eB='$%\1#\2define\3'
7745 if test "${CONFIG_HEADERS+set}" != set; then
7747 cat >> $CONFIG_STATUS <<EOF
7748 CONFIG_HEADERS="src/include/config.h"
7750 cat >> $CONFIG_STATUS <<\EOF
7752 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7753 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7755 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7756 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7757 *) ac_file_in="${ac_file}.in" ;;
7760 echo creating $ac_file
7762 rm -f conftest.frag conftest.in conftest.out
7763 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7764 cat $ac_file_inputs > conftest.in
7768 # Transform confdefs.h into a sed script conftest.vals that substitutes
7769 # the proper values into config.h.in to produce config.h. And first:
7770 # Protect against being on the right side of a sed subst in config.status.
7771 # Protect against being in an unquoted here document in config.status.
7773 cat > conftest.hdr <<\EOF
7776 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7780 sed -n -f conftest.hdr confdefs.h > conftest.vals
7783 # This sed command replaces #undef with comments. This is necessary, for
7784 # example, in the case of _POSIX_SOURCE, which is predefined and required
7785 # on some systems where configure will not decide to define it.
7786 cat >> conftest.vals <<\EOF
7787 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7790 # Break up conftest.vals because some shells have a limit on
7791 # the size of here documents, and old seds have small limits too.
7796 ac_lines=`grep -c . conftest.vals`
7797 # grep -c gives empty output for an empty file on some AIX systems.
7798 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7799 # Write a limited-size here document to conftest.frag.
7800 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7801 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7803 sed -f conftest.frag conftest.in > conftest.out
7805 mv conftest.out conftest.in
7807 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7809 mv conftest.tail conftest.vals
7813 cat >> $CONFIG_STATUS <<\EOF
7814 rm -f conftest.frag conftest.h
7815 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7816 cat conftest.in >> conftest.h
7818 if cmp -s $ac_file conftest.h 2>/dev/null; then
7819 echo "$ac_file is unchanged"
7822 # Remove last slash and all that follows it. Not all systems have dirname.
7823 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7824 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7825 # The file is in a subdirectory.
7826 test ! -d "$ac_dir" && mkdir "$ac_dir"
7829 mv conftest.h $ac_file
7835 cat >> $CONFIG_STATUS <<EOF
7836 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}"
7837 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
7840 cat >> $CONFIG_STATUS <<\EOF
7841 srcdir=$ac_given_srcdir
7842 while test -n "$ac_sources"; do
7843 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7844 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7846 echo "linking $srcdir/$ac_source to $ac_dest"
7848 if test ! -r $srcdir/$ac_source; then
7849 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7853 # Make relative symlinks.
7854 # Remove last slash and all that follows it. Not all systems have dirname.
7855 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7856 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7857 # The dest file is in a subdirectory.
7858 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7859 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7860 # A "../" for each directory in $ac_dest_dir_suffix.
7861 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7863 ac_dest_dir_suffix= ac_dots=
7867 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7868 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7871 # Make a symlink if possible; otherwise try a hard link.
7872 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7873 ln $srcdir/$ac_source $ac_dest; then :
7875 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7879 cat >> $CONFIG_STATUS <<EOF
7882 cat >> $CONFIG_STATUS <<\EOF
7883 echo "timestamp file" > src/include/stamp-h
7887 chmod +x $CONFIG_STATUS
7888 rm -fr confdefs* $ac_clean_files
7889 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1