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 --with-pgport=PORTNUM change default port number [5432]"
30 --with-maxbackends=N set default maximum number of connections [32]"
32 --enable-depend turn on automatic dependency tracking"
34 --enable-debug build with debugging symbols (-g)"
36 --enable-cassert enable assertion checks (for debugging)"
38 --with-tcl build Tcl and Tk interfaces"
40 --without-tk do not build Tk interfaces if Tcl is enabled"
42 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
44 --with-tkconfig=DIR tkConfig.sh is in DIR"
46 --with-perl build Perl interface and PL/Perl"
48 --with-python build Python interface module"
50 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
52 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
54 --with-krb-srvnam=NAME name of the PostgreSQL service principal in Kerberos [postgres]"
56 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
58 --enable-odbc build the ODBC driver package"
60 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
62 --with-CXX build C++ modules (libpq++)"
64 --enable-syslog enable logging to syslog"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 docdir='${prefix}/doc'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --docdir=DIR doc documentation in DIR [PREFIX/doc]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host | --host | --hos | --ho)
242 -host=* | --host=* | --hos=* | --ho=*)
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -docdir | --docdir | --infodi | --infod | --doc | --inf)
254 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
255 docdir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
363 -site=* | --site=* | --sit=*)
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
378 -target | --target | --targe | --targ | --tar | --ta | --t)
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/backend/access/common/heaptuple.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='\c' ac_t=
583 for ac_dir in config $srcdir/config; do
584 if test -f $ac_dir/install-sh; then
586 ac_install_sh="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh; then
590 ac_install_sh="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
597 ac_config_guess=$ac_aux_dir/config.guess
598 ac_config_sub=$ac_aux_dir/config.sub
599 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 cat >> confdefs.h <<EOF
605 #define PG_VERSION "$VERSION"
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
641 echo $ac_n "checking which template to use""... $ac_c" 1>&6
642 echo "configure:643: checking which template to use" >&5
644 # Check whether --with-template was given
645 if test x"${with_template+set}" = xset; then
646 case $with_template in
648 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
651 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
654 withval=$with_template
657 list) echo; ls "$srcdir/src/template"; exit;;
658 *) if test -f "$srcdir/src/template/$with_template" ; then
661 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
666 esac # $with_template
669 # --with-template not given
672 aix*) template=aix ;;
673 bsdi*) template=bsdi ;;
674 cygwin*) template=win ;;
675 dgux*) template=dgux ;;
676 freebsd*) template=freebsd ;;
677 hpux*) template=hpux ;;
678 irix*) template=irix5 ;;
679 linux*) template=linux ;;
680 netbsd*) template=netbsd ;;
681 nextstep*) template=nextstep ;;
682 openbsd*) template=openbsd ;;
683 osf*) template=osf ;;
684 qnx*) template=qnx4 ;;
685 sco*) template=sco ;;
688 sparc) template=solaris_sparc ;;
689 i?86) template=solaris_i386 ;;
691 sunos*) template=sunos4 ;;
694 univel) template=univel ;;
696 sysv4*) template=svr4 ;;
697 sysv5uw*) template=unixware ;;
698 ultrix*) template=ultrix4 ;;
701 if test x"$template" = x"" ; then
702 { echo "configure: error:
703 *******************************************************************
704 PostgreSQL has apparently not been ported to your platform yet.
705 To try a manual configuration, look into the src/template directory
706 for a similar platform and use the \`--with-template=' option.
708 Please also contact <pgsql-ports@postgresql.org> to see about
709 rectifying this. Include the above \`checking host system type...'
711 *******************************************************************
718 echo "$ac_t""$template" 1>&6
728 # Pick right test-and-set (TAS) code. Most platforms have inline
729 # assembler code in their port include file, so we just use a dummy
734 hpux) need_tas=yes; tas_file=hpux.s ;;
735 solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
736 solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
739 if test "$need_tas" = yes ; then
748 ## Command line options
753 # Add non-standard directories to the include path
755 # Check whether --with-includes was given
756 if test x"${with_includes+set}" = xset; then
757 case $with_includes in
759 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
762 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
764 esac # $with_includes
769 # Add non-standard directories to the library search path
771 # Check whether --with-libraries was given
772 if test x"${with_libraries+set}" = xset; then
773 case $with_libraries in
775 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
778 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
781 withval=$with_libraries
782 LIBRARY_DIRS=$withval
784 esac # $with_libraries
787 # Check whether --with-libs was given
788 if test x"${with_libs+set}" = xset; then
791 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
794 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
798 LIBRARY_DIRS=$withval
805 # Locale (--enable-locale)
807 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
808 echo "configure:809: checking whether to build with locale support" >&5
809 # Check whether --enable-locale was given
810 if test x"${enable_locale+set}" = xset; then
811 case $enable_locale in
813 cat >> confdefs.h <<\EOF
822 enableval=$enable_locale
823 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
825 esac # $enable_locale
830 echo "$ac_t""$enable_locale" 1>&6
834 # Character set recode (--enable-recode)
836 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
837 echo "configure:838: checking whether to build with recode support" >&5
838 # Check whether --enable-recode was given
839 if test x"${enable_recode+set}" = xset; then
840 case $enable_recode in
842 cat >> confdefs.h <<\EOF
851 enableval=$enable_recode
852 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
854 esac # $enable_recode
859 echo "$ac_t""$enable_recode" 1>&6
866 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
867 echo "configure:868: checking whether to build with multibyte character support" >&5
869 # Check whether --enable-multibyte was given
870 if test x"${enable_multibyte+set}" = xset; then
871 case $enable_multibyte in
879 enableval=$enable_multibyte
883 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
884 MULTIBYTE=$enableval;;
886 { echo "configure: error: argument to --enable-multibyte must be one of:
887 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
888 UNICODE, MULE_INTERNAL,
889 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
891 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
895 esac # $enable_multibyte
900 if test "$enable_multibyte" = yes; then
902 cat >> confdefs.h <<\EOF
906 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
909 echo "$ac_t""no" 1>&6
917 # Default port number (--with-pgport), default 5432
919 echo $ac_n "checking for default port number""... $ac_c" 1>&6
920 echo "configure:921: checking for default port number" >&5
921 # Check whether --with-pgport was given
922 if test x"${with_pgport+set}" = xset; then
925 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
928 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
932 default_port=$withval
938 # Need both of these because backend wants an integer and frontend a string
939 cat >> confdefs.h <<EOF
940 #define DEF_PGPORT ${default_port}
943 cat >> confdefs.h <<EOF
944 #define DEF_PGPORT_STR "${default_port}"
947 echo "$ac_t""$default_port" 1>&6
951 # Maximum number of allowed connections (--with-maxbackends), default 32
953 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
954 echo "configure:955: checking for default soft limit on number of connections" >&5
955 # Check whether --with-maxbackends was given
956 if test x"${with_maxbackends+set}" = xset; then
957 case $with_maxbackends in
959 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
962 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
964 esac # $with_maxbackends
968 echo "$ac_t""$with_maxbackends" 1>&6
969 cat >> confdefs.h <<EOF
970 #define DEF_MAXBACKENDS $with_maxbackends
979 # For historical reasons you can also use --with-CC to specify the C compiler
980 # to use, although the standard way to do this is to set the CC environment
982 # Check whether --with-CC was given
983 if test x"${with_CC+set}" = xset; then
986 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
989 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
998 # On AIX, default compiler to xlc.
999 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy $ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy "$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp='$CPP $CPPFLAGS'
1122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling=$ac_cv_prog_cc_cross
1126 cat > conftest.$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1134 ac_cv_prog_cc_works=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (./conftest; exit) 2>/dev/null; then
1137 ac_cv_prog_cc_cross=no
1139 ac_cv_prog_cc_cross=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.$ac_ext >&5
1144 ac_cv_prog_cc_works=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c <<EOF
1173 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS="${CFLAGS+set}"
1189 ac_save_CFLAGS="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1224 . "$srcdir/src/template/$template" || exit
1225 echo "using CFLAGS=$CFLAGS"
1226 # Check if the compiler still works with the template settings
1227 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1232 ac_cpp='$CPP $CPPFLAGS'
1233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1235 cross_compiling=$ac_cv_prog_cc_cross
1237 cat > conftest.$ac_ext << EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1245 ac_cv_prog_cc_works=yes
1246 # If we can't run a trivial program, we are probably using a cross compiler.
1247 if (./conftest; exit) 2>/dev/null; then
1248 ac_cv_prog_cc_cross=no
1250 ac_cv_prog_cc_cross=yes
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1255 ac_cv_prog_cc_works=no
1259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1260 ac_cpp='$CPP $CPPFLAGS'
1261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1263 cross_compiling=$ac_cv_prog_cc_cross
1265 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1266 if test $ac_cv_prog_cc_works = no; then
1267 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1271 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1272 cross_compiling=$ac_cv_prog_cc_cross
1274 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1275 echo "configure:1276: checking for Cygwin environment" >&5
1276 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1286 #define __CYGWIN__ __CYGWIN32__
1291 if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1304 echo "$ac_t""$ac_cv_cygwin" 1>&6
1306 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1307 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1308 echo "configure:1309: checking for mingw32 environment" >&5
1309 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1333 echo "$ac_t""$ac_cv_mingw32" 1>&6
1335 test "$ac_cv_mingw32" = yes && MINGW32=yes
1338 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1339 echo "configure:1340: checking for executable suffix" >&5
1340 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1347 echo 'int main () { return 0; }' > conftest.$ac_ext
1349 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1350 for file in conftest.*; do
1352 *.c | *.o | *.obj) ;;
1353 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1357 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1360 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1365 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1366 echo "$ac_t""${ac_cv_exeext}" 1>&6
1369 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1370 echo "configure:1371: checking how to run the C preprocessor" >&5
1371 # On Suns, sometimes $CPP names a directory.
1372 if test -n "$CPP" && test -d "$CPP"; then
1375 if test -z "$CPP"; then
1376 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 # This must be in double quotes, not single quotes, because CPP may get
1380 # substituted into the Makefile and "${CC-cc}" will confuse make.
1382 # On the NeXT, cc -E runs the code through the compiler's parser,
1383 # not just through cpp.
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1391 { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1393 if test -z "$ac_err"; then
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 CPP="${CC-cc} -E -traditional-cpp"
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 CPP="${CC-cc} -nologo -E"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1427 if test -z "$ac_err"; then
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1441 ac_cv_prog_CPP="$CPP"
1443 CPP="$ac_cv_prog_CPP"
1445 ac_cv_prog_CPP="$CPP"
1447 echo "$ac_t""$CPP" 1>&6
1449 if test $ac_cv_prog_gcc = yes; then
1450 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ${CC-cc} needs -traditional" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 ac_pattern="Autoconf.*'x'"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "$ac_pattern" >/dev/null 2>&1; then
1465 ac_cv_prog_gcc_traditional=yes
1468 ac_cv_prog_gcc_traditional=no
1473 if test $ac_cv_prog_gcc_traditional = no; then
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "$ac_pattern" >/dev/null 2>&1; then
1483 ac_cv_prog_gcc_traditional=yes
1490 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1491 if test $ac_cv_prog_gcc_traditional = yes; then
1492 CC="$CC -traditional"
1503 # Create compiler version string
1504 if test x"$GCC" = x"yes" ; then
1505 cc_string="GCC `${CC} --version`"
1509 cat >> confdefs.h <<EOF
1510 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1516 # Automatic dependency tracking
1518 # Check whether --enable-depend was given
1519 if test x"${enable_depend+set}" = xset; then
1520 case $enable_depend in
1528 enableval=$enable_depend
1529 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1531 esac # $enable_depend
1540 # --enable-debug adds -g to compiler flags
1542 # Check whether --enable-debug was given
1543 if test x"${enable_debug+set}" = xset; then
1544 case $enable_debug in
1552 enableval=$enable_debug
1553 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1555 esac # $enable_debug
1563 # Enable assert checks
1565 # Check whether --enable-cassert was given
1566 if test x"${enable_cassert+set}" = xset; then
1567 case $enable_cassert in
1569 cat >> confdefs.h <<\EOF
1570 #define USE_ASSERT_CHECKING 1
1578 enableval=$enable_cassert
1579 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1581 esac # $enable_cassert
1589 # Include directories
1593 # SRCH_INC comes from the template file
1594 for dir in $with_includes $SRCH_INC; do
1595 if test -d "$dir"; then
1596 INCLUDES="$INCLUDES -I$dir"
1598 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1606 # Library directories
1610 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1611 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1612 if test -d "$dir"; then
1613 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
1615 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1624 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether to build with Tcl" >&5
1626 # Check whether --with-tcl was given
1627 if test x"${with_tcl+set}" = xset; then
1637 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1644 echo "$ac_t""$with_tcl" 1>&6
1647 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1648 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether to build with Tk" >&5
1650 if test "$with_tcl" = yes; then
1651 # Check whether --with-tk was given
1652 if test x"${with_tk+set}" = xset; then
1662 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1672 echo "$ac_t""$with_tk" 1>&6
1676 # We see if the path to the TCL/TK configuration scripts is specified.
1677 # This will override the use of tclsh to find the paths to search.
1679 # Check whether --with-tclconfig was given
1680 if test x"${with_tclconfig+set}" = xset; then
1681 case $with_tclconfig in
1683 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1686 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1688 esac # $with_tclconfig
1691 # We see if the path to the TK configuration scripts is specified.
1692 # This will override the use of tclsh to find the paths to search.
1694 # Check whether --with-tkconfig was given
1695 if test x"${with_tkconfig+set}" = xset; then
1696 case $with_tkconfig in
1698 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1701 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1703 esac # $with_tkconfig
1708 # Optionally build Perl modules (Pg.pm and PL/Perl)
1710 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether to build Perl modules" >&5
1712 # Check whether --with-perl was given
1713 if test x"${with_perl+set}" = xset; then
1723 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1730 echo "$ac_t""$with_perl" 1>&6
1735 # Optionally build Python interface module
1737 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1738 echo "configure:1739: checking whether to build Python modules" >&5
1739 # Check whether --with-python was given
1740 if test x"${with_python+set}" = xset; then
1741 case $with_python in
1743 echo "$ac_t""yes" 1>&6
1744 # Extract the first word of "python", so it can be a program name with args.
1745 set dummy python; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 if test -n "$PYTHON"; then
1752 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1756 for ac_dir in $ac_dummy; do
1757 test -z "$ac_dir" && ac_dir=.
1758 if test -f $ac_dir/$ac_word; then
1759 ac_cv_prog_PYTHON="python"
1766 PYTHON="$ac_cv_prog_PYTHON"
1767 if test -n "$PYTHON"; then
1768 echo "$ac_t""$PYTHON" 1>&6
1770 echo "$ac_t""no" 1>&6
1774 if test "${PYTHON+set}" = set ; then
1775 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1776 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1777 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1778 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1779 python_moduledir="${python_prefix}/lib/python${python_version}"
1780 python_extmakefile="${python_configdir}/Makefile.pre.in"
1782 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1783 echo "configure:1784: checking for Python extension makefile" >&5
1784 if test -f "${python_extmakefile}" ; then
1785 echo "$ac_t""found" 1>&6
1787 echo "$ac_t""no" 1>&6
1788 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1789 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1799 { echo "configure: error: Python not found" 1>&2; exit 1; }
1803 echo "$ac_t""no" 1>&6
1806 withval=$with_python
1807 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1812 echo "$ac_t""no" 1>&6
1821 # Check whether --with-krb4 was given
1822 if test x"${with_krb4+set}" = xset; then
1825 krb4_prefix=/usr/athena
1833 krb4_prefix=$withval
1840 if test "$with_krb4" = yes; then
1842 echo "$ac_t""building with Kerberos 4 support" 1>&6
1843 cat >> confdefs.h <<\EOF
1848 if test -d "$krb4_prefix"; then
1849 if test -d "$krb4_prefix/include"; then
1850 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1852 if test -d "$krb4_prefix/lib"; then
1853 krb_libdir="-L$krb4_prefix/lib"
1854 LIBS="$krb_libdir $LIBS"
1857 # Test for these libraries is below
1858 KRB_LIBS="$krb_libdir -lkrb -ldes"
1860 krb_srvtab="/etc/srvtab"
1871 # Check whether --with-krb5 was given
1872 if test x"${with_krb5+set}" = xset; then
1875 krb5_prefix=/usr/athena
1883 krb5_prefix=$withval
1890 if test "$with_krb5" = yes; then
1892 echo "$ac_t""building with Kerberos 5 support" 1>&6
1893 cat >> confdefs.h <<\EOF
1898 if test -d "$krb5_prefix"; then
1899 if test -d "$krb5_prefix/include"; then
1900 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1902 if test -d "$krb5_prefix/lib"; then
1903 krb_libdir="-L$krb5_prefix/lib"
1904 LIBS="$krb_libdir $LIBS"
1908 # Test for these libraries is below
1909 KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
1911 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1919 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1920 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1921 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1929 # Kerberos configuration parameters
1931 # Check whether --with-krb-srvnam was given
1932 if test x"${with_krb_srvnam+set}" = xset; then
1933 case $with_krb_srvnam in
1935 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1938 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1940 esac # $with_krb_srvnam
1942 with_krb_srvnam="postgres"
1944 cat >> confdefs.h <<EOF
1945 #define PG_KRB_SRVNAM "$with_krb_srvnam"
1954 # Check whether --with-openssl was given
1955 if test x"${with_openssl+set}" = xset; then
1956 case $with_openssl in
1958 openssl_prefix=/usr/local/ssl
1964 withval=$with_openssl
1966 openssl_prefix=$withval
1968 esac # $with_openssl
1973 if test "$with_openssl" = yes; then
1975 echo "$ac_t""building with OpenSSL support" 1>&6
1976 cat >> confdefs.h <<\EOF
1981 if test -d "${openssl_prefix}/include" ; then
1982 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
1984 if test -d "${openssl_prefix}/lib" ; then
1985 openssl_libdir="${openssl_prefix}/lib"
1986 LIBS="$LIBS -L${openssl_prefix}/lib"
1988 openssl_libdir="${openssl_prefix}"
1989 LIBS="$LIBS -L${openssl_prefix}"
1998 # OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
1999 # use both of them you'll have to figure it out yourself.
2000 if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
2001 { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2006 # Optionally enable the building of the ODBC driver
2010 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2011 enable_odbc=$with_odbc
2014 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether to build the ODBC driver" >&5
2016 # Check whether --enable-odbc was given
2017 if test x"${enable_odbc+set}" = xset; then
2018 case $enable_odbc in
2026 enableval=$enable_odbc
2027 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2034 echo "$ac_t""$enable_odbc" 1>&6
2038 # Allow for overriding the default location of the odbcinst.ini
2039 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2040 # Check whether --with-odbcinst was given
2041 if test x"${with_odbcinst+set}" = xset; then
2042 case $with_odbcinst in
2044 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2047 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2050 withval=$with_odbcinst
2051 odbcinst_ini_dir=$withval
2053 esac # $with_odbcinst
2055 odbcinst_ini_dir="\${sysconfdir}"
2061 # Assume system is ELF if it predefines __ELF__ as 1,
2062 # otherwise believe host_os based default.
2064 freebsd1*|freebsd2*) elf=yes;;
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2076 egrep "yes" >/dev/null 2>&1; then
2081 if test "X$elf" = "Xyes" ; then
2094 # Optionally build C++ code (i.e., libpq++)
2096 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether to build C++ modules" >&5
2098 # Check whether --with-CXX was given
2099 if test x"${with_CXX+set}" = xset; then
2117 if test "$with_CXX" = yes; then
2119 echo "$ac_t""yes" 1>&6
2120 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy $ac_prog; ac_word=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2126 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test -n "$CXX"; then
2130 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_prog_CXX="$ac_prog"
2144 CXX="$ac_cv_prog_CXX"
2145 if test -n "$CXX"; then
2146 echo "$ac_t""$CXX" 1>&6
2148 echo "$ac_t""no" 1>&6
2151 test -n "$CXX" && break
2153 test -n "$CXX" || CXX="gcc"
2156 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2161 ac_cpp='$CXXCPP $CPPFLAGS'
2162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2164 cross_compiling=$ac_cv_prog_cxx_cross
2166 cat > conftest.$ac_ext << EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2171 int main(){return(0);}
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 ac_cv_prog_cxx_works=yes
2175 # If we can't run a trivial program, we are probably using a cross compiler.
2176 if (./conftest; exit) 2>/dev/null; then
2177 ac_cv_prog_cxx_cross=no
2179 ac_cv_prog_cxx_cross=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 ac_cv_prog_cxx_works=no
2188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2192 cross_compiling=$ac_cv_prog_cc_cross
2194 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2195 if test $ac_cv_prog_cxx_works = no; then
2196 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2198 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2200 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2201 cross_compiling=$ac_cv_prog_cxx_cross
2203 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether we are using GNU C++" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.C <<EOF
2213 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2220 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2222 if test $ac_cv_prog_gxx = yes; then
2228 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2229 ac_save_CXXFLAGS="$CXXFLAGS"
2231 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether ${CXX-g++} accepts -g" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 echo 'void f(){}' > conftest.cc
2237 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2238 ac_cv_prog_cxx_g=yes
2246 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2247 if test "$ac_test_CXXFLAGS" = set; then
2248 CXXFLAGS="$ac_save_CXXFLAGS"
2249 elif test $ac_cv_prog_cxx_g = yes; then
2250 if test "$GXX" = yes; then
2256 if test "$GXX" = yes; then
2263 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2264 echo "configure:2265: checking how to run the C++ preprocessor" >&5
2265 if test -z "$CXXCPP"; then
2266 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2271 ac_cpp='$CXXCPP $CPPFLAGS'
2272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2274 cross_compiling=$ac_cv_prog_cxx_cross
2275 CXXCPP="${CXX-g++} -E"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2294 ac_cv_prog_CXXCPP="$CXXCPP"
2296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2300 cross_compiling=$ac_cv_prog_cc_cross
2303 CXXCPP="$ac_cv_prog_CXXCPP"
2304 echo "$ac_t""$CXXCPP" 1>&6
2308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2309 ac_cpp='$CXXCPP $CPPFLAGS'
2310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2312 cross_compiling=$ac_cv_prog_cxx_cross
2314 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for string""... $ac_c" 1>&6
2316 echo "configure:2317: checking for string" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 cat >> confdefs.h <<\EOF
2343 #define HAVE_CXX_STRING_HEADER 1
2347 echo "$ac_t""no" 1>&6
2351 if test x"$ac_cv_header_string" != xyes ; then
2352 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2353 echo "configure:2354: checking for class string in <string.h>" >&5
2354 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2368 if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 pgac_cv_class_string_in_string_h=yes
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 pgac_cv_class_string_in_string_h=no
2380 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2382 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2383 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391 cross_compiling=$ac_cv_prog_cc_cross
2394 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2395 echo "configure:2396: checking for namespace std in C++" >&5
2396 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 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 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 #ifdef HAVE_CXX_STRING_HEADER
2416 using namespace std;
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 pgac_cv_cxx_namespace_std=yes
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 pgac_cv_cxx_namespace_std=no
2433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2437 cross_compiling=$ac_cv_prog_cc_cross
2441 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2443 if test $pgac_cv_cxx_namespace_std = yes ; then
2444 cat >> confdefs.h <<\EOF
2445 #define HAVE_NAMESPACE_STD 1
2451 echo "$ac_t""no" 1>&6
2457 CPPFLAGS="$CPPFLAGS $INCLUDES"
2458 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
2460 echo "using CPPFLAGS=$CPPFLAGS"
2461 echo "using LDFLAGS=$LDFLAGS"
2464 # Figure out how to invoke "install" and what install options to use.
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2478 echo "configure:2479: checking for a BSD compatible install" >&5
2479 if test -z "$INSTALL"; then
2480 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2484 for ac_dir in $PATH; do
2485 # Account for people who put trailing slashes in PATH elements.
2487 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2492 for ac_prog in ginstall scoinst install; do
2493 if test -f $ac_dir/$ac_prog; then
2494 if test $ac_prog = install &&
2495 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2496 # AIX install. It has an incompatible calling convention.
2499 ac_cv_path_install="$ac_dir/$ac_prog -c"
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL="$ac_cv_path_install"
2513 # As a last resort, use the slow shell script. We don't cache a
2514 # path for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the path is relative.
2517 INSTALL="$ac_install_sh"
2520 echo "$ac_t""$INSTALL" 1>&6
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530 # When Autoconf chooses install-sh as install program it tries to generate
2531 # a relative path to it in each makefile where it subsitutes it. This clashes
2532 # with our Makefile.global concept. This workaround helps.
2534 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2537 # Fix Autoconf's brain-dead defaults for script installs.
2538 INSTALL_SCRIPT="\${INSTALL} -m 755"
2540 # HPUX wants shared libs to be mode 555. Add your platform's special
2541 # needs here if necessary.
2543 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2544 *) INSTL_SHLIB_OPTS="-m 644" ;;
2547 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2551 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
2555 for ac_prog in gawk mawk nawk awk
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 if test -n "$AWK"; then
2565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2569 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_prog_AWK="$ac_prog"
2579 AWK="$ac_cv_prog_AWK"
2580 if test -n "$AWK"; then
2581 echo "$ac_t""$AWK" 1>&6
2583 echo "$ac_t""no" 1>&6
2586 test -n "$AWK" && break
2589 echo $ac_n "checking for flex""... $ac_c" 1>&6
2590 echo "configure:2591: checking for flex" >&5
2591 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 # Let the user override the test
2595 if test -n "$FLEX"; then
2596 pgac_cv_path_flex=$FLEX
2600 for pgac_dir in $PATH; do
2601 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2604 for pgac_prog in flex lex; do
2605 pgac_candidate="$pgac_dir/$pgac_prog"
2606 if test -f "$pgac_candidate" \
2607 && $pgac_candidate --version >/dev/null 2>&1
2609 echo '%%' > conftest.l
2610 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2611 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2612 pgac_broken_flex=$pgac_candidate
2616 pgac_cv_path_flex=$pgac_candidate
2624 : ${pgac_cv_path_flex=no}
2629 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2630 if test x"$pgac_cv_path_flex" = x"no"; then
2631 if test -n "$pgac_broken_flex"; then
2632 echo "configure: warning:
2634 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2635 should get version 2.5.4 or later.
2639 echo "configure: warning:
2641 Without Flex you won't be able to build PostgreSQL from scratch, or change
2642 any of the scanner definition files. You can obtain Flex from a GNU mirror
2643 site. (If you are using the official distribution of PostgreSQL then you
2644 do not need to worry about this because the lexer files are pre-generated.)
2648 if test x"$pgac_cv_path_flex" = x"no"; then
2651 FLEX=$pgac_cv_path_flex
2657 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether ln -s works" >&5
2659 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2663 if ln -s X conftestdata 2>/dev/null
2666 ac_cv_prog_LN_S="ln -s"
2671 LN_S="$ac_cv_prog_LN_S"
2672 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2673 echo "$ac_t""yes" 1>&6
2675 echo "$ac_t""no" 1>&6
2678 # Extract the first word of "ranlib", so it can be a program name with args.
2679 set dummy ranlib; ac_word=$2
2680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_word" >&5
2682 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 if test -n "$RANLIB"; then
2686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2690 for ac_dir in $ac_dummy; do
2691 test -z "$ac_dir" && ac_dir=.
2692 if test -f $ac_dir/$ac_word; then
2693 ac_cv_prog_RANLIB="ranlib"
2698 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2701 RANLIB="$ac_cv_prog_RANLIB"
2702 if test -n "$RANLIB"; then
2703 echo "$ac_t""$RANLIB" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "tar", so it can be a program name with args.
2709 set dummy tar; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_tar="$tar" # Let the user override the test with a path.
2720 ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2725 for ac_dir in $ac_dummy; do
2726 test -z "$ac_dir" && ac_dir=.
2727 if test -f $ac_dir/$ac_word; then
2728 ac_cv_path_tar="$ac_dir/$ac_word"
2736 tar="$ac_cv_path_tar"
2737 if test -n "$tar"; then
2738 echo "$ac_t""$tar" 1>&6
2740 echo "$ac_t""no" 1>&6
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy $ac_prog; ac_word=$2
2747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_word" >&5
2749 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 if test -n "$PERL"; then
2753 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_prog_PERL="$ac_prog"
2767 PERL="$ac_cv_prog_PERL"
2768 if test -n "$PERL"; then
2769 echo "$ac_t""$PERL" 1>&6
2771 echo "$ac_t""no" 1>&6
2774 test -n "$PERL" && break
2777 for ac_prog in 'bison -y' byacc
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$YACC"; then
2787 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_YACC="$ac_prog"
2801 YACC="$ac_cv_prog_YACC"
2802 if test -n "$YACC"; then
2803 echo "$ac_t""$YACC" 1>&6
2805 echo "$ac_t""no" 1>&6
2808 test -n "$YACC" && break
2810 test -n "$YACC" || YACC="yacc"
2813 if test "$with_tk" = yes; then
2814 # Extract the first word of "wish", so it can be a program name with args.
2815 set dummy wish; ac_word=$2
2816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_word" >&5
2818 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2823 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
2826 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
2829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 ac_cv_path_WISH="$ac_dir/$ac_word"
2842 WISH="$ac_cv_path_WISH"
2843 if test -n "$WISH"; then
2844 echo "$ac_t""$WISH" 1>&6
2846 echo "$ac_t""no" 1>&6
2849 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
2857 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
2858 echo "configure:2859: checking for main in -lsfio" >&5
2859 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
2860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 ac_save_LIBS="$LIBS"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875 eval "ac_cv_lib_$ac_lib_var=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_lib_$ac_lib_var=no"
2883 LIBS="$ac_save_LIBS"
2886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2888 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2890 cat >> confdefs.h <<EOF
2891 #define $ac_tr_lib 1
2897 echo "$ac_t""no" 1>&6
2900 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2901 echo "configure:2902: checking for main in -lncurses" >&5
2902 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_save_LIBS="$LIBS"
2907 LIBS="-lncurses $LIBS"
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2918 eval "ac_cv_lib_$ac_lib_var=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2923 eval "ac_cv_lib_$ac_lib_var=no"
2926 LIBS="$ac_save_LIBS"
2929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2930 echo "$ac_t""yes" 1>&6
2931 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2933 cat >> confdefs.h <<EOF
2934 #define $ac_tr_lib 1
2937 LIBS="-lncurses $LIBS"
2940 echo "$ac_t""no" 1>&6
2941 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2942 echo "configure:2943: checking for main in -lcurses" >&5
2943 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 ac_save_LIBS="$LIBS"
2948 LIBS="-lcurses $LIBS"
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2959 eval "ac_cv_lib_$ac_lib_var=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_lib_$ac_lib_var=no"
2967 LIBS="$ac_save_LIBS"
2970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2974 cat >> confdefs.h <<EOF
2975 #define $ac_tr_lib 1
2978 LIBS="-lcurses $LIBS"
2981 echo "$ac_t""no" 1>&6
2986 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2987 echo "configure:2988: checking for main in -ltermcap" >&5
2988 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 ac_save_LIBS="$LIBS"
2993 LIBS="-ltermcap $LIBS"
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3004 eval "ac_cv_lib_$ac_lib_var=yes"
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 eval "ac_cv_lib_$ac_lib_var=no"
3012 LIBS="$ac_save_LIBS"
3015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_lib 1
3023 LIBS="-ltermcap $LIBS"
3026 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
3030 echo "configure:3031: checking for main in -lreadline" >&5
3031 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
3032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 ac_save_LIBS="$LIBS"
3036 LIBS="-lreadline $LIBS"
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3047 eval "ac_cv_lib_$ac_lib_var=yes"
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 eval "ac_cv_lib_$ac_lib_var=no"
3055 LIBS="$ac_save_LIBS"
3058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3061 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3062 cat >> confdefs.h <<EOF
3063 #define $ac_tr_lib 1
3066 LIBS="-lreadline $LIBS"
3069 echo "$ac_t""no" 1>&6
3072 echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
3073 echo "configure:3074: checking for using_history in -lreadline" >&5
3074 ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
3075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 ac_save_LIBS="$LIBS"
3079 LIBS="-lreadline $LIBS"
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3086 char using_history();
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_lib_$ac_lib_var=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_lib_$ac_lib_var=no"
3102 LIBS="$ac_save_LIBS"
3105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 cat >> confdefs.h <<\EOF
3108 #define HAVE_HISTORY_IN_READLINE 1
3112 echo "$ac_t""no" 1>&6
3113 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
3114 echo "configure:3115: checking for main in -lhistory" >&5
3115 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
3116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_save_LIBS="$LIBS"
3120 LIBS="-lhistory $LIBS"
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3131 eval "ac_cv_lib_$ac_lib_var=yes"
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 eval "ac_cv_lib_$ac_lib_var=no"
3139 LIBS="$ac_save_LIBS"
3142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
3145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3146 cat >> confdefs.h <<EOF
3147 #define $ac_tr_lib 1
3150 LIBS="-lhistory $LIBS"
3153 echo "$ac_t""no" 1>&6
3159 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3161 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3162 echo "configure:3163: checking for main in -lbsd" >&5
3163 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_save_LIBS="$LIBS"
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 eval "ac_cv_lib_$ac_lib_var=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_lib_$ac_lib_var=no"
3187 LIBS="$ac_save_LIBS"
3190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3194 cat >> confdefs.h <<EOF
3195 #define $ac_tr_lib 1
3201 echo "$ac_t""no" 1>&6
3205 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3206 echo "configure:3207: checking for setproctitle in -lutil" >&5
3207 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 ac_save_LIBS="$LIBS"
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3219 char setproctitle();
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3249 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3253 echo "configure:3254: checking for main in -lm" >&5
3254 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_lib_$ac_lib_var=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_lib_$ac_lib_var=no"
3278 LIBS="$ac_save_LIBS"
3281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3285 cat >> confdefs.h <<EOF
3286 #define $ac_tr_lib 1
3292 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3296 echo "configure:3297: checking for main in -ldl" >&5
3297 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_save_LIBS="$LIBS"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 eval "ac_cv_lib_$ac_lib_var=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_lib_$ac_lib_var=no"
3321 LIBS="$ac_save_LIBS"
3324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3328 cat >> confdefs.h <<EOF
3329 #define $ac_tr_lib 1
3335 echo "$ac_t""no" 1>&6
3338 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3339 echo "configure:3340: checking for main in -lsocket" >&5
3340 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 ac_save_LIBS="$LIBS"
3345 LIBS="-lsocket $LIBS"
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 eval "ac_cv_lib_$ac_lib_var=yes"
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3361 eval "ac_cv_lib_$ac_lib_var=no"
3364 LIBS="$ac_save_LIBS"
3367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3371 cat >> confdefs.h <<EOF
3372 #define $ac_tr_lib 1
3375 LIBS="-lsocket $LIBS"
3378 echo "$ac_t""no" 1>&6
3381 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3382 echo "configure:3383: checking for main in -lnsl" >&5
3383 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 ac_save_LIBS="$LIBS"
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_lib_$ac_lib_var=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_lib_$ac_lib_var=no"
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3413 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3414 cat >> confdefs.h <<EOF
3415 #define $ac_tr_lib 1
3421 echo "$ac_t""no" 1>&6
3424 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3425 echo "configure:3426: checking for main in -lipc" >&5
3426 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_save_LIBS="$LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3457 cat >> confdefs.h <<EOF
3458 #define $ac_tr_lib 1
3464 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3468 echo "configure:3469: checking for main in -lIPC" >&5
3469 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_lib_$ac_lib_var=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_lib_$ac_lib_var=no"
3493 LIBS="$ac_save_LIBS"
3496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3500 cat >> confdefs.h <<EOF
3501 #define $ac_tr_lib 1
3507 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3511 echo "configure:3512: checking for main in -llc" >&5
3512 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3528 eval "ac_cv_lib_$ac_lib_var=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_lib_$ac_lib_var=no"
3536 LIBS="$ac_save_LIBS"
3539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3543 cat >> confdefs.h <<EOF
3544 #define $ac_tr_lib 1
3550 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3554 echo "configure:3555: checking for main in -ldld" >&5
3555 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS="$LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3586 cat >> confdefs.h <<EOF
3587 #define $ac_tr_lib 1
3593 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3597 echo "configure:3598: checking for main in -lln" >&5
3598 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_save_LIBS="$LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 eval "ac_cv_lib_$ac_lib_var=no"
3622 LIBS="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3629 cat >> confdefs.h <<EOF
3630 #define $ac_tr_lib 1
3636 echo "$ac_t""no" 1>&6
3639 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3640 echo "configure:3641: checking for main in -lld" >&5
3641 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_save_LIBS="$LIBS"
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3655 if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3657 eval "ac_cv_lib_$ac_lib_var=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 eval "ac_cv_lib_$ac_lib_var=no"
3665 LIBS="$ac_save_LIBS"
3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3672 cat >> confdefs.h <<EOF
3673 #define $ac_tr_lib 1
3679 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3683 echo "configure:3684: checking for main in -lcompat" >&5
3684 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 ac_save_LIBS="$LIBS"
3689 LIBS="-lcompat $LIBS"
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3698 if { (eval echo configure:3699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 eval "ac_cv_lib_$ac_lib_var=yes"
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3705 eval "ac_cv_lib_$ac_lib_var=no"
3708 LIBS="$ac_save_LIBS"
3711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6
3713 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3715 cat >> confdefs.h <<EOF
3716 #define $ac_tr_lib 1
3719 LIBS="-lcompat $LIBS"
3722 echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3726 echo "configure:3727: checking for main in -lBSD" >&5
3727 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_save_LIBS="$LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_lib 1
3765 echo "$ac_t""no" 1>&6
3768 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3769 echo "configure:3770: checking for main in -lgen" >&5
3770 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 eval "ac_cv_lib_$ac_lib_var=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 eval "ac_cv_lib_$ac_lib_var=no"
3794 LIBS="$ac_save_LIBS"
3797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_lib 1
3808 echo "$ac_t""no" 1>&6
3811 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3812 echo "configure:3813: checking for main in -lPW" >&5
3813 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_lib_$ac_lib_var=no"
3837 LIBS="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3843 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_lib 1
3851 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3856 echo "configure:3857: checking for library containing crypt" >&5
3857 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 ac_func_search_save_LIBS="$LIBS"
3861 ac_cv_search_crypt="no"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 ac_cv_search_crypt="none required"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3882 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
3883 LIBS="-l$i $ac_func_search_save_LIBS"
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 ac_cv_search_crypt="-l$i"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3906 LIBS="$ac_func_search_save_LIBS"
3909 echo "$ac_t""$ac_cv_search_crypt" 1>&6
3910 if test "$ac_cv_search_crypt" != "no"; then
3911 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3916 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
3917 echo "configure:3918: checking for inflate in -lz" >&5
3918 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
3919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 ac_save_LIBS="$LIBS"
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 /* Override any gcc2 internal prototype to avoid an error. */
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
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 z | 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
3964 if test "$with_krb4" = yes ; then
3965 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
3966 echo "configure:3967: checking for des_encrypt in -ldes" >&5
3967 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 ac_save_LIBS="$LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3987 eval "ac_cv_lib_$ac_lib_var=yes"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3992 eval "ac_cv_lib_$ac_lib_var=no"
3995 LIBS="$ac_save_LIBS"
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4002 cat >> confdefs.h <<EOF
4003 #define $ac_tr_lib 1
4009 echo "$ac_t""no" 1>&6
4010 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4013 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4014 echo "configure:4015: checking for krb_sendauth in -lkrb" >&5
4015 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 ac_save_LIBS="$LIBS"
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4027 char krb_sendauth();
4033 if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4035 eval "ac_cv_lib_$ac_lib_var=yes"
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 eval "ac_cv_lib_$ac_lib_var=no"
4043 LIBS="$ac_save_LIBS"
4046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4050 cat >> confdefs.h <<EOF
4051 #define $ac_tr_lib 1
4057 echo "$ac_t""no" 1>&6
4058 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4063 if test "$with_krb5" = yes ; then
4064 echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
4065 echo "configure:4066: checking for main in -lcom_err" >&5
4066 ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_save_LIBS="$LIBS"
4071 LIBS="-lcom_err $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4082 eval "ac_cv_lib_$ac_lib_var=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 eval "ac_cv_lib_$ac_lib_var=no"
4090 LIBS="$ac_save_LIBS"
4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4097 cat >> confdefs.h <<EOF
4098 #define $ac_tr_lib 1
4101 LIBS="-lcom_err $LIBS"
4104 echo "$ac_t""no" 1>&6
4105 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4108 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
4109 echo "configure:4110: checking for main in -lcrypto" >&5
4110 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
4111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4115 LIBS="-lcrypto $LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_lib 1
4145 LIBS="-lcrypto $LIBS"
4148 echo "$ac_t""no" 1>&6
4149 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4152 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
4153 echo "configure:4154: checking for main in -lkrb5" >&5
4154 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
4155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 ac_save_LIBS="$LIBS"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4170 eval "ac_cv_lib_$ac_lib_var=yes"
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 eval "ac_cv_lib_$ac_lib_var=no"
4178 LIBS="$ac_save_LIBS"
4181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4183 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4184 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4185 cat >> confdefs.h <<EOF
4186 #define $ac_tr_lib 1
4192 echo "$ac_t""no" 1>&6
4193 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4198 if test "$with_openssl" = yes ; then
4199 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4200 echo "configure:4201: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4201 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 ac_save_LIBS="$LIBS"
4206 LIBS="-lcrypto $LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char CRYPTO_new_ex_data();
4216 CRYPTO_new_ex_data()
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_lib_$ac_lib_var=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_lib_$ac_lib_var=no"
4229 LIBS="$ac_save_LIBS"
4232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_lib 1
4240 LIBS="-lcrypto $LIBS"
4243 echo "$ac_t""no" 1>&6
4244 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4247 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4248 echo "configure:4249: checking for SSL_library_init in -lssl" >&5
4249 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 ac_save_LIBS="$LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4261 char SSL_library_init();
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_lib_$ac_lib_var=no"
4277 LIBS="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_lib 1
4291 echo "$ac_t""no" 1>&6
4292 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4301 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h netinet/tcp.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
4303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_hdr" >&5
4306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315 { (eval echo configure:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317 if test -z "$ac_err"; then
4319 eval "ac_cv_header_$ac_safe=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 eval "ac_cv_header_$ac_safe=no"
4329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_hdr 1
4337 echo "$ac_t""no" 1>&6
4342 for ac_hdr in readline/readline.h readline.h
4344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_hdr" >&5
4347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4356 { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4358 if test -z "$ac_err"; then
4360 eval "ac_cv_header_$ac_safe=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 eval "ac_cv_header_$ac_safe=no"
4370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_hdr 1
4378 echo "$ac_t""no" 1>&6
4382 for ac_hdr in readline/history.h history.h
4384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_hdr" >&5
4387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4396 { (eval echo configure:4397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4398 if test -z "$ac_err"; then
4400 eval "ac_cv_header_$ac_safe=yes"
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4406 eval "ac_cv_header_$ac_safe=no"
4410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4413 cat >> confdefs.h <<EOF
4414 #define $ac_tr_hdr 1
4418 echo "$ac_t""no" 1>&6
4423 if test "$with_krb4" = yes ; then
4424 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4425 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4426 echo "configure:4427: checking for krb.h" >&5
4427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4436 { (eval echo configure:4437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4438 if test -z "$ac_err"; then
4440 eval "ac_cv_header_$ac_safe=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_header_$ac_safe=no"
4450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4454 echo "$ac_t""no" 1>&6
4455 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4460 if test "$with_krb5" = yes ; then
4461 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4462 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4463 echo "configure:4464: checking for krb5.h" >&5
4464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4473 { (eval echo configure:4474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4475 if test -z "$ac_err"; then
4477 eval "ac_cv_header_$ac_safe=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_header_$ac_safe=no"
4487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4488 echo "$ac_t""yes" 1>&6
4491 echo "$ac_t""no" 1>&6
4492 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4495 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4497 echo "configure:4498: checking for com_err.h" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <com_err.h>
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4511 eval "ac_cv_header_$ac_safe=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 eval "ac_cv_header_$ac_safe=no"
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4526 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4531 if test "$with_openssl" = yes ; then
4532 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4534 echo "configure:4535: checking for openssl/ssl.h" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 #include <openssl/ssl.h>
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4562 echo "$ac_t""no" 1>&6
4563 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4566 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4567 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4568 echo "configure:4569: checking for openssl/err.h" >&5
4569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <openssl/err.h>
4577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4578 { (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4580 if test -z "$ac_err"; then
4582 eval "ac_cv_header_$ac_safe=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 eval "ac_cv_header_$ac_safe=no"
4592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4596 echo "$ac_t""no" 1>&6
4597 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4604 ## Types, structures, compiler characteristics
4606 echo $ac_n "checking for working const""... $ac_c" 1>&6
4607 echo "configure:4608: checking for working const" >&5
4608 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
4617 /* Ultrix mips cc rejects this. */
4618 typedef int charset[2]; const charset x;
4619 /* SunOS 4.1.1 cc rejects this. */
4620 char const *const *ccp;
4622 /* NEC SVR4.0.2 mips cc rejects this. */
4623 struct point {int x, y;};
4624 static struct point const zero = {0,0};
4625 /* AIX XL C 1.02.0.0 rejects this.
4626 It does not let you subtract one const X* pointer from another in an arm
4627 of an if-expression whose if-part is not a constant expression */
4628 const char *g = "string";
4629 ccp = &g + (g ? g-g : 0);
4630 /* HPUX 7.0 cc rejects these. */
4633 ccp = (char const *const *) p;
4634 { /* SCO 3.2v4 cc rejects this. */
4636 char const *s = 0 ? (char *) 0 : (char const *) 0;
4640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4642 const int *foo = &x[0];
4645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4646 typedef const int *iptr;
4650 { /* AIX XL C 1.02.0.0 rejects this saying
4651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4652 struct s { int j; const int *ap[3]; };
4653 struct s *b; b->j = 5;
4655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4673 echo "$ac_t""$ac_cv_c_const" 1>&6
4674 if test $ac_cv_c_const = no; then
4675 cat >> confdefs.h <<\EOF
4681 echo $ac_n "checking for inline""... $ac_c" 1>&6
4682 echo "configure:4683: checking for inline" >&5
4683 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4687 for ac_kw in inline __inline__ __inline; do
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4696 if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4698 ac_cv_c_inline=$ac_kw; break
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4708 echo "$ac_t""$ac_cv_c_inline" 1>&6
4709 case "$ac_cv_c_inline" in
4711 no) cat >> confdefs.h <<\EOF
4715 *) cat >> confdefs.h <<EOF
4716 #define inline $ac_cv_c_inline
4723 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
4724 echo "configure:4725: checking for preprocessor stringizing operator" >&5
4725 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4734 char *s = x(teststring);
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 egrep "#teststring" >/dev/null 2>&1; then
4740 ac_cv_c_stringize=no
4743 ac_cv_c_stringize=yes
4749 if test "${ac_cv_c_stringize}" = yes
4751 cat >> confdefs.h <<\EOF
4752 #define HAVE_STRINGIZE 1
4756 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
4758 echo $ac_n "checking for signed types""... $ac_c" 1>&6
4759 echo "configure:4760: checking for signed types" >&5
4760 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4768 signed char c; signed short s; signed int i;
4771 if { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4773 pgac_cv_c_signed=yes
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4783 echo "$ac_t""$pgac_cv_c_signed" 1>&6
4784 if test x"$pgac_cv_c_signed" = xno ; then
4785 cat >> confdefs.h <<\EOF
4790 echo $ac_n "checking for volatile""... $ac_c" 1>&6
4791 echo "configure:4792: checking for volatile" >&5
4792 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 extern volatile int i;
4803 if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 pgac_cv_c_volatile=yes
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 pgac_cv_c_volatile=no
4815 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
4816 if test x"$pgac_cv_c_volatile" = xno ; then
4817 cat >> confdefs.h <<\EOF
4822 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether struct tm is in sys/time.h or time.h" >&5
4824 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <sys/types.h>
4833 struct tm *tp; tp->tm_sec;
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_struct_tm=time.h
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ac_cv_struct_tm=sys/time.h
4848 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4849 if test $ac_cv_struct_tm = sys/time.h; then
4850 cat >> confdefs.h <<\EOF
4851 #define TM_IN_SYS_TIME 1
4856 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4857 echo "configure:4858: checking for tm_zone in struct tm" >&5
4858 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/types.h>
4865 #include <$ac_cv_struct_tm>
4867 struct tm tm; tm.tm_zone;
4870 if { (eval echo configure:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 ac_cv_struct_tm_zone=yes
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 ac_cv_struct_tm_zone=no
4882 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4883 if test "$ac_cv_struct_tm_zone" = yes; then
4884 cat >> confdefs.h <<\EOF
4885 #define HAVE_TM_ZONE 1
4889 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4890 echo "configure:4891: checking for tzname" >&5
4891 if eval "test \"`echo '$''{'ac_cv_var_tzname'+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"
4898 #ifndef tzname /* For SGI. */
4899 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 ac_cv_var_tzname=yes
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4917 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4918 if test $ac_cv_var_tzname = yes; then
4919 cat >> confdefs.h <<\EOF
4920 #define HAVE_TZNAME 1
4926 echo $ac_n "checking for union semun""... $ac_c" 1>&6
4927 echo "configure:4928: checking for union semun" >&5
4928 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4934 #include <sys/types.h>
4935 #include <sys/ipc.h>
4936 #include <sys/sem.h>
4941 if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4943 pgac_cv_union_semun=yes
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 pgac_cv_union_semun=no
4953 echo "$ac_t""$pgac_cv_union_semun" 1>&6
4954 if test x"$pgac_cv_union_semun" = xyes ; then
4955 cat >> confdefs.h <<\EOF
4956 #define HAVE_UNION_SEMUN 1
4960 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
4961 echo "configure:4962: checking for struct sockaddr_un" >&5
4962 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+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 <sys/types.h>
4969 #ifdef HAVE_SYS_UN_H
4973 struct sockaddr_un un;
4976 if { (eval echo configure:4977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4978 pgac_cv_struct_sockaddr_un=yes
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 pgac_cv_struct_sockaddr_un=no
4988 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
4989 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
4990 cat >> confdefs.h <<\EOF
4991 #define HAVE_STRUCT_SOCKADDR_UN 1
4997 ## Functions, global variables
4999 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5000 echo "configure:5001: checking for int timezone" >&5
5001 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5009 int res = timezone / 60;
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 pgac_cv_var_int_timezone=yes
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 pgac_cv_var_int_timezone=no
5024 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5025 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5026 cat >> confdefs.h <<\EOF
5027 #define HAVE_INT_TIMEZONE
5031 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5032 echo "configure:5033: checking types of arguments for accept()" >&5
5033 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5043 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5044 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5045 cat > conftest.$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5048 #ifdef HAVE_SYS_TYPES_H
5049 #include <sys/types.h>
5051 #ifdef HAVE_SYS_SOCKET_H
5052 #include <sys/socket.h>
5054 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5059 if { (eval echo configure:5060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5061 ac_not_found=no; break 3
5063 echo "configure: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5072 if test "$ac_not_found" = yes; then
5073 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5081 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5082 cat >> confdefs.h <<EOF
5083 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5086 cat >> confdefs.h <<EOF
5087 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5090 cat >> confdefs.h <<EOF
5091 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5095 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5096 echo "configure:5097: checking whether gettimeofday takes only one argument" >&5
5097 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5103 #include <sys/time.h>
5106 struct timezone *tzp;
5107 gettimeofday(tp,tzp);
5110 if { (eval echo configure:5111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5112 pgac_cv_func_gettimeofday_1arg=no
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 pgac_cv_func_gettimeofday_1arg=yes
5122 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5123 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5124 cat >> confdefs.h <<\EOF
5125 #define GETTIMEOFDAY_1ARG
5130 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5131 echo "configure:5132: checking for fcntl(F_SETLK)" >&5
5133 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5135 cat > conftest.$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5144 lck.l_type = F_WRLCK;
5145 fcntl(0, F_SETLK, &lck);
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 cat >> confdefs.h <<\EOF
5151 #define HAVE_FCNTL_SETLK 1
5153 echo "$ac_t""yes" 1>&6
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 echo "$ac_t""no" 1>&6
5164 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5167 echo "configure:5168: checking for $ac_func" >&5
5168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5174 /* System header to define __stub macros and hopefully few prototypes,
5175 which can conflict with char $ac_func(); below. */
5177 /* Override any gcc2 internal prototype to avoid an error. */
5178 /* We use char because int might match the return type of a gcc2
5179 builtin and then its argument prototype would still apply. */
5184 /* The GNU C library defines this for functions which it implements
5185 to always fail with ENOSYS. Some functions are actually named
5186 something starting with __ and the normal name is an alias. */
5187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5197 eval "ac_cv_func_$ac_func=yes"
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 eval "ac_cv_func_$ac_func=no"
5207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5208 echo "$ac_t""yes" 1>&6
5209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5210 cat >> confdefs.h <<EOF
5211 #define $ac_tr_func 1
5215 echo "$ac_t""no" 1>&6
5220 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5221 echo "configure:5222: checking for PS_STRINGS" >&5
5222 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5223 echo $ac_n "(cached) $ac_c" 1>&6
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 #include <machine/vmparam.h>
5229 #include <sys/exec.h>
5232 PS_STRINGS->ps_nargvstr = 1;
5233 PS_STRINGS->ps_argvstr = "foo";
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 pgac_cv_var_PS_STRINGS=yes
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 pgac_cv_var_PS_STRINGS=no
5248 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5249 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5250 cat >> confdefs.h <<\EOF
5251 #define HAVE_PS_STRINGS
5257 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5258 echo "configure:5259: checking for snprintf" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char snprintf(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 eval "ac_cv_func_snprintf=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 eval "ac_cv_func_snprintf=no"
5298 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 cat >> confdefs.h <<\EOF
5301 #define HAVE_SNPRINTF 1
5305 echo "$ac_t""no" 1>&6
5306 SNPRINTF='snprintf.o'
5309 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5310 echo "configure:5311: checking for vsnprintf" >&5
5311 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5312 echo $ac_n "(cached) $ac_c" 1>&6
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5317 /* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char vsnprintf(); below. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 /* We use char because int might match the return type of a gcc2
5322 builtin and then its argument prototype would still apply. */
5327 /* The GNU C library defines this for functions which it implements
5328 to always fail with ENOSYS. Some functions are actually named
5329 something starting with __ and the normal name is an alias. */
5330 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5338 if { (eval echo configure:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5340 eval "ac_cv_func_vsnprintf=yes"
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5345 eval "ac_cv_func_vsnprintf=no"
5350 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 cat >> confdefs.h <<\EOF
5353 #define HAVE_VSNPRINTF 1
5357 echo "$ac_t""no" 1>&6
5358 SNPRINTF='snprintf.o'
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368 egrep "snprintf" >/dev/null 2>&1; then
5370 cat >> confdefs.h <<\EOF
5371 #define HAVE_SNPRINTF_DECL 1
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 egrep "vsnprintf" >/dev/null 2>&1; then
5385 cat >> confdefs.h <<\EOF
5386 #define HAVE_VSNPRINTF_DECL 1
5393 # do this one the hard way in case isinf() is a macro
5394 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5395 echo "configure:5396: checking for isinf" >&5
5396 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5397 echo $ac_n "(cached) $ac_c" 1>&6
5399 cat > conftest.$ac_ext <<EOF
5400 #line 5401 "configure"
5401 #include "confdefs.h"
5405 double x = 0.0; int res = isinf(x);
5408 if { (eval echo configure:5409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5410 ac_cv_func_isinf=yes
5412 echo "configure: failed program was:" >&5
5413 cat conftest.$ac_ext >&5
5420 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5422 if test $ac_cv_func_isinf = yes ; then
5423 cat >> confdefs.h <<\EOF
5424 #define HAVE_ISINF 1
5430 # Look for a way to implement a substitute for isinf()
5431 for ac_func in fpclass fp_class fp_class_d class
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5464 eval "ac_cv_func_$ac_func=yes"
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5469 eval "ac_cv_func_$ac_func=no"
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h <<EOF
5478 #define $ac_tr_func 1
5482 echo "$ac_t""no" 1>&6
5489 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5490 echo "configure:5491: checking for getrusage" >&5
5491 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 cat > conftest.$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497 /* System header to define __stub macros and hopefully few prototypes,
5498 which can conflict with char getrusage(); below. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */
5507 /* The GNU C library defines this for functions which it implements
5508 to always fail with ENOSYS. Some functions are actually named
5509 something starting with __ and the normal name is an alias. */
5510 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5518 if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5520 eval "ac_cv_func_getrusage=yes"
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 eval "ac_cv_func_getrusage=no"
5530 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5531 echo "$ac_t""yes" 1>&6
5532 cat >> confdefs.h <<\EOF
5533 #define HAVE_GETRUSAGE 1
5537 echo "$ac_t""no" 1>&6
5538 GETRUSAGE='getrusage.o'
5542 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5543 echo "configure:5544: checking for srandom" >&5
5544 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5547 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5550 /* System header to define __stub macros and hopefully few prototypes,
5551 which can conflict with char srandom(); below. */
5553 /* Override any gcc2 internal prototype to avoid an error. */
5554 /* We use char because int might match the return type of a gcc2
5555 builtin and then its argument prototype would still apply. */
5560 /* The GNU C library defines this for functions which it implements
5561 to always fail with ENOSYS. Some functions are actually named
5562 something starting with __ and the normal name is an alias. */
5563 #if defined (__stub_srandom) || defined (__stub___srandom)
5571 if { (eval echo configure:5572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5573 eval "ac_cv_func_srandom=yes"
5575 echo "configure: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5578 eval "ac_cv_func_srandom=no"
5583 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5584 echo "$ac_t""yes" 1>&6
5585 cat >> confdefs.h <<\EOF
5586 #define HAVE_SRANDOM 1
5590 echo "$ac_t""no" 1>&6
5595 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5596 echo "configure:5597: checking for gethostname" >&5
5597 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 cat > conftest.$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 /* System header to define __stub macros and hopefully few prototypes,
5604 which can conflict with char gethostname(); below. */
5606 /* Override any gcc2 internal prototype to avoid an error. */
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5626 eval "ac_cv_func_gethostname=yes"
5628 echo "configure: failed program was:" >&5
5629 cat conftest.$ac_ext >&5
5631 eval "ac_cv_func_gethostname=no"
5636 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 cat >> confdefs.h <<\EOF
5639 #define HAVE_GETHOSTNAME 1
5643 echo "$ac_t""no" 1>&6
5644 GETHOSTNAME='gethostname.o'
5648 echo $ac_n "checking for random""... $ac_c" 1>&6
5649 echo "configure:5650: checking for random" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char random(); below. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_random) || defined (__stub___random)
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_func_random=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_func_random=no"
5689 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 cat >> confdefs.h <<\EOF
5692 #define HAVE_RANDOM 1
5696 echo "$ac_t""no" 1>&6
5697 MISSING_RANDOM='random.o'
5701 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
5702 echo "configure:5703: checking for inet_aton" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char inet_aton(); below. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 eval "ac_cv_func_inet_aton=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 eval "ac_cv_func_inet_aton=no"
5742 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 cat >> confdefs.h <<\EOF
5745 #define HAVE_INET_ATON 1
5749 echo "$ac_t""no" 1>&6
5750 INET_ATON='inet_aton.o'
5754 echo $ac_n "checking for strerror""... $ac_c" 1>&6
5755 echo "configure:5756: checking for strerror" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char strerror(); below. */
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_strerror) || defined (__stub___strerror)
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 eval "ac_cv_func_strerror=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 eval "ac_cv_func_strerror=no"
5795 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 cat >> confdefs.h <<\EOF
5798 #define HAVE_STRERROR 1
5802 echo "$ac_t""no" 1>&6
5803 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
5808 echo $ac_n "checking for strdup""... $ac_c" 1>&6
5809 echo "configure:5810: checking for strdup" >&5
5810 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5816 /* System header to define __stub macros and hopefully few prototypes,
5817 which can conflict with char strdup(); below. */
5819 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5826 /* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829 #if defined (__stub_strdup) || defined (__stub___strdup)
5837 if { (eval echo configure:5838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5839 eval "ac_cv_func_strdup=yes"
5841 echo "configure: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 eval "ac_cv_func_strdup=no"
5849 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
5850 echo "$ac_t""yes" 1>&6
5851 cat >> confdefs.h <<\EOF
5852 #define HAVE_STRDUP 1
5856 echo "$ac_t""no" 1>&6
5857 STRDUP='../../utils/strdup.o'
5861 echo $ac_n "checking for strtol""... $ac_c" 1>&6
5862 echo "configure:5863: checking for strtol" >&5
5863 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5869 /* System header to define __stub macros and hopefully few prototypes,
5870 which can conflict with char strtol(); below. */
5872 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5879 /* The GNU C library defines this for functions which it implements
5880 to always fail with ENOSYS. Some functions are actually named
5881 something starting with __ and the normal name is an alias. */
5882 #if defined (__stub_strtol) || defined (__stub___strtol)
5890 if { (eval echo configure:5891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5892 eval "ac_cv_func_strtol=yes"
5894 echo "configure: failed program was:" >&5
5895 cat conftest.$ac_ext >&5
5897 eval "ac_cv_func_strtol=no"
5902 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_STRTOL 1
5909 echo "$ac_t""no" 1>&6
5914 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
5915 echo "configure:5916: checking for strtoul" >&5
5916 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 /* System header to define __stub macros and hopefully few prototypes,
5923 which can conflict with char strtoul(); below. */
5925 /* Override any gcc2 internal prototype to avoid an error. */
5926 /* We use char because int might match the return type of a gcc2
5927 builtin and then its argument prototype would still apply. */
5932 /* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935 #if defined (__stub_strtoul) || defined (__stub___strtoul)
5943 if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 eval "ac_cv_func_strtoul=yes"
5947 echo "configure: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 eval "ac_cv_func_strtoul=no"
5955 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
5956 echo "$ac_t""yes" 1>&6
5957 cat >> confdefs.h <<\EOF
5958 #define HAVE_STRTOUL 1
5962 echo "$ac_t""no" 1>&6
5967 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
5968 echo "configure:5969: checking for strcasecmp" >&5
5969 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char strcasecmp(); below. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_func_strcasecmp=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_func_strcasecmp=no"
6008 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 cat >> confdefs.h <<\EOF
6011 #define HAVE_STRCASECMP 1
6015 echo "$ac_t""no" 1>&6
6016 STRCASECMP='strcasecmp.o'
6020 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6021 echo "configure:6022: checking for cbrt" >&5
6022 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6023 echo $ac_n "(cached) $ac_c" 1>&6
6025 cat > conftest.$ac_ext <<EOF
6026 #line 6027 "configure"
6027 #include "confdefs.h"
6028 /* System header to define __stub macros and hopefully few prototypes,
6029 which can conflict with char cbrt(); below. */
6031 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */
6038 /* The GNU C library defines this for functions which it implements
6039 to always fail with ENOSYS. Some functions are actually named
6040 something starting with __ and the normal name is an alias. */
6041 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 eval "ac_cv_func_cbrt=yes"
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 eval "ac_cv_func_cbrt=no"
6061 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6062 echo "$ac_t""yes" 1>&6
6063 cat >> confdefs.h <<\EOF
6068 echo "$ac_t""no" 1>&6
6069 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6070 echo "configure:6071: checking for cbrt in -lm" >&5
6071 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6
6075 ac_save_LIBS="$LIBS"
6077 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure"
6079 #include "confdefs.h"
6080 /* Override any gcc2 internal prototype to avoid an error. */
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6089 if { (eval echo configure:6090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6091 eval "ac_cv_lib_$ac_lib_var=yes"
6093 echo "configure: failed program was:" >&5
6094 cat conftest.$ac_ext >&5
6096 eval "ac_cv_lib_$ac_lib_var=no"
6099 LIBS="$ac_save_LIBS"
6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6104 cat >> confdefs.h <<\EOF
6109 echo "$ac_t""no" 1>&6
6115 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6116 # this hackery with HPUXMATHLIB allows us to cope.
6120 if [ -r /lib/pa1.1/libm.a ] ; then
6121 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6126 echo $ac_n "checking for rint""... $ac_c" 1>&6
6127 echo "configure:6128: checking for rint" >&5
6128 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 /* System header to define __stub macros and hopefully few prototypes,
6135 which can conflict with char rint(); below. */
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */
6144 /* The GNU C library defines this for functions which it implements
6145 to always fail with ENOSYS. Some functions are actually named
6146 something starting with __ and the normal name is an alias. */
6147 #if defined (__stub_rint) || defined (__stub___rint)
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_func_rint=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_func_rint=no"
6167 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 cat >> confdefs.h <<\EOF
6174 echo "$ac_t""no" 1>&6
6175 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6176 echo "configure:6177: checking for rint in -lm" >&5
6177 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6179 echo $ac_n "(cached) $ac_c" 1>&6
6181 ac_save_LIBS="$LIBS"
6182 LIBS="-lm $HPUXMATHLIB $LIBS"
6183 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure"
6185 #include "confdefs.h"
6186 /* Override any gcc2 internal prototype to avoid an error. */
6187 /* We use char because int might match the return type of a gcc2
6188 builtin and then its argument prototype would still apply. */
6195 if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6197 eval "ac_cv_lib_$ac_lib_var=yes"
6199 echo "configure: failed program was:" >&5
6200 cat conftest.$ac_ext >&5
6202 eval "ac_cv_lib_$ac_lib_var=no"
6205 LIBS="$ac_save_LIBS"
6208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6209 echo "$ac_t""yes" 1>&6
6210 cat >> confdefs.h <<\EOF
6215 echo "$ac_t""no" 1>&6
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 #include <readline.h>
6226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6227 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6229 cat >> confdefs.h <<\EOF
6230 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 #include <readline/readline.h>
6240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6241 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6243 cat >> confdefs.h <<\EOF
6244 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6255 for ac_func in filename_completion_function
6257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6258 echo "configure:6259: checking for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
6290 echo "configure: failed program was:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_func_$ac_func=no"
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6304 cat > conftest.$ac_ext <<EOF
6305 #line 6306 "configure"
6306 #include "confdefs.h"
6307 #include <readline.h>
6309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6310 egrep "filename_completion_function" >/dev/null 2>&1; then
6312 cat >> confdefs.h <<\EOF
6313 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 #include <readline/readline.h>
6323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324 egrep "filename_completion_function" >/dev/null 2>&1; then
6326 cat >> confdefs.h <<\EOF
6327 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6338 echo "$ac_t""no" 1>&6
6346 echo $ac_n "checking for finite""... $ac_c" 1>&6
6347 echo "configure:6348: checking for finite" >&5
6348 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6353 int dummy=finite(1.0);
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 cat >> confdefs.h <<\EOF
6359 #define HAVE_FINITE 1
6361 echo "$ac_t""yes" 1>&6
6363 echo "configure: failed program was:" >&5
6364 cat conftest.$ac_ext >&5
6366 echo "$ac_t""no" 1>&6
6370 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6371 echo "configure:6372: checking for sigsetjmp" >&5
6372 cat > conftest.$ac_ext <<EOF
6373 #line 6374 "configure"
6374 #include "confdefs.h"
6377 sigjmp_buf x; sigsetjmp(x, 1);
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 cat >> confdefs.h <<\EOF
6383 #define HAVE_SIGSETJMP 1
6385 echo "$ac_t""yes" 1>&6
6387 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5
6390 echo "$ac_t""no" 1>&6
6395 # Check whether --enable-syslog was given
6396 if test x"${enable_syslog+set}" = xset; then
6397 case $enable_syslog in
6399 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6400 echo "configure:6401: checking for syslog" >&5
6401 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure"
6406 #include "confdefs.h"
6407 /* System header to define __stub macros and hopefully few prototypes,
6408 which can conflict with char syslog(); below. */
6410 /* Override any gcc2 internal prototype to avoid an error. */
6411 /* We use char because int might match the return type of a gcc2
6412 builtin and then its argument prototype would still apply. */
6417 /* The GNU C library defines this for functions which it implements
6418 to always fail with ENOSYS. Some functions are actually named
6419 something starting with __ and the normal name is an alias. */
6420 #if defined (__stub_syslog) || defined (__stub___syslog)
6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 eval "ac_cv_func_syslog=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_func_syslog=no"
6440 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 cat >> confdefs.h <<\EOF
6443 #define ENABLE_SYSLOG 1
6447 echo "$ac_t""no" 1>&6
6448 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6456 enableval=$enable_syslog
6457 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6459 esac # $enable_syslog
6467 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6468 echo "configure:6469: checking whether long int is 64 bits" >&5
6469 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6472 if test "$cross_compiling" = yes; then
6473 pgac_cv_type_long_int_64=no
6474 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 typedef long int int64;
6482 * These are globals to discourage the compiler from folding all the
6483 * arithmetic tests down to compile-time constants.
6488 int does_int64_work()
6492 if (sizeof(int64) != 8)
6493 return 0; /* definitely not the right size */
6495 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6503 exit(! does_int64_work());
6506 if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6508 pgac_cv_type_long_int_64=yes
6510 echo "configure: failed program was:" >&5
6511 cat conftest.$ac_ext >&5
6513 pgac_cv_type_long_int_64=no
6520 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6522 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6523 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6524 cat >> confdefs.h <<\EOF
6525 #define HAVE_LONG_INT_64
6531 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6532 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6533 echo "configure:6534: checking whether long long int is 64 bits" >&5
6534 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6535 echo $ac_n "(cached) $ac_c" 1>&6
6537 if test "$cross_compiling" = yes; then
6538 pgac_cv_type_long_long_int_64=no
6539 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6544 typedef long long int int64;
6547 * These are globals to discourage the compiler from folding all the
6548 * arithmetic tests down to compile-time constants.
6553 int does_int64_work()
6557 if (sizeof(int64) != 8)
6558 return 0; /* definitely not the right size */
6560 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6568 exit(! does_int64_work());
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6573 pgac_cv_type_long_long_int_64=yes
6575 echo "configure: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6578 pgac_cv_type_long_long_int_64=no
6585 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6587 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6588 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6589 cat >> confdefs.h <<\EOF
6590 #define HAVE_LONG_LONG_INT_64
6599 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6600 if [ x$SNPRINTF = x ] ; then
6601 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6602 echo "configure:6603: checking whether snprintf handles 'long long int' as %lld" >&5
6603 if test "$cross_compiling" = yes; then
6604 echo "$ac_t""assuming not on target machine" 1>&6
6605 # Force usage of our own snprintf, since we cannot test foreign snprintf
6606 SNPRINTF='snprintf.o'
6607 INT64_FORMAT='"%lld"'
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6614 typedef long long int int64;
6615 #define INT64_FORMAT "%lld"
6620 int does_int64_snprintf_work()
6625 if (sizeof(int64) != 8)
6626 return 0; /* doesn't look like the right size */
6629 snprintf(buf, 100, INT64_FORMAT, c);
6630 if (strcmp(buf, "800000140000005") != 0)
6631 return 0; /* either multiply or snprintf is busted */
6635 exit(! does_int64_snprintf_work());
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6640 echo "$ac_t""yes" 1>&6
6641 INT64_FORMAT='"%lld"'
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6647 echo "$ac_t""no" 1>&6
6648 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6649 echo "configure:6650: checking whether snprintf handles 'long long int' as %qd" >&5
6650 if test "$cross_compiling" = yes; then
6651 echo "$ac_t""assuming not on target machine" 1>&6
6652 # Force usage of our own snprintf, since we cannot test foreign snprintf
6653 SNPRINTF='snprintf.o'
6654 INT64_FORMAT='"%lld"'
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6661 typedef long long int int64;
6662 #define INT64_FORMAT "%qd"
6667 int does_int64_snprintf_work()
6672 if (sizeof(int64) != 8)
6673 return 0; /* doesn't look like the right size */
6676 snprintf(buf, 100, INT64_FORMAT, c);
6677 if (strcmp(buf, "800000140000005") != 0)
6678 return 0; /* either multiply or snprintf is busted */
6682 exit(! does_int64_snprintf_work());
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6687 echo "$ac_t""yes" 1>&6
6688 INT64_FORMAT='"%qd"'
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6694 echo "$ac_t""no" 1>&6
6695 # Force usage of our own snprintf, since system snprintf is broken
6696 SNPRINTF='snprintf.o'
6697 INT64_FORMAT='"%lld"'
6708 # here if we previously decided we needed to use our own snprintf
6709 INT64_FORMAT='"%lld"'
6712 # Here if we are not using 'long long int' at all
6713 INT64_FORMAT='"%ld"'
6716 cat >> confdefs.h <<EOF
6717 #define INT64_FORMAT $INT64_FORMAT
6723 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6724 echo "configure:6725: checking alignment of short" >&5
6725 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 if test "$cross_compiling" = yes; then
6729 pgac_cv_alignof_short='sizeof(short)'
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6735 struct { char filler; short field; } mystruct;
6738 FILE *f=fopen("conftestval", "w");
6740 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6746 pgac_cv_alignof_short=`cat conftestval`
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 pgac_cv_alignof_short='sizeof(short)'
6757 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
6758 cat >> confdefs.h <<EOF
6759 #define ALIGNOF_SHORT $pgac_cv_alignof_short
6763 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
6764 echo "configure:6765: checking alignment of int" >&5
6765 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 if test "$cross_compiling" = yes; then
6769 pgac_cv_alignof_int='sizeof(int)'
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6775 struct { char filler; int field; } mystruct;
6778 FILE *f=fopen("conftestval", "w");
6780 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6786 pgac_cv_alignof_int=`cat conftestval`
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 pgac_cv_alignof_int='sizeof(int)'
6797 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
6798 cat >> confdefs.h <<EOF
6799 #define ALIGNOF_INT $pgac_cv_alignof_int
6803 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
6804 echo "configure:6805: checking alignment of long" >&5
6805 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 if test "$cross_compiling" = yes; then
6809 pgac_cv_alignof_long='sizeof(long)'
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6815 struct { char filler; long field; } mystruct;
6818 FILE *f=fopen("conftestval", "w");
6820 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6826 pgac_cv_alignof_long=`cat conftestval`
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 pgac_cv_alignof_long='sizeof(long)'
6837 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
6838 cat >> confdefs.h <<EOF
6839 #define ALIGNOF_LONG $pgac_cv_alignof_long
6843 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6844 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
6845 echo "configure:6846: checking alignment of long long int" >&5
6846 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
6847 echo $ac_n "(cached) $ac_c" 1>&6
6849 if test "$cross_compiling" = yes; then
6850 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6856 struct { char filler; long long int field; } mystruct;
6859 FILE *f=fopen("conftestval", "w");
6861 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6867 pgac_cv_alignof_long_long_int=`cat conftestval`
6869 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6872 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6878 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
6879 cat >> confdefs.h <<EOF
6880 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
6885 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
6886 echo "configure:6887: checking alignment of double" >&5
6887 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6
6890 if test "$cross_compiling" = yes; then
6891 pgac_cv_alignof_double='sizeof(double)'
6893 cat > conftest.$ac_ext <<EOF
6894 #line 6895 "configure"
6895 #include "confdefs.h"
6897 struct { char filler; double field; } mystruct;
6900 FILE *f=fopen("conftestval", "w");
6902 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6908 pgac_cv_alignof_double=`cat conftestval`
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 pgac_cv_alignof_double='sizeof(double)'
6919 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
6920 cat >> confdefs.h <<EOF
6921 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
6927 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
6928 MAX_ALIGNOF=$pgac_cv_alignof_long
6929 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
6930 MAX_ALIGNOF=$pgac_cv_alignof_double
6932 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
6933 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
6936 MAX_ALIGNOF="$pgac_cv_alignof_double"
6938 cat >> confdefs.h <<EOF
6939 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
6943 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
6944 echo "configure:6945: checking for POSIX signal interface" >&5
6945 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6954 struct sigaction act, oact;
6955 sigemptyset(&act.sa_mask);
6956 act.sa_flags = SA_RESTART;
6957 sigaction(0, &act, &oact);
6960 if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6962 pgac_cv_func_posix_signals=yes
6964 echo "configure: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 pgac_cv_func_posix_signals=no
6972 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
6973 if test x"$pgac_cv_func_posix_signals" = xyes ; then
6974 cat >> confdefs.h <<\EOF
6975 #define HAVE_POSIX_SIGNALS
6979 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
6983 # Check for Tcl configuration script tclConfig.sh
6984 if test "$with_tcl" = yes; then
6985 for ac_prog in tclsh tcl
6987 # Extract the first word of "$ac_prog", so it can be a program name with args.
6988 set dummy $ac_prog; ac_word=$2
6989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_word" >&5
6991 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6996 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6999 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7004 for ac_dir in $ac_dummy; do
7005 test -z "$ac_dir" && ac_dir=.
7006 if test -f $ac_dir/$ac_word; then
7007 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7015 TCLSH="$ac_cv_path_TCLSH"
7016 if test -n "$TCLSH"; then
7017 echo "$ac_t""$TCLSH" 1>&6
7019 echo "$ac_t""no" 1>&6
7022 test -n "$TCLSH" && break
7025 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7026 echo "configure:7027: checking for tclConfig.sh" >&5
7027 # Let user override test
7028 if test -z "$TCL_CONFIG_SH"; then
7029 pgac_test_dirs="$with_tclconfig"
7031 set X $pgac_test_dirs; shift
7032 if test $# -eq 0; then
7033 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7034 set X `echo 'puts $auto_path' | $TCLSH`; shift
7038 if test -r "$pgac_dir/tclConfig.sh"; then
7039 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7045 if test -z "$TCL_CONFIG_SH"; then
7046 echo "$ac_t""no" 1>&6
7047 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7049 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7056 # Check for Tk configuration script tkConfig.sh
7057 if test "$with_tk" = yes; then
7058 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7059 echo "configure:7060: checking for tkConfig.sh" >&5
7060 # Let user override test
7061 if test -z "$TK_CONFIG_SH"; then
7062 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7064 set X $pgac_test_dirs; shift
7065 if test $# -eq 0; then
7066 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7067 set X `echo 'puts $auto_path' | $TCLSH`; shift
7071 if test -r "$pgac_dir/tkConfig.sh"; then
7072 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7078 if test -z "$TK_CONFIG_SH"; then
7079 echo "$ac_t""no" 1>&6
7080 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7082 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7090 # Finally ready to produce output files ...
7093 cat > confcache <<\EOF
7094 # This file is a shell script that caches the results of configure
7095 # tests run on this system so they can be shared between configure
7096 # scripts and configure runs. It is not useful on other systems.
7097 # If it contains results you don't want to keep, you may remove or edit it.
7099 # By default, configure uses ./config.cache as the cache file,
7100 # creating it if it does not exist already. You can give configure
7101 # the --cache-file=FILE option to use a different cache file; that is
7102 # what configure does when it calls configure scripts in
7103 # subdirectories, so they share the cache.
7104 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7105 # config.status only pays attention to the cache file if you give it the
7106 # --recheck option to rerun configure.
7109 # The following way of writing the cache mishandles newlines in values,
7110 # but we know of no workaround that is simple, portable, and efficient.
7111 # So, don't put newlines in cache variables' values.
7112 # Ultrix sh set writes to stderr and can't be redirected directly,
7113 # and sets the high bit in the cache file unless we assign to the vars.
7115 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7117 # `set' does not quote correctly, so add quotes (double-quote substitution
7118 # turns \\\\ into \\, and sed turns \\ into \).
7120 -e "s/'/'\\\\''/g" \
7121 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7124 # `set' quotes correctly as required by POSIX, so do not add quotes.
7125 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7128 if cmp -s $cache_file confcache; then
7131 if test -w $cache_file; then
7132 echo "updating cache $cache_file"
7133 cat confcache > $cache_file
7135 echo "not updating unwritable cache $cache_file"
7140 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7143 # Let make expand exec_prefix.
7144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7146 # Any assignment to VPATH causes Sun make to only execute
7147 # the first set of double-colon rules, so remove it if not needed.
7148 # If there is a colon in the path, we need to keep it.
7149 if test "x$srcdir" = x.; then
7150 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7153 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7155 DEFS=-DHAVE_CONFIG_H
7157 # Without the "./", some shells look in PATH for config.status.
7158 : ${CONFIG_STATUS=./config.status}
7160 echo creating $CONFIG_STATUS
7161 rm -f $CONFIG_STATUS
7162 cat > $CONFIG_STATUS <<EOF
7164 # Generated automatically by configure.
7165 # Run this file to recreate the current configuration.
7166 # This directory was configured as follows,
7167 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7169 # $0 $ac_configure_args
7171 # Compiler output produced by configure, useful for debugging
7172 # configure, is in ./config.log if it exists.
7174 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7177 case "\$ac_option" in
7178 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7179 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7180 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7181 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7182 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7184 -help | --help | --hel | --he | --h)
7185 echo "\$ac_cs_usage"; exit 0 ;;
7186 *) echo "\$ac_cs_usage"; exit 1 ;;
7190 ac_given_srcdir=$srcdir
7191 ac_given_INSTALL="$INSTALL"
7193 trap 'rm -fr `echo "
7197 src/backend/port/Makefile
7198 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7200 cat >> $CONFIG_STATUS <<EOF
7202 # Protect against being on the right side of a sed subst in config.status.
7203 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7204 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7208 s%@CFLAGS@%$CFLAGS%g
7209 s%@CPPFLAGS@%$CPPFLAGS%g
7210 s%@CXXFLAGS@%$CXXFLAGS%g
7211 s%@FFLAGS@%$FFLAGS%g
7213 s%@LDFLAGS@%$LDFLAGS%g
7215 s%@exec_prefix@%$exec_prefix%g
7216 s%@prefix@%$prefix%g
7217 s%@program_transform_name@%$program_transform_name%g
7218 s%@bindir@%$bindir%g
7219 s%@sbindir@%$sbindir%g
7220 s%@libexecdir@%$libexecdir%g
7221 s%@datadir@%$datadir%g
7222 s%@sysconfdir@%$sysconfdir%g
7223 s%@sharedstatedir@%$sharedstatedir%g
7224 s%@localstatedir@%$localstatedir%g
7225 s%@libdir@%$libdir%g
7226 s%@includedir@%$includedir%g
7227 s%@oldincludedir@%$oldincludedir%g
7228 s%@docdir@%$docdir%g
7229 s%@mandir@%$mandir%g
7230 s%@VERSION@%$VERSION%g
7232 s%@host_alias@%$host_alias%g
7233 s%@host_cpu@%$host_cpu%g
7234 s%@host_vendor@%$host_vendor%g
7235 s%@host_os@%$host_os%g
7236 s%@PORTNAME@%$PORTNAME%g
7238 s%@MULTIBYTE@%$MULTIBYTE%g
7240 s%@EXEEXT@%$EXEEXT%g
7244 s%@SHARED_LIB@%$SHARED_LIB%g
7245 s%@DLSUFFIX@%$DLSUFFIX%g
7246 s%@DL_LIB@%$DL_LIB%g
7247 s%@autodepend@%$autodepend%g
7248 s%@INCLUDES@%$INCLUDES%g
7249 s%@with_tcl@%$with_tcl%g
7250 s%@with_tk@%$with_tk%g
7251 s%@with_perl@%$with_perl%g
7252 s%@PYTHON@%$PYTHON%g
7253 s%@python_version@%$python_version%g
7254 s%@python_prefix@%$python_prefix%g
7255 s%@python_execprefix@%$python_execprefix%g
7256 s%@python_configdir@%$python_configdir%g
7257 s%@python_moduledir@%$python_moduledir%g
7258 s%@python_extmakefile@%$python_extmakefile%g
7259 s%@with_python@%$with_python%g
7260 s%@with_krb4@%$with_krb4%g
7261 s%@with_krb5@%$with_krb5%g
7262 s%@krb_srvtab@%$krb_srvtab%g
7263 s%@KRB_LIBS@%$KRB_LIBS%g
7264 s%@with_openssl@%$with_openssl%g
7265 s%@enable_odbc@%$enable_odbc%g
7266 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7267 s%@ELF_SYS@%$ELF_SYS%g
7269 s%@CXXCPP@%$CXXCPP%g
7270 s%@with_CXX@%$with_CXX%g
7271 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7272 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7273 s%@INSTALL_DATA@%$INSTALL_DATA%g
7274 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7275 s%@mkinstalldirs@%$mkinstalldirs%g
7278 s%@FLEXFLAGS@%$FLEXFLAGS%g
7280 s%@RANLIB@%$RANLIB%g
7284 s%@YFLAGS@%$YFLAGS%g
7286 s%@SNPRINTF@%$SNPRINTF%g
7288 s%@GETRUSAGE@%$GETRUSAGE%g
7289 s%@SRANDOM@%$SRANDOM%g
7290 s%@GETHOSTNAME@%$GETHOSTNAME%g
7291 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7292 s%@INET_ATON@%$INET_ATON%g
7293 s%@STRERROR@%$STRERROR%g
7294 s%@STRERROR2@%$STRERROR2%g
7295 s%@STRDUP@%$STRDUP%g
7296 s%@STRTOL@%$STRTOL%g
7297 s%@STRTOUL@%$STRTOUL%g
7298 s%@STRCASECMP@%$STRCASECMP%g
7299 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7300 s%@HAVE_RL_COMPLETION_APPEND_CHARACTER@%$HAVE_RL_COMPLETION_APPEND_CHARACTER%g
7301 s%@HAVE_FILENAME_COMPLETION_FUNCTION@%$HAVE_FILENAME_COMPLETION_FUNCTION%g
7302 s%@HAVE_FILENAME_COMPLETION_FUNCTION_DECL@%$HAVE_FILENAME_COMPLETION_FUNCTION_DECL%g
7303 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7305 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7306 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7311 cat >> $CONFIG_STATUS <<\EOF
7313 # Split the substitutions into bite-sized pieces for seds with
7314 # small command number limits, like on Digital OSF/1 and HP-UX.
7315 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7316 ac_file=1 # Number of current file.
7317 ac_beg=1 # First line for current file.
7318 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7321 while $ac_more_lines; do
7322 if test $ac_beg -gt 1; then
7323 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7325 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7327 if test ! -s conftest.s$ac_file; then
7329 rm -f conftest.s$ac_file
7331 if test -z "$ac_sed_cmds"; then
7332 ac_sed_cmds="sed -f conftest.s$ac_file"
7334 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7336 ac_file=`expr $ac_file + 1`
7338 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7341 if test -z "$ac_sed_cmds"; then
7346 cat >> $CONFIG_STATUS <<EOF
7348 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7351 src/backend/port/Makefile
7354 cat >> $CONFIG_STATUS <<\EOF
7355 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7356 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7358 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7359 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7360 *) ac_file_in="${ac_file}.in" ;;
7363 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7365 # Remove last slash and all that follows it. Not all systems have dirname.
7366 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7367 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7368 # The file is in a subdirectory.
7369 test ! -d "$ac_dir" && mkdir "$ac_dir"
7370 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7371 # A "../" for each directory in $ac_dir_suffix.
7372 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7374 ac_dir_suffix= ac_dots=
7377 case "$ac_given_srcdir" in
7379 if test -z "$ac_dots"; then top_srcdir=.
7380 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7381 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7383 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7384 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7387 case "$ac_given_INSTALL" in
7388 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7389 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7392 echo creating "$ac_file"
7394 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7396 *Makefile*) ac_comsub="1i\\
7397 # $configure_input" ;;
7401 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7403 s%@configure_input@%$configure_input%g
7404 s%@srcdir@%$srcdir%g
7405 s%@top_srcdir@%$top_srcdir%g
7406 s%@INSTALL@%$INSTALL%g
7407 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7411 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7412 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7414 # ac_d sets the value in "#define NAME VALUE" lines.
7415 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7416 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7419 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7420 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7421 ac_uB='\([ ]\)%\1#\2define\3'
7424 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7425 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7426 ac_eB='$%\1#\2define\3'
7430 if test "${CONFIG_HEADERS+set}" != set; then
7432 cat >> $CONFIG_STATUS <<EOF
7433 CONFIG_HEADERS="src/include/config.h"
7435 cat >> $CONFIG_STATUS <<\EOF
7437 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7440 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7441 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7442 *) ac_file_in="${ac_file}.in" ;;
7445 echo creating $ac_file
7447 rm -f conftest.frag conftest.in conftest.out
7448 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7449 cat $ac_file_inputs > conftest.in
7453 # Transform confdefs.h into a sed script conftest.vals that substitutes
7454 # the proper values into config.h.in to produce config.h. And first:
7455 # Protect against being on the right side of a sed subst in config.status.
7456 # Protect against being in an unquoted here document in config.status.
7458 cat > conftest.hdr <<\EOF
7461 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7465 sed -n -f conftest.hdr confdefs.h > conftest.vals
7468 # This sed command replaces #undef with comments. This is necessary, for
7469 # example, in the case of _POSIX_SOURCE, which is predefined and required
7470 # on some systems where configure will not decide to define it.
7471 cat >> conftest.vals <<\EOF
7472 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7475 # Break up conftest.vals because some shells have a limit on
7476 # the size of here documents, and old seds have small limits too.
7481 ac_lines=`grep -c . conftest.vals`
7482 # grep -c gives empty output for an empty file on some AIX systems.
7483 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7484 # Write a limited-size here document to conftest.frag.
7485 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7486 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7488 sed -f conftest.frag conftest.in > conftest.out
7490 mv conftest.out conftest.in
7492 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7494 mv conftest.tail conftest.vals
7498 cat >> $CONFIG_STATUS <<\EOF
7499 rm -f conftest.frag conftest.h
7500 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7501 cat conftest.in >> conftest.h
7503 if cmp -s $ac_file conftest.h 2>/dev/null; then
7504 echo "$ac_file is unchanged"
7507 # Remove last slash and all that follows it. Not all systems have dirname.
7508 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7509 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7510 # The file is in a subdirectory.
7511 test ! -d "$ac_dir" && mkdir "$ac_dir"
7514 mv conftest.h $ac_file
7520 cat >> $CONFIG_STATUS <<EOF
7521 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}"
7522 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
7525 cat >> $CONFIG_STATUS <<\EOF
7526 srcdir=$ac_given_srcdir
7527 while test -n "$ac_sources"; do
7528 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7529 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7531 echo "linking $srcdir/$ac_source to $ac_dest"
7533 if test ! -r $srcdir/$ac_source; then
7534 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7538 # Make relative symlinks.
7539 # Remove last slash and all that follows it. Not all systems have dirname.
7540 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7541 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7542 # The dest file is in a subdirectory.
7543 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7544 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7545 # A "../" for each directory in $ac_dest_dir_suffix.
7546 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7548 ac_dest_dir_suffix= ac_dots=
7552 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7553 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7556 # Make a symlink if possible; otherwise try a hard link.
7557 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7558 ln $srcdir/$ac_source $ac_dest; then :
7560 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7564 cat >> $CONFIG_STATUS <<EOF
7567 cat >> $CONFIG_STATUS <<\EOF
7568 echo "timestamp file" > src/include/stamp-h
7572 chmod +x $CONFIG_STATUS
7573 rm -fr confdefs* $ac_clean_files
7574 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1