3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --enable-unicode-conversion enable unicode conversion support"
30 --enable-nls[=LANGUAGES] enable Native Language Support"
32 --with-pgport=PORTNUM change default port number [5432]"
34 --with-maxbackends=N set default maximum number of connections [32]"
36 --disable-shared do not build shared libraries"
38 --disable-rpath do not embed shared library search path in executables"
40 --enable-debug build with debugging symbols (-g)"
42 --enable-depend turn on automatic dependency tracking"
44 --enable-cassert enable assertion checks (for debugging)"
46 --with-tcl build Tcl and Tk interfaces"
48 --without-tk do not build Tk interfaces if Tcl is enabled"
50 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
52 --with-tkconfig=DIR tkConfig.sh is in DIR"
54 --enable-pltcl-unknown build PL/Tcl unknown support (if Tcl is enabled)"
56 --with-perl build Perl interface and PL/Perl"
58 --with-python build Python interface module"
60 --with-java build JDBC interface and Java tools"
62 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
64 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
66 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
68 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
70 --enable-odbc build the ODBC driver package"
72 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
74 --with-CXX build C++ modules (libpq++)"
76 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
78 --enable-syslog enable logging to syslog"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file=./config.cache
93 program_transform_name=s,x,x,
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 docdir='${prefix}/doc'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --docdir=DIR doc documentation in DIR [PREFIX/doc]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host | --host | --hos | --ho)
256 -host=* | --host=* | --hos=* | --ho=*)
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -docdir | --docdir | --infodi | --infod | --doc | --inf)
268 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
269 docdir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
377 -site=* | --site=* | --sit=*)
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=src/backend/access/common/heaptuple.c
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
585 ac_n= ac_c='\c' ac_t=
597 for ac_dir in config $srcdir/config; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
618 cat >> confdefs.h <<EOF
619 #define PG_VERSION "$VERSION"
626 # Make sure we can run config.sub.
627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631 echo $ac_n "checking host system type""... $ac_c" 1>&6
632 echo "configure:633: checking host system type" >&5
635 case "$host_alias" in
639 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 *) host_alias=$nonopt ;;
646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$host" 1>&6
657 echo $ac_n "checking which template to use""... $ac_c" 1>&6
658 echo "configure:659: checking which template to use" >&5
660 # Check whether --with-template was given
661 if test x"${with_template+set}" = xset; then
662 case $with_template in
664 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
667 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
670 withval=$with_template
673 list) echo; ls "$srcdir/src/template"; exit;;
674 *) if test -f "$srcdir/src/template/$with_template" ; then
677 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
682 esac # $with_template
685 # --with-template not given
688 aix*) template=aix ;;
689 beos*) template=beos ;;
690 bsdi*) template=bsdi ;;
691 cygwin*) template=win ;;
692 darwin*) template=darwin ;;
693 dgux*) template=dgux ;;
694 freebsd*) template=freebsd ;;
695 hpux*) template=hpux ;;
696 irix*) template=irix5 ;;
697 linux*) template=linux ;;
698 netbsd*) template=netbsd ;;
699 nextstep*) template=nextstep ;;
700 openbsd*) template=openbsd ;;
701 osf*) template=osf ;;
702 qnx*) template=qnx4 ;;
703 sco*) template=sco ;;
704 solaris*) template=solaris ;;
705 sunos*) template=sunos4 ;;
708 univel) template=univel ;;
710 sysv4*) template=svr4 ;;
711 sysv5uw*) template=unixware ;;
712 sysv5*) template=unixware ;;
713 ultrix*) template=ultrix4 ;;
716 if test x"$template" = x"" ; then
717 { echo "configure: error:
718 *******************************************************************
719 PostgreSQL has apparently not been ported to your platform yet.
720 To try a manual configuration, look into the src/template directory
721 for a similar platform and use the '--with-template=' option.
723 Please also contact <pgsql-ports@postgresql.org> to see about
724 rectifying this. Include the above 'checking host system type...'
726 *******************************************************************
733 echo "$ac_t""$template" 1>&6
743 # Pick right test-and-set (TAS) code. Most platforms have inline
744 # assembler code in src/include/storage/s_lock.h, so we just use
747 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
748 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
749 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
750 *) need_tas=no; tas_file=dummy.s ;;
754 if test "$need_tas" = yes ; then
762 ## Command line options
767 # Add non-standard directories to the include path
769 # Check whether --with-includes was given
770 if test x"${with_includes+set}" = xset; then
771 case $with_includes in
773 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
776 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
778 esac # $with_includes
783 # Add non-standard directories to the library search path
785 # Check whether --with-libraries was given
786 if test x"${with_libraries+set}" = xset; then
787 case $with_libraries in
789 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
792 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
795 withval=$with_libraries
796 LIBRARY_DIRS=$withval
798 esac # $with_libraries
801 # Check whether --with-libs was given
802 if test x"${with_libs+set}" = xset; then
805 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
808 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
812 LIBRARY_DIRS=$withval
819 # Locale (--enable-locale)
821 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
822 echo "configure:823: checking whether to build with locale support" >&5
823 # Check whether --enable-locale was given
824 if test x"${enable_locale+set}" = xset; then
825 case $enable_locale in
827 cat >> confdefs.h <<\EOF
836 enableval=$enable_locale
837 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
839 esac # $enable_locale
844 echo "$ac_t""$enable_locale" 1>&6
848 # Character set recode (--enable-recode)
850 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
851 echo "configure:852: checking whether to build with recode support" >&5
852 # Check whether --enable-recode was given
853 if test x"${enable_recode+set}" = xset; then
854 case $enable_recode in
856 cat >> confdefs.h <<\EOF
865 enableval=$enable_recode
866 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
868 esac # $enable_recode
873 echo "$ac_t""$enable_recode" 1>&6
880 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
881 echo "configure:882: checking whether to build with multibyte character support" >&5
883 # Check whether --enable-multibyte was given
884 if test x"${enable_multibyte+set}" = xset; then
885 case $enable_multibyte in
893 enableval=$enable_multibyte
897 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
898 MULTIBYTE=$enableval;;
900 { echo "configure: error: argument to --enable-multibyte must be one of:
901 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
902 UNICODE, MULE_INTERNAL,
903 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
905 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
909 esac # $enable_multibyte
914 if test "$enable_multibyte" = yes; then
916 cat >> confdefs.h <<\EOF
920 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
923 echo "$ac_t""no" 1>&6
930 # Unicode conversion (--enable-unicode-conversion)
932 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
933 echo "configure:934: checking whether to build with Unicode conversion support" >&5
934 # Check whether --enable-unicode-conversion was given
935 if test x"${enable_unicode_conversion+set}" = xset; then
936 case $enable_unicode_conversion in
938 if test -z "$MULTIBYTE"; then
939 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
941 cat >> confdefs.h <<\EOF
942 #define UNICODE_CONVERSION 1
950 enableval=$enable_unicode_conversion
951 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
953 esac # $enable_unicode_conversion
955 enable_unicode_conversion=no
958 echo "$ac_t""$enable_unicode_conversion" 1>&6
963 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
964 echo "configure:965: checking whether NLS is wanted" >&5
965 # Check whether --enable-nls was given
966 if test x"${enable_nls+set}" = xset; then
975 enableval=$enable_nls
977 WANTED_LANGUAGES=$enableval
984 if test "$enable_nls" = yes; then
985 cat >> confdefs.h <<\EOF
991 echo "$ac_t""$enable_nls" 1>&6
996 # Default port number (--with-pgport), default 5432
998 echo $ac_n "checking for default port number""... $ac_c" 1>&6
999 echo "configure:1000: checking for default port number" >&5
1000 # Check whether --with-pgport was given
1001 if test x"${with_pgport+set}" = xset; then
1002 case $with_pgport in
1004 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1007 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1010 withval=$with_pgport
1011 default_port=$withval
1017 echo "$ac_t""$default_port" 1>&6
1018 # Need both of these because some places want an integer and some a string
1019 cat >> confdefs.h <<EOF
1020 #define DEF_PGPORT ${default_port}
1023 cat >> confdefs.h <<EOF
1024 #define DEF_PGPORT_STR "${default_port}"
1030 # Maximum number of allowed connections (--with-maxbackends), default 32
1032 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1033 echo "configure:1034: checking for default soft limit on number of connections" >&5
1034 # Check whether --with-maxbackends was given
1035 if test x"${with_maxbackends+set}" = xset; then
1036 case $with_maxbackends in
1038 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1041 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1043 esac # $with_maxbackends
1047 echo "$ac_t""$with_maxbackends" 1>&6
1048 cat >> confdefs.h <<EOF
1049 #define DEF_MAXBACKENDS $with_maxbackends
1055 # Option to disable shared libraries
1057 # Check whether --enable-shared was given
1058 if test x"${enable_shared+set}" = xset; then
1059 case $enable_shared in
1067 enableval=$enable_shared
1068 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1070 esac # $enable_shared
1078 # '-rpath'-like feature can be disabled
1080 # Check whether --enable-rpath was given
1081 if test x"${enable_rpath+set}" = xset; then
1082 case $enable_rpath in
1090 enableval=$enable_rpath
1091 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1093 esac # $enable_rpath
1102 # --enable-debug adds -g to compiler flags
1104 # Check whether --enable-debug was given
1105 if test x"${enable_debug+set}" = xset; then
1106 case $enable_debug in
1114 enableval=$enable_debug
1115 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1117 esac # $enable_debug
1128 # For historical reasons you can also use --with-CC to specify the C compiler
1129 # to use, although the standard way to do this is to set the CC environment
1131 # Check whether --with-CC was given
1132 if test x"${with_CC+set}" = xset; then
1135 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1138 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1147 # On AIX, default compiler to xlc.
1148 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1150 # Save CFLAGS from the environment
1151 has_environ_CFLAGS="${CFLAGS+yes}"
1154 # Extract the first word of "gcc", so it can be a program name with args.
1155 set dummy gcc; ac_word=$2
1156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1157 echo "configure:1158: checking for $ac_word" >&5
1158 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1159 echo $ac_n "(cached) $ac_c" 1>&6
1161 if test -n "$CC"; then
1162 ac_cv_prog_CC="$CC" # Let the user override the test.
1164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1166 for ac_dir in $ac_dummy; do
1167 test -z "$ac_dir" && ac_dir=.
1168 if test -f $ac_dir/$ac_word; then
1177 if test -n "$CC"; then
1178 echo "$ac_t""$CC" 1>&6
1180 echo "$ac_t""no" 1>&6
1183 if test -z "$CC"; then
1184 # Extract the first word of "cc", so it can be a program name with args.
1185 set dummy cc; ac_word=$2
1186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1187 echo "configure:1188: checking for $ac_word" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 if test -n "$CC"; then
1192 ac_cv_prog_CC="$CC" # Let the user override the test.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1201 ac_prog_rejected=yes
1209 if test $ac_prog_rejected = yes; then
1210 # We found a bogon in the path, so make sure we never use it.
1211 set dummy $ac_cv_prog_CC
1213 if test $# -gt 0; then
1214 # We chose a different compiler from the bogus one.
1215 # However, it has the same basename, so the bogon will be chosen
1216 # first if we set CC to just the basename; use the full file name.
1218 set dummy "$ac_dir/$ac_word" "$@"
1226 if test -n "$CC"; then
1227 echo "$ac_t""$CC" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 if test -z "$CC"; then
1233 case "`uname -s`" in
1235 # Extract the first word of "cl", so it can be a program name with args.
1236 set dummy cl; ac_word=$2
1237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_word" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1247 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 if test -f $ac_dir/$ac_word; then
1258 if test -n "$CC"; then
1259 echo "$ac_t""$CC" 1>&6
1261 echo "$ac_t""no" 1>&6
1266 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1277 cross_compiling=$ac_cv_prog_cc_cross
1279 cat > conftest.$ac_ext << EOF
1281 #line 1282 "configure"
1282 #include "confdefs.h"
1286 if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1287 ac_cv_prog_cc_works=yes
1288 # If we can't run a trivial program, we are probably using a cross compiler.
1289 if (./conftest; exit) 2>/dev/null; then
1290 ac_cv_prog_cc_cross=no
1292 ac_cv_prog_cc_cross=yes
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1297 ac_cv_prog_cc_works=no
1301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1304 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1305 cross_compiling=$ac_cv_prog_cc_cross
1307 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1308 if test $ac_cv_prog_cc_works = no; then
1309 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1311 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1312 echo "configure:1313: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1313 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1314 cross_compiling=$ac_cv_prog_cc_cross
1316 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether we are using GNU C" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 cat > conftest.c <<EOF
1326 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1333 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1335 if test $ac_cv_prog_gcc = yes; then
1341 ac_test_CFLAGS="${CFLAGS+set}"
1342 ac_save_CFLAGS="$CFLAGS"
1344 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1345 echo "configure:1346: checking whether ${CC-cc} accepts -g" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 echo 'void f(){}' > conftest.c
1350 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1359 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1360 if test "$ac_test_CFLAGS" = set; then
1361 CFLAGS="$ac_save_CFLAGS"
1362 elif test $ac_cv_prog_cc_g = yes; then
1363 if test "$GCC" = yes; then
1369 if test "$GCC" = yes; then
1377 . "$srcdir/src/template/$template" || exit
1379 if test "$has_environ_CFLAGS" = yes; then
1382 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1385 echo "using CFLAGS=$CFLAGS"
1386 # Check if the compiler still works with the template settings
1387 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1388 echo "configure:1389: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1395 cross_compiling=$ac_cv_prog_cc_cross
1397 cat > conftest.$ac_ext << EOF
1399 #line 1400 "configure"
1400 #include "confdefs.h"
1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1405 ac_cv_prog_cc_works=yes
1406 # If we can't run a trivial program, we are probably using a cross compiler.
1407 if (./conftest; exit) 2>/dev/null; then
1408 ac_cv_prog_cc_cross=no
1410 ac_cv_prog_cc_cross=yes
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1415 ac_cv_prog_cc_works=no
1419 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1420 ac_cpp='$CPP $CPPFLAGS'
1421 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1422 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1423 cross_compiling=$ac_cv_prog_cc_cross
1425 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1426 if test $ac_cv_prog_cc_works = no; then
1427 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1429 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1431 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1432 cross_compiling=$ac_cv_prog_cc_cross
1434 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1435 echo "configure:1436: checking for Cygwin environment" >&5
1436 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 cat > conftest.$ac_ext <<EOF
1440 #line 1441 "configure"
1441 #include "confdefs.h"
1446 #define __CYGWIN__ __CYGWIN32__
1451 if { (eval echo configure:1452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1464 echo "$ac_t""$ac_cv_cygwin" 1>&6
1466 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1467 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1468 echo "configure:1469: checking for mingw32 environment" >&5
1469 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 cat > conftest.$ac_ext <<EOF
1473 #line 1474 "configure"
1474 #include "confdefs.h"
1480 if { (eval echo configure:1481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1484 echo "configure: failed program was:" >&5
1485 cat conftest.$ac_ext >&5
1493 echo "$ac_t""$ac_cv_mingw32" 1>&6
1495 test "$ac_cv_mingw32" = yes && MINGW32=yes
1498 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1499 echo "configure:1500: checking for executable suffix" >&5
1500 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1507 echo 'int main () { return 0; }' > conftest.$ac_ext
1509 if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1510 for file in conftest.*; do
1512 *.c | *.o | *.obj) ;;
1513 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1517 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1520 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1525 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1526 echo "$ac_t""${ac_cv_exeext}" 1>&6
1529 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1530 echo "configure:1531: checking how to run the C preprocessor" >&5
1531 # On Suns, sometimes $CPP names a directory.
1532 if test -n "$CPP" && test -d "$CPP"; then
1535 if test -z "$CPP"; then
1536 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 # This must be in double quotes, not single quotes, because CPP may get
1540 # substituted into the Makefile and "${CC-cc}" will confuse make.
1542 # On the NeXT, cc -E runs the code through the compiler's parser,
1543 # not just through cpp.
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1553 if test -z "$ac_err"; then
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 CPP="${CC-cc} -E -traditional-cpp"
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1574 echo "configure: failed program was:" >&5
1575 cat conftest.$ac_ext >&5
1577 CPP="${CC-cc} -nologo -E"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1591 echo "configure: failed program was:" >&5
1592 cat conftest.$ac_ext >&5
1601 ac_cv_prog_CPP="$CPP"
1603 CPP="$ac_cv_prog_CPP"
1605 ac_cv_prog_CPP="$CPP"
1607 echo "$ac_t""$CPP" 1>&6
1609 if test $ac_cv_prog_gcc = yes; then
1610 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether ${CC-cc} needs -traditional" >&5
1612 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1615 ac_pattern="Autoconf.*'x'"
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1623 egrep "$ac_pattern" >/dev/null 2>&1; then
1625 ac_cv_prog_gcc_traditional=yes
1628 ac_cv_prog_gcc_traditional=no
1633 if test $ac_cv_prog_gcc_traditional = no; then
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1641 egrep "$ac_pattern" >/dev/null 2>&1; then
1643 ac_cv_prog_gcc_traditional=yes
1650 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1651 if test $ac_cv_prog_gcc_traditional = yes; then
1652 CC="$CC -traditional"
1658 # Create compiler version string
1659 if test x"$GCC" = x"yes" ; then
1660 cc_string="GCC `${CC} --version`"
1664 cat >> confdefs.h <<EOF
1665 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1671 # Automatic dependency tracking
1673 # Check whether --enable-depend was given
1674 if test x"${enable_depend+set}" = xset; then
1675 case $enable_depend in
1683 enableval=$enable_depend
1684 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1686 esac # $enable_depend
1695 # Enable assert checks
1697 # Check whether --enable-cassert was given
1698 if test x"${enable_cassert+set}" = xset; then
1699 case $enable_cassert in
1701 cat >> confdefs.h <<\EOF
1702 #define USE_ASSERT_CHECKING 1
1710 enableval=$enable_cassert
1711 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1713 esac # $enable_cassert
1721 # Include directories
1725 # SRCH_INC comes from the template file
1726 for dir in $with_includes $SRCH_INC; do
1727 if test -d "$dir"; then
1728 INCLUDES="$INCLUDES -I$dir"
1730 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1738 # Library directories
1742 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1743 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1744 if test -d "$dir"; then
1745 LIBDIRS="$LIBDIRS -L$dir"
1747 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1756 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1757 echo "configure:1758: checking whether to build with Tcl" >&5
1758 # Check whether --with-tcl was given
1759 if test x"${with_tcl+set}" = xset; then
1769 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1776 echo "$ac_t""$with_tcl" 1>&6
1779 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1780 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether to build with Tk" >&5
1782 if test "$with_tcl" = yes; then
1783 # Check whether --with-tk was given
1784 if test x"${with_tk+set}" = xset; then
1794 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1804 echo "$ac_t""$with_tk" 1>&6
1808 # We see if the path to the TCL/TK configuration scripts is specified.
1809 # This will override the use of tclsh to find the paths to search.
1811 # Check whether --with-tclconfig was given
1812 if test x"${with_tclconfig+set}" = xset; then
1813 case $with_tclconfig in
1815 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1818 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1820 esac # $with_tclconfig
1823 # We see if the path to the TK configuration scripts is specified.
1824 # This will override the use of tclsh to find the paths to search.
1826 # Check whether --with-tkconfig was given
1827 if test x"${with_tkconfig+set}" = xset; then
1828 case $with_tkconfig in
1830 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1833 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1835 esac # $with_tkconfig
1840 # If Tcl is enabled (above) then check for pltcl_unknown_support
1842 echo $ac_n "checking whether to build with PL/Tcl unknown support""... $ac_c" 1>&6
1843 echo "configure:1844: checking whether to build with PL/Tcl unknown support" >&5
1844 if test "$with_tcl" = yes; then
1845 # Check whether --enable-pltcl-unknown was given
1846 if test x"${enable_pltcl_unknown+set}" = xset; then
1847 case $enable_pltcl_unknown in
1849 cat >> confdefs.h <<\EOF
1850 #define ENABLE_PLTCL_UNKNOWN 1
1858 enableval=$enable_pltcl_unknown
1859 { echo "configure: error: no argument expected for --enable-pltcl-unknown option" 1>&2; exit 1; }
1861 esac # $enable_pltcl_unknown
1863 enable_pltcl_unknown=no
1867 enable_pltcl_unknown=no
1869 echo "$ac_t""$enable_pltcl_unknown" 1>&6
1874 # Optionally build Perl modules (Pg.pm and PL/Perl)
1876 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1877 echo "configure:1878: checking whether to build Perl modules" >&5
1878 # Check whether --with-perl was given
1879 if test x"${with_perl+set}" = xset; then
1889 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1896 echo "$ac_t""$with_perl" 1>&6
1901 # Optionally build Python interface module
1903 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether to build Python modules" >&5
1905 # Check whether --with-python was given
1906 if test x"${with_python+set}" = xset; then
1907 case $with_python in
1915 withval=$with_python
1916 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1923 echo "$ac_t""$with_python" 1>&6
1927 # Optionally build the Java/JDBC tools
1929 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether to build Java/JDBC tools" >&5
1931 # Check whether --with-java was given
1932 if test x"${with_java+set}" = xset; then
1935 echo "$ac_t""yes" 1>&6
1937 for ac_prog in jakarta-ant ant ant.sh ant.bat
1939 # Extract the first word of "$ac_prog", so it can be a program name with args.
1940 set dummy $ac_prog; ac_word=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1948 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1951 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1956 for ac_dir in $ac_dummy; do
1957 test -z "$ac_dir" && ac_dir=.
1958 if test -f $ac_dir/$ac_word; then
1959 ac_cv_path_ANT="$ac_dir/$ac_word"
1967 ANT="$ac_cv_path_ANT"
1968 if test -n "$ANT"; then
1969 echo "$ac_t""$ANT" 1>&6
1971 echo "$ac_t""no" 1>&6
1974 test -n "$ANT" && break
1978 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
1979 echo "configure:1980: checking whether $ANT works" >&5
1980 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1984 cat > conftest.java << EOF
1985 public class conftest {
1986 int testmethod(int a, int b) {
1992 cat > conftest.xml << EOF
1993 <project name="conftest" default="conftest">
1994 <target name="conftest">
1995 <javac srcdir="." includes="conftest.java">
2001 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
2002 { (eval echo configure:2003: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
2004 if test $? = 0 && test -f ./conftest.class ; then
2005 pgac_cv_prog_ant_works=yes
2007 echo "configure: failed java program was:" >&5
2008 cat conftest.java >&5
2009 echo "configure: failed build file was:" >&5
2010 cat conftest.xml >&5
2011 pgac_cv_prog_ant_works=no
2014 rm -f conftest* core core.* *.core
2018 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
2020 if test "$pgac_cv_prog_ant_works" != yes; then
2021 { echo "configure: error: ant does not work" 1>&2; exit 1; }
2025 if test -z "$ANT"; then
2026 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
2030 echo "$ac_t""no" 1>&6
2034 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
2039 echo "$ac_t""no" 1>&6
2047 # Check whether --with-krb4 was given
2048 if test x"${with_krb4+set}" = xset; then
2051 krb4_prefix=/usr/athena
2059 krb4_prefix=$withval
2066 if test "$with_krb4" = yes; then
2068 echo "$ac_t""building with Kerberos 4 support" 1>&6
2069 cat >> confdefs.h <<\EOF
2074 if test -d "$krb4_prefix/include"; then
2075 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2077 if test -d "$krb4_prefix/lib"; then
2078 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2081 krb_srvtab="/etc/srvtab"
2092 # Check whether --with-krb5 was given
2093 if test x"${with_krb5+set}" = xset; then
2096 krb5_prefix=/usr/athena
2104 krb5_prefix=$withval
2111 if test "$with_krb5" = yes; then
2113 echo "$ac_t""building with Kerberos 5 support" 1>&6
2114 cat >> confdefs.h <<\EOF
2119 if test -d "$krb5_prefix/include"; then
2120 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2122 if test -d "$krb5_prefix/lib"; then
2123 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2126 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2134 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2135 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2136 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2143 # Kerberos configuration parameters
2145 # Check whether --with-krb-srvnam was given
2146 if test x"${with_krb_srvnam+set}" = xset; then
2147 case $with_krb_srvnam in
2149 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2152 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2154 esac # $with_krb_srvnam
2156 with_krb_srvnam="postgres"
2158 cat >> confdefs.h <<EOF
2159 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2168 # Check whether --with-openssl was given
2169 if test x"${with_openssl+set}" = xset; then
2170 case $with_openssl in
2172 openssl_prefix=/usr/local/ssl
2178 withval=$with_openssl
2180 openssl_prefix=$withval
2182 esac # $with_openssl
2187 if test "$with_openssl" = yes; then
2189 echo "$ac_t""building with OpenSSL support" 1>&6
2190 cat >> confdefs.h <<\EOF
2195 if test -d "${openssl_prefix}/include" ; then
2196 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2198 if test -d "${openssl_prefix}/lib" ; then
2199 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2210 # Optionally enable the building of the ODBC driver
2214 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2215 enable_odbc=$with_odbc
2218 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2219 echo "configure:2220: checking whether to build the ODBC driver" >&5
2220 # Check whether --enable-odbc was given
2221 if test x"${enable_odbc+set}" = xset; then
2222 case $enable_odbc in
2230 enableval=$enable_odbc
2231 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2238 echo "$ac_t""$enable_odbc" 1>&6
2242 # Allow for overriding the default location of the odbcinst.ini
2243 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2244 # Check whether --with-odbcinst was given
2245 if test x"${with_odbcinst+set}" = xset; then
2246 case $with_odbcinst in
2248 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2251 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2254 withval=$with_odbcinst
2255 odbcinst_ini_dir=$withval
2257 esac # $with_odbcinst
2259 odbcinst_ini_dir="\${sysconfdir}"
2265 # Assume system is ELF if it predefines __ELF__ as 1,
2266 # otherwise believe host_os based default.
2268 freebsd1*|freebsd2*) elf=no;;
2269 freebsd3*|freebsd4*) elf=yes;;
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2281 egrep "yes" >/dev/null 2>&1; then
2286 if test "X$elf" = "Xyes" ; then
2299 # Optionally build C++ code (i.e., libpq++)
2301 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2302 echo "configure:2303: checking whether to build C++ modules" >&5
2303 # Check whether --with-CXX was given
2304 if test x"${with_CXX+set}" = xset; then
2322 if test "$with_CXX" = yes; then
2324 echo "$ac_t""yes" 1>&6
2326 # If the user has specified CXXFLAGS in the environment, leave it
2327 # alone, else use a default.
2329 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2330 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 if test -n "$CXX"; then
2340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2344 for ac_dir in $ac_dummy; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 ac_cv_prog_CXX="$ac_prog"
2354 CXX="$ac_cv_prog_CXX"
2355 if test -n "$CXX"; then
2356 echo "$ac_t""$CXX" 1>&6
2358 echo "$ac_t""no" 1>&6
2361 test -n "$CXX" && break
2363 test -n "$CXX" || CXX="gcc"
2366 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2370 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2371 ac_cpp='$CXXCPP $CPPFLAGS'
2372 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2373 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2374 cross_compiling=$ac_cv_prog_cxx_cross
2376 cat > conftest.$ac_ext << EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2381 int main(){return(0);}
2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2384 ac_cv_prog_cxx_works=yes
2385 # If we can't run a trivial program, we are probably using a cross compiler.
2386 if (./conftest; exit) 2>/dev/null; then
2387 ac_cv_prog_cxx_cross=no
2389 ac_cv_prog_cxx_cross=yes
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2394 ac_cv_prog_cxx_works=no
2398 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2401 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2402 cross_compiling=$ac_cv_prog_cc_cross
2404 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2405 if test $ac_cv_prog_cxx_works = no; then
2406 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2408 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2409 echo "configure:2410: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2410 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2411 cross_compiling=$ac_cv_prog_cxx_cross
2413 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2414 echo "configure:2415: checking whether we are using GNU C++" >&5
2415 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2416 echo $ac_n "(cached) $ac_c" 1>&6
2418 cat > conftest.C <<EOF
2423 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2430 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2432 if test $ac_cv_prog_gxx = yes; then
2438 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2439 ac_save_CXXFLAGS="$CXXFLAGS"
2441 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2442 echo "configure:2443: checking whether ${CXX-g++} accepts -g" >&5
2443 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2446 echo 'void f(){}' > conftest.cc
2447 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2448 ac_cv_prog_cxx_g=yes
2456 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2457 if test "$ac_test_CXXFLAGS" = set; then
2458 CXXFLAGS="$ac_save_CXXFLAGS"
2459 elif test $ac_cv_prog_cxx_g = yes; then
2460 if test "$GXX" = yes; then
2466 if test "$GXX" = yes; then
2473 if test "$has_environ_CXXFLAGS" != yes; then
2474 if test "$GXX" = yes; then
2478 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2479 unixware) CXXFLAGS='-O' ;;
2484 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2485 CXXFLAGS="$CXXFLAGS -g"
2487 echo "using CXXFLAGS=$CXXFLAGS"
2489 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2490 echo "configure:2491: checking how to run the C++ preprocessor" >&5
2491 if test -z "$CXXCPP"; then
2492 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2496 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2497 ac_cpp='$CXXCPP $CPPFLAGS'
2498 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2499 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2500 cross_compiling=$ac_cv_prog_cxx_cross
2501 CXXCPP="${CXX-g++} -E"
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2508 { (eval echo configure:2509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2510 if test -z "$ac_err"; then
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2520 ac_cv_prog_CXXCPP="$CXXCPP"
2522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523 ac_cpp='$CPP $CPPFLAGS'
2524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526 cross_compiling=$ac_cv_prog_cc_cross
2529 CXXCPP="$ac_cv_prog_CXXCPP"
2530 echo "$ac_t""$CXXCPP" 1>&6
2535 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2536 ac_cpp='$CXXCPP $CPPFLAGS'
2537 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2538 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2539 cross_compiling=$ac_cv_prog_cxx_cross
2541 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for string""... $ac_c" 1>&6
2543 echo "configure:2544: checking for string" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2557 eval "ac_cv_header_$ac_safe=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2563 eval "ac_cv_header_$ac_safe=no"
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 cat >> confdefs.h <<\EOF
2570 #define HAVE_CXX_STRING_HEADER 1
2574 echo "$ac_t""no" 1>&6
2578 if test x"$ac_cv_header_string" != xyes ; then
2579 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2580 echo "configure:2581: checking for class string in <string.h>" >&5
2581 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2595 if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2597 pgac_cv_class_string_in_string_h=yes
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2602 pgac_cv_class_string_in_string_h=no
2607 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2609 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2610 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2614 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2617 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2618 cross_compiling=$ac_cv_prog_cc_cross
2621 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2622 echo "configure:2623: checking for namespace std in C++" >&5
2623 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2629 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2630 ac_cpp='$CXXCPP $CPPFLAGS'
2631 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2632 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2633 cross_compiling=$ac_cv_prog_cxx_cross
2635 cat > conftest.$ac_ext <<EOF
2636 #line 2637 "configure"
2637 #include "confdefs.h"
2640 #ifdef HAVE_CXX_STRING_HEADER
2643 using namespace std;
2649 if { (eval echo configure:2650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2651 pgac_cv_cxx_namespace_std=yes
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2656 pgac_cv_cxx_namespace_std=no
2660 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2663 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2664 cross_compiling=$ac_cv_prog_cc_cross
2668 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2670 if test $pgac_cv_cxx_namespace_std = yes ; then
2671 cat >> confdefs.h <<\EOF
2672 #define HAVE_NAMESPACE_STD 1
2678 echo "$ac_t""no" 1>&6
2683 CPPFLAGS="$CPPFLAGS $INCLUDES"
2684 LDFLAGS="$LDFLAGS $LIBDIRS"
2686 echo "using CPPFLAGS=$CPPFLAGS"
2687 echo "using LDFLAGS=$LDFLAGS"
2690 for ac_prog in mawk gawk nawk awk
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_word" >&5
2696 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2704 for ac_dir in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir=.
2706 if test -f $ac_dir/$ac_word; then
2707 ac_cv_prog_AWK="$ac_prog"
2714 AWK="$ac_cv_prog_AWK"
2715 if test -n "$AWK"; then
2716 echo "$ac_t""$AWK" 1>&6
2718 echo "$ac_t""no" 1>&6
2721 test -n "$AWK" && break
2724 echo $ac_n "checking for flex""... $ac_c" 1>&6
2725 echo "configure:2726: checking for flex" >&5
2726 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 # Let the user override the test
2730 if test -n "$FLEX"; then
2731 pgac_cv_path_flex=$FLEX
2735 for pgac_dir in $PATH; do
2736 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2739 for pgac_prog in flex lex; do
2740 pgac_candidate="$pgac_dir/$pgac_prog"
2741 if test -f "$pgac_candidate" \
2742 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2744 echo '%%' > conftest.l
2745 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2746 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2747 pgac_broken_flex=$pgac_candidate
2751 pgac_cv_path_flex=$pgac_candidate
2759 : ${pgac_cv_path_flex=no}
2764 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2765 if test x"$pgac_cv_path_flex" = x"no"; then
2766 if test -n "$pgac_broken_flex"; then
2767 echo "configure: warning:
2768 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2769 *** should get version 2.5.4 or later." 1>&2
2772 echo "configure: warning:
2773 *** Without Flex you will not be able to build PostgreSQL from CVS or
2774 *** change any of the scanner definition files. You can obtain Flex from
2775 *** a GNU mirror site. (If you are using the official distribution of
2776 *** PostgreSQL then you do not need to worry about this because the Flex
2777 *** output is pre-generated.)" 1>&2
2780 if test x"$pgac_cv_path_flex" = x"no"; then
2783 FLEX=$pgac_cv_path_flex
2789 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2790 echo "configure:2791: checking whether ln -s works" >&5
2791 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2795 if ln -s X conftestdata 2>/dev/null
2798 ac_cv_prog_LN_S="ln -s"
2803 LN_S="$ac_cv_prog_LN_S"
2804 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2805 echo "$ac_t""yes" 1>&6
2807 echo "$ac_t""no" 1>&6
2810 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2811 if test "${with_gnu_ld+set}" = set; then
2812 withval="$with_gnu_ld"
2813 test "$withval" = no || with_gnu_ld=yes
2819 if test "$ac_cv_prog_gcc" = yes; then
2820 # Check if gcc -print-prog-name=ld gives a path.
2821 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2822 echo "configure:2823: checking for ld used by GCC" >&5
2825 # gcc leaves a trailing carriage return which upsets mingw
2826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2831 # Accept absolute paths.
2832 [\\/]* | [A-Za-z]:[\\/]*)
2833 re_direlt='/[^/][^/]*/\.\./'
2834 # Canonicalize the path of ld
2835 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2836 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2837 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2839 test -z "$LD" && LD="$ac_prog"
2842 # If it fails, then pretend we aren't using GCC.
2846 # If it is relative, then search for the first ld in PATH.
2850 elif test "$with_gnu_ld" = yes; then
2851 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2852 echo "configure:2853: checking for GNU ld" >&5
2854 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2855 echo "configure:2856: checking for non-GNU ld" >&5
2857 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 if test -z "$LD"; then
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2862 for ac_dir in $PATH; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2865 ac_cv_path_LD="$ac_dir/$ac_prog"
2866 # Check to see if the program is GNU ld. I'd rather use --version,
2867 # but apparently some GNU ld's only accept -v.
2868 # Break only if it was the GNU/non-GNU ld that we prefer.
2869 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2870 test "$with_gnu_ld" != no && break
2872 test "$with_gnu_ld" != yes && break
2878 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2883 if test -n "$LD"; then
2884 echo "$ac_t""$LD" 1>&6
2886 echo "$ac_t""no" 1>&6
2888 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2889 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2890 echo "configure:2891: checking if the linker ($LD) is GNU ld" >&5
2891 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2895 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2896 ac_cv_prog_gnu_ld=yes
2898 ac_cv_prog_gnu_ld=no
2902 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2903 with_gnu_ld=$ac_cv_prog_gnu_ld
2908 case $host_os in sysv5*)
2909 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2910 echo "configure:2911: checking whether ld -R works" >&5
2911 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2915 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2926 pgac_cv_prog_ld_R=yes
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2931 pgac_cv_prog_ld_R=no
2934 LDFLAGS=$pgac_save_LDFLAGS
2938 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2939 ld_R_works=$pgac_cv_prog_ld_R
2942 # Extract the first word of "ranlib", so it can be a program name with args.
2943 set dummy ranlib; ac_word=$2
2944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2945 echo "configure:2946: checking for $ac_word" >&5
2946 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test -n "$RANLIB"; then
2950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2954 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 ac_cv_prog_RANLIB="ranlib"
2962 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2965 RANLIB="$ac_cv_prog_RANLIB"
2966 if test -n "$RANLIB"; then
2967 echo "$ac_t""$RANLIB" 1>&6
2969 echo "$ac_t""no" 1>&6
2972 for ac_prog in lorder
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_word" >&5
2978 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 if test -n "$LORDER"; then
2982 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2986 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 if test -f $ac_dir/$ac_word; then
2989 ac_cv_prog_LORDER="$ac_prog"
2996 LORDER="$ac_cv_prog_LORDER"
2997 if test -n "$LORDER"; then
2998 echo "$ac_t""$LORDER" 1>&6
3000 echo "$ac_t""no" 1>&6
3003 test -n "$LORDER" && break
3006 # Extract the first word of "tar", so it can be a program name with args.
3007 set dummy tar; ac_word=$2
3008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3009 echo "configure:3010: checking for $ac_word" >&5
3010 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3011 echo $ac_n "(cached) $ac_c" 1>&6
3015 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3018 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3023 for ac_dir in $ac_dummy; do
3024 test -z "$ac_dir" && ac_dir=.
3025 if test -f $ac_dir/$ac_word; then
3026 ac_cv_path_TAR="$ac_dir/$ac_word"
3034 TAR="$ac_cv_path_TAR"
3035 if test -n "$TAR"; then
3036 echo "$ac_t""$TAR" 1>&6
3038 echo "$ac_t""no" 1>&6
3043 # Extract the first word of "$ac_prog", so it can be a program name with args.
3044 set dummy $ac_prog; ac_word=$2
3045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_word" >&5
3047 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 if test -n "$PERL"; then
3051 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3055 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 if test -f $ac_dir/$ac_word; then
3058 ac_cv_prog_PERL="$ac_prog"
3065 PERL="$ac_cv_prog_PERL"
3066 if test -n "$PERL"; then
3067 echo "$ac_t""$PERL" 1>&6
3069 echo "$ac_t""no" 1>&6
3072 test -n "$PERL" && break
3076 for ac_prog in 'bison -y'
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3081 echo "configure:3082: checking for $ac_word" >&5
3082 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 if test -n "$YACC"; then
3086 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3090 for ac_dir in $ac_dummy; do
3091 test -z "$ac_dir" && ac_dir=.
3092 if test -f $ac_dir/$ac_word; then
3093 ac_cv_prog_YACC="$ac_prog"
3100 YACC="$ac_cv_prog_YACC"
3101 if test -n "$YACC"; then
3102 echo "$ac_t""$YACC" 1>&6
3104 echo "$ac_t""no" 1>&6
3107 test -n "$YACC" && break
3110 if test -z "$YACC"; then
3111 echo "configure: warning:
3112 *** Without Bison you will not be able to build PostgreSQL from CVS or
3113 *** change any of the parser definition files. You can obtain Bison from
3114 *** a GNU mirror site. (If you are using the official distribution of
3115 *** PostgreSQL then you do not need to worry about this because the Bison
3116 *** output is pre-generated.) To use a different yacc program (possible,
3117 *** but not recommended), set the environment variable YACC before running
3118 *** 'configure'." 1>&2
3122 if test "$with_tk" = yes; then
3123 # Extract the first word of "wish", so it can be a program name with args.
3124 set dummy wish; ac_word=$2
3125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_word" >&5
3127 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3132 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3135 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3140 for ac_dir in $ac_dummy; do
3141 test -z "$ac_dir" && ac_dir=.
3142 if test -f $ac_dir/$ac_word; then
3143 ac_cv_path_WISH="$ac_dir/$ac_word"
3151 WISH="$ac_cv_path_WISH"
3152 if test -n "$WISH"; then
3153 echo "$ac_t""$WISH" 1>&6
3155 echo "$ac_t""no" 1>&6
3158 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3161 if test "$with_python" = yes; then
3162 # Extract the first word of "python", so it can be a program name with args.
3163 set dummy python; ac_word=$2
3164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_word" >&5
3166 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3171 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3174 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3179 for ac_dir in $ac_dummy; do
3180 test -z "$ac_dir" && ac_dir=.
3181 if test -f $ac_dir/$ac_word; then
3182 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3190 PYTHON="$ac_cv_path_PYTHON"
3191 if test -n "$PYTHON"; then
3192 echo "$ac_t""$PYTHON" 1>&6
3194 echo "$ac_t""no" 1>&6
3197 if test x"$PYTHON" = x""; then
3198 { echo "configure: error: Python not found" 1>&2; exit 1; }
3202 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3203 echo "configure:3204: checking Python installation directories" >&5
3204 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3205 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3206 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3207 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3208 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3209 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3210 python_includespec="-I${python_prefix}/include/python${python_version}"
3211 if test "$python_prefix" != "$python_execprefix"; then
3212 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3215 # This should be enough of a message.
3216 if test "$python_prefix" != "$python_execprefix"; then
3217 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3219 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3226 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3227 echo "configure:3228: checking how to link an embedded Python application" >&5
3229 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3230 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3231 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3232 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3233 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3235 pgac_tab=" " # tab character
3236 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
3238 echo "$ac_t""${python_libspec}" 1>&6
3248 echo $ac_n "checking for readline""... $ac_c" 1>&6
3249 echo "configure:3250: checking for readline" >&5
3251 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 pgac_cv_check_readline=no
3255 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3256 for pgac_rllib in -lreadline -ledit ; do
3257 pgac_save_LIBS=$LIBS
3258 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3273 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3279 LIBS=$pgac_save_LIBS
3282 LIBS=$pgac_save_LIBS
3286 if test "$pgac_cv_check_readline" != no ; then
3287 cat >> confdefs.h <<\EOF
3288 #define HAVE_LIBREADLINE 1
3291 LIBS="$pgac_cv_check_readline $LIBS"
3292 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3294 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3298 echo "configure:3299: checking for library containing using_history" >&5
3299 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 ac_func_search_save_LIBS="$LIBS"
3303 ac_cv_search_using_history="no"
3304 cat > conftest.$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* Override any gcc2 internal prototype to avoid an error. */
3308 /* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3310 char using_history();
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 ac_cv_search_using_history="none required"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3324 test "$ac_cv_search_using_history" = "no" && for i in history; do
3325 LIBS="-l$i $ac_func_search_save_LIBS"
3326 cat > conftest.$ac_ext <<EOF
3327 #line 3328 "configure"
3328 #include "confdefs.h"
3329 /* Override any gcc2 internal prototype to avoid an error. */
3330 /* We use char because int might match the return type of a gcc2
3331 builtin and then its argument prototype would still apply. */
3332 char using_history();
3338 if { (eval echo configure:3339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3340 ac_cv_search_using_history="-l$i"
3343 echo "configure: failed program was:" >&5
3344 cat conftest.$ac_ext >&5
3348 LIBS="$ac_func_search_save_LIBS"
3351 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3352 if test "$ac_cv_search_using_history" != "no"; then
3353 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3354 cat >> confdefs.h <<\EOF
3355 #define HAVE_HISTORY_FUNCTIONS 1
3362 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3364 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3365 echo "configure:3366: checking for main in -lbsd" >&5
3366 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 ac_save_LIBS="$LIBS"
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_lib 1
3404 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3409 echo "configure:3410: checking for setproctitle in -lutil" >&5
3410 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3411 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 ac_save_LIBS="$LIBS"
3416 cat > conftest.$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3422 char setproctitle();
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3445 cat >> confdefs.h <<EOF
3446 #define $ac_tr_lib 1
3452 echo "$ac_t""no" 1>&6
3455 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3456 echo "configure:3457: checking for main in -lm" >&5
3457 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 ac_save_LIBS="$LIBS"
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 eval "ac_cv_lib_$ac_lib_var=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 eval "ac_cv_lib_$ac_lib_var=no"
3481 LIBS="$ac_save_LIBS"
3484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3488 cat >> confdefs.h <<EOF
3489 #define $ac_tr_lib 1
3495 echo "$ac_t""no" 1>&6
3498 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3499 echo "configure:3500: checking for main in -ldl" >&5
3500 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3531 cat >> confdefs.h <<EOF
3532 #define $ac_tr_lib 1
3538 echo "$ac_t""no" 1>&6
3541 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3542 echo "configure:3543: checking for main in -lsocket" >&5
3543 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 ac_save_LIBS="$LIBS"
3548 LIBS="-lsocket $LIBS"
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 eval "ac_cv_lib_$ac_lib_var=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 eval "ac_cv_lib_$ac_lib_var=no"
3567 LIBS="$ac_save_LIBS"
3570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3571 echo "$ac_t""yes" 1>&6
3572 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3574 cat >> confdefs.h <<EOF
3575 #define $ac_tr_lib 1
3578 LIBS="-lsocket $LIBS"
3581 echo "$ac_t""no" 1>&6
3584 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3585 echo "configure:3586: checking for main in -lnsl" >&5
3586 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 eval "ac_cv_lib_$ac_lib_var=no"
3610 LIBS="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3616 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3617 cat >> confdefs.h <<EOF
3618 #define $ac_tr_lib 1
3624 echo "$ac_t""no" 1>&6
3627 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3628 echo "configure:3629: checking for main in -lipc" >&5
3629 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_save_LIBS="$LIBS"
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3660 cat >> confdefs.h <<EOF
3661 #define $ac_tr_lib 1
3667 echo "$ac_t""no" 1>&6
3670 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3671 echo "configure:3672: checking for main in -lIPC" >&5
3672 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_save_LIBS="$LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3703 cat >> confdefs.h <<EOF
3704 #define $ac_tr_lib 1
3710 echo "$ac_t""no" 1>&6
3713 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3714 echo "configure:3715: checking for main in -llc" >&5
3715 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_save_LIBS="$LIBS"
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_lib 1
3753 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3757 echo "configure:3758: checking for main in -ldld" >&5
3758 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 ac_save_LIBS="$LIBS"
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 eval "ac_cv_lib_$ac_lib_var=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_lib_$ac_lib_var=no"
3782 LIBS="$ac_save_LIBS"
3785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3789 cat >> confdefs.h <<EOF
3790 #define $ac_tr_lib 1
3796 echo "$ac_t""no" 1>&6
3799 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3800 echo "configure:3801: checking for main in -lld" >&5
3801 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 ac_save_LIBS="$LIBS"
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3817 eval "ac_cv_lib_$ac_lib_var=yes"
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 eval "ac_cv_lib_$ac_lib_var=no"
3825 LIBS="$ac_save_LIBS"
3828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3832 cat >> confdefs.h <<EOF
3833 #define $ac_tr_lib 1
3839 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3843 echo "configure:3844: checking for main in -lcompat" >&5
3844 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS="$LIBS"
3849 LIBS="-lcompat $LIBS"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3860 eval "ac_cv_lib_$ac_lib_var=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 eval "ac_cv_lib_$ac_lib_var=no"
3868 LIBS="$ac_save_LIBS"
3871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3872 echo "$ac_t""yes" 1>&6
3873 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_lib 1
3879 LIBS="-lcompat $LIBS"
3882 echo "$ac_t""no" 1>&6
3885 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3886 echo "configure:3887: checking for main in -lBSD" >&5
3887 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 ac_save_LIBS="$LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3918 cat >> confdefs.h <<EOF
3919 #define $ac_tr_lib 1
3925 echo "$ac_t""no" 1>&6
3928 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3929 echo "configure:3930: checking for main in -lgen" >&5
3930 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 ac_save_LIBS="$LIBS"
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3946 eval "ac_cv_lib_$ac_lib_var=yes"
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 eval "ac_cv_lib_$ac_lib_var=no"
3954 LIBS="$ac_save_LIBS"
3957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3961 cat >> confdefs.h <<EOF
3962 #define $ac_tr_lib 1
3968 echo "$ac_t""no" 1>&6
3971 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3972 echo "configure:3973: checking for main in -lPW" >&5
3973 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 ac_save_LIBS="$LIBS"
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_lib 1
4011 echo "$ac_t""no" 1>&6
4014 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4015 echo "configure:4016: checking for main in -lresolv" >&5
4016 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 ac_save_LIBS="$LIBS"
4021 LIBS="-lresolv $LIBS"
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4030 if { (eval echo configure:4031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4032 eval "ac_cv_lib_$ac_lib_var=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_lib_$ac_lib_var=no"
4040 LIBS="$ac_save_LIBS"
4043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4047 cat >> confdefs.h <<EOF
4048 #define $ac_tr_lib 1
4051 LIBS="-lresolv $LIBS"
4054 echo "$ac_t""no" 1>&6
4057 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4058 echo "configure:4059: checking for main in -lunix" >&5
4059 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4063 ac_save_LIBS="$LIBS"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4075 eval "ac_cv_lib_$ac_lib_var=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 eval "ac_cv_lib_$ac_lib_var=no"
4083 LIBS="$ac_save_LIBS"
4086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4088 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4090 cat >> confdefs.h <<EOF
4091 #define $ac_tr_lib 1
4097 echo "$ac_t""no" 1>&6
4101 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4102 echo "configure:4103: checking for library containing crypt" >&5
4103 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 ac_func_search_save_LIBS="$LIBS"
4107 ac_cv_search_crypt="no"
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4120 if { (eval echo configure:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4122 ac_cv_search_crypt="none required"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4128 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4129 LIBS="-l$i $ac_func_search_save_LIBS"
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4142 if { (eval echo configure:4143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4144 ac_cv_search_crypt="-l$i"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4152 LIBS="$ac_func_search_save_LIBS"
4155 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4156 if test "$ac_cv_search_crypt" != "no"; then
4157 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4162 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4163 echo "configure:4164: checking for __inet_ntoa in -lbind" >&5
4164 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 ac_save_LIBS="$LIBS"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4189 eval "ac_cv_lib_$ac_lib_var=no"
4192 LIBS="$ac_save_LIBS"
4195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4199 cat >> confdefs.h <<EOF
4200 #define $ac_tr_lib 1
4206 echo "$ac_t""no" 1>&6
4209 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure"
4211 #include "confdefs.h"
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 egrep "z_streamp" >/dev/null 2>&1; then
4218 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4219 echo "configure:4220: checking for inflate in -lz" >&5
4220 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 ac_save_LIBS="$LIBS"
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* Override any gcc2 internal prototype to avoid an error. */
4230 /* We use char because int might match the return type of a gcc2
4231 builtin and then its argument prototype would still apply. */
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4240 eval "ac_cv_lib_$ac_lib_var=yes"
4242 echo "configure: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 eval "ac_cv_lib_$ac_lib_var=no"
4248 LIBS="$ac_save_LIBS"
4251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4252 echo "$ac_t""yes" 1>&6
4253 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_lib 1
4262 echo "$ac_t""no" 1>&6
4271 if test "$with_krb4" = yes ; then
4272 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4273 echo "configure:4274: checking for des_encrypt in -ldes" >&5
4274 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 ac_save_LIBS="$LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4283 /* Override any gcc2 internal prototype to avoid an error. */
4284 /* We use char because int might match the return type of a gcc2
4285 builtin and then its argument prototype would still apply. */
4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4294 eval "ac_cv_lib_$ac_lib_var=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 eval "ac_cv_lib_$ac_lib_var=no"
4302 LIBS="$ac_save_LIBS"
4305 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4306 echo "$ac_t""yes" 1>&6
4307 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4308 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4309 cat >> confdefs.h <<EOF
4310 #define $ac_tr_lib 1
4316 echo "$ac_t""no" 1>&6
4317 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4320 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4321 echo "configure:4322: checking for krb_sendauth in -lkrb" >&5
4322 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 ac_save_LIBS="$LIBS"
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 /* Override any gcc2 internal prototype to avoid an error. */
4332 /* We use char because int might match the return type of a gcc2
4333 builtin and then its argument prototype would still apply. */
4334 char krb_sendauth();
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 eval "ac_cv_lib_$ac_lib_var=yes"
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 eval "ac_cv_lib_$ac_lib_var=no"
4350 LIBS="$ac_save_LIBS"
4353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4357 cat >> confdefs.h <<EOF
4358 #define $ac_tr_lib 1
4364 echo "$ac_t""no" 1>&6
4365 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4370 if test "$with_krb5" = yes ; then
4371 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4372 echo "configure:4373: checking for com_err in -lcom_err" >&5
4373 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 ac_save_LIBS="$LIBS"
4378 LIBS="-lcom_err $LIBS"
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 /* Override any gcc2 internal prototype to avoid an error. */
4383 /* We use char because int might match the return type of a gcc2
4384 builtin and then its argument prototype would still apply. */
4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4393 eval "ac_cv_lib_$ac_lib_var=yes"
4395 echo "configure: failed program was:" >&5
4396 cat conftest.$ac_ext >&5
4398 eval "ac_cv_lib_$ac_lib_var=no"
4401 LIBS="$ac_save_LIBS"
4404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4407 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4408 cat >> confdefs.h <<EOF
4409 #define $ac_tr_lib 1
4412 LIBS="-lcom_err $LIBS"
4415 echo "$ac_t""no" 1>&6
4416 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4419 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4420 echo "configure:4421: checking for krb5_encrypt in -lcrypto" >&5
4421 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 ac_save_LIBS="$LIBS"
4426 LIBS="-lcrypto $LIBS"
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433 char krb5_encrypt();
4439 if { (eval echo configure:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4441 eval "ac_cv_lib_$ac_lib_var=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_lib_$ac_lib_var=no"
4449 LIBS="$ac_save_LIBS"
4452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4456 cat >> confdefs.h <<EOF
4457 #define $ac_tr_lib 1
4460 LIBS="-lcrypto $LIBS"
4463 echo "$ac_t""no" 1>&6
4464 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4465 echo "configure:4466: checking for krb5_encrypt in -lk5crypto" >&5
4466 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 ac_save_LIBS="$LIBS"
4471 LIBS="-lk5crypto $LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4478 char krb5_encrypt();
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_lib_$ac_lib_var=no"
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_lib 1
4505 LIBS="-lk5crypto $LIBS"
4508 echo "$ac_t""no" 1>&6
4509 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4514 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4515 echo "configure:4516: checking for krb5_sendauth in -lkrb5" >&5
4516 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 ac_save_LIBS="$LIBS"
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4526 /* We use char because int might match the return type of a gcc2
4527 builtin and then its argument prototype would still apply. */
4528 char krb5_sendauth();
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 eval "ac_cv_lib_$ac_lib_var=yes"
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4541 eval "ac_cv_lib_$ac_lib_var=no"
4544 LIBS="$ac_save_LIBS"
4547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4551 cat >> confdefs.h <<EOF
4552 #define $ac_tr_lib 1
4558 echo "$ac_t""no" 1>&6
4559 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4564 if test "$with_openssl" = yes ; then
4565 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4566 echo "configure:4567: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4567 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 ac_save_LIBS="$LIBS"
4572 LIBS="-lcrypto $LIBS"
4573 cat > conftest.$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 /* Override any gcc2 internal prototype to avoid an error. */
4577 /* We use char because int might match the return type of a gcc2
4578 builtin and then its argument prototype would still apply. */
4579 char CRYPTO_new_ex_data();
4582 CRYPTO_new_ex_data()
4585 if { (eval echo configure:4586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 eval "ac_cv_lib_$ac_lib_var=yes"
4589 echo "configure: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4592 eval "ac_cv_lib_$ac_lib_var=no"
4595 LIBS="$ac_save_LIBS"
4598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4601 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4602 cat >> confdefs.h <<EOF
4603 #define $ac_tr_lib 1
4606 LIBS="-lcrypto $LIBS"
4609 echo "$ac_t""no" 1>&6
4610 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4613 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4614 echo "configure:4615: checking for SSL_library_init in -lssl" >&5
4615 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4617 echo $ac_n "(cached) $ac_c" 1>&6
4619 ac_save_LIBS="$LIBS"
4621 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 /* Override any gcc2 internal prototype to avoid an error. */
4625 /* We use char because int might match the return type of a gcc2
4626 builtin and then its argument prototype would still apply. */
4627 char SSL_library_init();
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 eval "ac_cv_lib_$ac_lib_var=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_lib_$ac_lib_var=no"
4643 LIBS="$ac_save_LIBS"
4646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4647 echo "$ac_t""yes" 1>&6
4648 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4650 cat >> confdefs.h <<EOF
4651 #define $ac_tr_lib 1
4657 echo "$ac_t""no" 1>&6
4658 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4663 if test "$enable_nls" = yes ; then
4666 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4667 echo "configure:4668: checking for library containing gettext" >&5
4668 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 ac_func_search_save_LIBS="$LIBS"
4672 ac_cv_search_gettext="no"
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4687 ac_cv_search_gettext="none required"
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4693 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4694 LIBS="-l$i $ac_func_search_save_LIBS"
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* Override any gcc2 internal prototype to avoid an error. */
4699 /* We use char because int might match the return type of a gcc2
4700 builtin and then its argument prototype would still apply. */
4707 if { (eval echo configure:4708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 ac_cv_search_gettext="-l$i"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4717 LIBS="$ac_func_search_save_LIBS"
4720 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4721 if test "$ac_cv_search_gettext" != "no"; then
4722 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4725 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4727 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4729 echo "configure:4730: checking for libintl.h" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <libintl.h>
4738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4743 eval "ac_cv_header_$ac_safe=yes"
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 eval "ac_cv_header_$ac_safe=no"
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4757 echo "$ac_t""no" 1>&6
4758 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4761 for ac_prog in msgfmt
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4766 echo "configure:4767: checking for $ac_word" >&5
4767 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 if test -n "$MSGFMT"; then
4771 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4775 for ac_dir in $ac_dummy; do
4776 test -z "$ac_dir" && ac_dir=.
4777 if test -f $ac_dir/$ac_word; then
4778 ac_cv_prog_MSGFMT="$ac_prog"
4785 MSGFMT="$ac_cv_prog_MSGFMT"
4786 if test -n "$MSGFMT"; then
4787 echo "$ac_t""$MSGFMT" 1>&6
4789 echo "$ac_t""no" 1>&6
4792 test -n "$MSGFMT" && break
4795 if test -z "$MSGFMT"; then
4796 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4798 for ac_prog in msgmerge
4800 # Extract the first word of "$ac_prog", so it can be a program name with args.
4801 set dummy $ac_prog; ac_word=$2
4802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4803 echo "configure:4804: checking for $ac_word" >&5
4804 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 if test -n "$MSGMERGE"; then
4808 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4812 for ac_dir in $ac_dummy; do
4813 test -z "$ac_dir" && ac_dir=.
4814 if test -f $ac_dir/$ac_word; then
4815 ac_cv_prog_MSGMERGE="$ac_prog"
4822 MSGMERGE="$ac_cv_prog_MSGMERGE"
4823 if test -n "$MSGMERGE"; then
4824 echo "$ac_t""$MSGMERGE" 1>&6
4826 echo "$ac_t""no" 1>&6
4829 test -n "$MSGMERGE" && break
4832 for ac_prog in xgettext
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4837 echo "configure:4838: checking for $ac_word" >&5
4838 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 if test -n "$XGETTEXT"; then
4842 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
4844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4846 for ac_dir in $ac_dummy; do
4847 test -z "$ac_dir" && ac_dir=.
4848 if test -f $ac_dir/$ac_word; then
4849 ac_cv_prog_XGETTEXT="$ac_prog"
4856 XGETTEXT="$ac_cv_prog_XGETTEXT"
4857 if test -n "$XGETTEXT"; then
4858 echo "$ac_t""$XGETTEXT" 1>&6
4860 echo "$ac_t""no" 1>&6
4863 test -n "$XGETTEXT" && break
4867 # Note: share/locale is always the default, independent of $datadir
4868 if test x"$prefix" = x"NONE"; then
4869 localedir="$ac_default_prefix/share/locale"
4871 localedir="$prefix/share/locale"
4875 cat >> confdefs.h <<EOF
4876 #define LOCALEDIR "$localedir"
4886 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
4888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_hdr" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_hdr 1
4922 echo "$ac_t""no" 1>&6
4927 for ac_hdr in netinet/in.h
4929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4931 echo "configure:4932: checking for $ac_hdr" >&5
4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4941 { (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4943 if test -z "$ac_err"; then
4945 eval "ac_cv_header_$ac_safe=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4951 eval "ac_cv_header_$ac_safe=no"
4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_hdr 1
4963 echo "$ac_t""no" 1>&6
4967 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4968 echo "configure:4969: checking for netinet/tcp.h" >&5
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4973 #ifdef HAVE_NETINET_IN_H
4974 #include <netinet/in.h>
4976 #include <netinet/tcp.h>
4979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4980 { (eval echo configure:4981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4982 if test -z "$ac_err"; then
4984 cat >> confdefs.h <<\EOF
4985 #define HAVE_NETINET_TCP_H 1
4987 echo "$ac_t""yes" 1>&6
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 echo "$ac_t""no" 1>&6
4997 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4998 echo "configure:4999: checking whether string.h and strings.h may both be included" >&5
4999 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5006 #include <strings.h>
5009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5018 #include <strings.h>
5021 int n = strcasecmp("a", "b");
5024 if { (eval echo configure:5025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5026 pgac_cv_header_strings_both=yes
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 pgac_cv_header_strings_both=no
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 pgac_cv_header_strings_both=no
5044 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5045 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5046 cat >> confdefs.h <<\EOF
5047 #define STRING_H_WITH_STRINGS_H 1
5052 for ac_hdr in readline/readline.h readline.h
5054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5056 echo "configure:5057: checking for $ac_hdr" >&5
5057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5066 { (eval echo configure:5067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5068 if test -z "$ac_err"; then
5070 eval "ac_cv_header_$ac_safe=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_header_$ac_safe=no"
5080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5083 cat >> confdefs.h <<EOF
5084 #define $ac_tr_hdr 1
5088 echo "$ac_t""no" 1>&6
5092 for ac_hdr in readline/history.h history.h
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5110 eval "ac_cv_header_$ac_safe=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_header_$ac_safe=no"
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5128 echo "$ac_t""no" 1>&6
5133 if test "$with_krb4" = yes ; then
5134 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5135 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5136 echo "configure:5137: checking for krb.h" >&5
5137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5146 { (eval echo configure:5147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5148 if test -z "$ac_err"; then
5150 eval "ac_cv_header_$ac_safe=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_header_$ac_safe=no"
5160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5164 echo "$ac_t""no" 1>&6
5165 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5170 if test "$with_krb5" = yes ; then
5171 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5172 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5173 echo "configure:5174: checking for krb5.h" >&5
5174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5183 { (eval echo configure:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5185 if test -z "$ac_err"; then
5187 eval "ac_cv_header_$ac_safe=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5193 eval "ac_cv_header_$ac_safe=no"
5197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5201 echo "$ac_t""no" 1>&6
5202 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5205 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5206 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5207 echo "configure:5208: checking for com_err.h" >&5
5208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5214 #include <com_err.h>
5216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5217 { (eval echo configure:5218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5219 if test -z "$ac_err"; then
5221 eval "ac_cv_header_$ac_safe=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 eval "ac_cv_header_$ac_safe=no"
5231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5235 echo "$ac_t""no" 1>&6
5236 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5241 if test "$with_openssl" = yes ; then
5242 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5244 echo "configure:5245: checking for openssl/ssl.h" >&5
5245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 #include <openssl/ssl.h>
5253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5258 eval "ac_cv_header_$ac_safe=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_header_$ac_safe=no"
5268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5272 echo "$ac_t""no" 1>&6
5273 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5276 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5277 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5278 echo "configure:5279: checking for openssl/err.h" >&5
5279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <openssl/err.h>
5287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288 { (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290 if test -z "$ac_err"; then
5292 eval "ac_cv_header_$ac_safe=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_header_$ac_safe=no"
5302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5306 echo "$ac_t""no" 1>&6
5307 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5314 ## Types, structures, compiler characteristics
5316 echo $ac_n "checking for working const""... $ac_c" 1>&6
5317 echo "configure:5318: checking for working const" >&5
5318 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5327 /* Ultrix mips cc rejects this. */
5328 typedef int charset[2]; const charset x;
5329 /* SunOS 4.1.1 cc rejects this. */
5330 char const *const *ccp;
5332 /* NEC SVR4.0.2 mips cc rejects this. */
5333 struct point {int x, y;};
5334 static struct point const zero = {0,0};
5335 /* AIX XL C 1.02.0.0 rejects this.
5336 It does not let you subtract one const X* pointer from another in an arm
5337 of an if-expression whose if-part is not a constant expression */
5338 const char *g = "string";
5339 ccp = &g + (g ? g-g : 0);
5340 /* HPUX 7.0 cc rejects these. */
5343 ccp = (char const *const *) p;
5344 { /* SCO 3.2v4 cc rejects this. */
5346 char const *s = 0 ? (char *) 0 : (char const *) 0;
5350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5352 const int *foo = &x[0];
5355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5356 typedef const int *iptr;
5360 { /* AIX XL C 1.02.0.0 rejects this saying
5361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5362 struct s { int j; const int *ap[3]; };
5363 struct s *b; b->j = 5;
5365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5383 echo "$ac_t""$ac_cv_c_const" 1>&6
5384 if test $ac_cv_c_const = no; then
5385 cat >> confdefs.h <<\EOF
5391 echo $ac_n "checking for inline""... $ac_c" 1>&6
5392 echo "configure:5393: checking for inline" >&5
5393 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5397 for ac_kw in inline __inline__ __inline; do
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5408 ac_cv_c_inline=$ac_kw; break
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5418 echo "$ac_t""$ac_cv_c_inline" 1>&6
5419 case "$ac_cv_c_inline" in
5421 no) cat >> confdefs.h <<\EOF
5425 *) cat >> confdefs.h <<EOF
5426 #define inline $ac_cv_c_inline
5433 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5434 echo "configure:5435: checking for preprocessor stringizing operator" >&5
5435 if eval "test \"`echo '$''{'ac_cv_c_stringize'+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"
5444 char *s = x(teststring);
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 egrep "#teststring" >/dev/null 2>&1; then
5450 ac_cv_c_stringize=no
5453 ac_cv_c_stringize=yes
5459 if test "${ac_cv_c_stringize}" = yes
5461 cat >> confdefs.h <<\EOF
5462 #define HAVE_STRINGIZE 1
5466 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5468 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5469 echo "configure:5470: checking for signed types" >&5
5470 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5478 signed char c; signed short s; signed int i;
5481 if { (eval echo configure:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 pgac_cv_c_signed=yes
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5493 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5494 if test x"$pgac_cv_c_signed" = xno ; then
5495 cat >> confdefs.h <<\EOF
5500 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5501 echo "configure:5502: checking for volatile" >&5
5502 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5510 extern volatile int i;
5513 if { (eval echo configure:5514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 pgac_cv_c_volatile=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 pgac_cv_c_volatile=no
5525 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5526 if test x"$pgac_cv_c_volatile" = xno ; then
5527 cat >> confdefs.h <<\EOF
5532 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5533 echo "configure:5534: checking whether struct tm is in sys/time.h or time.h" >&5
5534 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 #include <sys/types.h>
5543 struct tm *tp; tp->tm_sec;
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 ac_cv_struct_tm=time.h
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 ac_cv_struct_tm=sys/time.h
5558 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5559 if test $ac_cv_struct_tm = sys/time.h; then
5560 cat >> confdefs.h <<\EOF
5561 #define TM_IN_SYS_TIME 1
5566 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5567 echo "configure:5568: checking for tm_zone in struct tm" >&5
5568 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 #include <sys/types.h>
5575 #include <$ac_cv_struct_tm>
5577 struct tm tm; tm.tm_zone;
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 ac_cv_struct_tm_zone=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 ac_cv_struct_tm_zone=no
5592 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5593 if test "$ac_cv_struct_tm_zone" = yes; then
5594 cat >> confdefs.h <<\EOF
5595 #define HAVE_TM_ZONE 1
5599 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5600 echo "configure:5601: checking for tzname" >&5
5601 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5608 #ifndef tzname /* For SGI. */
5609 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 ac_cv_var_tzname=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5627 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5628 if test $ac_cv_var_tzname = yes; then
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_TZNAME 1
5636 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5637 echo "configure:5638: checking for union semun" >&5
5638 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5645 #include <sys/ipc.h>
5646 #include <sys/sem.h>
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 pgac_cv_union_semun=yes
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 pgac_cv_union_semun=no
5663 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5664 if test x"$pgac_cv_union_semun" = xyes ; then
5665 cat >> confdefs.h <<\EOF
5666 #define HAVE_UNION_SEMUN 1
5670 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5671 echo "configure:5672: checking for struct sockaddr_un" >&5
5672 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <sys/types.h>
5679 #ifdef HAVE_SYS_UN_H
5683 struct sockaddr_un un;
5686 if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5688 pgac_cv_struct_sockaddr_un=yes
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 pgac_cv_struct_sockaddr_un=no
5698 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5699 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5700 cat >> confdefs.h <<\EOF
5701 #define HAVE_STRUCT_SOCKADDR_UN 1
5707 ## Functions, global variables
5709 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5710 echo "configure:5711: checking for int timezone" >&5
5711 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5720 res = timezone / 60;
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 pgac_cv_var_int_timezone=yes
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 pgac_cv_var_int_timezone=no
5735 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5736 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5737 cat >> confdefs.h <<\EOF
5738 #define HAVE_INT_TIMEZONE
5742 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5743 echo "configure:5744: checking types of arguments for accept()" >&5
5744 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5754 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5755 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 #ifdef HAVE_SYS_TYPES_H
5760 #include <sys/types.h>
5762 #ifdef HAVE_SYS_SOCKET_H
5763 #include <sys/socket.h>
5765 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5770 if { (eval echo configure:5771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5772 ac_not_found=no; break 3
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5783 if test "$ac_not_found" = yes; then
5784 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5786 if test "$ac_cv_func_accept_arg3" = "void"; then
5787 ac_cv_func_accept_arg3=int
5795 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5796 cat >> confdefs.h <<EOF
5797 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5800 cat >> confdefs.h <<EOF
5801 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5804 cat >> confdefs.h <<EOF
5805 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5809 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5810 echo "configure:5811: checking whether gettimeofday takes only one argument" >&5
5811 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <sys/time.h>
5820 struct timezone *tzp;
5821 gettimeofday(tp,tzp);
5824 if { (eval echo configure:5825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 pgac_cv_func_gettimeofday_1arg=no
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 pgac_cv_func_gettimeofday_1arg=yes
5836 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5837 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5838 cat >> confdefs.h <<\EOF
5839 #define GETTIMEOFDAY_1ARG
5844 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5847 echo "configure:5848: checking for $ac_func" >&5
5848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 /* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func(); below. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5864 /* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 eval "ac_cv_func_$ac_func=yes"
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 eval "ac_cv_func_$ac_func=no"
5887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5888 echo "$ac_t""yes" 1>&6
5889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5890 cat >> confdefs.h <<EOF
5891 #define $ac_tr_func 1
5895 echo "$ac_t""no" 1>&6
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5906 egrep "fdatasync" >/dev/null 2>&1; then
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_FDATASYNC_DECL 1
5916 echo $ac_n "checking for SO_PEERCRED""... $ac_c" 1>&6
5917 echo "configure:5918: checking for SO_PEERCRED" >&5
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 #include <sys/socket.h>
5927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5928 egrep "HAVE_SO_PEERCRED" >/dev/null 2>&1; then
5931 echo "$ac_t""yes" 1>&6
5932 cat >> confdefs.h <<\EOF
5933 #define HAVE_SO_PEERCRED 1
5939 echo "$ac_t""no" 1>&6
5944 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5945 echo "configure:5946: checking for PS_STRINGS" >&5
5946 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <machine/vmparam.h>
5953 #include <sys/exec.h>
5956 PS_STRINGS->ps_nargvstr = 1;
5957 PS_STRINGS->ps_argvstr = "foo";
5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5962 pgac_cv_var_PS_STRINGS=yes
5964 echo "configure: failed program was:" >&5
5965 cat conftest.$ac_ext >&5
5967 pgac_cv_var_PS_STRINGS=no
5972 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5973 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5974 cat >> confdefs.h <<\EOF
5975 #define HAVE_PS_STRINGS
5981 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5982 echo "configure:5983: checking for snprintf" >&5
5983 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 /* System header to define __stub macros and hopefully few prototypes,
5990 which can conflict with char snprintf(); below. */
5992 /* Override any gcc2 internal prototype to avoid an error. */
5993 /* We use char because int might match the return type of a gcc2
5994 builtin and then its argument prototype would still apply. */
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 eval "ac_cv_func_snprintf=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_func_snprintf=no"
6022 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 cat >> confdefs.h <<\EOF
6025 #define HAVE_SNPRINTF 1
6029 echo "$ac_t""no" 1>&6
6030 SNPRINTF='snprintf.o'
6033 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6034 echo "configure:6035: checking for vsnprintf" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char vsnprintf(); below. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 eval "ac_cv_func_vsnprintf=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_func_vsnprintf=no"
6074 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 cat >> confdefs.h <<\EOF
6077 #define HAVE_VSNPRINTF 1
6081 echo "$ac_t""no" 1>&6
6082 SNPRINTF='snprintf.o'
6086 cat > conftest.$ac_ext <<EOF
6087 #line 6088 "configure"
6088 #include "confdefs.h"
6091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6092 egrep "snprintf" >/dev/null 2>&1; then
6094 cat >> confdefs.h <<\EOF
6095 #define HAVE_SNPRINTF_DECL 1
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 egrep "vsnprintf" >/dev/null 2>&1; then
6109 cat >> confdefs.h <<\EOF
6110 #define HAVE_VSNPRINTF_DECL 1
6117 # do this one the hard way in case isinf() is a macro
6118 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6119 echo "configure:6120: checking for isinf" >&5
6120 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
6121 echo $ac_n "(cached) $ac_c" 1>&6
6123 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure"
6125 #include "confdefs.h"
6129 double x = 0.0; int res = isinf(x);
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6134 ac_cv_func_isinf=yes
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6144 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6146 if test $ac_cv_func_isinf = yes ; then
6147 cat >> confdefs.h <<\EOF
6148 #define HAVE_ISINF 1
6154 # Look for a way to implement a substitute for isinf()
6155 for ac_func in fpclass fp_class fp_class_d class
6157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6158 echo "configure:6159: checking for $ac_func" >&5
6159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6160 echo $ac_n "(cached) $ac_c" 1>&6
6162 cat > conftest.$ac_ext <<EOF
6163 #line 6164 "configure"
6164 #include "confdefs.h"
6165 /* System header to define __stub macros and hopefully few prototypes,
6166 which can conflict with char $ac_func(); below. */
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6175 /* The GNU C library defines this for functions which it implements
6176 to always fail with ENOSYS. Some functions are actually named
6177 something starting with __ and the normal name is an alias. */
6178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6186 if { (eval echo configure:6187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 eval "ac_cv_func_$ac_func=yes"
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 eval "ac_cv_func_$ac_func=no"
6198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6199 echo "$ac_t""yes" 1>&6
6200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6201 cat >> confdefs.h <<EOF
6202 #define $ac_tr_func 1
6206 echo "$ac_t""no" 1>&6
6213 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6214 echo "configure:6215: checking for getrusage" >&5
6215 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* System header to define __stub macros and hopefully few prototypes,
6222 which can conflict with char getrusage(); below. */
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6244 eval "ac_cv_func_getrusage=yes"
6246 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6249 eval "ac_cv_func_getrusage=no"
6254 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 cat >> confdefs.h <<\EOF
6257 #define HAVE_GETRUSAGE 1
6261 echo "$ac_t""no" 1>&6
6262 GETRUSAGE='getrusage.o'
6266 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6267 echo "configure:6268: checking for srandom" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char srandom(); below. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_srandom) || defined (__stub___srandom)
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_func_srandom=yes"
6299 echo "configure: failed program was:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_func_srandom=no"
6307 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 cat >> confdefs.h <<\EOF
6310 #define HAVE_SRANDOM 1
6314 echo "$ac_t""no" 1>&6
6319 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6320 echo "configure:6321: checking for gethostname" >&5
6321 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328 which can conflict with char gethostname(); below. */
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6337 /* The GNU C library defines this for functions which it implements
6338 to always fail with ENOSYS. Some functions are actually named
6339 something starting with __ and the normal name is an alias. */
6340 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6350 eval "ac_cv_func_gethostname=yes"
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6355 eval "ac_cv_func_gethostname=no"
6360 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6361 echo "$ac_t""yes" 1>&6
6362 cat >> confdefs.h <<\EOF
6363 #define HAVE_GETHOSTNAME 1
6367 echo "$ac_t""no" 1>&6
6368 GETHOSTNAME='gethostname.o'
6372 echo $ac_n "checking for random""... $ac_c" 1>&6
6373 echo "configure:6374: checking for random" >&5
6374 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6380 /* System header to define __stub macros and hopefully few prototypes,
6381 which can conflict with char random(); below. */
6383 /* Override any gcc2 internal prototype to avoid an error. */
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6390 /* The GNU C library defines this for functions which it implements
6391 to always fail with ENOSYS. Some functions are actually named
6392 something starting with __ and the normal name is an alias. */
6393 #if defined (__stub_random) || defined (__stub___random)
6401 if { (eval echo configure:6402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6403 eval "ac_cv_func_random=yes"
6405 echo "configure: failed program was:" >&5
6406 cat conftest.$ac_ext >&5
6408 eval "ac_cv_func_random=no"
6413 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6414 echo "$ac_t""yes" 1>&6
6415 cat >> confdefs.h <<\EOF
6416 #define HAVE_RANDOM 1
6420 echo "$ac_t""no" 1>&6
6421 MISSING_RANDOM='random.o'
6425 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6426 echo "configure:6427: checking for inet_aton" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char inet_aton(); below. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 eval "ac_cv_func_inet_aton=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_func_inet_aton=no"
6466 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 cat >> confdefs.h <<\EOF
6469 #define HAVE_INET_ATON 1
6473 echo "$ac_t""no" 1>&6
6474 INET_ATON='inet_aton.o'
6478 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6479 echo "configure:6480: checking for strerror" >&5
6480 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 cat > conftest.$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* System header to define __stub macros and hopefully few prototypes,
6487 which can conflict with char strerror(); below. */
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6496 /* The GNU C library defines this for functions which it implements
6497 to always fail with ENOSYS. Some functions are actually named
6498 something starting with __ and the normal name is an alias. */
6499 #if defined (__stub_strerror) || defined (__stub___strerror)
6507 if { (eval echo configure:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 eval "ac_cv_func_strerror=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 eval "ac_cv_func_strerror=no"
6519 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6521 cat >> confdefs.h <<\EOF
6522 #define HAVE_STRERROR 1
6526 echo "$ac_t""no" 1>&6
6527 STRERROR='strerror.o'
6531 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6532 echo "configure:6533: checking for strdup" >&5
6533 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6536 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure"
6538 #include "confdefs.h"
6539 /* System header to define __stub macros and hopefully few prototypes,
6540 which can conflict with char strdup(); below. */
6542 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6549 /* The GNU C library defines this for functions which it implements
6550 to always fail with ENOSYS. Some functions are actually named
6551 something starting with __ and the normal name is an alias. */
6552 #if defined (__stub_strdup) || defined (__stub___strdup)
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6562 eval "ac_cv_func_strdup=yes"
6564 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5
6567 eval "ac_cv_func_strdup=no"
6572 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6573 echo "$ac_t""yes" 1>&6
6574 cat >> confdefs.h <<\EOF
6575 #define HAVE_STRDUP 1
6579 echo "$ac_t""no" 1>&6
6580 STRDUP='../../utils/strdup.o'
6584 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6585 echo "configure:6586: checking for strtol" >&5
6586 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char strtol(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6602 /* The GNU C library defines this for functions which it implements
6603 to always fail with ENOSYS. Some functions are actually named
6604 something starting with __ and the normal name is an alias. */
6605 #if defined (__stub_strtol) || defined (__stub___strtol)
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_func_strtol=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_func_strtol=no"
6625 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6626 echo "$ac_t""yes" 1>&6
6627 cat >> confdefs.h <<\EOF
6628 #define HAVE_STRTOL 1
6632 echo "$ac_t""no" 1>&6
6637 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6638 echo "configure:6639: checking for strtoul" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char strtoul(); below. */
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 eval "ac_cv_func_strtoul=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_func_strtoul=no"
6678 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6680 cat >> confdefs.h <<\EOF
6681 #define HAVE_STRTOUL 1
6685 echo "$ac_t""no" 1>&6
6690 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6691 echo "configure:6692: checking for strcasecmp" >&5
6692 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6693 echo $ac_n "(cached) $ac_c" 1>&6
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* System header to define __stub macros and hopefully few prototypes,
6699 which can conflict with char strcasecmp(); below. */
6701 /* Override any gcc2 internal prototype to avoid an error. */
6702 /* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6708 /* The GNU C library defines this for functions which it implements
6709 to always fail with ENOSYS. Some functions are actually named
6710 something starting with __ and the normal name is an alias. */
6711 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_func_strcasecmp=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_func_strcasecmp=no"
6731 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 cat >> confdefs.h <<\EOF
6734 #define HAVE_STRCASECMP 1
6738 echo "$ac_t""no" 1>&6
6739 STRCASECMP='strcasecmp.o'
6743 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6744 echo "configure:6745: checking for cbrt" >&5
6745 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 cat > conftest.$ac_ext <<EOF
6749 #line 6750 "configure"
6750 #include "confdefs.h"
6751 /* System header to define __stub macros and hopefully few prototypes,
6752 which can conflict with char cbrt(); below. */
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6761 /* The GNU C library defines this for functions which it implements
6762 to always fail with ENOSYS. Some functions are actually named
6763 something starting with __ and the normal name is an alias. */
6764 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_func_cbrt=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_func_cbrt=no"
6784 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 cat >> confdefs.h <<\EOF
6791 echo "$ac_t""no" 1>&6
6792 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6793 echo "configure:6794: checking for cbrt in -lm" >&5
6794 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 ac_save_LIBS="$LIBS"
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6812 if { (eval echo configure:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6814 eval "ac_cv_lib_$ac_lib_var=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6819 eval "ac_cv_lib_$ac_lib_var=no"
6822 LIBS="$ac_save_LIBS"
6825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 cat >> confdefs.h <<\EOF
6832 echo "$ac_t""no" 1>&6
6838 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6839 # this hackery with HPUXMATHLIB allows us to cope.
6843 if [ -r /lib/pa1.1/libm.a ] ; then
6844 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6849 echo $ac_n "checking for rint""... $ac_c" 1>&6
6850 echo "configure:6851: checking for rint" >&5
6851 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6852 echo $ac_n "(cached) $ac_c" 1>&6
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char rint(); below. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6867 /* The GNU C library defines this for functions which it implements
6868 to always fail with ENOSYS. Some functions are actually named
6869 something starting with __ and the normal name is an alias. */
6870 #if defined (__stub_rint) || defined (__stub___rint)
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 eval "ac_cv_func_rint=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6885 eval "ac_cv_func_rint=no"
6890 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6891 echo "$ac_t""yes" 1>&6
6892 cat >> confdefs.h <<\EOF
6897 echo "$ac_t""no" 1>&6
6898 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6899 echo "configure:6900: checking for rint in -lm" >&5
6900 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 ac_save_LIBS="$LIBS"
6905 LIBS="-lm $HPUXMATHLIB $LIBS"
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6918 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6920 eval "ac_cv_lib_$ac_lib_var=yes"
6922 echo "configure: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6925 eval "ac_cv_lib_$ac_lib_var=no"
6928 LIBS="$ac_save_LIBS"
6931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6932 echo "$ac_t""yes" 1>&6
6933 cat >> confdefs.h <<\EOF
6938 echo "$ac_t""no" 1>&6
6945 # Readline versions < 2.1 don't have rl_completion_append_character
6946 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6947 echo "configure:6948: checking for rl_completion_append_character" >&5
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6952 #ifdef HAVE_READLINE_READLINE_H
6953 # include <readline/readline.h>
6954 #elif defined(HAVE_READLINE_H)
6955 # include <readline.h>
6959 rl_completion_append_character = 'x';
6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6964 echo "$ac_t""yes" 1>&6
6965 cat >> confdefs.h <<\EOF
6966 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 echo "$ac_t""no" 1>&6
6977 for ac_func in rl_completion_matches rl_filename_completion_function
6979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6980 echo "configure:6981: checking for $ac_func" >&5
6981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func(); below. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6997 /* The GNU C library defines this for functions which it implements
6998 to always fail with ENOSYS. Some functions are actually named
6999 something starting with __ and the normal name is an alias. */
7000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7010 eval "ac_cv_func_$ac_func=yes"
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 eval "ac_cv_func_$ac_func=no"
7020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7021 echo "$ac_t""yes" 1>&6
7022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7023 cat >> confdefs.h <<EOF
7024 #define $ac_tr_func 1
7028 echo "$ac_t""no" 1>&6
7034 echo $ac_n "checking for finite""... $ac_c" 1>&6
7035 echo "configure:7036: checking for finite" >&5
7036 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure"
7038 #include "confdefs.h"
7041 int dummy=finite(1.0);
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7046 cat >> confdefs.h <<\EOF
7047 #define HAVE_FINITE 1
7049 echo "$ac_t""yes" 1>&6
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 echo "$ac_t""no" 1>&6
7058 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7059 echo "configure:7060: checking for sigsetjmp" >&5
7060 cat > conftest.$ac_ext <<EOF
7061 #line 7062 "configure"
7062 #include "confdefs.h"
7065 sigjmp_buf x; sigsetjmp(x, 1);
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7070 cat >> confdefs.h <<\EOF
7071 #define HAVE_SIGSETJMP 1
7073 echo "$ac_t""yes" 1>&6
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 echo "$ac_t""no" 1>&6
7083 # Check whether --enable-syslog was given
7084 if test x"${enable_syslog+set}" = xset; then
7085 case $enable_syslog in
7087 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7088 echo "configure:7089: checking for syslog" >&5
7089 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7092 cat > conftest.$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7095 /* System header to define __stub macros and hopefully few prototypes,
7096 which can conflict with char syslog(); below. */
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 /* We use char because int might match the return type of a gcc2
7100 builtin and then its argument prototype would still apply. */
7105 /* The GNU C library defines this for functions which it implements
7106 to always fail with ENOSYS. Some functions are actually named
7107 something starting with __ and the normal name is an alias. */
7108 #if defined (__stub_syslog) || defined (__stub___syslog)
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 eval "ac_cv_func_syslog=yes"
7120 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5
7123 eval "ac_cv_func_syslog=no"
7128 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7129 echo "$ac_t""yes" 1>&6
7130 cat >> confdefs.h <<\EOF
7131 #define ENABLE_SYSLOG 1
7135 echo "$ac_t""no" 1>&6
7136 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7144 enableval=$enable_syslog
7145 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7147 esac # $enable_syslog
7154 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7155 echo "configure:7156: checking for optreset" >&5
7156 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7157 echo $ac_n "(cached) $ac_c" 1>&6
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7164 extern int optreset; optreset = 1;
7167 if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7169 pgac_cv_var_int_optreset=yes
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7174 pgac_cv_var_int_optreset=no
7179 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7180 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7181 cat >> confdefs.h <<\EOF
7182 #define HAVE_INT_OPTRESET 1
7188 # This test makes sure that run tests work at all. Sometimes a shared
7189 # library is found by the linker, but the runtime linker can't find it.
7190 # This check should come after all modifications of compiler or linker
7191 # variables, and before any other run tests.
7192 echo $ac_n "checking test program""... $ac_c" 1>&6
7193 echo "configure:7194: checking test program" >&5
7194 if test "$cross_compiling" = yes; then
7195 echo "$ac_t""cross-compiling" 1>&6
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 int main() { return 0; }
7202 if { (eval echo configure:7203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7204 echo "$ac_t""ok" 1>&6
7206 echo "configure: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7209 echo "$ac_t""failed" 1>&6
7210 { echo "configure: error:
7211 *** Could not execute a simple test program. This may be a problem
7212 *** related to locating shared libraries. Check the file 'config.log'
7213 *** for the exact reason." 1>&2; exit 1; }
7221 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7222 echo "configure:7223: checking whether long int is 64 bits" >&5
7223 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7224 echo $ac_n "(cached) $ac_c" 1>&6
7226 if test "$cross_compiling" = yes; then
7227 pgac_cv_type_long_int_64=no
7228 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7233 typedef long int int64;
7236 * These are globals to discourage the compiler from folding all the
7237 * arithmetic tests down to compile-time constants.
7242 int does_int64_work()
7246 if (sizeof(int64) != 8)
7247 return 0; /* definitely not the right size */
7249 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7257 exit(! does_int64_work());
7260 if { (eval echo configure:7261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7262 pgac_cv_type_long_int_64=yes
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 pgac_cv_type_long_int_64=no
7274 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7276 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7277 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7278 cat >> confdefs.h <<\EOF
7279 #define HAVE_LONG_INT_64
7285 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7286 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7287 echo "configure:7288: checking whether long long int is 64 bits" >&5
7288 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7289 echo $ac_n "(cached) $ac_c" 1>&6
7291 if test "$cross_compiling" = yes; then
7292 pgac_cv_type_long_long_int_64=no
7293 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 typedef long long int int64;
7301 * These are globals to discourage the compiler from folding all the
7302 * arithmetic tests down to compile-time constants.
7307 int does_int64_work()
7311 if (sizeof(int64) != 8)
7312 return 0; /* definitely not the right size */
7314 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7322 exit(! does_int64_work());
7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7327 pgac_cv_type_long_long_int_64=yes
7329 echo "configure: failed program was:" >&5
7330 cat conftest.$ac_ext >&5
7332 pgac_cv_type_long_long_int_64=no
7339 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7341 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7342 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7343 cat >> confdefs.h <<\EOF
7344 #define HAVE_LONG_LONG_INT_64
7353 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7354 cat > conftest.$ac_ext <<EOF
7355 #line 7356 "configure"
7356 #include "confdefs.h"
7358 #define INT64CONST(x) x##LL
7359 long long int foo = INT64CONST(0x1234567890123456);
7365 if { (eval echo configure:7366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7367 cat >> confdefs.h <<\EOF
7368 #define HAVE_LL_CONSTANTS 1
7372 echo "configure: failed program was:" >&5
7373 cat conftest.$ac_ext >&5
7380 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7381 if [ x$SNPRINTF = x ] ; then
7382 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7383 echo "configure:7384: checking whether snprintf handles 'long long int' as %lld" >&5
7384 if test "$cross_compiling" = yes; then
7385 echo "$ac_t""assuming not on target machine" 1>&6
7386 # Force usage of our own snprintf, since we cannot test foreign snprintf
7387 SNPRINTF='snprintf.o'
7388 INT64_FORMAT='"%lld"'
7391 cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7395 typedef long long int int64;
7396 #define INT64_FORMAT "%lld"
7401 int does_int64_snprintf_work()
7406 if (sizeof(int64) != 8)
7407 return 0; /* doesn't look like the right size */
7410 snprintf(buf, 100, INT64_FORMAT, c);
7411 if (strcmp(buf, "800000140000005") != 0)
7412 return 0; /* either multiply or snprintf is busted */
7416 exit(! does_int64_snprintf_work());
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7421 echo "$ac_t""yes" 1>&6
7422 INT64_FORMAT='"%lld"'
7425 echo "configure: failed program was:" >&5
7426 cat conftest.$ac_ext >&5
7428 echo "$ac_t""no" 1>&6
7429 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7430 echo "configure:7431: checking whether snprintf handles 'long long int' as %qd" >&5
7431 if test "$cross_compiling" = yes; then
7432 echo "$ac_t""assuming not on target machine" 1>&6
7433 # Force usage of our own snprintf, since we cannot test foreign snprintf
7434 SNPRINTF='snprintf.o'
7435 INT64_FORMAT='"%lld"'
7438 cat > conftest.$ac_ext <<EOF
7439 #line 7440 "configure"
7440 #include "confdefs.h"
7442 typedef long long int int64;
7443 #define INT64_FORMAT "%qd"
7448 int does_int64_snprintf_work()
7453 if (sizeof(int64) != 8)
7454 return 0; /* doesn't look like the right size */
7457 snprintf(buf, 100, INT64_FORMAT, c);
7458 if (strcmp(buf, "800000140000005") != 0)
7459 return 0; /* either multiply or snprintf is busted */
7463 exit(! does_int64_snprintf_work());
7466 if { (eval echo configure:7467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7468 echo "$ac_t""yes" 1>&6
7469 INT64_FORMAT='"%qd"'
7472 echo "configure: failed program was:" >&5
7473 cat conftest.$ac_ext >&5
7475 echo "$ac_t""no" 1>&6
7476 # Force usage of our own snprintf, since system snprintf is broken
7477 SNPRINTF='snprintf.o'
7478 INT64_FORMAT='"%lld"'
7489 # here if we previously decided we needed to use our own snprintf
7490 INT64_FORMAT='"%lld"'
7493 # Here if we are not using 'long long int' at all
7494 INT64_FORMAT='"%ld"'
7497 cat >> confdefs.h <<EOF
7498 #define INT64_FORMAT $INT64_FORMAT
7503 for ac_func in strtoll strtoq
7505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7506 echo "configure:7507: checking for $ac_func" >&5
7507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7513 /* System header to define __stub macros and hopefully few prototypes,
7514 which can conflict with char $ac_func(); below. */
7516 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7523 /* The GNU C library defines this for functions which it implements
7524 to always fail with ENOSYS. Some functions are actually named
7525 something starting with __ and the normal name is an alias. */
7526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7534 if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7536 eval "ac_cv_func_$ac_func=yes"
7538 echo "configure: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7541 eval "ac_cv_func_$ac_func=no"
7546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7547 echo "$ac_t""yes" 1>&6
7548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7549 cat >> confdefs.h <<EOF
7550 #define $ac_tr_func 1
7554 echo "$ac_t""no" 1>&6
7558 for ac_func in strtoull strtouq
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 if { (eval echo configure:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7591 eval "ac_cv_func_$ac_func=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.$ac_ext >&5
7596 eval "ac_cv_func_$ac_func=no"
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h <<EOF
7605 #define $ac_tr_func 1
7609 echo "$ac_t""no" 1>&6
7614 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7615 echo "configure:7616: checking for atexit" >&5
7616 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* System header to define __stub macros and hopefully few prototypes,
7623 which can conflict with char atexit(); below. */
7625 /* Override any gcc2 internal prototype to avoid an error. */
7626 /* We use char because int might match the return type of a gcc2
7627 builtin and then its argument prototype would still apply. */
7632 /* The GNU C library defines this for functions which it implements
7633 to always fail with ENOSYS. Some functions are actually named
7634 something starting with __ and the normal name is an alias. */
7635 #if defined (__stub_atexit) || defined (__stub___atexit)
7643 if { (eval echo configure:7644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7645 eval "ac_cv_func_atexit=yes"
7647 echo "configure: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 eval "ac_cv_func_atexit=no"
7655 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7656 echo "$ac_t""yes" 1>&6
7657 cat >> confdefs.h <<\EOF
7658 #define HAVE_ATEXIT 1
7662 echo "$ac_t""no" 1>&6
7663 for ac_func in on_exit
7665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7666 echo "configure:7667: checking for $ac_func" >&5
7667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7668 echo $ac_n "(cached) $ac_c" 1>&6
7670 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure"
7672 #include "confdefs.h"
7673 /* System header to define __stub macros and hopefully few prototypes,
7674 which can conflict with char $ac_func(); below. */
7676 /* Override any gcc2 internal prototype to avoid an error. */
7677 /* We use char because int might match the return type of a gcc2
7678 builtin and then its argument prototype would still apply. */
7683 /* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7696 eval "ac_cv_func_$ac_func=yes"
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 eval "ac_cv_func_$ac_func=no"
7706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7707 echo "$ac_t""yes" 1>&6
7708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7709 cat >> confdefs.h <<EOF
7710 #define $ac_tr_func 1
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_ON_EXIT 1
7717 echo "$ac_t""no" 1>&6
7718 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7726 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7727 echo "configure:7728: checking size of unsigned long" >&5
7728 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7731 if test "$cross_compiling" = yes; then
7732 ac_cv_sizeof_unsigned_long=4
7734 cat > conftest.$ac_ext <<EOF
7735 #line 7736 "configure"
7736 #include "confdefs.h"
7740 FILE *f=fopen("conftestval", "w");
7742 fprintf(f, "%d\n", sizeof(unsigned long));
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7748 ac_cv_sizeof_unsigned_long=`cat conftestval`
7750 echo "configure: failed program was:" >&5
7751 cat conftest.$ac_ext >&5
7753 ac_cv_sizeof_unsigned_long=0
7759 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7760 cat >> confdefs.h <<EOF
7761 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7765 cat >> confdefs.h <<EOF
7766 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7771 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7772 echo "configure:7773: checking alignment of short" >&5
7773 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 if test "$cross_compiling" = yes; then
7777 pgac_cv_alignof_short='sizeof(short)'
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7783 struct { char filler; short field; } mystruct;
7786 FILE *f=fopen("conftestval", "w");
7788 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7794 pgac_cv_alignof_short=`cat conftestval`
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7799 pgac_cv_alignof_short='sizeof(short)'
7805 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7806 cat >> confdefs.h <<EOF
7807 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7811 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7812 echo "configure:7813: checking alignment of int" >&5
7813 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 if test "$cross_compiling" = yes; then
7817 pgac_cv_alignof_int='sizeof(int)'
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7823 struct { char filler; int field; } mystruct;
7826 FILE *f=fopen("conftestval", "w");
7828 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7832 if { (eval echo configure:7833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7834 pgac_cv_alignof_int=`cat conftestval`
7836 echo "configure: failed program was:" >&5
7837 cat conftest.$ac_ext >&5
7839 pgac_cv_alignof_int='sizeof(int)'
7845 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7846 cat >> confdefs.h <<EOF
7847 #define ALIGNOF_INT $pgac_cv_alignof_int
7851 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7852 echo "configure:7853: checking alignment of long" >&5
7853 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 if test "$cross_compiling" = yes; then
7857 pgac_cv_alignof_long='sizeof(long)'
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7863 struct { char filler; long field; } mystruct;
7866 FILE *f=fopen("conftestval", "w");
7868 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7874 pgac_cv_alignof_long=`cat conftestval`
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 pgac_cv_alignof_long='sizeof(long)'
7885 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7886 cat >> confdefs.h <<EOF
7887 #define ALIGNOF_LONG $pgac_cv_alignof_long
7891 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7892 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7893 echo "configure:7894: checking alignment of long long int" >&5
7894 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 if test "$cross_compiling" = yes; then
7898 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7904 struct { char filler; long long int field; } mystruct;
7907 FILE *f=fopen("conftestval", "w");
7909 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7915 pgac_cv_alignof_long_long_int=`cat conftestval`
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7926 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7927 cat >> confdefs.h <<EOF
7928 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7933 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7934 echo "configure:7935: checking alignment of double" >&5
7935 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 if test "$cross_compiling" = yes; then
7939 pgac_cv_alignof_double='sizeof(double)'
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7945 struct { char filler; double field; } mystruct;
7948 FILE *f=fopen("conftestval", "w");
7950 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7956 pgac_cv_alignof_double=`cat conftestval`
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7961 pgac_cv_alignof_double='sizeof(double)'
7967 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7968 cat >> confdefs.h <<EOF
7969 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7975 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7976 MAX_ALIGNOF=$pgac_cv_alignof_long
7977 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7978 MAX_ALIGNOF=$pgac_cv_alignof_double
7980 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7981 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7984 MAX_ALIGNOF="$pgac_cv_alignof_double"
7986 cat >> confdefs.h <<EOF
7987 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7991 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7992 echo "configure:7993: checking for POSIX signal interface" >&5
7993 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
8002 struct sigaction act, oact;
8003 sigemptyset(&act.sa_mask);
8004 act.sa_flags = SA_RESTART;
8005 sigaction(0, &act, &oact);
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010 pgac_cv_func_posix_signals=yes
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 pgac_cv_func_posix_signals=no
8020 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
8021 if test x"$pgac_cv_func_posix_signals" = xyes ; then
8022 cat >> confdefs.h <<\EOF
8023 #define HAVE_POSIX_SIGNALS
8027 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8031 # Check for Tcl configuration script tclConfig.sh
8032 if test "$with_tcl" = yes; then
8033 for ac_prog in tclsh tcl
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy $ac_prog; ac_word=$2
8037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8038 echo "configure:8039: checking for $ac_word" >&5
8039 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8044 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8047 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8052 for ac_dir in $ac_dummy; do
8053 test -z "$ac_dir" && ac_dir=.
8054 if test -f $ac_dir/$ac_word; then
8055 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8063 TCLSH="$ac_cv_path_TCLSH"
8064 if test -n "$TCLSH"; then
8065 echo "$ac_t""$TCLSH" 1>&6
8067 echo "$ac_t""no" 1>&6
8070 test -n "$TCLSH" && break
8073 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8074 echo "configure:8075: checking for tclConfig.sh" >&5
8075 # Let user override test
8076 if test -z "$TCL_CONFIG_SH"; then
8077 pgac_test_dirs="$with_tclconfig"
8079 set X $pgac_test_dirs; shift
8080 if test $# -eq 0; then
8081 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8082 set X `echo 'puts $auto_path' | $TCLSH`; shift
8086 if test -r "$pgac_dir/tclConfig.sh"; then
8087 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8093 if test -z "$TCL_CONFIG_SH"; then
8094 echo "$ac_t""no" 1>&6
8095 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8097 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8104 # Check for Tk configuration script tkConfig.sh
8105 if test "$with_tk" = yes; then
8106 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8107 echo "configure:8108: checking for tkConfig.sh" >&5
8108 # Let user override test
8109 if test -z "$TK_CONFIG_SH"; then
8110 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8112 set X $pgac_test_dirs; shift
8113 if test $# -eq 0; then
8114 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8115 set X `echo 'puts $auto_path' | $TCLSH`; shift
8119 if test -r "$pgac_dir/tkConfig.sh"; then
8120 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8126 if test -z "$TK_CONFIG_SH"; then
8127 echo "$ac_t""no" 1>&6
8128 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8130 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8139 # Check for DocBook and tools
8141 for ac_prog in onsgmls nsgmls
8143 # Extract the first word of "$ac_prog", so it can be a program name with args.
8144 set dummy $ac_prog; ac_word=$2
8145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8146 echo "configure:8147: checking for $ac_word" >&5
8147 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8148 echo $ac_n "(cached) $ac_c" 1>&6
8150 if test -n "$NSGMLS"; then
8151 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8155 for ac_dir in $ac_dummy; do
8156 test -z "$ac_dir" && ac_dir=.
8157 if test -f $ac_dir/$ac_word; then
8158 ac_cv_prog_NSGMLS="$ac_prog"
8165 NSGMLS="$ac_cv_prog_NSGMLS"
8166 if test -n "$NSGMLS"; then
8167 echo "$ac_t""$NSGMLS" 1>&6
8169 echo "$ac_t""no" 1>&6
8172 test -n "$NSGMLS" && break
8175 # If you don't have nsgmls you won't get very far, so save the cycles.
8176 if test -n "$NSGMLS"; then
8177 for ac_prog in openjade jade
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8182 echo "configure:8183: checking for $ac_word" >&5
8183 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8184 echo $ac_n "(cached) $ac_c" 1>&6
8186 if test -n "$JADE"; then
8187 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8191 for ac_dir in $ac_dummy; do
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/$ac_word; then
8194 ac_cv_prog_JADE="$ac_prog"
8201 JADE="$ac_cv_prog_JADE"
8202 if test -n "$JADE"; then
8203 echo "$ac_t""$JADE" 1>&6
8205 echo "$ac_t""no" 1>&6
8208 test -n "$JADE" && break
8212 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8213 echo "configure:8214: checking for DocBook V3.1" >&5
8214 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8217 cat >conftest.sgml <<EOF
8218 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8222 <title>random</title>
8224 <title>testsect</title>
8231 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8232 if test $? -eq 0; then
8233 pgac_cv_check_docbook=yes
8235 pgac_cv_check_docbook=no
8240 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8242 have_docbook=$pgac_cv_check_docbook
8245 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8246 echo "configure:8247: checking for DocBook stylesheets" >&5
8247 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 if test -n "$DOCBOOKSTYLE"; then
8251 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8253 for pgac_prefix in /usr /usr/local /opt; do
8254 for pgac_infix in share lib; do
8255 for pgac_postfix in \
8256 sgml/stylesheets/nwalsh-modular \
8257 sgml/stylesheets/docbook \
8258 sgml/docbook/dsssl/modular
8260 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8261 if test -r "$pgac_candidate/html/docbook.dsl" \
8262 && test -r "$pgac_candidate/print/docbook.dsl"
8264 pgac_cv_path_stylesheets=$pgac_candidate
8273 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8275 if test -n "$DOCBOOKSTYLE"; then
8276 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8278 echo "$ac_t""no" 1>&6
8280 for ac_prog in sgmlspl
8282 # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8285 echo "configure:8286: checking for $ac_word" >&5
8286 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6
8289 if test -n "$SGMLSPL"; then
8290 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8294 for ac_dir in $ac_dummy; do
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/$ac_word; then
8297 ac_cv_prog_SGMLSPL="$ac_prog"
8304 SGMLSPL="$ac_cv_prog_SGMLSPL"
8305 if test -n "$SGMLSPL"; then
8306 echo "$ac_t""$SGMLSPL" 1>&6
8308 echo "$ac_t""no" 1>&6
8311 test -n "$SGMLSPL" && break
8316 # check whether 'test -ef' works
8317 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
8326 if test "$test_ef_works" = yes ; then
8327 # prepare build tree if outside source tree
8328 if test "$srcdir" -ef . ; then : ; else
8329 abs_top_srcdir=`cd $srcdir && pwd`
8330 echo $ac_n "preparing build tree... $ac_c" 1>&6
8331 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8332 || { echo "configure: error: failed" 1>&2; exit 1; }
8333 echo "$ac_t""done" 1>&6
8338 cat > confcache <<\EOF
8339 # This file is a shell script that caches the results of configure
8340 # tests run on this system so they can be shared between configure
8341 # scripts and configure runs. It is not useful on other systems.
8342 # If it contains results you don't want to keep, you may remove or edit it.
8344 # By default, configure uses ./config.cache as the cache file,
8345 # creating it if it does not exist already. You can give configure
8346 # the --cache-file=FILE option to use a different cache file; that is
8347 # what configure does when it calls configure scripts in
8348 # subdirectories, so they share the cache.
8349 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8350 # config.status only pays attention to the cache file if you give it the
8351 # --recheck option to rerun configure.
8354 # The following way of writing the cache mishandles newlines in values,
8355 # but we know of no workaround that is simple, portable, and efficient.
8356 # So, don't put newlines in cache variables' values.
8357 # Ultrix sh set writes to stderr and can't be redirected directly,
8358 # and sets the high bit in the cache file unless we assign to the vars.
8360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8362 # `set' does not quote correctly, so add quotes (double-quote substitution
8363 # turns \\\\ into \\, and sed turns \\ into \).
8365 -e "s/'/'\\\\''/g" \
8366 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8369 # `set' quotes correctly as required by POSIX, so do not add quotes.
8370 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8373 if cmp -s $cache_file confcache; then
8376 if test -w $cache_file; then
8377 echo "updating cache $cache_file"
8378 cat confcache > $cache_file
8380 echo "not updating unwritable cache $cache_file"
8385 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8388 # Let make expand exec_prefix.
8389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8391 # Any assignment to VPATH causes Sun make to only execute
8392 # the first set of double-colon rules, so remove it if not needed.
8393 # If there is a colon in the path, we need to keep it.
8394 if test "x$srcdir" = x.; then
8395 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8398 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8400 DEFS=-DHAVE_CONFIG_H
8402 # Without the "./", some shells look in PATH for config.status.
8403 : ${CONFIG_STATUS=./config.status}
8405 echo creating $CONFIG_STATUS
8406 rm -f $CONFIG_STATUS
8407 cat > $CONFIG_STATUS <<EOF
8409 # Generated automatically by configure.
8410 # Run this file to recreate the current configuration.
8411 # This directory was configured as follows,
8412 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8414 # $0 $ac_configure_args
8416 # Compiler output produced by configure, useful for debugging
8417 # configure, is in ./config.log if it exists.
8419 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8422 case "\$ac_option" in
8423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8424 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8425 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8426 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8427 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8429 -help | --help | --hel | --he | --h)
8430 echo "\$ac_cs_usage"; exit 0 ;;
8431 *) echo "\$ac_cs_usage"; exit 1 ;;
8435 ac_given_srcdir=$srcdir
8437 trap 'rm -fr `echo "
8441 src/backend/port/Makefile
8442 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8444 cat >> $CONFIG_STATUS <<EOF
8446 # Protect against being on the right side of a sed subst in config.status.
8447 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8448 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8452 s%@CFLAGS@%$CFLAGS%g
8453 s%@CPPFLAGS@%$CPPFLAGS%g
8454 s%@CXXFLAGS@%$CXXFLAGS%g
8455 s%@FFLAGS@%$FFLAGS%g
8457 s%@LDFLAGS@%$LDFLAGS%g
8459 s%@exec_prefix@%$exec_prefix%g
8460 s%@prefix@%$prefix%g
8461 s%@program_transform_name@%$program_transform_name%g
8462 s%@bindir@%$bindir%g
8463 s%@sbindir@%$sbindir%g
8464 s%@libexecdir@%$libexecdir%g
8465 s%@datadir@%$datadir%g
8466 s%@sysconfdir@%$sysconfdir%g
8467 s%@sharedstatedir@%$sharedstatedir%g
8468 s%@localstatedir@%$localstatedir%g
8469 s%@libdir@%$libdir%g
8470 s%@includedir@%$includedir%g
8471 s%@oldincludedir@%$oldincludedir%g
8472 s%@docdir@%$docdir%g
8473 s%@mandir@%$mandir%g
8474 s%@VERSION@%$VERSION%g
8476 s%@host_alias@%$host_alias%g
8477 s%@host_cpu@%$host_cpu%g
8478 s%@host_vendor@%$host_vendor%g
8479 s%@host_os@%$host_os%g
8480 s%@PORTNAME@%$PORTNAME%g
8482 s%@MULTIBYTE@%$MULTIBYTE%g
8483 s%@enable_nls@%$enable_nls%g
8484 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
8485 s%@default_port@%$default_port%g
8486 s%@enable_shared@%$enable_shared%g
8487 s%@enable_rpath@%$enable_rpath%g
8489 s%@EXEEXT@%$EXEEXT%g
8492 s%@autodepend@%$autodepend%g
8493 s%@INCLUDES@%$INCLUDES%g
8494 s%@with_tcl@%$with_tcl%g
8495 s%@with_tk@%$with_tk%g
8496 s%@enable_pltcl_unknown@%$enable_pltcl_unknown%g
8497 s%@with_perl@%$with_perl%g
8498 s%@with_python@%$with_python%g
8500 s%@with_java@%$with_java%g
8501 s%@with_krb4@%$with_krb4%g
8502 s%@with_krb5@%$with_krb5%g
8503 s%@krb_srvtab@%$krb_srvtab%g
8504 s%@with_openssl@%$with_openssl%g
8505 s%@enable_odbc@%$enable_odbc%g
8506 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8507 s%@ELF_SYS@%$ELF_SYS%g
8509 s%@CXXCPP@%$CXXCPP%g
8511 s%@with_CXX@%$with_CXX%g
8514 s%@FLEXFLAGS@%$FLEXFLAGS%g
8517 s%@with_gnu_ld@%$with_gnu_ld%g
8518 s%@ld_R_works@%$ld_R_works%g
8519 s%@RANLIB@%$RANLIB%g
8520 s%@LORDER@%$LORDER%g
8524 s%@YFLAGS@%$YFLAGS%g
8526 s%@PYTHON@%$PYTHON%g
8527 s%@python_version@%$python_version%g
8528 s%@python_prefix@%$python_prefix%g
8529 s%@python_execprefix@%$python_execprefix%g
8530 s%@python_configdir@%$python_configdir%g
8531 s%@python_moduledir@%$python_moduledir%g
8532 s%@python_moduleexecdir@%$python_moduleexecdir%g
8533 s%@python_includespec@%$python_includespec%g
8534 s%@python_libspec@%$python_libspec%g
8535 s%@MSGFMT@%$MSGFMT%g
8536 s%@MSGMERGE@%$MSGMERGE%g
8537 s%@XGETTEXT@%$XGETTEXT%g
8538 s%@localedir@%$localedir%g
8539 s%@SNPRINTF@%$SNPRINTF%g
8541 s%@GETRUSAGE@%$GETRUSAGE%g
8542 s%@SRANDOM@%$SRANDOM%g
8543 s%@GETHOSTNAME@%$GETHOSTNAME%g
8544 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8545 s%@INET_ATON@%$INET_ATON%g
8546 s%@STRERROR@%$STRERROR%g
8547 s%@STRDUP@%$STRDUP%g
8548 s%@STRTOL@%$STRTOL%g
8549 s%@STRTOUL@%$STRTOUL%g
8550 s%@STRCASECMP@%$STRCASECMP%g
8551 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8552 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8554 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8555 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8556 s%@NSGMLS@%$NSGMLS%g
8558 s%@have_docbook@%$have_docbook%g
8559 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8560 s%@SGMLSPL@%$SGMLSPL%g
8561 s%@abs_top_srcdir@%$abs_top_srcdir%g
8566 cat >> $CONFIG_STATUS <<\EOF
8568 # Split the substitutions into bite-sized pieces for seds with
8569 # small command number limits, like on Digital OSF/1 and HP-UX.
8570 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8571 ac_file=1 # Number of current file.
8572 ac_beg=1 # First line for current file.
8573 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8576 while $ac_more_lines; do
8577 if test $ac_beg -gt 1; then
8578 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8580 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8582 if test ! -s conftest.s$ac_file; then
8584 rm -f conftest.s$ac_file
8586 if test -z "$ac_sed_cmds"; then
8587 ac_sed_cmds="sed -f conftest.s$ac_file"
8589 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8591 ac_file=`expr $ac_file + 1`
8593 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8596 if test -z "$ac_sed_cmds"; then
8601 cat >> $CONFIG_STATUS <<EOF
8603 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8606 src/backend/port/Makefile
8609 cat >> $CONFIG_STATUS <<\EOF
8610 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8613 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8614 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8615 *) ac_file_in="${ac_file}.in" ;;
8618 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8620 # Remove last slash and all that follows it. Not all systems have dirname.
8621 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8622 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8623 # The file is in a subdirectory.
8624 test ! -d "$ac_dir" && mkdir "$ac_dir"
8625 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8626 # A "../" for each directory in $ac_dir_suffix.
8627 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8629 ac_dir_suffix= ac_dots=
8632 case "$ac_given_srcdir" in
8634 if test -z "$ac_dots"; then top_srcdir=.
8635 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8636 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8638 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8639 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8643 echo creating "$ac_file"
8645 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8647 *Makefile*) ac_comsub="1i\\
8648 # $configure_input" ;;
8652 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8654 s%@configure_input@%$configure_input%g
8655 s%@srcdir@%$srcdir%g
8656 s%@top_srcdir@%$top_srcdir%g
8657 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8664 # ac_d sets the value in "#define NAME VALUE" lines.
8665 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8666 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8669 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8670 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8671 ac_uB='\([ ]\)%\1#\2define\3'
8674 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8675 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8676 ac_eB='$%\1#\2define\3'
8680 if test "${CONFIG_HEADERS+set}" != set; then
8682 cat >> $CONFIG_STATUS <<EOF
8683 CONFIG_HEADERS="src/include/config.h"
8685 cat >> $CONFIG_STATUS <<\EOF
8687 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8690 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8691 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8692 *) ac_file_in="${ac_file}.in" ;;
8695 echo creating $ac_file
8697 rm -f conftest.frag conftest.in conftest.out
8698 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8699 cat $ac_file_inputs > conftest.in
8703 # Transform confdefs.h into a sed script conftest.vals that substitutes
8704 # the proper values into config.h.in to produce config.h. And first:
8705 # Protect against being on the right side of a sed subst in config.status.
8706 # Protect against being in an unquoted here document in config.status.
8708 cat > conftest.hdr <<\EOF
8711 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8715 sed -n -f conftest.hdr confdefs.h > conftest.vals
8718 # This sed command replaces #undef with comments. This is necessary, for
8719 # example, in the case of _POSIX_SOURCE, which is predefined and required
8720 # on some systems where configure will not decide to define it.
8721 cat >> conftest.vals <<\EOF
8722 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8725 # Break up conftest.vals because some shells have a limit on
8726 # the size of here documents, and old seds have small limits too.
8731 ac_lines=`grep -c . conftest.vals`
8732 # grep -c gives empty output for an empty file on some AIX systems.
8733 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8734 # Write a limited-size here document to conftest.frag.
8735 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8736 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8738 sed -f conftest.frag conftest.in > conftest.out
8740 mv conftest.out conftest.in
8742 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8744 mv conftest.tail conftest.vals
8748 cat >> $CONFIG_STATUS <<\EOF
8749 rm -f conftest.frag conftest.h
8750 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8751 cat conftest.in >> conftest.h
8753 if cmp -s $ac_file conftest.h 2>/dev/null; then
8754 echo "$ac_file is unchanged"
8757 # Remove last slash and all that follows it. Not all systems have dirname.
8758 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8760 # The file is in a subdirectory.
8761 test ! -d "$ac_dir" && mkdir "$ac_dir"
8764 mv conftest.h $ac_file
8770 cat >> $CONFIG_STATUS <<EOF
8771 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}"
8772 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8775 cat >> $CONFIG_STATUS <<\EOF
8776 srcdir=$ac_given_srcdir
8777 while test -n "$ac_sources"; do
8778 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8779 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8781 echo "linking $srcdir/$ac_source to $ac_dest"
8783 if test ! -r $srcdir/$ac_source; then
8784 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8788 # Make relative symlinks.
8789 # Remove last slash and all that follows it. Not all systems have dirname.
8790 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8791 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8792 # The dest file is in a subdirectory.
8793 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8794 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8795 # A "../" for each directory in $ac_dest_dir_suffix.
8796 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8798 ac_dest_dir_suffix= ac_dots=
8802 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8803 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8806 # Make a symlink if possible; otherwise try a hard link.
8807 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8808 ln $srcdir/$ac_source $ac_dest; then :
8810 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8814 cat >> $CONFIG_STATUS <<EOF
8817 cat >> $CONFIG_STATUS <<\EOF
8819 # Update timestamp for config.h (see Makefile.global)
8820 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8824 chmod +x $CONFIG_STATUS
8825 rm -fr confdefs* $ac_clean_files
8826 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1