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 # Need both of these because backend wants an integer and frontend a string
980 cat >> confdefs.h <<EOF
981 #define DEF_PGPORT ${default_port}
984 cat >> confdefs.h <<EOF
985 #define DEF_PGPORT_STR "${default_port}"
988 echo "$ac_t""$default_port" 1>&6
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 mawk gawk 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:
2723 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2724 should get version 2.5.4 or later.
2728 echo "configure: warning:
2730 Without Flex you won't be able to build PostgreSQL from scratch, or change
2731 any of the scanner definition files. You can obtain Flex from a GNU mirror
2732 site. (If you are using the official distribution of PostgreSQL then you
2733 do not need to worry about this because the lexer files are pre-generated.)
2737 if test x"$pgac_cv_path_flex" = x"no"; then
2740 FLEX=$pgac_cv_path_flex
2746 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2747 echo "configure:2748: checking whether ln -s works" >&5
2748 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2752 if ln -s X conftestdata 2>/dev/null
2755 ac_cv_prog_LN_S="ln -s"
2760 LN_S="$ac_cv_prog_LN_S"
2761 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2762 echo "$ac_t""yes" 1>&6
2764 echo "$ac_t""no" 1>&6
2767 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2768 if test "${with_gnu_ld+set}" = set; then
2769 withval="$with_gnu_ld"
2770 test "$withval" = no || with_gnu_ld=yes
2776 if test "$ac_cv_prog_gcc" = yes; then
2777 # Check if gcc -print-prog-name=ld gives a path.
2778 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2779 echo "configure:2780: checking for ld used by GCC" >&5
2782 # gcc leaves a trailing carriage return which upsets mingw
2783 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2785 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2788 # Accept absolute paths.
2789 [\\/]* | [A-Za-z]:[\\/]*)
2790 re_direlt='/[^/][^/]*/\.\./'
2791 # Canonicalize the path of ld
2792 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2793 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2794 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2796 test -z "$LD" && LD="$ac_prog"
2799 # If it fails, then pretend we aren't using GCC.
2803 # If it is relative, then search for the first ld in PATH.
2807 elif test "$with_gnu_ld" = yes; then
2808 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2809 echo "configure:2810: checking for GNU ld" >&5
2811 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2812 echo "configure:2813: checking for non-GNU ld" >&5
2814 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 if test -z "$LD"; then
2818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2819 for ac_dir in $PATH; do
2820 test -z "$ac_dir" && ac_dir=.
2821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2822 ac_cv_path_LD="$ac_dir/$ac_prog"
2823 # Check to see if the program is GNU ld. I'd rather use --version,
2824 # but apparently some GNU ld's only accept -v.
2825 # Break only if it was the GNU/non-GNU ld that we prefer.
2826 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2827 test "$with_gnu_ld" != no && break
2829 test "$with_gnu_ld" != yes && break
2835 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2840 if test -n "$LD"; then
2841 echo "$ac_t""$LD" 1>&6
2843 echo "$ac_t""no" 1>&6
2845 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2846 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2847 echo "configure:2848: checking if the linker ($LD) is GNU ld" >&5
2848 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2853 ac_cv_prog_gnu_ld=yes
2855 ac_cv_prog_gnu_ld=no
2859 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2860 with_gnu_ld=$ac_cv_prog_gnu_ld
2865 case $host_os in sysv5uw*)
2866 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2867 echo "configure:2868: checking whether ld -R works" >&5
2868 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2872 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2883 pgac_cv_prog_ld_R=yes
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 pgac_cv_prog_ld_R=no
2891 LDFLAGS=$pgac_save_LDFLAGS
2895 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2896 ld_R_works=$pgac_cv_prog_ld_R
2899 # Extract the first word of "ranlib", so it can be a program name with args.
2900 set dummy ranlib; ac_word=$2
2901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_word" >&5
2903 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test -n "$RANLIB"; then
2907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2911 for ac_dir in $ac_dummy; do
2912 test -z "$ac_dir" && ac_dir=.
2913 if test -f $ac_dir/$ac_word; then
2914 ac_cv_prog_RANLIB="ranlib"
2919 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2922 RANLIB="$ac_cv_prog_RANLIB"
2923 if test -n "$RANLIB"; then
2924 echo "$ac_t""$RANLIB" 1>&6
2926 echo "$ac_t""no" 1>&6
2929 for ac_prog in lorder
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2934 echo "configure:2935: checking for $ac_word" >&5
2935 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 if test -n "$LORDER"; then
2939 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2943 for ac_dir in $ac_dummy; do
2944 test -z "$ac_dir" && ac_dir=.
2945 if test -f $ac_dir/$ac_word; then
2946 ac_cv_prog_LORDER="$ac_prog"
2953 LORDER="$ac_cv_prog_LORDER"
2954 if test -n "$LORDER"; then
2955 echo "$ac_t""$LORDER" 1>&6
2957 echo "$ac_t""no" 1>&6
2960 test -n "$LORDER" && break
2963 # Extract the first word of "tar", so it can be a program name with args.
2964 set dummy tar; ac_word=$2
2965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2966 echo "configure:2967: checking for $ac_word" >&5
2967 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2972 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2975 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2980 for ac_dir in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_path_TAR="$ac_dir/$ac_word"
2991 TAR="$ac_cv_path_TAR"
2992 if test -n "$TAR"; then
2993 echo "$ac_t""$TAR" 1>&6
2995 echo "$ac_t""no" 1>&6
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3003 echo "configure:3004: checking for $ac_word" >&5
3004 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3005 echo $ac_n "(cached) $ac_c" 1>&6
3007 if test -n "$PERL"; then
3008 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3012 for ac_dir in $ac_dummy; do
3013 test -z "$ac_dir" && ac_dir=.
3014 if test -f $ac_dir/$ac_word; then
3015 ac_cv_prog_PERL="$ac_prog"
3022 PERL="$ac_cv_prog_PERL"
3023 if test -n "$PERL"; then
3024 echo "$ac_t""$PERL" 1>&6
3026 echo "$ac_t""no" 1>&6
3029 test -n "$PERL" && break
3032 for ac_prog in 'bison -y' byacc
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3037 echo "configure:3038: checking for $ac_word" >&5
3038 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 if test -n "$YACC"; then
3042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3046 for ac_dir in $ac_dummy; do
3047 test -z "$ac_dir" && ac_dir=.
3048 if test -f $ac_dir/$ac_word; then
3049 ac_cv_prog_YACC="$ac_prog"
3056 YACC="$ac_cv_prog_YACC"
3057 if test -n "$YACC"; then
3058 echo "$ac_t""$YACC" 1>&6
3060 echo "$ac_t""no" 1>&6
3063 test -n "$YACC" && break
3065 test -n "$YACC" || YACC="yacc"
3068 if test "$with_tk" = yes; then
3069 # Extract the first word of "wish", so it can be a program name with args.
3070 set dummy wish; ac_word=$2
3071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3072 echo "configure:3073: checking for $ac_word" >&5
3073 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3078 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3081 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_path_WISH="$ac_dir/$ac_word"
3097 WISH="$ac_cv_path_WISH"
3098 if test -n "$WISH"; then
3099 echo "$ac_t""$WISH" 1>&6
3101 echo "$ac_t""no" 1>&6
3104 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3112 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
3113 echo "configure:3114: checking for main in -lsfio" >&5
3114 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
3115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 ac_save_LIBS="$LIBS"
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3130 eval "ac_cv_lib_$ac_lib_var=yes"
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 eval "ac_cv_lib_$ac_lib_var=no"
3138 LIBS="$ac_save_LIBS"
3141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_lib 1
3152 echo "$ac_t""no" 1>&6
3155 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
3156 echo "configure:3157: checking for main in -lncurses" >&5
3157 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
3158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 ac_save_LIBS="$LIBS"
3162 LIBS="-lncurses $LIBS"
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3173 eval "ac_cv_lib_$ac_lib_var=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 eval "ac_cv_lib_$ac_lib_var=no"
3181 LIBS="$ac_save_LIBS"
3184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3188 cat >> confdefs.h <<EOF
3189 #define $ac_tr_lib 1
3192 LIBS="-lncurses $LIBS"
3195 echo "$ac_t""no" 1>&6
3196 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
3197 echo "configure:3198: checking for main in -lcurses" >&5
3198 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
3199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 ac_save_LIBS="$LIBS"
3203 LIBS="-lcurses $LIBS"
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3214 eval "ac_cv_lib_$ac_lib_var=yes"
3216 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5
3219 eval "ac_cv_lib_$ac_lib_var=no"
3222 LIBS="$ac_save_LIBS"
3225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3226 echo "$ac_t""yes" 1>&6
3227 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3229 cat >> confdefs.h <<EOF
3230 #define $ac_tr_lib 1
3233 LIBS="-lcurses $LIBS"
3236 echo "$ac_t""no" 1>&6
3241 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
3242 echo "configure:3243: checking for main in -ltermcap" >&5
3243 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
3244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 ac_save_LIBS="$LIBS"
3248 LIBS="-ltermcap $LIBS"
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3259 eval "ac_cv_lib_$ac_lib_var=yes"
3261 echo "configure: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3264 eval "ac_cv_lib_$ac_lib_var=no"
3267 LIBS="$ac_save_LIBS"
3270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3274 cat >> confdefs.h <<EOF
3275 #define $ac_tr_lib 1
3278 LIBS="-ltermcap $LIBS"
3281 echo "$ac_t""no" 1>&6
3284 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3285 echo "configure:3286: checking for readline in -lreadline" >&5
3286 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 ac_save_LIBS="$LIBS"
3291 LIBS="-lreadline $LIBS"
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3304 if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 eval "ac_cv_lib_$ac_lib_var=yes"
3308 echo "configure: failed program was:" >&5
3309 cat conftest.$ac_ext >&5
3311 eval "ac_cv_lib_$ac_lib_var=no"
3314 LIBS="$ac_save_LIBS"
3317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3318 echo "$ac_t""yes" 1>&6
3319 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3320 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3321 cat >> confdefs.h <<EOF
3322 #define $ac_tr_lib 1
3325 LIBS="-lreadline $LIBS"
3328 echo "$ac_t""no" 1>&6
3332 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3333 echo "configure:3334: checking for library containing using_history" >&5
3334 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 ac_func_search_save_LIBS="$LIBS"
3338 ac_cv_search_using_history="no"
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345 char using_history();
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3353 ac_cv_search_using_history="none required"
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3359 test "$ac_cv_search_using_history" = "no" && for i in history; do
3360 LIBS="-l$i $ac_func_search_save_LIBS"
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3367 char using_history();
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 ac_cv_search_using_history="-l$i"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3383 LIBS="$ac_func_search_save_LIBS"
3386 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3387 if test "$ac_cv_search_using_history" != "no"; then
3388 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3389 cat >> confdefs.h <<\EOF
3390 #define HAVE_HISTORY_FUNCTIONS 1
3397 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3399 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3400 echo "configure:3401: checking for main in -lbsd" >&5
3401 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 ac_save_LIBS="$LIBS"
3407 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure"
3409 #include "confdefs.h"
3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417 eval "ac_cv_lib_$ac_lib_var=yes"
3419 echo "configure: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3422 eval "ac_cv_lib_$ac_lib_var=no"
3425 LIBS="$ac_save_LIBS"
3428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3429 echo "$ac_t""yes" 1>&6
3430 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3431 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3432 cat >> confdefs.h <<EOF
3433 #define $ac_tr_lib 1
3439 echo "$ac_t""no" 1>&6
3443 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3444 echo "configure:3445: checking for setproctitle in -lutil" >&5
3445 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS="$LIBS"
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3457 char setproctitle();
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 eval "ac_cv_lib_$ac_lib_var=no"
3473 LIBS="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3480 cat >> confdefs.h <<EOF
3481 #define $ac_tr_lib 1
3487 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3491 echo "configure:3492: checking for main in -lm" >&5
3492 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 ac_save_LIBS="$LIBS"
3498 cat > conftest.$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_lib_$ac_lib_var=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_lib_$ac_lib_var=no"
3516 LIBS="$ac_save_LIBS"
3519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3522 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3523 cat >> confdefs.h <<EOF
3524 #define $ac_tr_lib 1
3530 echo "$ac_t""no" 1>&6
3533 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3534 echo "configure:3535: checking for main in -ldl" >&5
3535 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 ac_save_LIBS="$LIBS"
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3551 eval "ac_cv_lib_$ac_lib_var=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 eval "ac_cv_lib_$ac_lib_var=no"
3559 LIBS="$ac_save_LIBS"
3562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3564 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_lib 1
3573 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3577 echo "configure:3578: checking for main in -lsocket" >&5
3578 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 ac_save_LIBS="$LIBS"
3583 LIBS="-lsocket $LIBS"
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3594 eval "ac_cv_lib_$ac_lib_var=yes"
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3599 eval "ac_cv_lib_$ac_lib_var=no"
3602 LIBS="$ac_save_LIBS"
3605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3609 cat >> confdefs.h <<EOF
3610 #define $ac_tr_lib 1
3613 LIBS="-lsocket $LIBS"
3616 echo "$ac_t""no" 1>&6
3619 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3620 echo "configure:3621: checking for main in -lnsl" >&5
3621 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS="$LIBS"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 eval "ac_cv_lib_$ac_lib_var=yes"
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 eval "ac_cv_lib_$ac_lib_var=no"
3645 LIBS="$ac_save_LIBS"
3648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3651 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3652 cat >> confdefs.h <<EOF
3653 #define $ac_tr_lib 1
3659 echo "$ac_t""no" 1>&6
3662 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3663 echo "configure:3664: checking for main in -lipc" >&5
3664 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 ac_save_LIBS="$LIBS"
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3678 if { (eval echo configure:3679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 eval "ac_cv_lib_$ac_lib_var=yes"
3682 echo "configure: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 eval "ac_cv_lib_$ac_lib_var=no"
3688 LIBS="$ac_save_LIBS"
3691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3693 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3694 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3695 cat >> confdefs.h <<EOF
3696 #define $ac_tr_lib 1
3702 echo "$ac_t""no" 1>&6
3705 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3706 echo "configure:3707: checking for main in -lIPC" >&5
3707 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 ac_save_LIBS="$LIBS"
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3721 if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3723 eval "ac_cv_lib_$ac_lib_var=yes"
3725 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5
3728 eval "ac_cv_lib_$ac_lib_var=no"
3731 LIBS="$ac_save_LIBS"
3734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3738 cat >> confdefs.h <<EOF
3739 #define $ac_tr_lib 1
3745 echo "$ac_t""no" 1>&6
3748 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3749 echo "configure:3750: checking for main in -llc" >&5
3750 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 ac_save_LIBS="$LIBS"
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3766 eval "ac_cv_lib_$ac_lib_var=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3771 eval "ac_cv_lib_$ac_lib_var=no"
3774 LIBS="$ac_save_LIBS"
3777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3778 echo "$ac_t""yes" 1>&6
3779 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3780 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3781 cat >> confdefs.h <<EOF
3782 #define $ac_tr_lib 1
3788 echo "$ac_t""no" 1>&6
3791 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3792 echo "configure:3793: checking for main in -ldld" >&5
3793 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 ac_save_LIBS="$LIBS"
3799 cat > conftest.$ac_ext <<EOF
3800 #line 3801 "configure"
3801 #include "confdefs.h"
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_lib_$ac_lib_var=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_lib_$ac_lib_var=no"
3817 LIBS="$ac_save_LIBS"
3820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3822 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3823 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3824 cat >> confdefs.h <<EOF
3825 #define $ac_tr_lib 1
3831 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3835 echo "configure:3836: checking for main in -lld" >&5
3836 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3837 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 ac_save_LIBS="$LIBS"
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3850 if { (eval echo configure:3851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 eval "ac_cv_lib_$ac_lib_var=yes"
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 eval "ac_cv_lib_$ac_lib_var=no"
3860 LIBS="$ac_save_LIBS"
3863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3864 echo "$ac_t""yes" 1>&6
3865 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3867 cat >> confdefs.h <<EOF
3868 #define $ac_tr_lib 1
3874 echo "$ac_t""no" 1>&6
3877 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3878 echo "configure:3879: checking for main in -lcompat" >&5
3879 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3883 ac_save_LIBS="$LIBS"
3884 LIBS="-lcompat $LIBS"
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 eval "ac_cv_lib_$ac_lib_var=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_lib_$ac_lib_var=no"
3903 LIBS="$ac_save_LIBS"
3906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3907 echo "$ac_t""yes" 1>&6
3908 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3909 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3910 cat >> confdefs.h <<EOF
3911 #define $ac_tr_lib 1
3914 LIBS="-lcompat $LIBS"
3917 echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3921 echo "configure:3922: checking for main in -lBSD" >&5
3922 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3924 echo $ac_n "(cached) $ac_c" 1>&6
3926 ac_save_LIBS="$LIBS"
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3938 eval "ac_cv_lib_$ac_lib_var=yes"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3943 eval "ac_cv_lib_$ac_lib_var=no"
3946 LIBS="$ac_save_LIBS"
3949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3953 cat >> confdefs.h <<EOF
3954 #define $ac_tr_lib 1
3960 echo "$ac_t""no" 1>&6
3963 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3964 echo "configure:3965: checking for main in -lgen" >&5
3965 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 ac_save_LIBS="$LIBS"
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 eval "ac_cv_lib_$ac_lib_var=yes"
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3986 eval "ac_cv_lib_$ac_lib_var=no"
3989 LIBS="$ac_save_LIBS"
3992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3995 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3996 cat >> confdefs.h <<EOF
3997 #define $ac_tr_lib 1
4003 echo "$ac_t""no" 1>&6
4006 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4007 echo "configure:4008: checking for main in -lPW" >&5
4008 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS="$LIBS"
4014 cat > conftest.$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 eval "ac_cv_lib_$ac_lib_var=yes"
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 eval "ac_cv_lib_$ac_lib_var=no"
4032 LIBS="$ac_save_LIBS"
4035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4037 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4039 cat >> confdefs.h <<EOF
4040 #define $ac_tr_lib 1
4046 echo "$ac_t""no" 1>&6
4050 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4051 echo "configure:4052: checking for library containing crypt" >&5
4052 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4053 echo $ac_n "(cached) $ac_c" 1>&6
4055 ac_func_search_save_LIBS="$LIBS"
4056 ac_cv_search_crypt="no"
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4060 /* Override any gcc2 internal prototype to avoid an error. */
4061 /* We use char because int might match the return type of a gcc2
4062 builtin and then its argument prototype would still apply. */
4069 if { (eval echo configure:4070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 ac_cv_search_crypt="none required"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4077 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4078 LIBS="-l$i $ac_func_search_save_LIBS"
4079 cat > conftest.$ac_ext <<EOF
4080 #line 4081 "configure"
4081 #include "confdefs.h"
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 ac_cv_search_crypt="-l$i"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4101 LIBS="$ac_func_search_save_LIBS"
4104 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4105 if test "$ac_cv_search_crypt" != "no"; then
4106 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4111 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4112 echo "configure:4113: checking for inflate in -lz" >&5
4113 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_save_LIBS="$LIBS"
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4133 eval "ac_cv_lib_$ac_lib_var=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_lib_$ac_lib_var=no"
4141 LIBS="$ac_save_LIBS"
4144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4146 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4147 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4148 cat >> confdefs.h <<EOF
4149 #define $ac_tr_lib 1
4155 echo "$ac_t""no" 1>&6
4158 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4159 echo "configure:4160: checking for __inet_ntoa in -lbind" >&5
4160 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_lib_$ac_lib_var=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_lib_$ac_lib_var=no"
4188 LIBS="$ac_save_LIBS"
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4195 cat >> confdefs.h <<EOF
4196 #define $ac_tr_lib 1
4202 echo "$ac_t""no" 1>&6
4207 if test "$with_krb4" = yes ; then
4208 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4209 echo "configure:4210: checking for des_encrypt in -ldes" >&5
4210 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS="$LIBS"
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_lib 1
4252 echo "$ac_t""no" 1>&6
4253 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4256 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4257 echo "configure:4258: checking for krb_sendauth in -lkrb" >&5
4258 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_save_LIBS="$LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4270 char krb_sendauth();
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 eval "ac_cv_lib_$ac_lib_var=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 eval "ac_cv_lib_$ac_lib_var=no"
4286 LIBS="$ac_save_LIBS"
4289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4290 echo "$ac_t""yes" 1>&6
4291 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4292 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4293 cat >> confdefs.h <<EOF
4294 #define $ac_tr_lib 1
4300 echo "$ac_t""no" 1>&6
4301 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4306 if test "$with_krb5" = yes ; then
4307 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4308 echo "configure:4309: checking for com_err in -lcom_err" >&5
4309 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 ac_save_LIBS="$LIBS"
4314 LIBS="-lcom_err $LIBS"
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* Override any gcc2 internal prototype to avoid an error. */
4319 /* We use char because int might match the return type of a gcc2
4320 builtin and then its argument prototype would still apply. */
4327 if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4329 eval "ac_cv_lib_$ac_lib_var=yes"
4331 echo "configure: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4334 eval "ac_cv_lib_$ac_lib_var=no"
4337 LIBS="$ac_save_LIBS"
4340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4341 echo "$ac_t""yes" 1>&6
4342 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4344 cat >> confdefs.h <<EOF
4345 #define $ac_tr_lib 1
4348 LIBS="-lcom_err $LIBS"
4351 echo "$ac_t""no" 1>&6
4352 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4355 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4356 echo "configure:4357: checking for krb5_encrypt in -lcrypto" >&5
4357 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4361 ac_save_LIBS="$LIBS"
4362 LIBS="-lcrypto $LIBS"
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 /* Override any gcc2 internal prototype to avoid an error. */
4367 /* We use char because int might match the return type of a gcc2
4368 builtin and then its argument prototype would still apply. */
4369 char krb5_encrypt();
4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4377 eval "ac_cv_lib_$ac_lib_var=yes"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4382 eval "ac_cv_lib_$ac_lib_var=no"
4385 LIBS="$ac_save_LIBS"
4388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4392 cat >> confdefs.h <<EOF
4393 #define $ac_tr_lib 1
4396 LIBS="-lcrypto $LIBS"
4399 echo "$ac_t""no" 1>&6
4400 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4401 echo "configure:4402: checking for krb5_encrypt in -lk5crypto" >&5
4402 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 ac_save_LIBS="$LIBS"
4407 LIBS="-lk5crypto $LIBS"
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 /* Override any gcc2 internal prototype to avoid an error. */
4412 /* We use char because int might match the return type of a gcc2
4413 builtin and then its argument prototype would still apply. */
4414 char krb5_encrypt();
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 eval "ac_cv_lib_$ac_lib_var=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_lib_$ac_lib_var=no"
4430 LIBS="$ac_save_LIBS"
4433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4437 cat >> confdefs.h <<EOF
4438 #define $ac_tr_lib 1
4441 LIBS="-lk5crypto $LIBS"
4444 echo "$ac_t""no" 1>&6
4445 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4450 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4451 echo "configure:4452: checking for krb5_sendauth in -lkrb5" >&5
4452 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 ac_save_LIBS="$LIBS"
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char krb5_sendauth();
4470 if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 eval "ac_cv_lib_$ac_lib_var=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 eval "ac_cv_lib_$ac_lib_var=no"
4480 LIBS="$ac_save_LIBS"
4483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4487 cat >> confdefs.h <<EOF
4488 #define $ac_tr_lib 1
4494 echo "$ac_t""no" 1>&6
4495 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4500 if test "$with_openssl" = yes ; then
4501 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4502 echo "configure:4503: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4503 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 ac_save_LIBS="$LIBS"
4508 LIBS="-lcrypto $LIBS"
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515 char CRYPTO_new_ex_data();
4518 CRYPTO_new_ex_data()
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4523 eval "ac_cv_lib_$ac_lib_var=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 eval "ac_cv_lib_$ac_lib_var=no"
4531 LIBS="$ac_save_LIBS"
4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4538 cat >> confdefs.h <<EOF
4539 #define $ac_tr_lib 1
4542 LIBS="-lcrypto $LIBS"
4545 echo "$ac_t""no" 1>&6
4546 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4549 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4550 echo "configure:4551: checking for SSL_library_init in -lssl" >&5
4551 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 ac_save_LIBS="$LIBS"
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char SSL_library_init();
4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4571 eval "ac_cv_lib_$ac_lib_var=yes"
4573 echo "configure: failed program was:" >&5
4574 cat conftest.$ac_ext >&5
4576 eval "ac_cv_lib_$ac_lib_var=no"
4579 LIBS="$ac_save_LIBS"
4582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4583 echo "$ac_t""yes" 1>&6
4584 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4586 cat >> confdefs.h <<EOF
4587 #define $ac_tr_lib 1
4593 echo "$ac_t""no" 1>&6
4594 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4603 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
4605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4607 echo "configure:4608: checking for $ac_hdr" >&5
4608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4617 { (eval echo configure:4618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4619 if test -z "$ac_err"; then
4621 eval "ac_cv_header_$ac_safe=yes"
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 eval "ac_cv_header_$ac_safe=no"
4631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_hdr 1
4639 echo "$ac_t""no" 1>&6
4644 for ac_hdr in netinet/in.h
4646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4648 echo "configure:4649: checking for $ac_hdr" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4658 { (eval echo configure:4659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4660 if test -z "$ac_err"; then
4662 eval "ac_cv_header_$ac_safe=yes"
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4668 eval "ac_cv_header_$ac_safe=no"
4672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4673 echo "$ac_t""yes" 1>&6
4674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4675 cat >> confdefs.h <<EOF
4676 #define $ac_tr_hdr 1
4680 echo "$ac_t""no" 1>&6
4684 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4685 echo "configure:4686: checking for netinet/tcp.h" >&5
4686 cat > conftest.$ac_ext <<EOF
4687 #line 4688 "configure"
4688 #include "confdefs.h"
4690 #ifdef HAVE_NETINET_IN_H
4691 #include <netinet/in.h>
4693 #include <netinet/tcp.h>
4696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4697 { (eval echo configure:4698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4699 if test -z "$ac_err"; then
4701 cat >> confdefs.h <<\EOF
4702 #define HAVE_NETINET_TCP_H 1
4704 echo "$ac_t""yes" 1>&6
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 echo "$ac_t""no" 1>&6
4714 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4715 echo "configure:4716: checking whether string.h and strings.h may both be included" >&5
4716 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4723 #include <strings.h>
4726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4727 { (eval echo configure:4728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4729 if test -z "$ac_err"; then
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4735 #include <strings.h>
4738 int n = strcasecmp("a", "b");
4741 if { (eval echo configure:4742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4743 pgac_cv_header_strings_both=yes
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 pgac_cv_header_strings_both=no
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 pgac_cv_header_strings_both=no
4761 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4762 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4763 cat >> confdefs.h <<\EOF
4764 #define STRING_H_WITH_STRINGS_H 1
4769 for ac_hdr in readline/readline.h readline.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4809 for ac_hdr in readline/history.h history.h
4811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_hdr" >&5
4814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4823 { (eval echo configure:4824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4825 if test -z "$ac_err"; then
4827 eval "ac_cv_header_$ac_safe=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_header_$ac_safe=no"
4837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4840 cat >> confdefs.h <<EOF
4841 #define $ac_tr_hdr 1
4845 echo "$ac_t""no" 1>&6
4850 if test "$with_krb4" = yes ; then
4851 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4852 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4853 echo "configure:4854: checking for krb.h" >&5
4854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4863 { (eval echo configure:4864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4865 if test -z "$ac_err"; then
4867 eval "ac_cv_header_$ac_safe=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_header_$ac_safe=no"
4877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4881 echo "$ac_t""no" 1>&6
4882 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4887 if test "$with_krb5" = yes ; then
4888 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4890 echo "configure:4891: checking for krb5.h" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4918 echo "$ac_t""no" 1>&6
4919 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4922 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4923 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4924 echo "configure:4925: checking for com_err.h" >&5
4925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4926 echo $ac_n "(cached) $ac_c" 1>&6
4928 cat > conftest.$ac_ext <<EOF
4929 #line 4930 "configure"
4930 #include "confdefs.h"
4931 #include <com_err.h>
4933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4934 { (eval echo configure:4935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4936 if test -z "$ac_err"; then
4938 eval "ac_cv_header_$ac_safe=yes"
4941 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4944 eval "ac_cv_header_$ac_safe=no"
4948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4949 echo "$ac_t""yes" 1>&6
4952 echo "$ac_t""no" 1>&6
4953 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4958 if test "$with_openssl" = yes ; then
4959 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4960 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4961 echo "configure:4962: checking for openssl/ssl.h" >&5
4962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 #include <openssl/ssl.h>
4970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4971 { (eval echo configure:4972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4973 if test -z "$ac_err"; then
4975 eval "ac_cv_header_$ac_safe=yes"
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 eval "ac_cv_header_$ac_safe=no"
4985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4989 echo "$ac_t""no" 1>&6
4990 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4993 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4994 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4995 echo "configure:4996: checking for openssl/err.h" >&5
4996 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 cat > conftest.$ac_ext <<EOF
5000 #line 5001 "configure"
5001 #include "confdefs.h"
5002 #include <openssl/err.h>
5004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5005 { (eval echo configure:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5007 if test -z "$ac_err"; then
5009 eval "ac_cv_header_$ac_safe=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.$ac_ext >&5
5015 eval "ac_cv_header_$ac_safe=no"
5019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5020 echo "$ac_t""yes" 1>&6
5023 echo "$ac_t""no" 1>&6
5024 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5031 ## Types, structures, compiler characteristics
5033 echo $ac_n "checking for working const""... $ac_c" 1>&6
5034 echo "configure:5035: checking for working const" >&5
5035 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5044 /* Ultrix mips cc rejects this. */
5045 typedef int charset[2]; const charset x;
5046 /* SunOS 4.1.1 cc rejects this. */
5047 char const *const *ccp;
5049 /* NEC SVR4.0.2 mips cc rejects this. */
5050 struct point {int x, y;};
5051 static struct point const zero = {0,0};
5052 /* AIX XL C 1.02.0.0 rejects this.
5053 It does not let you subtract one const X* pointer from another in an arm
5054 of an if-expression whose if-part is not a constant expression */
5055 const char *g = "string";
5056 ccp = &g + (g ? g-g : 0);
5057 /* HPUX 7.0 cc rejects these. */
5060 ccp = (char const *const *) p;
5061 { /* SCO 3.2v4 cc rejects this. */
5063 char const *s = 0 ? (char *) 0 : (char const *) 0;
5067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5069 const int *foo = &x[0];
5072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5073 typedef const int *iptr;
5077 { /* AIX XL C 1.02.0.0 rejects this saying
5078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5079 struct s { int j; const int *ap[3]; };
5080 struct s *b; b->j = 5;
5082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5088 if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5
5100 echo "$ac_t""$ac_cv_c_const" 1>&6
5101 if test $ac_cv_c_const = no; then
5102 cat >> confdefs.h <<\EOF
5108 echo $ac_n "checking for inline""... $ac_c" 1>&6
5109 echo "configure:5110: checking for inline" >&5
5110 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5111 echo $ac_n "(cached) $ac_c" 1>&6
5114 for ac_kw in inline __inline__ __inline; do
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5123 if { (eval echo configure:5124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5125 ac_cv_c_inline=$ac_kw; break
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5135 echo "$ac_t""$ac_cv_c_inline" 1>&6
5136 case "$ac_cv_c_inline" in
5138 no) cat >> confdefs.h <<\EOF
5142 *) cat >> confdefs.h <<EOF
5143 #define inline $ac_cv_c_inline
5150 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5151 echo "configure:5152: checking for preprocessor stringizing operator" >&5
5152 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5161 char *s = x(teststring);
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 egrep "#teststring" >/dev/null 2>&1; then
5167 ac_cv_c_stringize=no
5170 ac_cv_c_stringize=yes
5176 if test "${ac_cv_c_stringize}" = yes
5178 cat >> confdefs.h <<\EOF
5179 #define HAVE_STRINGIZE 1
5183 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5185 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5186 echo "configure:5187: checking for signed types" >&5
5187 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5195 signed char c; signed short s; signed int i;
5198 if { (eval echo configure:5199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5200 pgac_cv_c_signed=yes
5202 echo "configure: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5210 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5211 if test x"$pgac_cv_c_signed" = xno ; then
5212 cat >> confdefs.h <<\EOF
5217 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5218 echo "configure:5219: checking for volatile" >&5
5219 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5222 cat > conftest.$ac_ext <<EOF
5223 #line 5224 "configure"
5224 #include "confdefs.h"
5227 extern volatile int i;
5230 if { (eval echo configure:5231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5232 pgac_cv_c_volatile=yes
5234 echo "configure: failed program was:" >&5
5235 cat conftest.$ac_ext >&5
5237 pgac_cv_c_volatile=no
5242 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5243 if test x"$pgac_cv_c_volatile" = xno ; then
5244 cat >> confdefs.h <<\EOF
5249 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5250 echo "configure:5251: checking whether struct tm is in sys/time.h or time.h" >&5
5251 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure"
5256 #include "confdefs.h"
5257 #include <sys/types.h>
5260 struct tm *tp; tp->tm_sec;
5263 if { (eval echo configure:5264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5265 ac_cv_struct_tm=time.h
5267 echo "configure: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5270 ac_cv_struct_tm=sys/time.h
5275 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5276 if test $ac_cv_struct_tm = sys/time.h; then
5277 cat >> confdefs.h <<\EOF
5278 #define TM_IN_SYS_TIME 1
5283 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5284 echo "configure:5285: checking for tm_zone in struct tm" >&5
5285 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5288 cat > conftest.$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5291 #include <sys/types.h>
5292 #include <$ac_cv_struct_tm>
5294 struct tm tm; tm.tm_zone;
5297 if { (eval echo configure:5298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5299 ac_cv_struct_tm_zone=yes
5301 echo "configure: failed program was:" >&5
5302 cat conftest.$ac_ext >&5
5304 ac_cv_struct_tm_zone=no
5309 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5310 if test "$ac_cv_struct_tm_zone" = yes; then
5311 cat >> confdefs.h <<\EOF
5312 #define HAVE_TM_ZONE 1
5316 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5317 echo "configure:5318: checking for tzname" >&5
5318 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5325 #ifndef tzname /* For SGI. */
5326 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5334 ac_cv_var_tzname=yes
5336 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5
5344 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5345 if test $ac_cv_var_tzname = yes; then
5346 cat >> confdefs.h <<\EOF
5347 #define HAVE_TZNAME 1
5353 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5354 echo "configure:5355: checking for union semun" >&5
5355 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5361 #include <sys/types.h>
5362 #include <sys/ipc.h>
5363 #include <sys/sem.h>
5368 if { (eval echo configure:5369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5370 pgac_cv_union_semun=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 pgac_cv_union_semun=no
5380 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5381 if test x"$pgac_cv_union_semun" = xyes ; then
5382 cat >> confdefs.h <<\EOF
5383 #define HAVE_UNION_SEMUN 1
5387 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5388 echo "configure:5389: checking for struct sockaddr_un" >&5
5389 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 #include <sys/types.h>
5396 #ifdef HAVE_SYS_UN_H
5400 struct sockaddr_un un;
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 pgac_cv_struct_sockaddr_un=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 pgac_cv_struct_sockaddr_un=no
5415 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5416 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5417 cat >> confdefs.h <<\EOF
5418 #define HAVE_STRUCT_SOCKADDR_UN 1
5424 ## Functions, global variables
5426 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5427 echo "configure:5428: checking for int timezone" >&5
5428 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5436 int res = timezone / 60;
5439 if { (eval echo configure:5440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5441 pgac_cv_var_int_timezone=yes
5443 echo "configure: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 pgac_cv_var_int_timezone=no
5451 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5452 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5453 cat >> confdefs.h <<\EOF
5454 #define HAVE_INT_TIMEZONE
5458 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5459 echo "configure:5460: checking types of arguments for accept()" >&5
5460 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5467 echo $ac_n "(cached) $ac_c" 1>&6
5469 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5470 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5471 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 #ifdef HAVE_SYS_TYPES_H
5476 #include <sys/types.h>
5478 #ifdef HAVE_SYS_SOCKET_H
5479 #include <sys/socket.h>
5481 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 ac_not_found=no; break 3
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5499 if test "$ac_not_found" = yes; then
5500 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5502 if test "$ac_cv_func_accept_arg3" = "void"; then
5503 ac_cv_func_accept_arg3=int
5511 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5512 cat >> confdefs.h <<EOF
5513 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5516 cat >> confdefs.h <<EOF
5517 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5520 cat >> confdefs.h <<EOF
5521 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5525 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5526 echo "configure:5527: checking whether gettimeofday takes only one argument" >&5
5527 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5528 echo $ac_n "(cached) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure"
5532 #include "confdefs.h"
5533 #include <sys/time.h>
5536 struct timezone *tzp;
5537 gettimeofday(tp,tzp);
5540 if { (eval echo configure:5541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5542 pgac_cv_func_gettimeofday_1arg=no
5544 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5
5547 pgac_cv_func_gettimeofday_1arg=yes
5552 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5553 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5554 cat >> confdefs.h <<\EOF
5555 #define GETTIMEOFDAY_1ARG
5560 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5563 echo "configure:5564: checking for $ac_func" >&5
5564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5565 echo $ac_n "(cached) $ac_c" 1>&6
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5570 /* System header to define __stub macros and hopefully few prototypes,
5571 which can conflict with char $ac_func(); below. */
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5591 if { (eval echo configure:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 eval "ac_cv_func_$ac_func=yes"
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5598 eval "ac_cv_func_$ac_func=no"
5603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5604 echo "$ac_t""yes" 1>&6
5605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5606 cat >> confdefs.h <<EOF
5607 #define $ac_tr_func 1
5611 echo "$ac_t""no" 1>&6
5616 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5617 echo "configure:5618: checking for PS_STRINGS" >&5
5618 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 #include <machine/vmparam.h>
5625 #include <sys/exec.h>
5628 PS_STRINGS->ps_nargvstr = 1;
5629 PS_STRINGS->ps_argvstr = "foo";
5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 pgac_cv_var_PS_STRINGS=yes
5636 echo "configure: failed program was:" >&5
5637 cat conftest.$ac_ext >&5
5639 pgac_cv_var_PS_STRINGS=no
5644 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5645 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5646 cat >> confdefs.h <<\EOF
5647 #define HAVE_PS_STRINGS
5653 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5654 echo "configure:5655: checking for snprintf" >&5
5655 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5656 echo $ac_n "(cached) $ac_c" 1>&6
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure"
5660 #include "confdefs.h"
5661 /* System header to define __stub macros and hopefully few prototypes,
5662 which can conflict with char snprintf(); below. */
5664 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5671 /* The GNU C library defines this for functions which it implements
5672 to always fail with ENOSYS. Some functions are actually named
5673 something starting with __ and the normal name is an alias. */
5674 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5684 eval "ac_cv_func_snprintf=yes"
5686 echo "configure: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5689 eval "ac_cv_func_snprintf=no"
5694 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 cat >> confdefs.h <<\EOF
5697 #define HAVE_SNPRINTF 1
5701 echo "$ac_t""no" 1>&6
5702 SNPRINTF='snprintf.o'
5705 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5706 echo "configure:5707: checking for vsnprintf" >&5
5707 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 cat > conftest.$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char vsnprintf(); below. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5723 /* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5734 if { (eval echo configure:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5736 eval "ac_cv_func_vsnprintf=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.$ac_ext >&5
5741 eval "ac_cv_func_vsnprintf=no"
5746 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 cat >> confdefs.h <<\EOF
5749 #define HAVE_VSNPRINTF 1
5753 echo "$ac_t""no" 1>&6
5754 SNPRINTF='snprintf.o'
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5764 egrep "snprintf" >/dev/null 2>&1; then
5766 cat >> confdefs.h <<\EOF
5767 #define HAVE_SNPRINTF_DECL 1
5773 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure"
5775 #include "confdefs.h"
5778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5779 egrep "vsnprintf" >/dev/null 2>&1; then
5781 cat >> confdefs.h <<\EOF
5782 #define HAVE_VSNPRINTF_DECL 1
5789 # do this one the hard way in case isinf() is a macro
5790 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5791 echo "configure:5792: checking for isinf" >&5
5792 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5801 double x = 0.0; int res = isinf(x);
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5806 ac_cv_func_isinf=yes
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5816 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5818 if test $ac_cv_func_isinf = yes ; then
5819 cat >> confdefs.h <<\EOF
5820 #define HAVE_ISINF 1
5826 # Look for a way to implement a substitute for isinf()
5827 for ac_func in fpclass fp_class fp_class_d class
5829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5830 echo "configure:5831: checking for $ac_func" >&5
5831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 /* System header to define __stub macros and hopefully few prototypes,
5838 which can conflict with char $ac_func(); below. */
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5847 /* The GNU C library defines this for functions which it implements
5848 to always fail with ENOSYS. Some functions are actually named
5849 something starting with __ and the normal name is an alias. */
5850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_func_$ac_func=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_func_$ac_func=no"
5870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5871 echo "$ac_t""yes" 1>&6
5872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5873 cat >> confdefs.h <<EOF
5874 #define $ac_tr_func 1
5878 echo "$ac_t""no" 1>&6
5885 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5886 echo "configure:5887: checking for getrusage" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char getrusage(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916 eval "ac_cv_func_getrusage=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5921 eval "ac_cv_func_getrusage=no"
5926 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 cat >> confdefs.h <<\EOF
5929 #define HAVE_GETRUSAGE 1
5933 echo "$ac_t""no" 1>&6
5934 GETRUSAGE='getrusage.o'
5938 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5939 echo "configure:5940: checking for srandom" >&5
5940 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* System header to define __stub macros and hopefully few prototypes,
5947 which can conflict with char srandom(); below. */
5949 /* Override any gcc2 internal prototype to avoid an error. */
5950 /* We use char because int might match the return type of a gcc2
5951 builtin and then its argument prototype would still apply. */
5956 /* The GNU C library defines this for functions which it implements
5957 to always fail with ENOSYS. Some functions are actually named
5958 something starting with __ and the normal name is an alias. */
5959 #if defined (__stub_srandom) || defined (__stub___srandom)
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5969 eval "ac_cv_func_srandom=yes"
5971 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 eval "ac_cv_func_srandom=no"
5979 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5980 echo "$ac_t""yes" 1>&6
5981 cat >> confdefs.h <<\EOF
5982 #define HAVE_SRANDOM 1
5986 echo "$ac_t""no" 1>&6
5991 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5992 echo "configure:5993: checking for gethostname" >&5
5993 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5994 echo $ac_n "(cached) $ac_c" 1>&6
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 /* System header to define __stub macros and hopefully few prototypes,
6000 which can conflict with char gethostname(); below. */
6002 /* Override any gcc2 internal prototype to avoid an error. */
6003 /* We use char because int might match the return type of a gcc2
6004 builtin and then its argument prototype would still apply. */
6009 /* The GNU C library defines this for functions which it implements
6010 to always fail with ENOSYS. Some functions are actually named
6011 something starting with __ and the normal name is an alias. */
6012 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6020 if { (eval echo configure:6021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6022 eval "ac_cv_func_gethostname=yes"
6024 echo "configure: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6027 eval "ac_cv_func_gethostname=no"
6032 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6033 echo "$ac_t""yes" 1>&6
6034 cat >> confdefs.h <<\EOF
6035 #define HAVE_GETHOSTNAME 1
6039 echo "$ac_t""no" 1>&6
6040 GETHOSTNAME='gethostname.o'
6044 echo $ac_n "checking for random""... $ac_c" 1>&6
6045 echo "configure:6046: checking for random" >&5
6046 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 /* System header to define __stub macros and hopefully few prototypes,
6053 which can conflict with char random(); below. */
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6062 /* The GNU C library defines this for functions which it implements
6063 to always fail with ENOSYS. Some functions are actually named
6064 something starting with __ and the normal name is an alias. */
6065 #if defined (__stub_random) || defined (__stub___random)
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075 eval "ac_cv_func_random=yes"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 eval "ac_cv_func_random=no"
6085 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 cat >> confdefs.h <<\EOF
6088 #define HAVE_RANDOM 1
6092 echo "$ac_t""no" 1>&6
6093 MISSING_RANDOM='random.o'
6097 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6098 echo "configure:6099: checking for inet_aton" >&5
6099 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6100 echo $ac_n "(cached) $ac_c" 1>&6
6102 cat > conftest.$ac_ext <<EOF
6103 #line 6104 "configure"
6104 #include "confdefs.h"
6105 /* System header to define __stub macros and hopefully few prototypes,
6106 which can conflict with char inet_aton(); below. */
6108 /* Override any gcc2 internal prototype to avoid an error. */
6109 /* We use char because int might match the return type of a gcc2
6110 builtin and then its argument prototype would still apply. */
6115 /* The GNU C library defines this for functions which it implements
6116 to always fail with ENOSYS. Some functions are actually named
6117 something starting with __ and the normal name is an alias. */
6118 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6126 if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128 eval "ac_cv_func_inet_aton=yes"
6130 echo "configure: failed program was:" >&5
6131 cat conftest.$ac_ext >&5
6133 eval "ac_cv_func_inet_aton=no"
6138 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6139 echo "$ac_t""yes" 1>&6
6140 cat >> confdefs.h <<\EOF
6141 #define HAVE_INET_ATON 1
6145 echo "$ac_t""no" 1>&6
6146 INET_ATON='inet_aton.o'
6150 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6151 echo "configure:6152: checking for strerror" >&5
6152 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6153 echo $ac_n "(cached) $ac_c" 1>&6
6155 cat > conftest.$ac_ext <<EOF
6156 #line 6157 "configure"
6157 #include "confdefs.h"
6158 /* System header to define __stub macros and hopefully few prototypes,
6159 which can conflict with char strerror(); below. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6162 /* We use char because int might match the return type of a gcc2
6163 builtin and then its argument prototype would still apply. */
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined (__stub_strerror) || defined (__stub___strerror)
6179 if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6181 eval "ac_cv_func_strerror=yes"
6183 echo "configure: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 eval "ac_cv_func_strerror=no"
6191 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6192 echo "$ac_t""yes" 1>&6
6193 cat >> confdefs.h <<\EOF
6194 #define HAVE_STRERROR 1
6198 echo "$ac_t""no" 1>&6
6199 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
6204 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6205 echo "configure:6206: checking for strdup" >&5
6206 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6212 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char strdup(); below. */
6215 /* Override any gcc2 internal prototype to avoid an error. */
6216 /* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6222 /* The GNU C library defines this for functions which it implements
6223 to always fail with ENOSYS. Some functions are actually named
6224 something starting with __ and the normal name is an alias. */
6225 #if defined (__stub_strdup) || defined (__stub___strdup)
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6235 eval "ac_cv_func_strdup=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_func_strdup=no"
6245 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6247 cat >> confdefs.h <<\EOF
6248 #define HAVE_STRDUP 1
6252 echo "$ac_t""no" 1>&6
6253 STRDUP='../../utils/strdup.o'
6257 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6258 echo "configure:6259: checking for strtol" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char strtol(); below. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_strtol) || defined (__stub___strtol)
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 eval "ac_cv_func_strtol=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_func_strtol=no"
6298 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 cat >> confdefs.h <<\EOF
6301 #define HAVE_STRTOL 1
6305 echo "$ac_t""no" 1>&6
6310 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6311 echo "configure:6312: checking for strtoul" >&5
6312 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char strtoul(); below. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 eval "ac_cv_func_strtoul=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_func_strtoul=no"
6351 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 cat >> confdefs.h <<\EOF
6354 #define HAVE_STRTOUL 1
6358 echo "$ac_t""no" 1>&6
6363 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6364 echo "configure:6365: checking for strcasecmp" >&5
6365 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6366 echo $ac_n "(cached) $ac_c" 1>&6
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure"
6370 #include "confdefs.h"
6371 /* System header to define __stub macros and hopefully few prototypes,
6372 which can conflict with char strcasecmp(); below. */
6374 /* Override any gcc2 internal prototype to avoid an error. */
6375 /* We use char because int might match the return type of a gcc2
6376 builtin and then its argument prototype would still apply. */
6381 /* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6392 if { (eval echo configure:6393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 eval "ac_cv_func_strcasecmp=yes"
6396 echo "configure: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 eval "ac_cv_func_strcasecmp=no"
6404 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6405 echo "$ac_t""yes" 1>&6
6406 cat >> confdefs.h <<\EOF
6407 #define HAVE_STRCASECMP 1
6411 echo "$ac_t""no" 1>&6
6412 STRCASECMP='strcasecmp.o'
6416 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6417 echo "configure:6418: checking for cbrt" >&5
6418 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char cbrt(); below. */
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6445 if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6447 eval "ac_cv_func_cbrt=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6452 eval "ac_cv_func_cbrt=no"
6457 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 cat >> confdefs.h <<\EOF
6464 echo "$ac_t""no" 1>&6
6465 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6466 echo "configure:6467: checking for cbrt in -lm" >&5
6467 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 ac_save_LIBS="$LIBS"
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6485 if { (eval echo configure:6486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6487 eval "ac_cv_lib_$ac_lib_var=yes"
6489 echo "configure: failed program was:" >&5
6490 cat conftest.$ac_ext >&5
6492 eval "ac_cv_lib_$ac_lib_var=no"
6495 LIBS="$ac_save_LIBS"
6498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6499 echo "$ac_t""yes" 1>&6
6500 cat >> confdefs.h <<\EOF
6505 echo "$ac_t""no" 1>&6
6511 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6512 # this hackery with HPUXMATHLIB allows us to cope.
6516 if [ -r /lib/pa1.1/libm.a ] ; then
6517 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6522 echo $ac_n "checking for rint""... $ac_c" 1>&6
6523 echo "configure:6524: checking for rint" >&5
6524 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6525 echo $ac_n "(cached) $ac_c" 1>&6
6527 cat > conftest.$ac_ext <<EOF
6528 #line 6529 "configure"
6529 #include "confdefs.h"
6530 /* System header to define __stub macros and hopefully few prototypes,
6531 which can conflict with char rint(); below. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_rint) || defined (__stub___rint)
6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6553 eval "ac_cv_func_rint=yes"
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 eval "ac_cv_func_rint=no"
6563 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 cat >> confdefs.h <<\EOF
6570 echo "$ac_t""no" 1>&6
6571 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6572 echo "configure:6573: checking for rint in -lm" >&5
6573 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 ac_save_LIBS="$LIBS"
6578 LIBS="-lm $HPUXMATHLIB $LIBS"
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6593 eval "ac_cv_lib_$ac_lib_var=yes"
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6598 eval "ac_cv_lib_$ac_lib_var=no"
6601 LIBS="$ac_save_LIBS"
6604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 cat >> confdefs.h <<\EOF
6611 echo "$ac_t""no" 1>&6
6618 # Readline versions < 2.1 don't have rl_completion_append_character
6619 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6620 echo "configure:6621: checking for rl_completion_append_character" >&5
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6625 #ifdef HAVE_READLINE_H
6626 # include <readline.h>
6628 #ifdef HAVE_READLINE_READLINE_H
6629 # include <readline/readline.h>
6632 rl_completion_append_character = 'x';
6635 if { (eval echo configure:6636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6637 echo "$ac_t""yes" 1>&6
6638 cat >> confdefs.h <<\EOF
6639 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 echo "$ac_t""no" 1>&6
6651 # Check whether readline's filename_completion_function is declared.
6652 # Some prehistoric versions of readline, in particular those shipped
6653 # with earlier Cygwins don't have this declared, although it's in the
6655 echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
6656 echo "configure:6657: checking whether filename_completion_function is declared" >&5
6657 if test "$ac_cv_header_readline_h" = yes; then
6658 _readline_header='readline.h'
6659 elif test "$ac_cv_header_readline_readline_h" = yes; then
6660 _readline_header='readline/readline.h'
6662 _readline_header='xxx'
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 #include <$_readline_header>
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 egrep "filename_completion_function" >/dev/null 2>&1; then
6672 cat >> confdefs.h <<\EOF
6673 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6676 echo "$ac_t""yes" 1>&6
6679 echo "$ac_t""no" 1>&6
6686 echo $ac_n "checking for finite""... $ac_c" 1>&6
6687 echo "configure:6688: checking for finite" >&5
6688 cat > conftest.$ac_ext <<EOF
6689 #line 6690 "configure"
6690 #include "confdefs.h"
6693 int dummy=finite(1.0);
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6698 cat >> confdefs.h <<\EOF
6699 #define HAVE_FINITE 1
6701 echo "$ac_t""yes" 1>&6
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 echo "$ac_t""no" 1>&6
6710 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6711 echo "configure:6712: checking for sigsetjmp" >&5
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6717 sigjmp_buf x; sigsetjmp(x, 1);
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6722 cat >> confdefs.h <<\EOF
6723 #define HAVE_SIGSETJMP 1
6725 echo "$ac_t""yes" 1>&6
6727 echo "configure: failed program was:" >&5
6728 cat conftest.$ac_ext >&5
6730 echo "$ac_t""no" 1>&6
6735 # Check whether --enable-syslog was given
6736 if test x"${enable_syslog+set}" = xset; then
6737 case $enable_syslog in
6739 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6740 echo "configure:6741: checking for syslog" >&5
6741 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char syslog(); below. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_syslog) || defined (__stub___syslog)
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_func_syslog=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_func_syslog=no"
6780 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 cat >> confdefs.h <<\EOF
6783 #define ENABLE_SYSLOG 1
6787 echo "$ac_t""no" 1>&6
6788 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6796 enableval=$enable_syslog
6797 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6799 esac # $enable_syslog
6806 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6807 echo "configure:6808: checking for optreset" >&5
6808 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6816 extern int optreset; optreset = 1;
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6821 pgac_cv_var_int_optreset=yes
6823 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6826 pgac_cv_var_int_optreset=no
6831 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6832 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6833 cat >> confdefs.h <<\EOF
6834 #define HAVE_INT_OPTRESET 1
6841 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6842 echo "configure:6843: checking whether long int is 64 bits" >&5
6843 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6846 if test "$cross_compiling" = yes; then
6847 pgac_cv_type_long_int_64=no
6848 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6853 typedef long int int64;
6856 * These are globals to discourage the compiler from folding all the
6857 * arithmetic tests down to compile-time constants.
6862 int does_int64_work()
6866 if (sizeof(int64) != 8)
6867 return 0; /* definitely not the right size */
6869 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6877 exit(! does_int64_work());
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6882 pgac_cv_type_long_int_64=yes
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 pgac_cv_type_long_int_64=no
6894 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6896 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6897 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6898 cat >> confdefs.h <<\EOF
6899 #define HAVE_LONG_INT_64
6905 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6906 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6907 echo "configure:6908: checking whether long long int is 64 bits" >&5
6908 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 if test "$cross_compiling" = yes; then
6912 pgac_cv_type_long_long_int_64=no
6913 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6918 typedef long long int int64;
6921 * These are globals to discourage the compiler from folding all the
6922 * arithmetic tests down to compile-time constants.
6927 int does_int64_work()
6931 if (sizeof(int64) != 8)
6932 return 0; /* definitely not the right size */
6934 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6942 exit(! does_int64_work());
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6947 pgac_cv_type_long_long_int_64=yes
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 pgac_cv_type_long_long_int_64=no
6959 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6961 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6962 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6963 cat >> confdefs.h <<\EOF
6964 #define HAVE_LONG_LONG_INT_64
6973 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6974 if [ x$SNPRINTF = x ] ; then
6975 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6976 echo "configure:6977: checking whether snprintf handles 'long long int' as %lld" >&5
6977 if test "$cross_compiling" = yes; then
6978 echo "$ac_t""assuming not on target machine" 1>&6
6979 # Force usage of our own snprintf, since we cannot test foreign snprintf
6980 SNPRINTF='snprintf.o'
6981 INT64_FORMAT='"%lld"'
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6988 typedef long long int int64;
6989 #define INT64_FORMAT "%lld"
6994 int does_int64_snprintf_work()
6999 if (sizeof(int64) != 8)
7000 return 0; /* doesn't look like the right size */
7003 snprintf(buf, 100, INT64_FORMAT, c);
7004 if (strcmp(buf, "800000140000005") != 0)
7005 return 0; /* either multiply or snprintf is busted */
7009 exit(! does_int64_snprintf_work());
7012 if { (eval echo configure:7013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7014 echo "$ac_t""yes" 1>&6
7015 INT64_FORMAT='"%lld"'
7018 echo "configure: failed program was:" >&5
7019 cat conftest.$ac_ext >&5
7021 echo "$ac_t""no" 1>&6
7022 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7023 echo "configure:7024: checking whether snprintf handles 'long long int' as %qd" >&5
7024 if test "$cross_compiling" = yes; then
7025 echo "$ac_t""assuming not on target machine" 1>&6
7026 # Force usage of our own snprintf, since we cannot test foreign snprintf
7027 SNPRINTF='snprintf.o'
7028 INT64_FORMAT='"%lld"'
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7035 typedef long long int int64;
7036 #define INT64_FORMAT "%qd"
7041 int does_int64_snprintf_work()
7046 if (sizeof(int64) != 8)
7047 return 0; /* doesn't look like the right size */
7050 snprintf(buf, 100, INT64_FORMAT, c);
7051 if (strcmp(buf, "800000140000005") != 0)
7052 return 0; /* either multiply or snprintf is busted */
7056 exit(! does_int64_snprintf_work());
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7061 echo "$ac_t""yes" 1>&6
7062 INT64_FORMAT='"%qd"'
7065 echo "configure: failed program was:" >&5
7066 cat conftest.$ac_ext >&5
7068 echo "$ac_t""no" 1>&6
7069 # Force usage of our own snprintf, since system snprintf is broken
7070 SNPRINTF='snprintf.o'
7071 INT64_FORMAT='"%lld"'
7082 # here if we previously decided we needed to use our own snprintf
7083 INT64_FORMAT='"%lld"'
7086 # Here if we are not using 'long long int' at all
7087 INT64_FORMAT='"%ld"'
7090 cat >> confdefs.h <<EOF
7091 #define INT64_FORMAT $INT64_FORMAT
7096 for ac_func in strtoll strtoq
7098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7099 echo "configure:7100: checking for $ac_func" >&5
7100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char $ac_func(); below. */
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7116 /* The GNU C library defines this for functions which it implements
7117 to always fail with ENOSYS. Some functions are actually named
7118 something starting with __ and the normal name is an alias. */
7119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 eval "ac_cv_func_$ac_func=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_func_$ac_func=no"
7139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7142 cat >> confdefs.h <<EOF
7143 #define $ac_tr_func 1
7147 echo "$ac_t""no" 1>&6
7151 for ac_func in strtoull strtouq
7153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_func" >&5
7155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7158 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure"
7160 #include "confdefs.h"
7161 /* System header to define __stub macros and hopefully few prototypes,
7162 which can conflict with char $ac_func(); below. */
7164 /* Override any gcc2 internal prototype to avoid an error. */
7165 /* We use char because int might match the return type of a gcc2
7166 builtin and then its argument prototype would still apply. */
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7184 eval "ac_cv_func_$ac_func=yes"
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 eval "ac_cv_func_$ac_func=no"
7194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7195 echo "$ac_t""yes" 1>&6
7196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7197 cat >> confdefs.h <<EOF
7198 #define $ac_tr_func 1
7202 echo "$ac_t""no" 1>&6
7209 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7210 echo "configure:7211: checking alignment of short" >&5
7211 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6
7214 if test "$cross_compiling" = yes; then
7215 pgac_cv_alignof_short='sizeof(short)'
7217 cat > conftest.$ac_ext <<EOF
7218 #line 7219 "configure"
7219 #include "confdefs.h"
7221 struct { char filler; short field; } mystruct;
7224 FILE *f=fopen("conftestval", "w");
7226 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7232 pgac_cv_alignof_short=`cat conftestval`
7234 echo "configure: failed program was:" >&5
7235 cat conftest.$ac_ext >&5
7237 pgac_cv_alignof_short='sizeof(short)'
7243 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7244 cat >> confdefs.h <<EOF
7245 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7249 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7250 echo "configure:7251: checking alignment of int" >&5
7251 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7254 if test "$cross_compiling" = yes; then
7255 pgac_cv_alignof_int='sizeof(int)'
7257 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7261 struct { char filler; int field; } mystruct;
7264 FILE *f=fopen("conftestval", "w");
7266 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7270 if { (eval echo configure:7271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7272 pgac_cv_alignof_int=`cat conftestval`
7274 echo "configure: failed program was:" >&5
7275 cat conftest.$ac_ext >&5
7277 pgac_cv_alignof_int='sizeof(int)'
7283 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7284 cat >> confdefs.h <<EOF
7285 #define ALIGNOF_INT $pgac_cv_alignof_int
7289 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7290 echo "configure:7291: checking alignment of long" >&5
7291 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7294 if test "$cross_compiling" = yes; then
7295 pgac_cv_alignof_long='sizeof(long)'
7297 cat > conftest.$ac_ext <<EOF
7298 #line 7299 "configure"
7299 #include "confdefs.h"
7301 struct { char filler; long field; } mystruct;
7304 FILE *f=fopen("conftestval", "w");
7306 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7312 pgac_cv_alignof_long=`cat conftestval`
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 pgac_cv_alignof_long='sizeof(long)'
7323 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7324 cat >> confdefs.h <<EOF
7325 #define ALIGNOF_LONG $pgac_cv_alignof_long
7329 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7330 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7331 echo "configure:7332: checking alignment of long long int" >&5
7332 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7333 echo $ac_n "(cached) $ac_c" 1>&6
7335 if test "$cross_compiling" = yes; then
7336 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7338 cat > conftest.$ac_ext <<EOF
7339 #line 7340 "configure"
7340 #include "confdefs.h"
7342 struct { char filler; long long int field; } mystruct;
7345 FILE *f=fopen("conftestval", "w");
7347 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7351 if { (eval echo configure:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7353 pgac_cv_alignof_long_long_int=`cat conftestval`
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7364 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7365 cat >> confdefs.h <<EOF
7366 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7371 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7372 echo "configure:7373: checking alignment of double" >&5
7373 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7376 if test "$cross_compiling" = yes; then
7377 pgac_cv_alignof_double='sizeof(double)'
7379 cat > conftest.$ac_ext <<EOF
7380 #line 7381 "configure"
7381 #include "confdefs.h"
7383 struct { char filler; double field; } mystruct;
7386 FILE *f=fopen("conftestval", "w");
7388 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7392 if { (eval echo configure:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7394 pgac_cv_alignof_double=`cat conftestval`
7396 echo "configure: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7399 pgac_cv_alignof_double='sizeof(double)'
7405 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7406 cat >> confdefs.h <<EOF
7407 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7413 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7414 MAX_ALIGNOF=$pgac_cv_alignof_long
7415 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7416 MAX_ALIGNOF=$pgac_cv_alignof_double
7418 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7419 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7422 MAX_ALIGNOF="$pgac_cv_alignof_double"
7424 cat >> confdefs.h <<EOF
7425 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7429 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7430 echo "configure:7431: checking for POSIX signal interface" >&5
7431 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7432 echo $ac_n "(cached) $ac_c" 1>&6
7434 cat > conftest.$ac_ext <<EOF
7435 #line 7436 "configure"
7436 #include "confdefs.h"
7440 struct sigaction act, oact;
7441 sigemptyset(&act.sa_mask);
7442 act.sa_flags = SA_RESTART;
7443 sigaction(0, &act, &oact);
7446 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7448 pgac_cv_func_posix_signals=yes
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7453 pgac_cv_func_posix_signals=no
7458 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7459 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7460 cat >> confdefs.h <<\EOF
7461 #define HAVE_POSIX_SIGNALS
7465 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7469 # Check for Tcl configuration script tclConfig.sh
7470 if test "$with_tcl" = yes; then
7471 for ac_prog in tclsh tcl
7473 # Extract the first word of "$ac_prog", so it can be a program name with args.
7474 set dummy $ac_prog; ac_word=$2
7475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7476 echo "configure:7477: checking for $ac_word" >&5
7477 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7482 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7485 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7490 for ac_dir in $ac_dummy; do
7491 test -z "$ac_dir" && ac_dir=.
7492 if test -f $ac_dir/$ac_word; then
7493 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7501 TCLSH="$ac_cv_path_TCLSH"
7502 if test -n "$TCLSH"; then
7503 echo "$ac_t""$TCLSH" 1>&6
7505 echo "$ac_t""no" 1>&6
7508 test -n "$TCLSH" && break
7511 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7512 echo "configure:7513: checking for tclConfig.sh" >&5
7513 # Let user override test
7514 if test -z "$TCL_CONFIG_SH"; then
7515 pgac_test_dirs="$with_tclconfig"
7517 set X $pgac_test_dirs; shift
7518 if test $# -eq 0; then
7519 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7520 set X `echo 'puts $auto_path' | $TCLSH`; shift
7524 if test -r "$pgac_dir/tclConfig.sh"; then
7525 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7531 if test -z "$TCL_CONFIG_SH"; then
7532 echo "$ac_t""no" 1>&6
7533 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7535 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7542 # Check for Tk configuration script tkConfig.sh
7543 if test "$with_tk" = yes; then
7544 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7545 echo "configure:7546: checking for tkConfig.sh" >&5
7546 # Let user override test
7547 if test -z "$TK_CONFIG_SH"; then
7548 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7550 set X $pgac_test_dirs; shift
7551 if test $# -eq 0; then
7552 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7553 set X `echo 'puts $auto_path' | $TCLSH`; shift
7557 if test -r "$pgac_dir/tkConfig.sh"; then
7558 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7564 if test -z "$TK_CONFIG_SH"; then
7565 echo "$ac_t""no" 1>&6
7566 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7568 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7577 # Check for DocBook and tools
7579 for ac_prog in onsgmls nsgmls
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7584 echo "configure:7585: checking for $ac_word" >&5
7585 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7586 echo $ac_n "(cached) $ac_c" 1>&6
7588 if test -n "$NSGMLS"; then
7589 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7593 for ac_dir in $ac_dummy; do
7594 test -z "$ac_dir" && ac_dir=.
7595 if test -f $ac_dir/$ac_word; then
7596 ac_cv_prog_NSGMLS="$ac_prog"
7603 NSGMLS="$ac_cv_prog_NSGMLS"
7604 if test -n "$NSGMLS"; then
7605 echo "$ac_t""$NSGMLS" 1>&6
7607 echo "$ac_t""no" 1>&6
7610 test -n "$NSGMLS" && break
7613 # If you don't have nsgmls you won't get very far, so save the cycles.
7614 if test -n "$NSGMLS"; then
7615 for ac_prog in openjade jade
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy $ac_prog; ac_word=$2
7619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7620 echo "configure:7621: checking for $ac_word" >&5
7621 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7622 echo $ac_n "(cached) $ac_c" 1>&6
7624 if test -n "$JADE"; then
7625 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7629 for ac_dir in $ac_dummy; do
7630 test -z "$ac_dir" && ac_dir=.
7631 if test -f $ac_dir/$ac_word; then
7632 ac_cv_prog_JADE="$ac_prog"
7639 JADE="$ac_cv_prog_JADE"
7640 if test -n "$JADE"; then
7641 echo "$ac_t""$JADE" 1>&6
7643 echo "$ac_t""no" 1>&6
7646 test -n "$JADE" && break
7650 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7651 echo "configure:7652: checking for DocBook V3.1" >&5
7652 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7655 cat >conftest.sgml <<EOF
7656 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7660 <title>random</title>
7662 <title>testsect</title>
7669 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7670 if test $? -eq 0; then
7671 pgac_cv_check_docbook=yes
7673 pgac_cv_check_docbook=no
7678 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7680 have_docbook=$pgac_cv_check_docbook
7683 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7684 echo "configure:7685: checking for DocBook stylesheets" >&5
7685 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7686 echo $ac_n "(cached) $ac_c" 1>&6
7688 if test -n "$DOCBOOKSTYLE"; then
7689 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7691 for pgac_prefix in /usr /usr/local /opt; do
7692 for pgac_infix in share lib; do
7693 for pgac_postfix in \
7694 sgml/stylesheets/nwalsh-modular \
7695 sgml/stylesheets/docbook \
7696 sgml/docbook/dsssl/modular
7698 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7699 if test -r "$pgac_candidate/html/docbook.dsl" \
7700 && test -r "$pgac_candidate/print/docbook.dsl"
7702 pgac_cv_path_stylesheets=$pgac_candidate
7711 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7713 if test -n "$DOCBOOKSTYLE"; then
7714 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7716 echo "$ac_t""no" 1>&6
7718 for ac_prog in sgmlspl
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7723 echo "configure:7724: checking for $ac_word" >&5
7724 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 if test -n "$SGMLSPL"; then
7728 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7732 for ac_dir in $ac_dummy; do
7733 test -z "$ac_dir" && ac_dir=.
7734 if test -f $ac_dir/$ac_word; then
7735 ac_cv_prog_SGMLSPL="$ac_prog"
7742 SGMLSPL="$ac_cv_prog_SGMLSPL"
7743 if test -n "$SGMLSPL"; then
7744 echo "$ac_t""$SGMLSPL" 1>&6
7746 echo "$ac_t""no" 1>&6
7749 test -n "$SGMLSPL" && break
7755 # Finally ready to produce output files ...
7757 if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
7758 echo $ac_n "preparing build tree... $ac_c" 1>&6
7759 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
7760 || { echo "configure: error: failed" 1>&2; exit 1; }
7761 echo "$ac_t""done" 1>&6
7765 cat > confcache <<\EOF
7766 # This file is a shell script that caches the results of configure
7767 # tests run on this system so they can be shared between configure
7768 # scripts and configure runs. It is not useful on other systems.
7769 # If it contains results you don't want to keep, you may remove or edit it.
7771 # By default, configure uses ./config.cache as the cache file,
7772 # creating it if it does not exist already. You can give configure
7773 # the --cache-file=FILE option to use a different cache file; that is
7774 # what configure does when it calls configure scripts in
7775 # subdirectories, so they share the cache.
7776 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7777 # config.status only pays attention to the cache file if you give it the
7778 # --recheck option to rerun configure.
7781 # The following way of writing the cache mishandles newlines in values,
7782 # but we know of no workaround that is simple, portable, and efficient.
7783 # So, don't put newlines in cache variables' values.
7784 # Ultrix sh set writes to stderr and can't be redirected directly,
7785 # and sets the high bit in the cache file unless we assign to the vars.
7787 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7789 # `set' does not quote correctly, so add quotes (double-quote substitution
7790 # turns \\\\ into \\, and sed turns \\ into \).
7792 -e "s/'/'\\\\''/g" \
7793 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7796 # `set' quotes correctly as required by POSIX, so do not add quotes.
7797 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7800 if cmp -s $cache_file confcache; then
7803 if test -w $cache_file; then
7804 echo "updating cache $cache_file"
7805 cat confcache > $cache_file
7807 echo "not updating unwritable cache $cache_file"
7812 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7815 # Let make expand exec_prefix.
7816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7818 # Any assignment to VPATH causes Sun make to only execute
7819 # the first set of double-colon rules, so remove it if not needed.
7820 # If there is a colon in the path, we need to keep it.
7821 if test "x$srcdir" = x.; then
7822 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7825 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7827 DEFS=-DHAVE_CONFIG_H
7829 # Without the "./", some shells look in PATH for config.status.
7830 : ${CONFIG_STATUS=./config.status}
7832 echo creating $CONFIG_STATUS
7833 rm -f $CONFIG_STATUS
7834 cat > $CONFIG_STATUS <<EOF
7836 # Generated automatically by configure.
7837 # Run this file to recreate the current configuration.
7838 # This directory was configured as follows,
7839 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7841 # $0 $ac_configure_args
7843 # Compiler output produced by configure, useful for debugging
7844 # configure, is in ./config.log if it exists.
7846 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7849 case "\$ac_option" in
7850 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7851 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7852 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7853 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7854 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7856 -help | --help | --hel | --he | --h)
7857 echo "\$ac_cs_usage"; exit 0 ;;
7858 *) echo "\$ac_cs_usage"; exit 1 ;;
7862 ac_given_srcdir=$srcdir
7863 ac_given_INSTALL="$INSTALL"
7865 trap 'rm -fr `echo "
7869 src/backend/port/Makefile
7870 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7872 cat >> $CONFIG_STATUS <<EOF
7874 # Protect against being on the right side of a sed subst in config.status.
7875 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7876 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7880 s%@CFLAGS@%$CFLAGS%g
7881 s%@CPPFLAGS@%$CPPFLAGS%g
7882 s%@CXXFLAGS@%$CXXFLAGS%g
7883 s%@FFLAGS@%$FFLAGS%g
7885 s%@LDFLAGS@%$LDFLAGS%g
7887 s%@exec_prefix@%$exec_prefix%g
7888 s%@prefix@%$prefix%g
7889 s%@program_transform_name@%$program_transform_name%g
7890 s%@bindir@%$bindir%g
7891 s%@sbindir@%$sbindir%g
7892 s%@libexecdir@%$libexecdir%g
7893 s%@datadir@%$datadir%g
7894 s%@sysconfdir@%$sysconfdir%g
7895 s%@sharedstatedir@%$sharedstatedir%g
7896 s%@localstatedir@%$localstatedir%g
7897 s%@libdir@%$libdir%g
7898 s%@includedir@%$includedir%g
7899 s%@oldincludedir@%$oldincludedir%g
7900 s%@docdir@%$docdir%g
7901 s%@mandir@%$mandir%g
7902 s%@VERSION@%$VERSION%g
7903 s%@abs_top_srcdir@%$abs_top_srcdir%g
7904 s%@abs_top_builddir@%$abs_top_builddir%g
7906 s%@host_alias@%$host_alias%g
7907 s%@host_cpu@%$host_cpu%g
7908 s%@host_vendor@%$host_vendor%g
7909 s%@host_os@%$host_os%g
7910 s%@PORTNAME@%$PORTNAME%g
7912 s%@MULTIBYTE@%$MULTIBYTE%g
7913 s%@enable_shared@%$enable_shared%g
7914 s%@enable_rpath@%$enable_rpath%g
7916 s%@EXEEXT@%$EXEEXT%g
7919 s%@autodepend@%$autodepend%g
7920 s%@INCLUDES@%$INCLUDES%g
7921 s%@with_tcl@%$with_tcl%g
7922 s%@with_tk@%$with_tk%g
7923 s%@with_perl@%$with_perl%g
7924 s%@PYTHON@%$PYTHON%g
7925 s%@python_version@%$python_version%g
7926 s%@python_prefix@%$python_prefix%g
7927 s%@python_execprefix@%$python_execprefix%g
7928 s%@python_configdir@%$python_configdir%g
7929 s%@python_moduledir@%$python_moduledir%g
7930 s%@python_extmakefile@%$python_extmakefile%g
7931 s%@with_python@%$with_python%g
7932 s%@with_krb4@%$with_krb4%g
7933 s%@with_krb5@%$with_krb5%g
7934 s%@krb_srvtab@%$krb_srvtab%g
7935 s%@with_openssl@%$with_openssl%g
7936 s%@enable_odbc@%$enable_odbc%g
7937 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7938 s%@ELF_SYS@%$ELF_SYS%g
7940 s%@CXXCPP@%$CXXCPP%g
7942 s%@with_CXX@%$with_CXX%g
7943 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7944 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7945 s%@INSTALL_DATA@%$INSTALL_DATA%g
7946 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7949 s%@FLEXFLAGS@%$FLEXFLAGS%g
7952 s%@with_gnu_ld@%$with_gnu_ld%g
7953 s%@ld_R_works@%$ld_R_works%g
7954 s%@RANLIB@%$RANLIB%g
7955 s%@LORDER@%$LORDER%g
7959 s%@YFLAGS@%$YFLAGS%g
7961 s%@SNPRINTF@%$SNPRINTF%g
7963 s%@GETRUSAGE@%$GETRUSAGE%g
7964 s%@SRANDOM@%$SRANDOM%g
7965 s%@GETHOSTNAME@%$GETHOSTNAME%g
7966 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7967 s%@INET_ATON@%$INET_ATON%g
7968 s%@STRERROR@%$STRERROR%g
7969 s%@STRERROR2@%$STRERROR2%g
7970 s%@STRDUP@%$STRDUP%g
7971 s%@STRTOL@%$STRTOL%g
7972 s%@STRTOUL@%$STRTOUL%g
7973 s%@STRCASECMP@%$STRCASECMP%g
7974 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7975 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7977 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7978 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7979 s%@NSGMLS@%$NSGMLS%g
7981 s%@have_docbook@%$have_docbook%g
7982 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
7983 s%@SGMLSPL@%$SGMLSPL%g
7988 cat >> $CONFIG_STATUS <<\EOF
7990 # Split the substitutions into bite-sized pieces for seds with
7991 # small command number limits, like on Digital OSF/1 and HP-UX.
7992 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7993 ac_file=1 # Number of current file.
7994 ac_beg=1 # First line for current file.
7995 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7998 while $ac_more_lines; do
7999 if test $ac_beg -gt 1; then
8000 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8002 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8004 if test ! -s conftest.s$ac_file; then
8006 rm -f conftest.s$ac_file
8008 if test -z "$ac_sed_cmds"; then
8009 ac_sed_cmds="sed -f conftest.s$ac_file"
8011 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8013 ac_file=`expr $ac_file + 1`
8015 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8018 if test -z "$ac_sed_cmds"; then
8023 cat >> $CONFIG_STATUS <<EOF
8025 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8028 src/backend/port/Makefile
8031 cat >> $CONFIG_STATUS <<\EOF
8032 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8035 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8036 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8037 *) ac_file_in="${ac_file}.in" ;;
8040 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8042 # Remove last slash and all that follows it. Not all systems have dirname.
8043 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8044 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8045 # The file is in a subdirectory.
8046 test ! -d "$ac_dir" && mkdir "$ac_dir"
8047 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8048 # A "../" for each directory in $ac_dir_suffix.
8049 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8051 ac_dir_suffix= ac_dots=
8054 case "$ac_given_srcdir" in
8056 if test -z "$ac_dots"; then top_srcdir=.
8057 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8058 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8060 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8061 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8064 case "$ac_given_INSTALL" in
8065 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8066 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8069 echo creating "$ac_file"
8071 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8073 *Makefile*) ac_comsub="1i\\
8074 # $configure_input" ;;
8078 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8080 s%@configure_input@%$configure_input%g
8081 s%@srcdir@%$srcdir%g
8082 s%@top_srcdir@%$top_srcdir%g
8083 s%@INSTALL@%$INSTALL%g
8084 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8091 # ac_d sets the value in "#define NAME VALUE" lines.
8092 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8093 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8096 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8097 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8098 ac_uB='\([ ]\)%\1#\2define\3'
8101 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8102 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8103 ac_eB='$%\1#\2define\3'
8107 if test "${CONFIG_HEADERS+set}" != set; then
8109 cat >> $CONFIG_STATUS <<EOF
8110 CONFIG_HEADERS="src/include/config.h"
8112 cat >> $CONFIG_STATUS <<\EOF
8114 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8119 *) ac_file_in="${ac_file}.in" ;;
8122 echo creating $ac_file
8124 rm -f conftest.frag conftest.in conftest.out
8125 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8126 cat $ac_file_inputs > conftest.in
8130 # Transform confdefs.h into a sed script conftest.vals that substitutes
8131 # the proper values into config.h.in to produce config.h. And first:
8132 # Protect against being on the right side of a sed subst in config.status.
8133 # Protect against being in an unquoted here document in config.status.
8135 cat > conftest.hdr <<\EOF
8138 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8142 sed -n -f conftest.hdr confdefs.h > conftest.vals
8145 # This sed command replaces #undef with comments. This is necessary, for
8146 # example, in the case of _POSIX_SOURCE, which is predefined and required
8147 # on some systems where configure will not decide to define it.
8148 cat >> conftest.vals <<\EOF
8149 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8152 # Break up conftest.vals because some shells have a limit on
8153 # the size of here documents, and old seds have small limits too.
8158 ac_lines=`grep -c . conftest.vals`
8159 # grep -c gives empty output for an empty file on some AIX systems.
8160 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8161 # Write a limited-size here document to conftest.frag.
8162 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8163 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8165 sed -f conftest.frag conftest.in > conftest.out
8167 mv conftest.out conftest.in
8169 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8171 mv conftest.tail conftest.vals
8175 cat >> $CONFIG_STATUS <<\EOF
8176 rm -f conftest.frag conftest.h
8177 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8178 cat conftest.in >> conftest.h
8180 if cmp -s $ac_file conftest.h 2>/dev/null; then
8181 echo "$ac_file is unchanged"
8184 # Remove last slash and all that follows it. Not all systems have dirname.
8185 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8186 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8187 # The file is in a subdirectory.
8188 test ! -d "$ac_dir" && mkdir "$ac_dir"
8191 mv conftest.h $ac_file
8197 cat >> $CONFIG_STATUS <<EOF
8198 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}"
8199 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8202 cat >> $CONFIG_STATUS <<\EOF
8203 srcdir=$ac_given_srcdir
8204 while test -n "$ac_sources"; do
8205 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8206 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8208 echo "linking $srcdir/$ac_source to $ac_dest"
8210 if test ! -r $srcdir/$ac_source; then
8211 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8215 # Make relative symlinks.
8216 # Remove last slash and all that follows it. Not all systems have dirname.
8217 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8218 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8219 # The dest file is in a subdirectory.
8220 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8221 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8222 # A "../" for each directory in $ac_dest_dir_suffix.
8223 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8225 ac_dest_dir_suffix= ac_dots=
8229 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8230 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8233 # Make a symlink if possible; otherwise try a hard link.
8234 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8235 ln $srcdir/$ac_source $ac_dest; then :
8237 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8241 cat >> $CONFIG_STATUS <<EOF
8244 cat >> $CONFIG_STATUS <<\EOF
8245 echo "timestamp file" > src/include/stamp-h
8249 chmod +x $CONFIG_STATUS
8250 rm -fr confdefs* $ac_clean_files
8251 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1