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-unicode-conversion 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-debug build with debugging symbols (-g)"
40 --enable-depend turn on automatic dependency tracking"
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"
618 abs_top_srcdir=`cd $srcdir && pwd`
620 abs_top_builddir=`pwd`
624 # Make sure we can run config.sub.
625 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
626 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
629 echo $ac_n "checking host system type""... $ac_c" 1>&6
630 echo "configure:631: checking host system type" >&5
633 case "$host_alias" in
637 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
638 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
640 *) host_alias=$nonopt ;;
644 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
645 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648 echo "$ac_t""$host" 1>&6
655 echo $ac_n "checking which template to use""... $ac_c" 1>&6
656 echo "configure:657: checking which template to use" >&5
658 # Check whether --with-template was given
659 if test x"${with_template+set}" = xset; then
660 case $with_template in
662 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
665 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
668 withval=$with_template
671 list) echo; ls "$srcdir/src/template"; exit;;
672 *) if test -f "$srcdir/src/template/$with_template" ; then
675 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
680 esac # $with_template
683 # --with-template not given
686 aix*) template=aix ;;
687 beos*) template=beos ;;
688 bsdi*) template=bsdi ;;
689 cygwin*) template=win ;;
690 darwin*) template=darwin ;;
691 dgux*) template=dgux ;;
692 freebsd*) template=freebsd ;;
693 hpux*) template=hpux ;;
694 irix*) template=irix5 ;;
695 linux*) template=linux ;;
696 netbsd*) template=netbsd ;;
697 nextstep*) template=nextstep ;;
698 openbsd*) template=openbsd ;;
699 osf*) template=osf ;;
700 qnx*) template=qnx4 ;;
701 sco*) template=sco ;;
702 solaris*) template=solaris ;;
703 sunos*) template=sunos4 ;;
706 univel) template=univel ;;
708 sysv4*) template=svr4 ;;
709 sysv5uw*) template=unixware ;;
710 ultrix*) template=ultrix4 ;;
713 if test x"$template" = x"" ; then
714 { echo "configure: error:
715 *******************************************************************
716 PostgreSQL has apparently not been ported to your platform yet.
717 To try a manual configuration, look into the src/template directory
718 for a similar platform and use the '--with-template=' option.
720 Please also contact <pgsql-ports@postgresql.org> to see about
721 rectifying this. Include the above 'checking host system type...'
723 *******************************************************************
730 echo "$ac_t""$template" 1>&6
740 # Pick right test-and-set (TAS) code. Most platforms have inline
741 # assembler code in src/include/storage/s_lock.h, so we just use
744 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
745 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
746 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
747 *) need_tas=no; tas_file=dummy.s ;;
751 if test "$need_tas" = yes ; then
759 ## Command line options
764 # Add non-standard directories to the include path
766 # Check whether --with-includes was given
767 if test x"${with_includes+set}" = xset; then
768 case $with_includes in
770 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
773 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
775 esac # $with_includes
780 # Add non-standard directories to the library search path
782 # Check whether --with-libraries was given
783 if test x"${with_libraries+set}" = xset; then
784 case $with_libraries in
786 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
789 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
792 withval=$with_libraries
793 LIBRARY_DIRS=$withval
795 esac # $with_libraries
798 # Check whether --with-libs was given
799 if test x"${with_libs+set}" = xset; then
802 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
805 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
809 LIBRARY_DIRS=$withval
816 # Locale (--enable-locale)
818 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
819 echo "configure:820: checking whether to build with locale support" >&5
820 # Check whether --enable-locale was given
821 if test x"${enable_locale+set}" = xset; then
822 case $enable_locale in
824 cat >> confdefs.h <<\EOF
833 enableval=$enable_locale
834 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
836 esac # $enable_locale
841 echo "$ac_t""$enable_locale" 1>&6
845 # Character set recode (--enable-recode)
847 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
848 echo "configure:849: checking whether to build with recode support" >&5
849 # Check whether --enable-recode was given
850 if test x"${enable_recode+set}" = xset; then
851 case $enable_recode in
853 cat >> confdefs.h <<\EOF
862 enableval=$enable_recode
863 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
865 esac # $enable_recode
870 echo "$ac_t""$enable_recode" 1>&6
877 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
878 echo "configure:879: checking whether to build with multibyte character support" >&5
880 # Check whether --enable-multibyte was given
881 if test x"${enable_multibyte+set}" = xset; then
882 case $enable_multibyte in
890 enableval=$enable_multibyte
894 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
895 MULTIBYTE=$enableval;;
897 { echo "configure: error: argument to --enable-multibyte must be one of:
898 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
899 UNICODE, MULE_INTERNAL,
900 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
902 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
906 esac # $enable_multibyte
911 if test "$enable_multibyte" = yes; then
913 cat >> confdefs.h <<\EOF
917 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
920 echo "$ac_t""no" 1>&6
927 # Unicode conversion (--enable-unicode-conversion)
929 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
930 echo "configure:931: checking whether to build with Unicode conversion support" >&5
931 # Check whether --enable-unicode-conversion was given
932 if test x"${enable_unicode_conversion+set}" = xset; then
933 case $enable_unicode_conversion in
935 if test -z "$MULTIBYTE"; then
936 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
938 cat >> confdefs.h <<\EOF
939 #define UNICODE_CONVERSION 1
947 enableval=$enable_unicode_conversion
948 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
950 esac # $enable_unicode_conversion
952 enable_unicode_conversion=no
955 echo "$ac_t""$enable_unicode_conversion" 1>&6
958 # Default port number (--with-pgport), default 5432
960 echo $ac_n "checking for default port number""... $ac_c" 1>&6
961 echo "configure:962: checking for default port number" >&5
962 # Check whether --with-pgport was given
963 if test x"${with_pgport+set}" = xset; then
966 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
969 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
973 default_port=$withval
979 echo "$ac_t""$default_port" 1>&6
980 # Need both of these because some places want an integer and some a string
981 cat >> confdefs.h <<EOF
982 #define DEF_PGPORT ${default_port}
985 cat >> confdefs.h <<EOF
986 #define DEF_PGPORT_STR "${default_port}"
992 # Maximum number of allowed connections (--with-maxbackends), default 32
994 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
995 echo "configure:996: checking for default soft limit on number of connections" >&5
996 # Check whether --with-maxbackends was given
997 if test x"${with_maxbackends+set}" = xset; then
998 case $with_maxbackends in
1000 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1003 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1005 esac # $with_maxbackends
1009 echo "$ac_t""$with_maxbackends" 1>&6
1010 cat >> confdefs.h <<EOF
1011 #define DEF_MAXBACKENDS $with_maxbackends
1017 # Option to disable shared libraries
1019 # Check whether --enable-shared was given
1020 if test x"${enable_shared+set}" = xset; then
1021 case $enable_shared in
1029 enableval=$enable_shared
1030 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1032 esac # $enable_shared
1040 # '-rpath'-like feature can be disabled
1042 # Check whether --enable-rpath was given
1043 if test x"${enable_rpath+set}" = xset; then
1044 case $enable_rpath in
1052 enableval=$enable_rpath
1053 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1055 esac # $enable_rpath
1064 # --enable-debug adds -g to compiler flags
1066 # Check whether --enable-debug was given
1067 if test x"${enable_debug+set}" = xset; then
1068 case $enable_debug in
1076 enableval=$enable_debug
1077 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1079 esac # $enable_debug
1090 # For historical reasons you can also use --with-CC to specify the C compiler
1091 # to use, although the standard way to do this is to set the CC environment
1093 # Check whether --with-CC was given
1094 if test x"${with_CC+set}" = xset; then
1097 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1100 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1109 # On AIX, default compiler to xlc.
1110 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1112 # Save CFLAGS from the environment
1113 has_environ_CFLAGS="${CFLAGS+yes}"
1116 # Extract the first word of "gcc", so it can be a program name with args.
1117 set dummy gcc; ac_word=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1142 echo "$ac_t""no" 1>&6
1145 if test -z "$CC"; then
1146 # Extract the first word of "cc", so it can be a program name with args.
1147 set dummy cc; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1159 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 if test -f $ac_dir/$ac_word; then
1162 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1163 ac_prog_rejected=yes
1171 if test $ac_prog_rejected = yes; then
1172 # We found a bogon in the path, so make sure we never use it.
1173 set dummy $ac_cv_prog_CC
1175 if test $# -gt 0; then
1176 # We chose a different compiler from the bogus one.
1177 # However, it has the same basename, so the bogon will be chosen
1178 # first if we set CC to just the basename; use the full file name.
1180 set dummy "$ac_dir/$ac_word" "$@"
1188 if test -n "$CC"; then
1189 echo "$ac_t""$CC" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 if test -z "$CC"; then
1195 case "`uname -s`" in
1197 # Extract the first word of "cl", so it can be a program name with args.
1198 set dummy cl; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$CC"; then
1205 ac_cv_prog_CC="$CC" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f $ac_dir/$ac_word; then
1220 if test -n "$CC"; then
1221 echo "$ac_t""$CC" 1>&6
1223 echo "$ac_t""no" 1>&6
1228 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1235 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1236 ac_cpp='$CPP $CPPFLAGS'
1237 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1238 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1239 cross_compiling=$ac_cv_prog_cc_cross
1241 cat > conftest.$ac_ext << EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1249 ac_cv_prog_cc_works=yes
1250 # If we can't run a trivial program, we are probably using a cross compiler.
1251 if (./conftest; exit) 2>/dev/null; then
1252 ac_cv_prog_cc_cross=no
1254 ac_cv_prog_cc_cross=yes
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1259 ac_cv_prog_cc_works=no
1263 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1264 ac_cpp='$CPP $CPPFLAGS'
1265 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1266 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1267 cross_compiling=$ac_cv_prog_cc_cross
1269 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1270 if test $ac_cv_prog_cc_works = no; then
1271 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1273 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1275 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1276 cross_compiling=$ac_cv_prog_cc_cross
1278 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether we are using GNU C" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 cat > conftest.c <<EOF
1288 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1295 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1297 if test $ac_cv_prog_gcc = yes; then
1303 ac_test_CFLAGS="${CFLAGS+set}"
1304 ac_save_CFLAGS="$CFLAGS"
1306 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether ${CC-cc} accepts -g" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 echo 'void f(){}' > conftest.c
1312 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1321 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1322 if test "$ac_test_CFLAGS" = set; then
1323 CFLAGS="$ac_save_CFLAGS"
1324 elif test $ac_cv_prog_cc_g = yes; then
1325 if test "$GCC" = yes; then
1331 if test "$GCC" = yes; then
1339 . "$srcdir/src/template/$template" || exit
1341 if test "$has_environ_CFLAGS" = yes; then
1344 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1347 echo "using CFLAGS=$CFLAGS"
1348 # Check if the compiler still works with the template settings
1349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1353 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1354 ac_cpp='$CPP $CPPFLAGS'
1355 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1356 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1357 cross_compiling=$ac_cv_prog_cc_cross
1359 cat > conftest.$ac_ext << EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1367 ac_cv_prog_cc_works=yes
1368 # If we can't run a trivial program, we are probably using a cross compiler.
1369 if (./conftest; exit) 2>/dev/null; then
1370 ac_cv_prog_cc_cross=no
1372 ac_cv_prog_cc_cross=yes
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 ac_cv_prog_cc_works=no
1381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1382 ac_cpp='$CPP $CPPFLAGS'
1383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1385 cross_compiling=$ac_cv_prog_cc_cross
1387 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1388 if test $ac_cv_prog_cc_works = no; then
1389 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1393 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1394 cross_compiling=$ac_cv_prog_cc_cross
1396 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1397 echo "configure:1398: checking for Cygwin environment" >&5
1398 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1408 #define __CYGWIN__ __CYGWIN32__
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1426 echo "$ac_t""$ac_cv_cygwin" 1>&6
1428 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1429 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1430 echo "configure:1431: checking for mingw32 environment" >&5
1431 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1442 if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1455 echo "$ac_t""$ac_cv_mingw32" 1>&6
1457 test "$ac_cv_mingw32" = yes && MINGW32=yes
1460 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1461 echo "configure:1462: checking for executable suffix" >&5
1462 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1469 echo 'int main () { return 0; }' > conftest.$ac_ext
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1472 for file in conftest.*; do
1474 *.c | *.o | *.obj) ;;
1475 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1479 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1482 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1487 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1488 echo "$ac_t""${ac_cv_exeext}" 1>&6
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
1497 if test -z "$CPP"; then
1498 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 # This must be in double quotes, not single quotes, because CPP may get
1502 # substituted into the Makefile and "${CC-cc}" will confuse make.
1504 # On the NeXT, cc -E runs the code through the compiler's parser,
1505 # not just through cpp.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 if test $ac_cv_prog_gcc = yes; then
1572 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether ${CC-cc} needs -traditional" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 ac_pattern="Autoconf.*'x'"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1585 egrep "$ac_pattern" >/dev/null 2>&1; then
1587 ac_cv_prog_gcc_traditional=yes
1590 ac_cv_prog_gcc_traditional=no
1595 if test $ac_cv_prog_gcc_traditional = no; then
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603 egrep "$ac_pattern" >/dev/null 2>&1; then
1605 ac_cv_prog_gcc_traditional=yes
1612 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1613 if test $ac_cv_prog_gcc_traditional = yes; then
1614 CC="$CC -traditional"
1620 # Create compiler version string
1621 if test x"$GCC" = x"yes" ; then
1622 cc_string="GCC `${CC} --version`"
1626 cat >> confdefs.h <<EOF
1627 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1633 # Automatic dependency tracking
1635 # Check whether --enable-depend was given
1636 if test x"${enable_depend+set}" = xset; then
1637 case $enable_depend in
1645 enableval=$enable_depend
1646 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1648 esac # $enable_depend
1657 # Enable assert checks
1659 # Check whether --enable-cassert was given
1660 if test x"${enable_cassert+set}" = xset; then
1661 case $enable_cassert in
1663 cat >> confdefs.h <<\EOF
1664 #define USE_ASSERT_CHECKING 1
1672 enableval=$enable_cassert
1673 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1675 esac # $enable_cassert
1683 # Include directories
1687 # SRCH_INC comes from the template file
1688 for dir in $with_includes $SRCH_INC; do
1689 if test -d "$dir"; then
1690 INCLUDES="$INCLUDES -I$dir"
1692 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1700 # Library directories
1704 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1705 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1706 if test -d "$dir"; then
1707 LIBDIRS="$LIBDIRS -L$dir"
1709 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1718 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1719 echo "configure:1720: checking whether to build with Tcl" >&5
1720 # Check whether --with-tcl was given
1721 if test x"${with_tcl+set}" = xset; then
1731 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1738 echo "$ac_t""$with_tcl" 1>&6
1741 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1742 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1743 echo "configure:1744: checking whether to build with Tk" >&5
1744 if test "$with_tcl" = yes; then
1745 # Check whether --with-tk was given
1746 if test x"${with_tk+set}" = xset; then
1756 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1766 echo "$ac_t""$with_tk" 1>&6
1770 # We see if the path to the TCL/TK configuration scripts is specified.
1771 # This will override the use of tclsh to find the paths to search.
1773 # Check whether --with-tclconfig was given
1774 if test x"${with_tclconfig+set}" = xset; then
1775 case $with_tclconfig in
1777 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1780 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1782 esac # $with_tclconfig
1785 # We see if the path to the TK configuration scripts is specified.
1786 # This will override the use of tclsh to find the paths to search.
1788 # Check whether --with-tkconfig was given
1789 if test x"${with_tkconfig+set}" = xset; then
1790 case $with_tkconfig in
1792 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1795 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1797 esac # $with_tkconfig
1802 # Optionally build Perl modules (Pg.pm and PL/Perl)
1804 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether to build Perl modules" >&5
1806 # Check whether --with-perl was given
1807 if test x"${with_perl+set}" = xset; then
1817 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1824 echo "$ac_t""$with_perl" 1>&6
1829 # Optionally build Python interface module
1831 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1832 echo "configure:1833: checking whether to build Python modules" >&5
1833 # Check whether --with-python was given
1834 if test x"${with_python+set}" = xset; then
1835 case $with_python in
1837 echo "$ac_t""yes" 1>&6
1838 # Extract the first word of "python", so it can be a program name with args.
1839 set dummy python; ac_word=$2
1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_word" >&5
1842 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$PYTHON"; then
1846 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1850 for ac_dir in $ac_dummy; do
1851 test -z "$ac_dir" && ac_dir=.
1852 if test -f $ac_dir/$ac_word; then
1853 ac_cv_prog_PYTHON="python"
1860 PYTHON="$ac_cv_prog_PYTHON"
1861 if test -n "$PYTHON"; then
1862 echo "$ac_t""$PYTHON" 1>&6
1864 echo "$ac_t""no" 1>&6
1868 if test "${PYTHON+set}" = set ; then
1869 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1870 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1871 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1872 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1873 python_moduledir="${python_prefix}/lib/python${python_version}"
1874 python_extmakefile="${python_configdir}/Makefile.pre.in"
1876 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1877 echo "configure:1878: checking for Python extension makefile" >&5
1878 if test -f "${python_extmakefile}" ; then
1879 echo "$ac_t""found" 1>&6
1881 echo "$ac_t""no" 1>&6
1882 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1883 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1893 { echo "configure: error: Python not found" 1>&2; exit 1; }
1897 echo "$ac_t""no" 1>&6
1900 withval=$with_python
1901 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1906 echo "$ac_t""no" 1>&6
1915 # Check whether --with-krb4 was given
1916 if test x"${with_krb4+set}" = xset; then
1919 krb4_prefix=/usr/athena
1927 krb4_prefix=$withval
1934 if test "$with_krb4" = yes; then
1936 echo "$ac_t""building with Kerberos 4 support" 1>&6
1937 cat >> confdefs.h <<\EOF
1942 if test -d "$krb4_prefix/include"; then
1943 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1945 if test -d "$krb4_prefix/lib"; then
1946 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1949 krb_srvtab="/etc/srvtab"
1960 # Check whether --with-krb5 was given
1961 if test x"${with_krb5+set}" = xset; then
1964 krb5_prefix=/usr/athena
1972 krb5_prefix=$withval
1979 if test "$with_krb5" = yes; then
1981 echo "$ac_t""building with Kerberos 5 support" 1>&6
1982 cat >> confdefs.h <<\EOF
1987 if test -d "$krb5_prefix/include"; then
1988 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1990 if test -d "$krb5_prefix/lib"; then
1991 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1994 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2002 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2003 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2004 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2011 # Kerberos configuration parameters
2013 # Check whether --with-krb-srvnam was given
2014 if test x"${with_krb_srvnam+set}" = xset; then
2015 case $with_krb_srvnam in
2017 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2020 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2022 esac # $with_krb_srvnam
2024 with_krb_srvnam="postgres"
2026 cat >> confdefs.h <<EOF
2027 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2036 # Check whether --with-openssl was given
2037 if test x"${with_openssl+set}" = xset; then
2038 case $with_openssl in
2040 openssl_prefix=/usr/local/ssl
2046 withval=$with_openssl
2048 openssl_prefix=$withval
2050 esac # $with_openssl
2055 if test "$with_openssl" = yes; then
2057 echo "$ac_t""building with OpenSSL support" 1>&6
2058 cat >> confdefs.h <<\EOF
2063 if test -d "${openssl_prefix}/include" ; then
2064 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2066 if test -d "${openssl_prefix}/lib" ; then
2067 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2078 # Optionally enable the building of the ODBC driver
2082 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2083 enable_odbc=$with_odbc
2086 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2087 echo "configure:2088: checking whether to build the ODBC driver" >&5
2088 # Check whether --enable-odbc was given
2089 if test x"${enable_odbc+set}" = xset; then
2090 case $enable_odbc in
2098 enableval=$enable_odbc
2099 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2106 echo "$ac_t""$enable_odbc" 1>&6
2110 # Allow for overriding the default location of the odbcinst.ini
2111 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2112 # Check whether --with-odbcinst was given
2113 if test x"${with_odbcinst+set}" = xset; then
2114 case $with_odbcinst in
2116 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2119 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2122 withval=$with_odbcinst
2123 odbcinst_ini_dir=$withval
2125 esac # $with_odbcinst
2127 odbcinst_ini_dir="\${sysconfdir}"
2133 # Assume system is ELF if it predefines __ELF__ as 1,
2134 # otherwise believe host_os based default.
2136 freebsd1*|freebsd2*) elf=yes;;
2139 cat > conftest.$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2148 egrep "yes" >/dev/null 2>&1; then
2153 if test "X$elf" = "Xyes" ; then
2166 # Optionally build C++ code (i.e., libpq++)
2168 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2169 echo "configure:2170: checking whether to build C++ modules" >&5
2170 # Check whether --with-CXX was given
2171 if test x"${with_CXX+set}" = xset; then
2189 if test "$with_CXX" = yes; then
2191 echo "$ac_t""yes" 1>&6
2193 # If the user has specified CXXFLAGS in the environment, leave it
2194 # alone, else use a default.
2196 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2197 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2199 # Extract the first word of "$ac_prog", so it can be a program name with args.
2200 set dummy $ac_prog; ac_word=$2
2201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_word" >&5
2203 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 if test -n "$CXX"; then
2207 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2211 for ac_dir in $ac_dummy; do
2212 test -z "$ac_dir" && ac_dir=.
2213 if test -f $ac_dir/$ac_word; then
2214 ac_cv_prog_CXX="$ac_prog"
2221 CXX="$ac_cv_prog_CXX"
2222 if test -n "$CXX"; then
2223 echo "$ac_t""$CXX" 1>&6
2225 echo "$ac_t""no" 1>&6
2228 test -n "$CXX" && break
2230 test -n "$CXX" || CXX="gcc"
2233 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2234 echo "configure:2235: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2237 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2238 ac_cpp='$CXXCPP $CPPFLAGS'
2239 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2240 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2241 cross_compiling=$ac_cv_prog_cxx_cross
2243 cat > conftest.$ac_ext << EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2248 int main(){return(0);}
2250 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2251 ac_cv_prog_cxx_works=yes
2252 # If we can't run a trivial program, we are probably using a cross compiler.
2253 if (./conftest; exit) 2>/dev/null; then
2254 ac_cv_prog_cxx_cross=no
2256 ac_cv_prog_cxx_cross=yes
2259 echo "configure: failed program was:" >&5
2260 cat conftest.$ac_ext >&5
2261 ac_cv_prog_cxx_works=no
2265 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2268 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2269 cross_compiling=$ac_cv_prog_cc_cross
2271 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2272 if test $ac_cv_prog_cxx_works = no; then
2273 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2275 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2276 echo "configure:2277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2277 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2278 cross_compiling=$ac_cv_prog_cxx_cross
2280 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2281 echo "configure:2282: checking whether we are using GNU C++" >&5
2282 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.C <<EOF
2290 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2297 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2299 if test $ac_cv_prog_gxx = yes; then
2305 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2306 ac_save_CXXFLAGS="$CXXFLAGS"
2308 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2309 echo "configure:2310: checking whether ${CXX-g++} accepts -g" >&5
2310 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2313 echo 'void f(){}' > conftest.cc
2314 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2315 ac_cv_prog_cxx_g=yes
2323 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2324 if test "$ac_test_CXXFLAGS" = set; then
2325 CXXFLAGS="$ac_save_CXXFLAGS"
2326 elif test $ac_cv_prog_cxx_g = yes; then
2327 if test "$GXX" = yes; then
2333 if test "$GXX" = yes; then
2340 if test "$has_environ_CXXFLAGS" != yes; then
2341 if test "$GXX" = yes; then
2345 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2346 unixware) CXXFLAGS='-O' ;;
2351 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2352 CXXFLAGS="$CXXFLAGS -g"
2354 echo "using CXXFLAGS=$CXXFLAGS"
2356 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2357 echo "configure:2358: checking how to run the C++ preprocessor" >&5
2358 if test -z "$CXXCPP"; then
2359 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2363 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2364 ac_cpp='$CXXCPP $CPPFLAGS'
2365 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2366 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2367 cross_compiling=$ac_cv_prog_cxx_cross
2368 CXXCPP="${CXX-g++} -E"
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2375 { (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2377 if test -z "$ac_err"; then
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2387 ac_cv_prog_CXXCPP="$CXXCPP"
2389 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2392 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2393 cross_compiling=$ac_cv_prog_cc_cross
2396 CXXCPP="$ac_cv_prog_CXXCPP"
2397 echo "$ac_t""$CXXCPP" 1>&6
2402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2403 ac_cpp='$CXXCPP $CPPFLAGS'
2404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2406 cross_compiling=$ac_cv_prog_cxx_cross
2408 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for string""... $ac_c" 1>&6
2410 echo "configure:2411: checking for string" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2424 eval "ac_cv_header_$ac_safe=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_header_$ac_safe=no"
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 cat >> confdefs.h <<\EOF
2437 #define HAVE_CXX_STRING_HEADER 1
2441 echo "$ac_t""no" 1>&6
2445 if test x"$ac_cv_header_string" != xyes ; then
2446 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2447 echo "configure:2448: checking for class string in <string.h>" >&5
2448 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 cat > conftest.$ac_ext <<EOF
2452 #line 2453 "configure"
2453 #include "confdefs.h"
2462 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2464 pgac_cv_class_string_in_string_h=yes
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 pgac_cv_class_string_in_string_h=no
2474 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2476 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2477 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2485 cross_compiling=$ac_cv_prog_cc_cross
2488 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2489 echo "configure:2490: checking for namespace std in C++" >&5
2490 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CXXCPP $CPPFLAGS'
2498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cxx_cross
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2507 #ifdef HAVE_CXX_STRING_HEADER
2510 using namespace std;
2516 if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2518 pgac_cv_cxx_namespace_std=yes
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 pgac_cv_cxx_namespace_std=no
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling=$ac_cv_prog_cc_cross
2535 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2537 if test $pgac_cv_cxx_namespace_std = yes ; then
2538 cat >> confdefs.h <<\EOF
2539 #define HAVE_NAMESPACE_STD 1
2545 echo "$ac_t""no" 1>&6
2550 CPPFLAGS="$CPPFLAGS $INCLUDES"
2551 LDFLAGS="$LDFLAGS $LIBDIRS"
2553 echo "using CPPFLAGS=$CPPFLAGS"
2554 echo "using LDFLAGS=$LDFLAGS"
2557 # Figure out how to invoke "install" and what install options to use.
2559 # Find a good install program. We prefer a C program (faster),
2560 # so one script is as good as another. But avoid the broken or
2561 # incompatible versions:
2562 # SysV /etc/install, /usr/sbin/install
2563 # SunOS /usr/etc/install
2564 # IRIX /sbin/install
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # ./install, which can be erroneously created by make from ./install.sh.
2570 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2571 echo "configure:2572: checking for a BSD compatible install" >&5
2572 if test -z "$INSTALL"; then
2573 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2577 for ac_dir in $PATH; do
2578 # Account for people who put trailing slashes in PATH elements.
2580 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2582 # OSF1 and SCO ODT 3.0 have their own names for install.
2583 # Don't use installbsd from OSF since it installs stuff as root
2585 for ac_prog in ginstall scoinst install; do
2586 if test -f $ac_dir/$ac_prog; then
2587 if test $ac_prog = install &&
2588 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2589 # AIX install. It has an incompatible calling convention.
2592 ac_cv_path_install="$ac_dir/$ac_prog -c"
2603 if test "${ac_cv_path_install+set}" = set; then
2604 INSTALL="$ac_cv_path_install"
2606 # As a last resort, use the slow shell script. We don't cache a
2607 # path for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the path is relative.
2610 INSTALL="$ac_install_sh"
2613 echo "$ac_t""$INSTALL" 1>&6
2615 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2616 # It thinks the first close brace ends the variable substitution.
2617 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2621 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623 # When Autoconf chooses install-sh as install program it tries to generate
2624 # a relative path to it in each makefile where it subsitutes it. This clashes
2625 # with our Makefile.global concept. This workaround helps.
2627 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2630 # Fix Autoconf's brain-dead defaults for script installs.
2631 INSTALL_SCRIPT="\${INSTALL} -m 755"
2633 # HPUX wants shared libs to be mode 555. Add your platform's special
2634 # needs here if necessary.
2636 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2637 *) INSTL_SHLIB_OPTS="-m 755" ;;
2640 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2644 for ac_prog in gawk mawk nawk awk
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2649 echo "configure:2650: checking for $ac_word" >&5
2650 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2653 if test -n "$AWK"; then
2654 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2658 for ac_dir in $ac_dummy; do
2659 test -z "$ac_dir" && ac_dir=.
2660 if test -f $ac_dir/$ac_word; then
2661 ac_cv_prog_AWK="$ac_prog"
2668 AWK="$ac_cv_prog_AWK"
2669 if test -n "$AWK"; then
2670 echo "$ac_t""$AWK" 1>&6
2672 echo "$ac_t""no" 1>&6
2675 test -n "$AWK" && break
2678 echo $ac_n "checking for flex""... $ac_c" 1>&6
2679 echo "configure:2680: checking for flex" >&5
2680 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 # Let the user override the test
2684 if test -n "$FLEX"; then
2685 pgac_cv_path_flex=$FLEX
2689 for pgac_dir in $PATH; do
2690 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2693 for pgac_prog in flex lex; do
2694 pgac_candidate="$pgac_dir/$pgac_prog"
2695 if test -f "$pgac_candidate" \
2696 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2698 echo '%%' > conftest.l
2699 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2700 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2701 pgac_broken_flex=$pgac_candidate
2705 pgac_cv_path_flex=$pgac_candidate
2713 : ${pgac_cv_path_flex=no}
2718 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2719 if test x"$pgac_cv_path_flex" = x"no"; then
2720 if test -n "$pgac_broken_flex"; then
2721 echo "configure: warning:
2722 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2723 *** should get version 2.5.4 or later." 1>&2
2726 echo "configure: warning:
2727 *** Without Flex you will not be able to build PostgreSQL from CVS or
2728 *** change any of the scanner definition files. You can obtain Flex from
2729 *** a GNU mirror site. (If you are using the official distribution of
2730 *** PostgreSQL then you do not need to worry about this because the Flex
2731 *** output is pre-generated.)" 1>&2
2734 if test x"$pgac_cv_path_flex" = x"no"; then
2737 FLEX=$pgac_cv_path_flex
2743 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2744 echo "configure:2745: checking whether ln -s works" >&5
2745 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2746 echo $ac_n "(cached) $ac_c" 1>&6
2749 if ln -s X conftestdata 2>/dev/null
2752 ac_cv_prog_LN_S="ln -s"
2757 LN_S="$ac_cv_prog_LN_S"
2758 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2759 echo "$ac_t""yes" 1>&6
2761 echo "$ac_t""no" 1>&6
2764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2765 if test "${with_gnu_ld+set}" = set; then
2766 withval="$with_gnu_ld"
2767 test "$withval" = no || with_gnu_ld=yes
2773 if test "$ac_cv_prog_gcc" = yes; then
2774 # Check if gcc -print-prog-name=ld gives a path.
2775 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2776 echo "configure:2777: checking for ld used by GCC" >&5
2779 # gcc leaves a trailing carriage return which upsets mingw
2780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2785 # Accept absolute paths.
2786 [\\/]* | [A-Za-z]:[\\/]*)
2787 re_direlt='/[^/][^/]*/\.\./'
2788 # Canonicalize the path of ld
2789 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2790 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2791 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2793 test -z "$LD" && LD="$ac_prog"
2796 # If it fails, then pretend we aren't using GCC.
2800 # If it is relative, then search for the first ld in PATH.
2804 elif test "$with_gnu_ld" = yes; then
2805 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2806 echo "configure:2807: checking for GNU ld" >&5
2808 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2809 echo "configure:2810: checking for non-GNU ld" >&5
2811 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 if test -z "$LD"; then
2815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2816 for ac_dir in $PATH; do
2817 test -z "$ac_dir" && ac_dir=.
2818 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2819 ac_cv_path_LD="$ac_dir/$ac_prog"
2820 # Check to see if the program is GNU ld. I'd rather use --version,
2821 # but apparently some GNU ld's only accept -v.
2822 # Break only if it was the GNU/non-GNU ld that we prefer.
2823 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2824 test "$with_gnu_ld" != no && break
2826 test "$with_gnu_ld" != yes && break
2832 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2837 if test -n "$LD"; then
2838 echo "$ac_t""$LD" 1>&6
2840 echo "$ac_t""no" 1>&6
2842 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2843 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2844 echo "configure:2845: checking if the linker ($LD) is GNU ld" >&5
2845 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2846 echo $ac_n "(cached) $ac_c" 1>&6
2848 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2849 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2850 ac_cv_prog_gnu_ld=yes
2852 ac_cv_prog_gnu_ld=no
2856 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2857 with_gnu_ld=$ac_cv_prog_gnu_ld
2862 case $host_os in sysv5uw*)
2863 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2864 echo "configure:2865: checking whether ld -R works" >&5
2865 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2869 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2878 if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2880 pgac_cv_prog_ld_R=yes
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2885 pgac_cv_prog_ld_R=no
2888 LDFLAGS=$pgac_save_LDFLAGS
2892 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2893 ld_R_works=$pgac_cv_prog_ld_R
2896 # Extract the first word of "ranlib", so it can be a program name with args.
2897 set dummy ranlib; ac_word=$2
2898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_word" >&5
2900 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 if test -n "$RANLIB"; then
2904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2908 for ac_dir in $ac_dummy; do
2909 test -z "$ac_dir" && ac_dir=.
2910 if test -f $ac_dir/$ac_word; then
2911 ac_cv_prog_RANLIB="ranlib"
2916 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2919 RANLIB="$ac_cv_prog_RANLIB"
2920 if test -n "$RANLIB"; then
2921 echo "$ac_t""$RANLIB" 1>&6
2923 echo "$ac_t""no" 1>&6
2926 for ac_prog in lorder
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2931 echo "configure:2932: checking for $ac_word" >&5
2932 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 if test -n "$LORDER"; then
2936 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2940 for ac_dir in $ac_dummy; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 ac_cv_prog_LORDER="$ac_prog"
2950 LORDER="$ac_cv_prog_LORDER"
2951 if test -n "$LORDER"; then
2952 echo "$ac_t""$LORDER" 1>&6
2954 echo "$ac_t""no" 1>&6
2957 test -n "$LORDER" && break
2960 # Extract the first word of "tar", so it can be a program name with args.
2961 set dummy tar; ac_word=$2
2962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2963 echo "configure:2964: checking for $ac_word" >&5
2964 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2965 echo $ac_n "(cached) $ac_c" 1>&6
2969 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2972 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2977 for ac_dir in $ac_dummy; do
2978 test -z "$ac_dir" && ac_dir=.
2979 if test -f $ac_dir/$ac_word; then
2980 ac_cv_path_TAR="$ac_dir/$ac_word"
2988 TAR="$ac_cv_path_TAR"
2989 if test -n "$TAR"; then
2990 echo "$ac_t""$TAR" 1>&6
2992 echo "$ac_t""no" 1>&6
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$PERL"; then
3005 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3012 ac_cv_prog_PERL="$ac_prog"
3019 PERL="$ac_cv_prog_PERL"
3020 if test -n "$PERL"; then
3021 echo "$ac_t""$PERL" 1>&6
3023 echo "$ac_t""no" 1>&6
3026 test -n "$PERL" && break
3030 for ac_prog in 'bison -y'
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_word" >&5
3036 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 if test -n "$YACC"; then
3040 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3044 for ac_dir in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir=.
3046 if test -f $ac_dir/$ac_word; then
3047 ac_cv_prog_YACC="$ac_prog"
3054 YACC="$ac_cv_prog_YACC"
3055 if test -n "$YACC"; then
3056 echo "$ac_t""$YACC" 1>&6
3058 echo "$ac_t""no" 1>&6
3061 test -n "$YACC" && break
3064 if test -z "$YACC"; then
3065 echo "configure: warning:
3066 *** Without Bison you will not be able to build PostgreSQL from CVS or
3067 *** change any of the parser definition files. You can obtain Bison from
3068 *** a GNU mirror site. (If you are using the official distribution of
3069 *** PostgreSQL then you do not need to worry about this because the Bison
3070 *** output is pre-generated.) To use a different yacc program (possible,
3071 *** but not recommended), set the environment variable YACC before running
3072 *** 'configure'." 1>&2
3076 if test "$with_tk" = yes; then
3077 # Extract the first word of "wish", so it can be a program name with args.
3078 set dummy wish; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3086 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3089 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3094 for ac_dir in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir=.
3096 if test -f $ac_dir/$ac_word; then
3097 ac_cv_path_WISH="$ac_dir/$ac_word"
3105 WISH="$ac_cv_path_WISH"
3106 if test -n "$WISH"; then
3107 echo "$ac_t""$WISH" 1>&6
3109 echo "$ac_t""no" 1>&6
3112 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3120 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3121 echo "configure:3122: checking for main in -lsfio" >&5
3122 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_save_LIBS="$LIBS"
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3143 eval "ac_cv_lib_$ac_lib_var=no"
3146 LIBS="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3152 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3153 cat >> confdefs.h <<EOF
3154 #define $ac_tr_lib 1
3160 echo "$ac_t""no" 1>&6
3163 echo $ac_n "checking for readline""... $ac_c" 1>&6
3164 echo "configure:3165: checking for readline" >&5
3166 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 pgac_cv_check_readline=no
3170 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3171 for pgac_rllib in -lreadline -ledit ; do
3172 pgac_save_LIBS=$LIBS
3173 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 /* Override any gcc2 internal prototype to avoid an error. */
3178 /* We use char because int might match the return type of a gcc2
3179 builtin and then its argument prototype would still apply. */
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3188 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3194 LIBS=$pgac_save_LIBS
3197 LIBS=$pgac_save_LIBS
3201 if test "$pgac_cv_check_readline" != no ; then
3202 cat >> confdefs.h <<\EOF
3203 #define HAVE_LIBREADLINE 1
3206 LIBS="$pgac_cv_check_readline $LIBS"
3207 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3209 echo "$ac_t""no" 1>&6
3212 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3213 echo "configure:3214: checking for library containing using_history" >&5
3214 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3215 echo $ac_n "(cached) $ac_c" 1>&6
3217 ac_func_search_save_LIBS="$LIBS"
3218 ac_cv_search_using_history="no"
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3222 /* Override any gcc2 internal prototype to avoid an error. */
3223 /* We use char because int might match the return type of a gcc2
3224 builtin and then its argument prototype would still apply. */
3225 char using_history();
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 ac_cv_search_using_history="none required"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3239 test "$ac_cv_search_using_history" = "no" && for i in history; do
3240 LIBS="-l$i $ac_func_search_save_LIBS"
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 /* Override any gcc2 internal prototype to avoid an error. */
3245 /* We use char because int might match the return type of a gcc2
3246 builtin and then its argument prototype would still apply. */
3247 char using_history();
3253 if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3255 ac_cv_search_using_history="-l$i"
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3263 LIBS="$ac_func_search_save_LIBS"
3266 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3267 if test "$ac_cv_search_using_history" != "no"; then
3268 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3269 cat >> confdefs.h <<\EOF
3270 #define HAVE_HISTORY_FUNCTIONS 1
3277 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3279 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3280 echo "configure:3281: checking for main in -lbsd" >&5
3281 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 ac_save_LIBS="$LIBS"
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3297 eval "ac_cv_lib_$ac_lib_var=yes"
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3302 eval "ac_cv_lib_$ac_lib_var=no"
3305 LIBS="$ac_save_LIBS"
3308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3312 cat >> confdefs.h <<EOF
3313 #define $ac_tr_lib 1
3319 echo "$ac_t""no" 1>&6
3323 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3324 echo "configure:3325: checking for setproctitle in -lutil" >&5
3325 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 ac_save_LIBS="$LIBS"
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3337 char setproctitle();
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345 eval "ac_cv_lib_$ac_lib_var=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 eval "ac_cv_lib_$ac_lib_var=no"
3353 LIBS="$ac_save_LIBS"
3356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3358 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3360 cat >> confdefs.h <<EOF
3361 #define $ac_tr_lib 1
3367 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3371 echo "configure:3372: checking for main in -lm" >&5
3372 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 ac_save_LIBS="$LIBS"
3378 cat > conftest.$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3386 if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3388 eval "ac_cv_lib_$ac_lib_var=yes"
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3393 eval "ac_cv_lib_$ac_lib_var=no"
3396 LIBS="$ac_save_LIBS"
3399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3400 echo "$ac_t""yes" 1>&6
3401 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3403 cat >> confdefs.h <<EOF
3404 #define $ac_tr_lib 1
3410 echo "$ac_t""no" 1>&6
3413 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3414 echo "configure:3415: checking for main in -ldl" >&5
3415 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 ac_save_LIBS="$LIBS"
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3431 eval "ac_cv_lib_$ac_lib_var=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 eval "ac_cv_lib_$ac_lib_var=no"
3439 LIBS="$ac_save_LIBS"
3442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3443 echo "$ac_t""yes" 1>&6
3444 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3446 cat >> confdefs.h <<EOF
3447 #define $ac_tr_lib 1
3453 echo "$ac_t""no" 1>&6
3456 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3457 echo "configure:3458: checking for main in -lsocket" >&5
3458 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3459 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3462 ac_save_LIBS="$LIBS"
3463 LIBS="-lsocket $LIBS"
3464 cat > conftest.$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3472 if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3474 eval "ac_cv_lib_$ac_lib_var=yes"
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3479 eval "ac_cv_lib_$ac_lib_var=no"
3482 LIBS="$ac_save_LIBS"
3485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3486 echo "$ac_t""yes" 1>&6
3487 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3489 cat >> confdefs.h <<EOF
3490 #define $ac_tr_lib 1
3493 LIBS="-lsocket $LIBS"
3496 echo "$ac_t""no" 1>&6
3499 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3500 echo "configure:3501: checking for main in -lnsl" >&5
3501 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 ac_save_LIBS="$LIBS"
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3515 if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3517 eval "ac_cv_lib_$ac_lib_var=yes"
3519 echo "configure: failed program was:" >&5
3520 cat conftest.$ac_ext >&5
3522 eval "ac_cv_lib_$ac_lib_var=no"
3525 LIBS="$ac_save_LIBS"
3528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3531 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3532 cat >> confdefs.h <<EOF
3533 #define $ac_tr_lib 1
3539 echo "$ac_t""no" 1>&6
3542 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3543 echo "configure:3544: checking for main in -lipc" >&5
3544 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 ac_save_LIBS="$LIBS"
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3558 if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3560 eval "ac_cv_lib_$ac_lib_var=yes"
3562 echo "configure: failed program was:" >&5
3563 cat conftest.$ac_ext >&5
3565 eval "ac_cv_lib_$ac_lib_var=no"
3568 LIBS="$ac_save_LIBS"
3571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3572 echo "$ac_t""yes" 1>&6
3573 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3574 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3575 cat >> confdefs.h <<EOF
3576 #define $ac_tr_lib 1
3582 echo "$ac_t""no" 1>&6
3585 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3586 echo "configure:3587: checking for main in -lIPC" >&5
3587 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 ac_save_LIBS="$LIBS"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3608 eval "ac_cv_lib_$ac_lib_var=no"
3611 LIBS="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3618 cat >> confdefs.h <<EOF
3619 #define $ac_tr_lib 1
3625 echo "$ac_t""no" 1>&6
3628 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3629 echo "configure:3630: checking for main in -llc" >&5
3630 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 ac_save_LIBS="$LIBS"
3636 cat > conftest.$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3644 if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646 eval "ac_cv_lib_$ac_lib_var=yes"
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 eval "ac_cv_lib_$ac_lib_var=no"
3654 LIBS="$ac_save_LIBS"
3657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658 echo "$ac_t""yes" 1>&6
3659 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3661 cat >> confdefs.h <<EOF
3662 #define $ac_tr_lib 1
3668 echo "$ac_t""no" 1>&6
3671 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3672 echo "configure:3673: checking for main in -ldld" >&5
3673 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 ac_save_LIBS="$LIBS"
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3687 if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 eval "ac_cv_lib_$ac_lib_var=yes"
3691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3694 eval "ac_cv_lib_$ac_lib_var=no"
3697 LIBS="$ac_save_LIBS"
3700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3704 cat >> confdefs.h <<EOF
3705 #define $ac_tr_lib 1
3711 echo "$ac_t""no" 1>&6
3714 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3715 echo "configure:3716: checking for main in -lld" >&5
3716 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3717 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 ac_save_LIBS="$LIBS"
3722 cat > conftest.$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3730 if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3732 eval "ac_cv_lib_$ac_lib_var=yes"
3734 echo "configure: failed program was:" >&5
3735 cat conftest.$ac_ext >&5
3737 eval "ac_cv_lib_$ac_lib_var=no"
3740 LIBS="$ac_save_LIBS"
3743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_lib 1
3754 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3758 echo "configure:3759: checking for main in -lcompat" >&5
3759 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 ac_save_LIBS="$LIBS"
3764 LIBS="-lcompat $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_lib_$ac_lib_var=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_lib_$ac_lib_var=no"
3783 LIBS="$ac_save_LIBS"
3786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3788 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3789 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3790 cat >> confdefs.h <<EOF
3791 #define $ac_tr_lib 1
3794 LIBS="-lcompat $LIBS"
3797 echo "$ac_t""no" 1>&6
3800 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3801 echo "configure:3802: checking for main in -lBSD" >&5
3802 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3803 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 ac_save_LIBS="$LIBS"
3808 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure"
3810 #include "confdefs.h"
3816 if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3818 eval "ac_cv_lib_$ac_lib_var=yes"
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 eval "ac_cv_lib_$ac_lib_var=no"
3826 LIBS="$ac_save_LIBS"
3829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3833 cat >> confdefs.h <<EOF
3834 #define $ac_tr_lib 1
3840 echo "$ac_t""no" 1>&6
3843 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3844 echo "configure:3845: checking for main in -lgen" >&5
3845 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 ac_save_LIBS="$LIBS"
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3859 if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3861 eval "ac_cv_lib_$ac_lib_var=yes"
3863 echo "configure: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3866 eval "ac_cv_lib_$ac_lib_var=no"
3869 LIBS="$ac_save_LIBS"
3872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3876 cat >> confdefs.h <<EOF
3877 #define $ac_tr_lib 1
3883 echo "$ac_t""no" 1>&6
3886 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3887 echo "configure:3888: checking for main in -lPW" >&5
3888 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 ac_save_LIBS="$LIBS"
3894 cat > conftest.$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3904 eval "ac_cv_lib_$ac_lib_var=yes"
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 eval "ac_cv_lib_$ac_lib_var=no"
3912 LIBS="$ac_save_LIBS"
3915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3916 echo "$ac_t""yes" 1>&6
3917 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3919 cat >> confdefs.h <<EOF
3920 #define $ac_tr_lib 1
3926 echo "$ac_t""no" 1>&6
3929 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3930 echo "configure:3931: checking for main in -lresolv" >&5
3931 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 ac_save_LIBS="$LIBS"
3936 LIBS="-lresolv $LIBS"
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3945 if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3947 eval "ac_cv_lib_$ac_lib_var=yes"
3949 echo "configure: failed program was:" >&5
3950 cat conftest.$ac_ext >&5
3952 eval "ac_cv_lib_$ac_lib_var=no"
3955 LIBS="$ac_save_LIBS"
3958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3960 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3962 cat >> confdefs.h <<EOF
3963 #define $ac_tr_lib 1
3966 LIBS="-lresolv $LIBS"
3969 echo "$ac_t""no" 1>&6
3973 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3974 echo "configure:3975: checking for library containing crypt" >&5
3975 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 ac_func_search_save_LIBS="$LIBS"
3979 ac_cv_search_crypt="no"
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 ac_cv_search_crypt="none required"
3996 echo "configure: failed program was:" >&5
3997 cat conftest.$ac_ext >&5
4000 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4001 LIBS="-l$i $ac_func_search_save_LIBS"
4002 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4014 if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4016 ac_cv_search_crypt="-l$i"
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4024 LIBS="$ac_func_search_save_LIBS"
4027 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4028 if test "$ac_cv_search_crypt" != "no"; then
4029 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4034 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4035 echo "configure:4036: checking for __inet_ntoa in -lbind" >&5
4036 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 ac_save_LIBS="$LIBS"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4056 eval "ac_cv_lib_$ac_lib_var=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.$ac_ext >&5
4061 eval "ac_cv_lib_$ac_lib_var=no"
4064 LIBS="$ac_save_LIBS"
4067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4071 cat >> confdefs.h <<EOF
4072 #define $ac_tr_lib 1
4078 echo "$ac_t""no" 1>&6
4081 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
4082 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
4083 echo "configure:4084: checking for zlib.h" >&5
4084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4093 { (eval echo configure:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4095 if test -z "$ac_err"; then
4097 eval "ac_cv_header_$ac_safe=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_header_$ac_safe=no"
4107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4108 echo "$ac_t""yes" 1>&6
4110 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4111 echo "configure:4112: checking for inflate in -lz" >&5
4112 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4114 echo $ac_n "(cached) $ac_c" 1>&6
4116 ac_save_LIBS="$LIBS"
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 /* Override any gcc2 internal prototype to avoid an error. */
4122 /* We use char because int might match the return type of a gcc2
4123 builtin and then its argument prototype would still apply. */
4130 if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4132 eval "ac_cv_lib_$ac_lib_var=yes"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 eval "ac_cv_lib_$ac_lib_var=no"
4140 LIBS="$ac_save_LIBS"
4143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4147 cat >> confdefs.h <<EOF
4148 #define $ac_tr_lib 1
4154 echo "$ac_t""no" 1>&6
4159 echo "$ac_t""no" 1>&6
4164 if test "$with_krb4" = yes ; then
4165 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4166 echo "configure:4167: checking for des_encrypt in -ldes" >&5
4167 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 ac_save_LIBS="$LIBS"
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* Override any gcc2 internal prototype to avoid an error. */
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 eval "ac_cv_lib_$ac_lib_var=yes"
4189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4192 eval "ac_cv_lib_$ac_lib_var=no"
4195 LIBS="$ac_save_LIBS"
4198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4202 cat >> confdefs.h <<EOF
4203 #define $ac_tr_lib 1
4209 echo "$ac_t""no" 1>&6
4210 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4213 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4214 echo "configure:4215: checking for krb_sendauth in -lkrb" >&5
4215 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4219 ac_save_LIBS="$LIBS"
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4227 char krb_sendauth();
4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235 eval "ac_cv_lib_$ac_lib_var=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.$ac_ext >&5
4240 eval "ac_cv_lib_$ac_lib_var=no"
4243 LIBS="$ac_save_LIBS"
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4248 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4250 cat >> confdefs.h <<EOF
4251 #define $ac_tr_lib 1
4257 echo "$ac_t""no" 1>&6
4258 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4263 if test "$with_krb5" = yes ; then
4264 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4265 echo "configure:4266: checking for com_err in -lcom_err" >&5
4266 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 ac_save_LIBS="$LIBS"
4271 LIBS="-lcom_err $LIBS"
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_lib_$ac_lib_var=no"
4294 LIBS="$ac_save_LIBS"
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4300 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4301 cat >> confdefs.h <<EOF
4302 #define $ac_tr_lib 1
4305 LIBS="-lcom_err $LIBS"
4308 echo "$ac_t""no" 1>&6
4309 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4312 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4313 echo "configure:4314: checking for krb5_encrypt in -lcrypto" >&5
4314 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 ac_save_LIBS="$LIBS"
4319 LIBS="-lcrypto $LIBS"
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326 char krb5_encrypt();
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4334 eval "ac_cv_lib_$ac_lib_var=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_lib_$ac_lib_var=no"
4342 LIBS="$ac_save_LIBS"
4345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4349 cat >> confdefs.h <<EOF
4350 #define $ac_tr_lib 1
4353 LIBS="-lcrypto $LIBS"
4356 echo "$ac_t""no" 1>&6
4357 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4358 echo "configure:4359: checking for krb5_encrypt in -lk5crypto" >&5
4359 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 ac_save_LIBS="$LIBS"
4364 LIBS="-lk5crypto $LIBS"
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 /* Override any gcc2 internal prototype to avoid an error. */
4369 /* We use char because int might match the return type of a gcc2
4370 builtin and then its argument prototype would still apply. */
4371 char krb5_encrypt();
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 eval "ac_cv_lib_$ac_lib_var=yes"
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 eval "ac_cv_lib_$ac_lib_var=no"
4387 LIBS="$ac_save_LIBS"
4390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_lib 1
4398 LIBS="-lk5crypto $LIBS"
4401 echo "$ac_t""no" 1>&6
4402 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4407 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4408 echo "configure:4409: checking for krb5_sendauth in -lkrb5" >&5
4409 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4421 char krb5_sendauth();
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_lib 1
4451 echo "$ac_t""no" 1>&6
4452 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4457 if test "$with_openssl" = yes ; then
4458 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4459 echo "configure:4460: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4460 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 ac_save_LIBS="$LIBS"
4465 LIBS="-lcrypto $LIBS"
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */
4472 char CRYPTO_new_ex_data();
4475 CRYPTO_new_ex_data()
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 eval "ac_cv_lib_$ac_lib_var=yes"
4482 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5
4485 eval "ac_cv_lib_$ac_lib_var=no"
4488 LIBS="$ac_save_LIBS"
4491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4495 cat >> confdefs.h <<EOF
4496 #define $ac_tr_lib 1
4499 LIBS="-lcrypto $LIBS"
4502 echo "$ac_t""no" 1>&6
4503 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4506 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4507 echo "configure:4508: checking for SSL_library_init in -lssl" >&5
4508 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 ac_save_LIBS="$LIBS"
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char SSL_library_init();
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4543 cat >> confdefs.h <<EOF
4544 #define $ac_tr_lib 1
4550 echo "$ac_t""no" 1>&6
4551 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4560 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
4562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr" >&5
4565 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4574 { (eval echo configure:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4576 if test -z "$ac_err"; then
4578 eval "ac_cv_header_$ac_safe=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 eval "ac_cv_header_$ac_safe=no"
4588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_hdr 1
4596 echo "$ac_t""no" 1>&6
4601 for ac_hdr in netinet/in.h
4603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_hdr" >&5
4606 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4615 { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4617 if test -z "$ac_err"; then
4619 eval "ac_cv_header_$ac_safe=yes"
4622 echo "configure: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4625 eval "ac_cv_header_$ac_safe=no"
4629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4630 echo "$ac_t""yes" 1>&6
4631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4632 cat >> confdefs.h <<EOF
4633 #define $ac_tr_hdr 1
4637 echo "$ac_t""no" 1>&6
4641 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4642 echo "configure:4643: checking for netinet/tcp.h" >&5
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4647 #ifdef HAVE_NETINET_IN_H
4648 #include <netinet/in.h>
4650 #include <netinet/tcp.h>
4653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4654 { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4656 if test -z "$ac_err"; then
4658 cat >> confdefs.h <<\EOF
4659 #define HAVE_NETINET_TCP_H 1
4661 echo "$ac_t""yes" 1>&6
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4667 echo "$ac_t""no" 1>&6
4671 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4672 echo "configure:4673: checking whether string.h and strings.h may both be included" >&5
4673 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4680 #include <strings.h>
4683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4692 #include <strings.h>
4695 int n = strcasecmp("a", "b");
4698 if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4700 pgac_cv_header_strings_both=yes
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 pgac_cv_header_strings_both=no
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 pgac_cv_header_strings_both=no
4718 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4719 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4720 cat >> confdefs.h <<\EOF
4721 #define STRING_H_WITH_STRINGS_H 1
4726 for ac_hdr in readline/readline.h readline.h
4728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4730 echo "configure:4731: checking for $ac_hdr" >&5
4731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4740 { (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4742 if test -z "$ac_err"; then
4744 eval "ac_cv_header_$ac_safe=yes"
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 eval "ac_cv_header_$ac_safe=no"
4754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4757 cat >> confdefs.h <<EOF
4758 #define $ac_tr_hdr 1
4762 echo "$ac_t""no" 1>&6
4766 for ac_hdr in readline/history.h history.h
4768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4770 echo "configure:4771: checking for $ac_hdr" >&5
4771 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4780 { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4782 if test -z "$ac_err"; then
4784 eval "ac_cv_header_$ac_safe=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_header_$ac_safe=no"
4794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_hdr 1
4802 echo "$ac_t""no" 1>&6
4807 if test "$with_krb4" = yes ; then
4808 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4809 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4810 echo "configure:4811: checking for krb.h" >&5
4811 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4820 { (eval echo configure:4821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4822 if test -z "$ac_err"; then
4824 eval "ac_cv_header_$ac_safe=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_header_$ac_safe=no"
4834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4838 echo "$ac_t""no" 1>&6
4839 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4844 if test "$with_krb5" = yes ; then
4845 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4846 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4847 echo "configure:4848: checking for krb5.h" >&5
4848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4857 { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4859 if test -z "$ac_err"; then
4861 eval "ac_cv_header_$ac_safe=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_header_$ac_safe=no"
4871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4875 echo "$ac_t""no" 1>&6
4876 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4879 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4880 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4881 echo "configure:4882: checking for com_err.h" >&5
4882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4888 #include <com_err.h>
4890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4891 { (eval echo configure:4892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4893 if test -z "$ac_err"; then
4895 eval "ac_cv_header_$ac_safe=yes"
4898 echo "configure: failed program was:" >&5
4899 cat conftest.$ac_ext >&5
4901 eval "ac_cv_header_$ac_safe=no"
4905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4909 echo "$ac_t""no" 1>&6
4910 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4915 if test "$with_openssl" = yes ; then
4916 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4917 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4918 echo "configure:4919: checking for openssl/ssl.h" >&5
4919 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4920 echo $ac_n "(cached) $ac_c" 1>&6
4922 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure"
4924 #include "confdefs.h"
4925 #include <openssl/ssl.h>
4927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4928 { (eval echo configure:4929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4930 if test -z "$ac_err"; then
4932 eval "ac_cv_header_$ac_safe=yes"
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4938 eval "ac_cv_header_$ac_safe=no"
4942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4946 echo "$ac_t""no" 1>&6
4947 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4950 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4951 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4952 echo "configure:4953: checking for openssl/err.h" >&5
4953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 cat > conftest.$ac_ext <<EOF
4957 #line 4958 "configure"
4958 #include "confdefs.h"
4959 #include <openssl/err.h>
4961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4962 { (eval echo configure:4963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4964 if test -z "$ac_err"; then
4966 eval "ac_cv_header_$ac_safe=yes"
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4972 eval "ac_cv_header_$ac_safe=no"
4976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4980 echo "$ac_t""no" 1>&6
4981 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4988 ## Types, structures, compiler characteristics
4990 echo $ac_n "checking for working const""... $ac_c" 1>&6
4991 echo "configure:4992: checking for working const" >&5
4992 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
5001 /* Ultrix mips cc rejects this. */
5002 typedef int charset[2]; const charset x={0,0};
5003 /* SunOS 4.1.1 cc rejects this. */
5004 char const *const *ccp;
5006 /* NEC SVR4.0.2 mips cc rejects this. */
5007 struct point {int x, y;};
5008 static struct point const zero = {0,0};
5009 /* AIX XL C 1.02.0.0 rejects this.
5010 It does not let you subtract one const X* pointer from another in an arm
5011 of an if-expression whose if-part is not a constant expression */
5012 const char *g = "string";
5013 ccp = &g + (g ? g-g : 0);
5014 /* HPUX 7.0 cc rejects these. */
5017 ccp = (char const *const *) p;
5018 { /* SCO 3.2v4 cc rejects this. */
5020 char const *s = 0 ? (char *) 0 : (char const *) 0;
5024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5026 const int *foo = &x[0];
5029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5030 typedef const int *iptr;
5034 { /* AIX XL C 1.02.0.0 rejects this saying
5035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5036 struct s { int j; const int *ap[3]; };
5037 struct s *b; b->j = 5;
5039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5045 if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5057 echo "$ac_t""$ac_cv_c_const" 1>&6
5058 if test $ac_cv_c_const = no; then
5059 cat >> confdefs.h <<\EOF
5065 echo $ac_n "checking for inline""... $ac_c" 1>&6
5066 echo "configure:5067: checking for inline" >&5
5067 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5071 for ac_kw in inline __inline__ __inline; do
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5077 } $ac_kw int foo() {
5080 if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5082 ac_cv_c_inline=$ac_kw; break
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5092 echo "$ac_t""$ac_cv_c_inline" 1>&6
5093 case "$ac_cv_c_inline" in
5095 no) cat >> confdefs.h <<\EOF
5099 *) cat >> confdefs.h <<EOF
5100 #define inline $ac_cv_c_inline
5107 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5108 echo "configure:5109: checking for preprocessor stringizing operator" >&5
5109 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 cat > conftest.$ac_ext <<EOF
5113 #line 5114 "configure"
5114 #include "confdefs.h"
5118 char *s = x(teststring);
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122 egrep "#teststring" >/dev/null 2>&1; then
5124 ac_cv_c_stringize=no
5127 ac_cv_c_stringize=yes
5133 if test "${ac_cv_c_stringize}" = yes
5135 cat >> confdefs.h <<\EOF
5136 #define HAVE_STRINGIZE 1
5140 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5142 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5143 echo "configure:5144: checking for signed types" >&5
5144 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5145 echo $ac_n "(cached) $ac_c" 1>&6
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5152 signed char c; signed short s; signed int i;
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 pgac_cv_c_signed=yes
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5167 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5168 if test x"$pgac_cv_c_signed" = xno ; then
5169 cat >> confdefs.h <<\EOF
5174 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5175 echo "configure:5176: checking for volatile" >&5
5176 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5179 cat > conftest.$ac_ext <<EOF
5180 #line 5181 "configure"
5181 #include "confdefs.h"
5184 extern volatile int i;
5187 if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5189 pgac_cv_c_volatile=yes
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5194 pgac_cv_c_volatile=no
5199 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5200 if test x"$pgac_cv_c_volatile" = xno ; then
5201 cat >> confdefs.h <<\EOF
5206 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5207 echo "configure:5208: checking whether struct tm is in sys/time.h or time.h" >&5
5208 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5214 #include <sys/types.h>
5217 struct tm *tp; tp->tm_sec;
5220 if { (eval echo configure:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5222 ac_cv_struct_tm=time.h
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 ac_cv_struct_tm=sys/time.h
5232 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5233 if test $ac_cv_struct_tm = sys/time.h; then
5234 cat >> confdefs.h <<\EOF
5235 #define TM_IN_SYS_TIME 1
5240 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5241 echo "configure:5242: checking for tm_zone in struct tm" >&5
5242 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5248 #include <sys/types.h>
5249 #include <$ac_cv_struct_tm>
5251 struct tm tm; tm.tm_zone;
5254 if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5256 ac_cv_struct_tm_zone=yes
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 ac_cv_struct_tm_zone=no
5266 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5267 if test "$ac_cv_struct_tm_zone" = yes; then
5268 cat >> confdefs.h <<\EOF
5269 #define HAVE_TM_ZONE 1
5273 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5274 echo "configure:5275: checking for tzname" >&5
5275 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5282 #ifndef tzname /* For SGI. */
5283 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 ac_cv_var_tzname=yes
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5301 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5302 if test $ac_cv_var_tzname = yes; then
5303 cat >> confdefs.h <<\EOF
5304 #define HAVE_TZNAME 1
5310 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5311 echo "configure:5312: checking for union semun" >&5
5312 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5313 echo $ac_n "(cached) $ac_c" 1>&6
5315 cat > conftest.$ac_ext <<EOF
5316 #line 5317 "configure"
5317 #include "confdefs.h"
5318 #include <sys/types.h>
5319 #include <sys/ipc.h>
5320 #include <sys/sem.h>
5325 if { (eval echo configure:5326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5327 pgac_cv_union_semun=yes
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5332 pgac_cv_union_semun=no
5337 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5338 if test x"$pgac_cv_union_semun" = xyes ; then
5339 cat >> confdefs.h <<\EOF
5340 #define HAVE_UNION_SEMUN 1
5344 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5345 echo "configure:5346: checking for struct sockaddr_un" >&5
5346 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <sys/types.h>
5353 #ifdef HAVE_SYS_UN_H
5357 struct sockaddr_un un;
5360 if { (eval echo configure:5361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5362 pgac_cv_struct_sockaddr_un=yes
5364 echo "configure: failed program was:" >&5
5365 cat conftest.$ac_ext >&5
5367 pgac_cv_struct_sockaddr_un=no
5372 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5373 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5374 cat >> confdefs.h <<\EOF
5375 #define HAVE_STRUCT_SOCKADDR_UN 1
5381 ## Functions, global variables
5383 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5384 echo "configure:5385: checking for int timezone" >&5
5385 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5386 echo $ac_n "(cached) $ac_c" 1>&6
5388 cat > conftest.$ac_ext <<EOF
5389 #line 5390 "configure"
5390 #include "confdefs.h"
5394 res = timezone / 60;
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5399 pgac_cv_var_int_timezone=yes
5401 echo "configure: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 pgac_cv_var_int_timezone=no
5409 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5410 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_INT_TIMEZONE
5416 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5417 echo "configure:5418: checking types of arguments for accept()" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5424 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5428 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5429 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure"
5432 #include "confdefs.h"
5433 #ifdef HAVE_SYS_TYPES_H
5434 #include <sys/types.h>
5436 #ifdef HAVE_SYS_SOCKET_H
5437 #include <sys/socket.h>
5439 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5444 if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5446 ac_not_found=no; break 3
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5457 if test "$ac_not_found" = yes; then
5458 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5460 if test "$ac_cv_func_accept_arg3" = "void"; then
5461 ac_cv_func_accept_arg3=int
5469 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5470 cat >> confdefs.h <<EOF
5471 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5474 cat >> confdefs.h <<EOF
5475 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5478 cat >> confdefs.h <<EOF
5479 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5483 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5484 echo "configure:5485: checking whether gettimeofday takes only one argument" >&5
5485 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <sys/time.h>
5494 struct timezone *tzp;
5495 gettimeofday(tp,tzp);
5498 if { (eval echo configure:5499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5500 pgac_cv_func_gettimeofday_1arg=no
5502 echo "configure: failed program was:" >&5
5503 cat conftest.$ac_ext >&5
5505 pgac_cv_func_gettimeofday_1arg=yes
5510 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5511 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5512 cat >> confdefs.h <<\EOF
5513 #define GETTIMEOFDAY_1ARG
5518 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_func" >&5
5522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 /* System header to define __stub macros and hopefully few prototypes,
5529 which can conflict with char $ac_func(); below. */
5531 /* Override any gcc2 internal prototype to avoid an error. */
5532 /* We use char because int might match the return type of a gcc2
5533 builtin and then its argument prototype would still apply. */
5538 /* The GNU C library defines this for functions which it implements
5539 to always fail with ENOSYS. Some functions are actually named
5540 something starting with __ and the normal name is an alias. */
5541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5549 if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5551 eval "ac_cv_func_$ac_func=yes"
5553 echo "configure: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5556 eval "ac_cv_func_$ac_func=no"
5561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5562 echo "$ac_t""yes" 1>&6
5563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5564 cat >> confdefs.h <<EOF
5565 #define $ac_tr_func 1
5569 echo "$ac_t""no" 1>&6
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5580 egrep "fdatasync" >/dev/null 2>&1; then
5582 cat >> confdefs.h <<\EOF
5583 #define HAVE_FDATASYNC_DECL 1
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 egrep "optarg" >/dev/null 2>&1; then
5598 cat >> confdefs.h <<\EOF
5599 #define HAVE_OPTARG_DECL 1
5606 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5607 echo "configure:5608: checking for PS_STRINGS" >&5
5608 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5614 #include <machine/vmparam.h>
5615 #include <sys/exec.h>
5618 PS_STRINGS->ps_nargvstr = 1;
5619 PS_STRINGS->ps_argvstr = "foo";
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 pgac_cv_var_PS_STRINGS=yes
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 pgac_cv_var_PS_STRINGS=no
5634 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5635 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5636 cat >> confdefs.h <<\EOF
5637 #define HAVE_PS_STRINGS
5643 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5644 echo "configure:5645: checking for snprintf" >&5
5645 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5648 cat > conftest.$ac_ext <<EOF
5649 #line 5650 "configure"
5650 #include "confdefs.h"
5651 /* System header to define __stub macros and hopefully few prototypes,
5652 which can conflict with char snprintf(); below. */
5654 /* Override any gcc2 internal prototype to avoid an error. */
5655 /* We use char because int might match the return type of a gcc2
5656 builtin and then its argument prototype would still apply. */
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5674 eval "ac_cv_func_snprintf=yes"
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 eval "ac_cv_func_snprintf=no"
5684 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5685 echo "$ac_t""yes" 1>&6
5686 cat >> confdefs.h <<\EOF
5687 #define HAVE_SNPRINTF 1
5691 echo "$ac_t""no" 1>&6
5692 SNPRINTF='snprintf.o'
5695 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5696 echo "configure:5697: checking for vsnprintf" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char vsnprintf(); below. */
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5726 eval "ac_cv_func_vsnprintf=yes"
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5731 eval "ac_cv_func_vsnprintf=no"
5736 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 cat >> confdefs.h <<\EOF
5739 #define HAVE_VSNPRINTF 1
5743 echo "$ac_t""no" 1>&6
5744 SNPRINTF='snprintf.o'
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5754 egrep "snprintf" >/dev/null 2>&1; then
5756 cat >> confdefs.h <<\EOF
5757 #define HAVE_SNPRINTF_DECL 1
5763 cat > conftest.$ac_ext <<EOF
5764 #line 5765 "configure"
5765 #include "confdefs.h"
5768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5769 egrep "vsnprintf" >/dev/null 2>&1; then
5771 cat >> confdefs.h <<\EOF
5772 #define HAVE_VSNPRINTF_DECL 1
5779 # do this one the hard way in case isinf() is a macro
5780 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5781 echo "configure:5782: checking for isinf" >&5
5782 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5783 echo $ac_n "(cached) $ac_c" 1>&6
5785 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure"
5787 #include "confdefs.h"
5791 double x = 0.0; int res = isinf(x);
5794 if { (eval echo configure:5795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5796 ac_cv_func_isinf=yes
5798 echo "configure: failed program was:" >&5
5799 cat conftest.$ac_ext >&5
5806 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5808 if test $ac_cv_func_isinf = yes ; then
5809 cat >> confdefs.h <<\EOF
5810 #define HAVE_ISINF 1
5816 # Look for a way to implement a substitute for isinf()
5817 for ac_func in fpclass fp_class fp_class_d class
5819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5820 echo "configure:5821: checking for $ac_func" >&5
5821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5822 echo $ac_n "(cached) $ac_c" 1>&6
5824 cat > conftest.$ac_ext <<EOF
5825 #line 5826 "configure"
5826 #include "confdefs.h"
5827 /* System header to define __stub macros and hopefully few prototypes,
5828 which can conflict with char $ac_func(); below. */
5830 /* Override any gcc2 internal prototype to avoid an error. */
5831 /* We use char because int might match the return type of a gcc2
5832 builtin and then its argument prototype would still apply. */
5837 /* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5848 if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5850 eval "ac_cv_func_$ac_func=yes"
5852 echo "configure: failed program was:" >&5
5853 cat conftest.$ac_ext >&5
5855 eval "ac_cv_func_$ac_func=no"
5860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5861 echo "$ac_t""yes" 1>&6
5862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5863 cat >> confdefs.h <<EOF
5864 #define $ac_tr_func 1
5868 echo "$ac_t""no" 1>&6
5875 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5876 echo "configure:5877: checking for getrusage" >&5
5877 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5878 echo $ac_n "(cached) $ac_c" 1>&6
5880 cat > conftest.$ac_ext <<EOF
5881 #line 5882 "configure"
5882 #include "confdefs.h"
5883 /* System header to define __stub macros and hopefully few prototypes,
5884 which can conflict with char getrusage(); below. */
5886 /* Override any gcc2 internal prototype to avoid an error. */
5887 /* We use char because int might match the return type of a gcc2
5888 builtin and then its argument prototype would still apply. */
5893 /* The GNU C library defines this for functions which it implements
5894 to always fail with ENOSYS. Some functions are actually named
5895 something starting with __ and the normal name is an alias. */
5896 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5904 if { (eval echo configure:5905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906 eval "ac_cv_func_getrusage=yes"
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 eval "ac_cv_func_getrusage=no"
5916 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5917 echo "$ac_t""yes" 1>&6
5918 cat >> confdefs.h <<\EOF
5919 #define HAVE_GETRUSAGE 1
5923 echo "$ac_t""no" 1>&6
5924 GETRUSAGE='getrusage.o'
5928 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5929 echo "configure:5930: checking for srandom" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char srandom(); below. */
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_srandom) || defined (__stub___srandom)
5957 if { (eval echo configure:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5959 eval "ac_cv_func_srandom=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_func_srandom=no"
5969 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 cat >> confdefs.h <<\EOF
5972 #define HAVE_SRANDOM 1
5976 echo "$ac_t""no" 1>&6
5981 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5982 echo "configure:5983: checking for gethostname" >&5
5983 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 /* System header to define __stub macros and hopefully few prototypes,
5990 which can conflict with char gethostname(); below. */
5992 /* Override any gcc2 internal prototype to avoid an error. */
5993 /* We use char because int might match the return type of a gcc2
5994 builtin and then its argument prototype would still apply. */
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 eval "ac_cv_func_gethostname=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_func_gethostname=no"
6022 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 cat >> confdefs.h <<\EOF
6025 #define HAVE_GETHOSTNAME 1
6029 echo "$ac_t""no" 1>&6
6030 GETHOSTNAME='gethostname.o'
6034 echo $ac_n "checking for random""... $ac_c" 1>&6
6035 echo "configure:6036: checking for random" >&5
6036 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6042 /* System header to define __stub macros and hopefully few prototypes,
6043 which can conflict with char random(); below. */
6045 /* Override any gcc2 internal prototype to avoid an error. */
6046 /* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6052 /* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055 #if defined (__stub_random) || defined (__stub___random)
6063 if { (eval echo configure:6064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 eval "ac_cv_func_random=yes"
6067 echo "configure: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6070 eval "ac_cv_func_random=no"
6075 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6076 echo "$ac_t""yes" 1>&6
6077 cat >> confdefs.h <<\EOF
6078 #define HAVE_RANDOM 1
6082 echo "$ac_t""no" 1>&6
6083 MISSING_RANDOM='random.o'
6087 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6088 echo "configure:6089: checking for inet_aton" >&5
6089 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6095 /* System header to define __stub macros and hopefully few prototypes,
6096 which can conflict with char inet_aton(); below. */
6098 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6105 /* The GNU C library defines this for functions which it implements
6106 to always fail with ENOSYS. Some functions are actually named
6107 something starting with __ and the normal name is an alias. */
6108 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6116 if { (eval echo configure:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6118 eval "ac_cv_func_inet_aton=yes"
6120 echo "configure: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 eval "ac_cv_func_inet_aton=no"
6128 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6129 echo "$ac_t""yes" 1>&6
6130 cat >> confdefs.h <<\EOF
6131 #define HAVE_INET_ATON 1
6135 echo "$ac_t""no" 1>&6
6136 INET_ATON='inet_aton.o'
6140 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6141 echo "configure:6142: checking for strerror" >&5
6142 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6143 echo $ac_n "(cached) $ac_c" 1>&6
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char strerror(); below. */
6151 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined (__stub_strerror) || defined (__stub___strerror)
6169 if { (eval echo configure:6170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6171 eval "ac_cv_func_strerror=yes"
6173 echo "configure: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6176 eval "ac_cv_func_strerror=no"
6181 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6182 echo "$ac_t""yes" 1>&6
6183 cat >> confdefs.h <<\EOF
6184 #define HAVE_STRERROR 1
6188 echo "$ac_t""no" 1>&6
6189 STRERROR='strerror.o'
6193 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6194 echo "configure:6195: checking for strdup" >&5
6195 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 /* System header to define __stub macros and hopefully few prototypes,
6202 which can conflict with char strdup(); below. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_strdup) || defined (__stub___strdup)
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6224 eval "ac_cv_func_strdup=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5
6229 eval "ac_cv_func_strdup=no"
6234 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 cat >> confdefs.h <<\EOF
6237 #define HAVE_STRDUP 1
6241 echo "$ac_t""no" 1>&6
6242 STRDUP='../../utils/strdup.o'
6246 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6247 echo "configure:6248: checking for strtol" >&5
6248 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 /* System header to define __stub macros and hopefully few prototypes,
6255 which can conflict with char strtol(); below. */
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined (__stub_strtol) || defined (__stub___strtol)
6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6277 eval "ac_cv_func_strtol=yes"
6279 echo "configure: failed program was:" >&5
6280 cat conftest.$ac_ext >&5
6282 eval "ac_cv_func_strtol=no"
6287 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6289 cat >> confdefs.h <<\EOF
6290 #define HAVE_STRTOL 1
6294 echo "$ac_t""no" 1>&6
6299 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6300 echo "configure:6301: checking for strtoul" >&5
6301 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6302 echo $ac_n "(cached) $ac_c" 1>&6
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 /* System header to define __stub macros and hopefully few prototypes,
6308 which can conflict with char strtoul(); below. */
6310 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6317 /* The GNU C library defines this for functions which it implements
6318 to always fail with ENOSYS. Some functions are actually named
6319 something starting with __ and the normal name is an alias. */
6320 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 eval "ac_cv_func_strtoul=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_func_strtoul=no"
6340 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6341 echo "$ac_t""yes" 1>&6
6342 cat >> confdefs.h <<\EOF
6343 #define HAVE_STRTOUL 1
6347 echo "$ac_t""no" 1>&6
6352 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6353 echo "configure:6354: checking for strcasecmp" >&5
6354 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char strcasecmp(); below. */
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 eval "ac_cv_func_strcasecmp=yes"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 eval "ac_cv_func_strcasecmp=no"
6393 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 cat >> confdefs.h <<\EOF
6396 #define HAVE_STRCASECMP 1
6400 echo "$ac_t""no" 1>&6
6401 STRCASECMP='strcasecmp.o'
6405 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6406 echo "configure:6407: checking for cbrt" >&5
6407 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6408 echo $ac_n "(cached) $ac_c" 1>&6
6410 cat > conftest.$ac_ext <<EOF
6411 #line 6412 "configure"
6412 #include "confdefs.h"
6413 /* System header to define __stub macros and hopefully few prototypes,
6414 which can conflict with char cbrt(); below. */
6416 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6434 if { (eval echo configure:6435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6436 eval "ac_cv_func_cbrt=yes"
6438 echo "configure: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6441 eval "ac_cv_func_cbrt=no"
6446 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6447 echo "$ac_t""yes" 1>&6
6448 cat >> confdefs.h <<\EOF
6453 echo "$ac_t""no" 1>&6
6454 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6455 echo "configure:6456: checking for cbrt in -lm" >&5
6456 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 ac_save_LIBS="$LIBS"
6462 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure"
6464 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6476 eval "ac_cv_lib_$ac_lib_var=yes"
6478 echo "configure: failed program was:" >&5
6479 cat conftest.$ac_ext >&5
6481 eval "ac_cv_lib_$ac_lib_var=no"
6484 LIBS="$ac_save_LIBS"
6487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6489 cat >> confdefs.h <<\EOF
6494 echo "$ac_t""no" 1>&6
6500 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6501 # this hackery with HPUXMATHLIB allows us to cope.
6505 if [ -r /lib/pa1.1/libm.a ] ; then
6506 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6511 echo $ac_n "checking for rint""... $ac_c" 1>&6
6512 echo "configure:6513: checking for rint" >&5
6513 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6514 echo $ac_n "(cached) $ac_c" 1>&6
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 /* System header to define __stub macros and hopefully few prototypes,
6520 which can conflict with char rint(); below. */
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6529 /* The GNU C library defines this for functions which it implements
6530 to always fail with ENOSYS. Some functions are actually named
6531 something starting with __ and the normal name is an alias. */
6532 #if defined (__stub_rint) || defined (__stub___rint)
6540 if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 eval "ac_cv_func_rint=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_func_rint=no"
6552 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6553 echo "$ac_t""yes" 1>&6
6554 cat >> confdefs.h <<\EOF
6559 echo "$ac_t""no" 1>&6
6560 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6561 echo "configure:6562: checking for rint in -lm" >&5
6562 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 ac_save_LIBS="$LIBS"
6567 LIBS="-lm $HPUXMATHLIB $LIBS"
6568 cat > conftest.$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6571 /* Override any gcc2 internal prototype to avoid an error. */
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6580 if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6582 eval "ac_cv_lib_$ac_lib_var=yes"
6584 echo "configure: failed program was:" >&5
6585 cat conftest.$ac_ext >&5
6587 eval "ac_cv_lib_$ac_lib_var=no"
6590 LIBS="$ac_save_LIBS"
6593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6595 cat >> confdefs.h <<\EOF
6600 echo "$ac_t""no" 1>&6
6607 # Readline versions < 2.1 don't have rl_completion_append_character
6608 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6609 echo "configure:6610: checking for rl_completion_append_character" >&5
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6614 #ifdef HAVE_READLINE_H
6615 # include <readline.h>
6617 #ifdef HAVE_READLINE_READLINE_H
6618 # include <readline/readline.h>
6621 rl_completion_append_character = 'x';
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 echo "$ac_t""yes" 1>&6
6627 cat >> confdefs.h <<\EOF
6628 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 echo "$ac_t""no" 1>&6
6640 # Check whether readline's filename_completion_function is declared.
6641 # Some prehistoric versions of readline, in particular those shipped
6642 # with earlier Cygwins don't have this declared, although it's in the
6644 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6645 echo "configure:6646: checking whether filename_completion_function is declared" >&5
6646 if test "$ac_cv_header_readline_h" = yes; then
6647 _readline_header='readline.h'
6648 elif test "$ac_cv_header_readline_readline_h" = yes; then
6649 _readline_header='readline/readline.h'
6651 _readline_header='xxx'
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6656 #include <$_readline_header>
6658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6659 egrep "filename_completion_function" >/dev/null 2>&1; then
6661 cat >> confdefs.h <<\EOF
6662 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6665 echo "$ac_t""yes" 1>&6
6668 echo "$ac_t""no" 1>&6
6675 echo $ac_n "checking for finite""... $ac_c" 1>&6
6676 echo "configure:6677: checking for finite" >&5
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6682 int dummy=finite(1.0);
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687 cat >> confdefs.h <<\EOF
6688 #define HAVE_FINITE 1
6690 echo "$ac_t""yes" 1>&6
6692 echo "configure: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6695 echo "$ac_t""no" 1>&6
6699 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6700 echo "configure:6701: checking for sigsetjmp" >&5
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6706 sigjmp_buf x; sigsetjmp(x, 1);
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 cat >> confdefs.h <<\EOF
6712 #define HAVE_SIGSETJMP 1
6714 echo "$ac_t""yes" 1>&6
6716 echo "configure: failed program was:" >&5
6717 cat conftest.$ac_ext >&5
6719 echo "$ac_t""no" 1>&6
6724 # Check whether --enable-syslog was given
6725 if test x"${enable_syslog+set}" = xset; then
6726 case $enable_syslog in
6728 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6729 echo "configure:6730: checking for syslog" >&5
6730 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char syslog(); below. */
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_syslog) || defined (__stub___syslog)
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 eval "ac_cv_func_syslog=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 eval "ac_cv_func_syslog=no"
6769 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 cat >> confdefs.h <<\EOF
6772 #define ENABLE_SYSLOG 1
6776 echo "$ac_t""no" 1>&6
6777 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6785 enableval=$enable_syslog
6786 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6788 esac # $enable_syslog
6795 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6796 echo "configure:6797: checking for optreset" >&5
6797 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6805 extern int optreset; optreset = 1;
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 pgac_cv_var_int_optreset=yes
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 pgac_cv_var_int_optreset=no
6820 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6821 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6822 cat >> confdefs.h <<\EOF
6823 #define HAVE_INT_OPTRESET 1
6829 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6830 echo "configure:6831: checking whether long int is 64 bits" >&5
6831 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6834 if test "$cross_compiling" = yes; then
6835 pgac_cv_type_long_int_64=no
6836 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6838 cat > conftest.$ac_ext <<EOF
6839 #line 6840 "configure"
6840 #include "confdefs.h"
6841 typedef long int int64;
6844 * These are globals to discourage the compiler from folding all the
6845 * arithmetic tests down to compile-time constants.
6850 int does_int64_work()
6854 if (sizeof(int64) != 8)
6855 return 0; /* definitely not the right size */
6857 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6865 exit(! does_int64_work());
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6870 pgac_cv_type_long_int_64=yes
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 pgac_cv_type_long_int_64=no
6882 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6884 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6885 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6886 cat >> confdefs.h <<\EOF
6887 #define HAVE_LONG_INT_64
6893 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6894 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6895 echo "configure:6896: checking whether long long int is 64 bits" >&5
6896 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 if test "$cross_compiling" = yes; then
6900 pgac_cv_type_long_long_int_64=no
6901 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 typedef long long int int64;
6909 * These are globals to discourage the compiler from folding all the
6910 * arithmetic tests down to compile-time constants.
6915 int does_int64_work()
6919 if (sizeof(int64) != 8)
6920 return 0; /* definitely not the right size */
6922 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6930 exit(! does_int64_work());
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6935 pgac_cv_type_long_long_int_64=yes
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 pgac_cv_type_long_long_int_64=no
6947 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6949 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6950 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6951 cat >> confdefs.h <<\EOF
6952 #define HAVE_LONG_LONG_INT_64
6961 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6962 if [ x$SNPRINTF = x ] ; then
6963 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6964 echo "configure:6965: checking whether snprintf handles 'long long int' as %lld" >&5
6965 if test "$cross_compiling" = yes; then
6966 echo "$ac_t""assuming not on target machine" 1>&6
6967 # Force usage of our own snprintf, since we cannot test foreign snprintf
6968 SNPRINTF='snprintf.o'
6969 INT64_FORMAT='"%lld"'
6972 cat > conftest.$ac_ext <<EOF
6973 #line 6974 "configure"
6974 #include "confdefs.h"
6976 typedef long long int int64;
6977 #define INT64_FORMAT "%lld"
6982 int does_int64_snprintf_work()
6987 if (sizeof(int64) != 8)
6988 return 0; /* doesn't look like the right size */
6991 snprintf(buf, 100, INT64_FORMAT, c);
6992 if (strcmp(buf, "800000140000005") != 0)
6993 return 0; /* either multiply or snprintf is busted */
6997 exit(! does_int64_snprintf_work());
7000 if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7002 echo "$ac_t""yes" 1>&6
7003 INT64_FORMAT='"%lld"'
7006 echo "configure: failed program was:" >&5
7007 cat conftest.$ac_ext >&5
7009 echo "$ac_t""no" 1>&6
7010 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7011 echo "configure:7012: checking whether snprintf handles 'long long int' as %qd" >&5
7012 if test "$cross_compiling" = yes; then
7013 echo "$ac_t""assuming not on target machine" 1>&6
7014 # Force usage of our own snprintf, since we cannot test foreign snprintf
7015 SNPRINTF='snprintf.o'
7016 INT64_FORMAT='"%lld"'
7019 cat > conftest.$ac_ext <<EOF
7020 #line 7021 "configure"
7021 #include "confdefs.h"
7023 typedef long long int int64;
7024 #define INT64_FORMAT "%qd"
7029 int does_int64_snprintf_work()
7034 if (sizeof(int64) != 8)
7035 return 0; /* doesn't look like the right size */
7038 snprintf(buf, 100, INT64_FORMAT, c);
7039 if (strcmp(buf, "800000140000005") != 0)
7040 return 0; /* either multiply or snprintf is busted */
7044 exit(! does_int64_snprintf_work());
7047 if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7049 echo "$ac_t""yes" 1>&6
7050 INT64_FORMAT='"%qd"'
7053 echo "configure: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7056 echo "$ac_t""no" 1>&6
7057 # Force usage of our own snprintf, since system snprintf is broken
7058 SNPRINTF='snprintf.o'
7059 INT64_FORMAT='"%lld"'
7070 # here if we previously decided we needed to use our own snprintf
7071 INT64_FORMAT='"%lld"'
7074 # Here if we are not using 'long long int' at all
7075 INT64_FORMAT='"%ld"'
7078 cat >> confdefs.h <<EOF
7079 #define INT64_FORMAT $INT64_FORMAT
7084 for ac_func in strtoll strtoq
7086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7087 echo "configure:7088: checking for $ac_func" >&5
7088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 cat > conftest.$ac_ext <<EOF
7092 #line 7093 "configure"
7093 #include "confdefs.h"
7094 /* System header to define __stub macros and hopefully few prototypes,
7095 which can conflict with char $ac_func(); below. */
7097 /* Override any gcc2 internal prototype to avoid an error. */
7098 /* We use char because int might match the return type of a gcc2
7099 builtin and then its argument prototype would still apply. */
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7115 if { (eval echo configure:7116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117 eval "ac_cv_func_$ac_func=yes"
7119 echo "configure: failed program was:" >&5
7120 cat conftest.$ac_ext >&5
7122 eval "ac_cv_func_$ac_func=no"
7127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7130 cat >> confdefs.h <<EOF
7131 #define $ac_tr_func 1
7135 echo "$ac_t""no" 1>&6
7139 for ac_func in strtoull strtouq
7141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7142 echo "configure:7143: checking for $ac_func" >&5
7143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7149 /* System header to define __stub macros and hopefully few prototypes,
7150 which can conflict with char $ac_func(); below. */
7152 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7159 /* The GNU C library defines this for functions which it implements
7160 to always fail with ENOSYS. Some functions are actually named
7161 something starting with __ and the normal name is an alias. */
7162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7172 eval "ac_cv_func_$ac_func=yes"
7174 echo "configure: failed program was:" >&5
7175 cat conftest.$ac_ext >&5
7177 eval "ac_cv_func_$ac_func=no"
7182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7183 echo "$ac_t""yes" 1>&6
7184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7185 cat >> confdefs.h <<EOF
7186 #define $ac_tr_func 1
7190 echo "$ac_t""no" 1>&6
7195 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7196 echo "configure:7197: checking for atexit" >&5
7197 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7198 echo $ac_n "(cached) $ac_c" 1>&6
7200 cat > conftest.$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char atexit(); below. */
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7213 /* The GNU C library defines this for functions which it implements
7214 to always fail with ENOSYS. Some functions are actually named
7215 something starting with __ and the normal name is an alias. */
7216 #if defined (__stub_atexit) || defined (__stub___atexit)
7224 if { (eval echo configure:7225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7226 eval "ac_cv_func_atexit=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.$ac_ext >&5
7231 eval "ac_cv_func_atexit=no"
7236 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7238 cat >> confdefs.h <<\EOF
7239 #define HAVE_ATEXIT 1
7243 echo "$ac_t""no" 1>&6
7244 for ac_func in on_exit
7246 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7247 echo "configure:7248: checking for $ac_func" >&5
7248 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7249 echo $ac_n "(cached) $ac_c" 1>&6
7251 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure"
7253 #include "confdefs.h"
7254 /* System header to define __stub macros and hopefully few prototypes,
7255 which can conflict with char $ac_func(); below. */
7257 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7264 /* The GNU C library defines this for functions which it implements
7265 to always fail with ENOSYS. Some functions are actually named
7266 something starting with __ and the normal name is an alias. */
7267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7277 eval "ac_cv_func_$ac_func=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 eval "ac_cv_func_$ac_func=no"
7287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7288 echo "$ac_t""yes" 1>&6
7289 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7290 cat >> confdefs.h <<EOF
7291 #define $ac_tr_func 1
7293 cat >> confdefs.h <<\EOF
7294 #define HAVE_ON_EXIT 1
7298 echo "$ac_t""no" 1>&6
7299 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7307 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7308 echo "configure:7309: checking size of unsigned long" >&5
7309 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7312 if test "$cross_compiling" = yes; then
7313 ac_cv_sizeof_unsigned_long=4
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7321 FILE *f=fopen("conftestval", "w");
7323 fprintf(f, "%d\n", sizeof(unsigned long));
7327 if { (eval echo configure:7328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7329 ac_cv_sizeof_unsigned_long=`cat conftestval`
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 ac_cv_sizeof_unsigned_long=0
7340 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7341 cat >> confdefs.h <<EOF
7342 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7346 cat >> confdefs.h <<EOF
7347 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7352 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7353 echo "configure:7354: checking alignment of short" >&5
7354 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7357 if test "$cross_compiling" = yes; then
7358 pgac_cv_alignof_short='sizeof(short)'
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7364 struct { char filler; short field; } mystruct;
7367 FILE *f=fopen("conftestval", "w");
7369 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7373 if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7375 pgac_cv_alignof_short=`cat conftestval`
7377 echo "configure: failed program was:" >&5
7378 cat conftest.$ac_ext >&5
7380 pgac_cv_alignof_short='sizeof(short)'
7386 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7387 cat >> confdefs.h <<EOF
7388 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7392 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7393 echo "configure:7394: checking alignment of int" >&5
7394 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7395 echo $ac_n "(cached) $ac_c" 1>&6
7397 if test "$cross_compiling" = yes; then
7398 pgac_cv_alignof_int='sizeof(int)'
7400 cat > conftest.$ac_ext <<EOF
7401 #line 7402 "configure"
7402 #include "confdefs.h"
7404 struct { char filler; int field; } mystruct;
7407 FILE *f=fopen("conftestval", "w");
7409 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7415 pgac_cv_alignof_int=`cat conftestval`
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 pgac_cv_alignof_int='sizeof(int)'
7426 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7427 cat >> confdefs.h <<EOF
7428 #define ALIGNOF_INT $pgac_cv_alignof_int
7432 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7433 echo "configure:7434: checking alignment of long" >&5
7434 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7435 echo $ac_n "(cached) $ac_c" 1>&6
7437 if test "$cross_compiling" = yes; then
7438 pgac_cv_alignof_long='sizeof(long)'
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7444 struct { char filler; long field; } mystruct;
7447 FILE *f=fopen("conftestval", "w");
7449 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7455 pgac_cv_alignof_long=`cat conftestval`
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 pgac_cv_alignof_long='sizeof(long)'
7466 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7467 cat >> confdefs.h <<EOF
7468 #define ALIGNOF_LONG $pgac_cv_alignof_long
7472 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7473 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7474 echo "configure:7475: checking alignment of long long int" >&5
7475 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7478 if test "$cross_compiling" = yes; then
7479 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7485 struct { char filler; long long int field; } mystruct;
7488 FILE *f=fopen("conftestval", "w");
7490 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7496 pgac_cv_alignof_long_long_int=`cat conftestval`
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7507 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7508 cat >> confdefs.h <<EOF
7509 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7514 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7515 echo "configure:7516: checking alignment of double" >&5
7516 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7519 if test "$cross_compiling" = yes; then
7520 pgac_cv_alignof_double='sizeof(double)'
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7526 struct { char filler; double field; } mystruct;
7529 FILE *f=fopen("conftestval", "w");
7531 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7535 if { (eval echo configure:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7537 pgac_cv_alignof_double=`cat conftestval`
7539 echo "configure: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7542 pgac_cv_alignof_double='sizeof(double)'
7548 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7549 cat >> confdefs.h <<EOF
7550 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7556 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7557 MAX_ALIGNOF=$pgac_cv_alignof_long
7558 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7559 MAX_ALIGNOF=$pgac_cv_alignof_double
7561 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7562 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7565 MAX_ALIGNOF="$pgac_cv_alignof_double"
7567 cat >> confdefs.h <<EOF
7568 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7572 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7573 echo "configure:7574: checking for POSIX signal interface" >&5
7574 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 cat > conftest.$ac_ext <<EOF
7578 #line 7579 "configure"
7579 #include "confdefs.h"
7583 struct sigaction act, oact;
7584 sigemptyset(&act.sa_mask);
7585 act.sa_flags = SA_RESTART;
7586 sigaction(0, &act, &oact);
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591 pgac_cv_func_posix_signals=yes
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 pgac_cv_func_posix_signals=no
7601 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7602 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7603 cat >> confdefs.h <<\EOF
7604 #define HAVE_POSIX_SIGNALS
7608 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7612 # Check for Tcl configuration script tclConfig.sh
7613 if test "$with_tcl" = yes; then
7614 for ac_prog in tclsh tcl
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7619 echo "configure:7620: checking for $ac_word" >&5
7620 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7621 echo $ac_n "(cached) $ac_c" 1>&6
7625 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7628 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7633 for ac_dir in $ac_dummy; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7644 TCLSH="$ac_cv_path_TCLSH"
7645 if test -n "$TCLSH"; then
7646 echo "$ac_t""$TCLSH" 1>&6
7648 echo "$ac_t""no" 1>&6
7651 test -n "$TCLSH" && break
7654 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7655 echo "configure:7656: checking for tclConfig.sh" >&5
7656 # Let user override test
7657 if test -z "$TCL_CONFIG_SH"; then
7658 pgac_test_dirs="$with_tclconfig"
7660 set X $pgac_test_dirs; shift
7661 if test $# -eq 0; then
7662 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7663 set X `echo 'puts $auto_path' | $TCLSH`; shift
7667 if test -r "$pgac_dir/tclConfig.sh"; then
7668 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7674 if test -z "$TCL_CONFIG_SH"; then
7675 echo "$ac_t""no" 1>&6
7676 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7678 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7685 # Check for Tk configuration script tkConfig.sh
7686 if test "$with_tk" = yes; then
7687 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7688 echo "configure:7689: checking for tkConfig.sh" >&5
7689 # Let user override test
7690 if test -z "$TK_CONFIG_SH"; then
7691 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7693 set X $pgac_test_dirs; shift
7694 if test $# -eq 0; then
7695 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7696 set X `echo 'puts $auto_path' | $TCLSH`; shift
7700 if test -r "$pgac_dir/tkConfig.sh"; then
7701 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7707 if test -z "$TK_CONFIG_SH"; then
7708 echo "$ac_t""no" 1>&6
7709 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7711 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7720 # Check for DocBook and tools
7722 for ac_prog in onsgmls nsgmls
7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
7725 set dummy $ac_prog; ac_word=$2
7726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7727 echo "configure:7728: checking for $ac_word" >&5
7728 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 if test -n "$NSGMLS"; then
7732 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7736 for ac_dir in $ac_dummy; do
7737 test -z "$ac_dir" && ac_dir=.
7738 if test -f $ac_dir/$ac_word; then
7739 ac_cv_prog_NSGMLS="$ac_prog"
7746 NSGMLS="$ac_cv_prog_NSGMLS"
7747 if test -n "$NSGMLS"; then
7748 echo "$ac_t""$NSGMLS" 1>&6
7750 echo "$ac_t""no" 1>&6
7753 test -n "$NSGMLS" && break
7756 # If you don't have nsgmls you won't get very far, so save the cycles.
7757 if test -n "$NSGMLS"; then
7758 for ac_prog in openjade jade
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7763 echo "configure:7764: checking for $ac_word" >&5
7764 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7767 if test -n "$JADE"; then
7768 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7772 for ac_dir in $ac_dummy; do
7773 test -z "$ac_dir" && ac_dir=.
7774 if test -f $ac_dir/$ac_word; then
7775 ac_cv_prog_JADE="$ac_prog"
7782 JADE="$ac_cv_prog_JADE"
7783 if test -n "$JADE"; then
7784 echo "$ac_t""$JADE" 1>&6
7786 echo "$ac_t""no" 1>&6
7789 test -n "$JADE" && break
7793 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7794 echo "configure:7795: checking for DocBook V3.1" >&5
7795 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 cat >conftest.sgml <<EOF
7799 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7803 <title>random</title>
7805 <title>testsect</title>
7812 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7813 if test $? -eq 0; then
7814 pgac_cv_check_docbook=yes
7816 pgac_cv_check_docbook=no
7821 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7823 have_docbook=$pgac_cv_check_docbook
7826 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7827 echo "configure:7828: checking for DocBook stylesheets" >&5
7828 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7831 if test -n "$DOCBOOKSTYLE"; then
7832 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7834 for pgac_prefix in /usr /usr/local /opt; do
7835 for pgac_infix in share lib; do
7836 for pgac_postfix in \
7837 sgml/stylesheets/nwalsh-modular \
7838 sgml/stylesheets/docbook \
7839 sgml/docbook/dsssl/modular
7841 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7842 if test -r "$pgac_candidate/html/docbook.dsl" \
7843 && test -r "$pgac_candidate/print/docbook.dsl"
7845 pgac_cv_path_stylesheets=$pgac_candidate
7854 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7856 if test -n "$DOCBOOKSTYLE"; then
7857 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7859 echo "$ac_t""no" 1>&6
7861 for ac_prog in sgmlspl
7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_word" >&5
7867 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 if test -n "$SGMLSPL"; then
7871 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7875 for ac_dir in $ac_dummy; do
7876 test -z "$ac_dir" && ac_dir=.
7877 if test -f $ac_dir/$ac_word; then
7878 ac_cv_prog_SGMLSPL="$ac_prog"
7885 SGMLSPL="$ac_cv_prog_SGMLSPL"
7886 if test -n "$SGMLSPL"; then
7887 echo "$ac_t""$SGMLSPL" 1>&6
7889 echo "$ac_t""no" 1>&6
7892 test -n "$SGMLSPL" && break
7898 # Finally ready to produce output files ...
7900 if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
7901 echo $ac_n "preparing build tree... $ac_c" 1>&6
7902 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
7903 || { echo "configure: error: failed" 1>&2; exit 1; }
7904 echo "$ac_t""done" 1>&6
7908 cat > confcache <<\EOF
7909 # This file is a shell script that caches the results of configure
7910 # tests run on this system so they can be shared between configure
7911 # scripts and configure runs. It is not useful on other systems.
7912 # If it contains results you don't want to keep, you may remove or edit it.
7914 # By default, configure uses ./config.cache as the cache file,
7915 # creating it if it does not exist already. You can give configure
7916 # the --cache-file=FILE option to use a different cache file; that is
7917 # what configure does when it calls configure scripts in
7918 # subdirectories, so they share the cache.
7919 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7920 # config.status only pays attention to the cache file if you give it the
7921 # --recheck option to rerun configure.
7924 # The following way of writing the cache mishandles newlines in values,
7925 # but we know of no workaround that is simple, portable, and efficient.
7926 # So, don't put newlines in cache variables' values.
7927 # Ultrix sh set writes to stderr and can't be redirected directly,
7928 # and sets the high bit in the cache file unless we assign to the vars.
7930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7932 # `set' does not quote correctly, so add quotes (double-quote substitution
7933 # turns \\\\ into \\, and sed turns \\ into \).
7935 -e "s/'/'\\\\''/g" \
7936 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7939 # `set' quotes correctly as required by POSIX, so do not add quotes.
7940 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7943 if cmp -s $cache_file confcache; then
7946 if test -w $cache_file; then
7947 echo "updating cache $cache_file"
7948 cat confcache > $cache_file
7950 echo "not updating unwritable cache $cache_file"
7955 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7958 # Let make expand exec_prefix.
7959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7961 # Any assignment to VPATH causes Sun make to only execute
7962 # the first set of double-colon rules, so remove it if not needed.
7963 # If there is a colon in the path, we need to keep it.
7964 if test "x$srcdir" = x.; then
7965 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7968 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7970 DEFS=-DHAVE_CONFIG_H
7972 # Without the "./", some shells look in PATH for config.status.
7973 : ${CONFIG_STATUS=./config.status}
7975 echo creating $CONFIG_STATUS
7976 rm -f $CONFIG_STATUS
7977 cat > $CONFIG_STATUS <<EOF
7979 # Generated automatically by configure.
7980 # Run this file to recreate the current configuration.
7981 # This directory was configured as follows,
7982 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7984 # $0 $ac_configure_args
7986 # Compiler output produced by configure, useful for debugging
7987 # configure, is in ./config.log if it exists.
7989 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7992 case "\$ac_option" in
7993 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7994 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7995 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7996 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7997 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7999 -help | --help | --hel | --he | --h)
8000 echo "\$ac_cs_usage"; exit 0 ;;
8001 *) echo "\$ac_cs_usage"; exit 1 ;;
8005 ac_given_srcdir=$srcdir
8006 ac_given_INSTALL="$INSTALL"
8008 trap 'rm -fr `echo "
8012 src/backend/port/Makefile
8013 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8015 cat >> $CONFIG_STATUS <<EOF
8017 # Protect against being on the right side of a sed subst in config.status.
8018 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8019 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8023 s%@CFLAGS@%$CFLAGS%g
8024 s%@CPPFLAGS@%$CPPFLAGS%g
8025 s%@CXXFLAGS@%$CXXFLAGS%g
8026 s%@FFLAGS@%$FFLAGS%g
8028 s%@LDFLAGS@%$LDFLAGS%g
8030 s%@exec_prefix@%$exec_prefix%g
8031 s%@prefix@%$prefix%g
8032 s%@program_transform_name@%$program_transform_name%g
8033 s%@bindir@%$bindir%g
8034 s%@sbindir@%$sbindir%g
8035 s%@libexecdir@%$libexecdir%g
8036 s%@datadir@%$datadir%g
8037 s%@sysconfdir@%$sysconfdir%g
8038 s%@sharedstatedir@%$sharedstatedir%g
8039 s%@localstatedir@%$localstatedir%g
8040 s%@libdir@%$libdir%g
8041 s%@includedir@%$includedir%g
8042 s%@oldincludedir@%$oldincludedir%g
8043 s%@docdir@%$docdir%g
8044 s%@mandir@%$mandir%g
8045 s%@VERSION@%$VERSION%g
8046 s%@abs_top_srcdir@%$abs_top_srcdir%g
8047 s%@abs_top_builddir@%$abs_top_builddir%g
8049 s%@host_alias@%$host_alias%g
8050 s%@host_cpu@%$host_cpu%g
8051 s%@host_vendor@%$host_vendor%g
8052 s%@host_os@%$host_os%g
8053 s%@PORTNAME@%$PORTNAME%g
8055 s%@MULTIBYTE@%$MULTIBYTE%g
8056 s%@default_port@%$default_port%g
8057 s%@enable_shared@%$enable_shared%g
8058 s%@enable_rpath@%$enable_rpath%g
8060 s%@EXEEXT@%$EXEEXT%g
8063 s%@autodepend@%$autodepend%g
8064 s%@INCLUDES@%$INCLUDES%g
8065 s%@with_tcl@%$with_tcl%g
8066 s%@with_tk@%$with_tk%g
8067 s%@with_perl@%$with_perl%g
8068 s%@PYTHON@%$PYTHON%g
8069 s%@python_version@%$python_version%g
8070 s%@python_prefix@%$python_prefix%g
8071 s%@python_execprefix@%$python_execprefix%g
8072 s%@python_configdir@%$python_configdir%g
8073 s%@python_moduledir@%$python_moduledir%g
8074 s%@python_extmakefile@%$python_extmakefile%g
8075 s%@with_python@%$with_python%g
8076 s%@with_krb4@%$with_krb4%g
8077 s%@with_krb5@%$with_krb5%g
8078 s%@krb_srvtab@%$krb_srvtab%g
8079 s%@with_openssl@%$with_openssl%g
8080 s%@enable_odbc@%$enable_odbc%g
8081 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8082 s%@ELF_SYS@%$ELF_SYS%g
8084 s%@CXXCPP@%$CXXCPP%g
8086 s%@with_CXX@%$with_CXX%g
8087 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8088 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8089 s%@INSTALL_DATA@%$INSTALL_DATA%g
8090 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
8093 s%@FLEXFLAGS@%$FLEXFLAGS%g
8096 s%@with_gnu_ld@%$with_gnu_ld%g
8097 s%@ld_R_works@%$ld_R_works%g
8098 s%@RANLIB@%$RANLIB%g
8099 s%@LORDER@%$LORDER%g
8103 s%@YFLAGS@%$YFLAGS%g
8105 s%@SNPRINTF@%$SNPRINTF%g
8107 s%@GETRUSAGE@%$GETRUSAGE%g
8108 s%@SRANDOM@%$SRANDOM%g
8109 s%@GETHOSTNAME@%$GETHOSTNAME%g
8110 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8111 s%@INET_ATON@%$INET_ATON%g
8112 s%@STRERROR@%$STRERROR%g
8113 s%@STRDUP@%$STRDUP%g
8114 s%@STRTOL@%$STRTOL%g
8115 s%@STRTOUL@%$STRTOUL%g
8116 s%@STRCASECMP@%$STRCASECMP%g
8117 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8118 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8120 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8121 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8122 s%@NSGMLS@%$NSGMLS%g
8124 s%@have_docbook@%$have_docbook%g
8125 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8126 s%@SGMLSPL@%$SGMLSPL%g
8131 cat >> $CONFIG_STATUS <<\EOF
8133 # Split the substitutions into bite-sized pieces for seds with
8134 # small command number limits, like on Digital OSF/1 and HP-UX.
8135 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8136 ac_file=1 # Number of current file.
8137 ac_beg=1 # First line for current file.
8138 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8141 while $ac_more_lines; do
8142 if test $ac_beg -gt 1; then
8143 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8145 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8147 if test ! -s conftest.s$ac_file; then
8149 rm -f conftest.s$ac_file
8151 if test -z "$ac_sed_cmds"; then
8152 ac_sed_cmds="sed -f conftest.s$ac_file"
8154 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8156 ac_file=`expr $ac_file + 1`
8158 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8161 if test -z "$ac_sed_cmds"; then
8166 cat >> $CONFIG_STATUS <<EOF
8168 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8171 src/backend/port/Makefile
8174 cat >> $CONFIG_STATUS <<\EOF
8175 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8176 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8178 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8179 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8180 *) ac_file_in="${ac_file}.in" ;;
8183 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8185 # Remove last slash and all that follows it. Not all systems have dirname.
8186 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8187 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8188 # The file is in a subdirectory.
8189 test ! -d "$ac_dir" && mkdir "$ac_dir"
8190 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8191 # A "../" for each directory in $ac_dir_suffix.
8192 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8194 ac_dir_suffix= ac_dots=
8197 case "$ac_given_srcdir" in
8199 if test -z "$ac_dots"; then top_srcdir=.
8200 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8201 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8203 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8204 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8207 case "$ac_given_INSTALL" in
8208 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8209 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8212 echo creating "$ac_file"
8214 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8216 *Makefile*) ac_comsub="1i\\
8217 # $configure_input" ;;
8221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8223 s%@configure_input@%$configure_input%g
8224 s%@srcdir@%$srcdir%g
8225 s%@top_srcdir@%$top_srcdir%g
8226 s%@INSTALL@%$INSTALL%g
8227 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8231 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8232 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8234 # ac_d sets the value in "#define NAME VALUE" lines.
8235 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8236 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8239 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8240 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8241 ac_uB='\([ ]\)%\1#\2define\3'
8244 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8245 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8246 ac_eB='$%\1#\2define\3'
8250 if test "${CONFIG_HEADERS+set}" != set; then
8252 cat >> $CONFIG_STATUS <<EOF
8253 CONFIG_HEADERS="src/include/config.h"
8255 cat >> $CONFIG_STATUS <<\EOF
8257 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8260 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8261 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8262 *) ac_file_in="${ac_file}.in" ;;
8265 echo creating $ac_file
8267 rm -f conftest.frag conftest.in conftest.out
8268 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8269 cat $ac_file_inputs > conftest.in
8273 # Transform confdefs.h into a sed script conftest.vals that substitutes
8274 # the proper values into config.h.in to produce config.h. And first:
8275 # Protect against being on the right side of a sed subst in config.status.
8276 # Protect against being in an unquoted here document in config.status.
8278 cat > conftest.hdr <<\EOF
8281 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8285 sed -n -f conftest.hdr confdefs.h > conftest.vals
8288 # This sed command replaces #undef with comments. This is necessary, for
8289 # example, in the case of _POSIX_SOURCE, which is predefined and required
8290 # on some systems where configure will not decide to define it.
8291 cat >> conftest.vals <<\EOF
8292 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8295 # Break up conftest.vals because some shells have a limit on
8296 # the size of here documents, and old seds have small limits too.
8301 ac_lines=`grep -c . conftest.vals`
8302 # grep -c gives empty output for an empty file on some AIX systems.
8303 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8304 # Write a limited-size here document to conftest.frag.
8305 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8306 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8308 sed -f conftest.frag conftest.in > conftest.out
8310 mv conftest.out conftest.in
8312 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8314 mv conftest.tail conftest.vals
8318 cat >> $CONFIG_STATUS <<\EOF
8319 rm -f conftest.frag conftest.h
8320 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8321 cat conftest.in >> conftest.h
8323 if cmp -s $ac_file conftest.h 2>/dev/null; then
8324 echo "$ac_file is unchanged"
8327 # Remove last slash and all that follows it. Not all systems have dirname.
8328 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8329 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8330 # The file is in a subdirectory.
8331 test ! -d "$ac_dir" && mkdir "$ac_dir"
8334 mv conftest.h $ac_file
8340 cat >> $CONFIG_STATUS <<EOF
8341 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}"
8342 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8345 cat >> $CONFIG_STATUS <<\EOF
8346 srcdir=$ac_given_srcdir
8347 while test -n "$ac_sources"; do
8348 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8349 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8351 echo "linking $srcdir/$ac_source to $ac_dest"
8353 if test ! -r $srcdir/$ac_source; then
8354 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8358 # Make relative symlinks.
8359 # Remove last slash and all that follows it. Not all systems have dirname.
8360 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8361 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8362 # The dest file is in a subdirectory.
8363 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8364 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8365 # A "../" for each directory in $ac_dest_dir_suffix.
8366 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8368 ac_dest_dir_suffix= ac_dots=
8372 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8373 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8376 # Make a symlink if possible; otherwise try a hard link.
8377 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8378 ln $srcdir/$ac_source $ac_dest; then :
8380 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8384 cat >> $CONFIG_STATUS <<EOF
8387 cat >> $CONFIG_STATUS <<\EOF
8389 # Update timestamp for config.h (see Makefile.global)
8390 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8394 chmod +x $CONFIG_STATUS
8395 rm -fr confdefs* $ac_clean_files
8396 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1