2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2beta1.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2006, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2beta1'
275 PACKAGE_STRING='PostgreSQL 8.2beta1'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug DTRACE DTRACEFLAGS enable_dtrace CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_ldap with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS LDAP_LIBS_FE LDAP_LIBS_BE HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.2beta1 to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.2beta1:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-dtrace build with DTrace support
869 --enable-depend turn on automatic dependency tracking
870 --enable-cassert enable assertion checks (for debugging)
871 --enable-thread-safety make client libraries thread-safe
872 --enable-thread-safety-force force thread-safety in spite of thread test failure
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
880 --without-docdir do not install the documentation
881 --with-includes=DIRS look for additional header files in DIRS
882 --with-libraries=DIRS look for additional libraries in DIRS
883 --with-libs=DIRS alternative spelling of --with-libraries
884 --with-pgport=PORTNUM change default port number [5432]
885 --with-tcl build Tcl modules (PL/Tcl)
886 --with-tclconfig=DIR tclConfig.sh is in DIR
887 --with-perl build Perl modules (PL/Perl)
888 --with-python build Python modules (PL/Python)
889 --with-krb5 build with Kerberos 5 support
890 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
891 --with-pam build with PAM support
892 --with-ldap build with LDAP support
893 --with-bonjour build with Bonjour support
894 --with-openssl build with OpenSSL support
895 --without-readline do not use GNU Readline nor BSD Libedit for editing
896 --with-libedit-preferred prefer BSD Libedit over GNU Readline
897 --without-zlib do not use Zlib
898 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
910 location of DocBook stylesheets
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 Report bugs to <pgsql-bugs@postgresql.org>.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix= ac_top_builddir=
935 .) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .) ac_abs_builddir="$ac_dir";;
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 PostgreSQL configure 8.2beta1
1012 generated by GNU Autoconf 2.59
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1018 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by PostgreSQL $as_me 8.2beta1, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 for ac_dir in config $srcdir/config; do
1369 if test -f $ac_dir/install-sh; then
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 elif test -f $ac_dir/install.sh; then
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 elif test -f $ac_dir/shtool; then
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 configure_args=$ac_configure_args
1397 cat >>confdefs.h <<_ACEOF
1398 #define PG_VERSION "$PACKAGE_VERSION"
1402 # Make sure we can run config.sub.
1403 $ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: checking build system type" >&5
1409 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410 if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 ac_cv_build_alias=$build_alias
1414 test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416 test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1426 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427 echo "${ECHO_T}$ac_cv_build" >&6
1429 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1434 echo "$as_me:$LINENO: checking host system type" >&5
1435 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436 if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 ac_cv_host_alias=$host_alias
1440 test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449 echo "${ECHO_T}$ac_cv_host" >&6
1451 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458 echo "$as_me:$LINENO: checking which template to use" >&5
1459 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1465 # Check whether --with-template or --without-template was given.
1466 if test "${with_template+set}" = set; then
1467 withval="$with_template"
1471 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1472 echo "$as_me: error: argument required for --with-template option" >&2;}
1473 { (exit 1); exit 1; }; }
1476 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1477 echo "$as_me: error: argument required for --with-template option" >&2;}
1478 { (exit 1); exit 1; }; }
1483 list) echo; ls "$srcdir/src/template"; exit;;
1484 *) if test -f "$srcdir/src/template/$with_template" ; then
1487 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1488 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1489 { (exit 1); exit 1; }; }
1498 # --with-template not given
1501 aix*) template=aix ;;
1502 bsdi*) template=bsdi ;;
1503 cygwin*) template=cygwin ;;
1504 darwin*) template=darwin ;;
1505 dgux*) template=dgux ;;
1506 freebsd*) template=freebsd ;;
1507 hpux*) template=hpux ;;
1508 irix*) template=irix ;;
1509 linux*|gnu*|k*bsd*-gnu)
1511 mingw*) template=win32 ;;
1512 netbsd*) template=netbsd ;;
1513 nextstep*) template=nextstep ;;
1514 openbsd*) template=openbsd ;;
1515 osf*) template=osf ;;
1516 sco*) template=sco ;;
1517 solaris*) template=solaris ;;
1518 sunos*) template=sunos4 ;;
1520 case $host_vendor in
1521 univel) template=univel ;;
1523 sysv4*) template=svr4 ;;
1524 sysv5*) template=unixware ;;
1525 ultrix*) template=ultrix4 ;;
1528 if test x"$template" = x"" ; then
1529 { { echo "$as_me:$LINENO: error:
1530 *******************************************************************
1531 PostgreSQL has apparently not been ported to your platform yet.
1532 To try a manual configuration, look into the src/template directory
1533 for a similar platform and use the '--with-template=' option.
1535 Please also contact <pgsql-ports@postgresql.org> to see about
1536 rectifying this. Include the above 'checking host system type...'
1538 *******************************************************************
1540 echo "$as_me: error:
1541 *******************************************************************
1542 PostgreSQL has apparently not been ported to your platform yet.
1543 To try a manual configuration, look into the src/template directory
1544 for a similar platform and use the '--with-template=' option.
1546 Please also contact <pgsql-ports@postgresql.org> to see about
1547 rectifying this. Include the above 'checking host system type...'
1549 *******************************************************************
1551 { (exit 1); exit 1; }; }
1558 echo "$as_me:$LINENO: result: $template" >&5
1559 echo "${ECHO_T}$template" >&6
1564 # Initialize default assumption that we do not need separate assembly code
1565 # for TAS (test-and-set). This can be overridden by the template file
1566 # when it's executed.
1573 ## Command line options
1577 # Installation directory for documentation
1583 # Check whether --with-docdir or --without-docdir was given.
1584 if test "${with_docdir+set}" = set; then
1585 withval="$with_docdir"
1589 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1590 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1591 { (exit 1); exit 1; }; }
1602 docdir='${prefix}/doc'
1609 # Add non-standard directories to the include path
1615 # Check whether --with-includes or --without-includes was given.
1616 if test "${with_includes+set}" = set; then
1617 withval="$with_includes"
1621 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623 { (exit 1); exit 1; }; }
1626 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1627 echo "$as_me: error: argument required for --with-includes option" >&2;}
1628 { (exit 1); exit 1; }; }
1640 # Add non-standard directories to the library search path
1646 # Check whether --with-libraries or --without-libraries was given.
1647 if test "${with_libraries+set}" = set; then
1648 withval="$with_libraries"
1652 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654 { (exit 1); exit 1; }; }
1657 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1658 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1659 { (exit 1); exit 1; }; }
1662 LIBRARY_DIRS=$withval
1673 # Check whether --with-libs or --without-libs was given.
1674 if test "${with_libs+set}" = set; then
1675 withval="$with_libs"
1679 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1680 echo "$as_me: error: argument required for --with-libs option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1685 echo "$as_me: error: argument required for --with-libs option" >&2;}
1686 { (exit 1); exit 1; }; }
1689 LIBRARY_DIRS=$withval
1698 # 64-bit integer date/time storage (--enable-integer-datetimes)
1700 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1701 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1705 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1706 if test "${enable_integer_datetimes+set}" = set; then
1707 enableval="$enable_integer_datetimes"
1712 cat >>confdefs.h <<\_ACEOF
1713 #define USE_INTEGER_DATETIMES 1
1721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1722 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1723 { (exit 1); exit 1; }; }
1728 enable_integer_datetimes=no
1732 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1733 echo "${ECHO_T}$enable_integer_datetimes" >&6
1739 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1740 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1744 # Check whether --enable-nls or --disable-nls was given.
1745 if test "${enable_nls+set}" = set; then
1746 enableval="$enable_nls"
1757 WANTED_LANGUAGES=$enableval
1766 if test "$enable_nls" = yes; then
1768 cat >>confdefs.h <<\_ACEOF
1769 #define ENABLE_NLS 1
1774 echo "$as_me:$LINENO: result: $enable_nls" >&5
1775 echo "${ECHO_T}$enable_nls" >&6
1780 # Default port number (--with-pgport), default 5432
1782 echo "$as_me:$LINENO: checking for default port number" >&5
1783 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1788 # Check whether --with-pgport or --without-pgport was given.
1789 if test "${with_pgport+set}" = set; then
1790 withval="$with_pgport"
1794 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1795 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1796 { (exit 1); exit 1; }; }
1799 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1800 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1801 { (exit 1); exit 1; }; }
1804 default_port=$withval
1812 echo "$as_me:$LINENO: result: $default_port" >&5
1813 echo "${ECHO_T}$default_port" >&6
1814 # Need both of these because some places want an integer and some a string
1816 cat >>confdefs.h <<_ACEOF
1817 #define DEF_PGPORT ${default_port}
1821 cat >>confdefs.h <<_ACEOF
1822 #define DEF_PGPORT_STR "${default_port}"
1828 # Option to disable shared libraries
1833 # Check whether --enable-shared or --disable-shared was given.
1834 if test "${enable_shared+set}" = set; then
1835 enableval="$enable_shared"
1845 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1846 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1847 { (exit 1); exit 1; }; }
1859 # '-rpath'-like feature can be disabled
1864 # Check whether --enable-rpath or --disable-rpath was given.
1865 if test "${enable_rpath+set}" = set; then
1866 enableval="$enable_rpath"
1876 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1877 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1878 { (exit 1); exit 1; }; }
1895 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1896 if test "${enable_spinlocks+set}" = set; then
1897 enableval="$enable_spinlocks"
1907 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1908 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1909 { (exit 1); exit 1; }; }
1914 enable_spinlocks=yes
1920 # --enable-debug adds -g to compiler flags
1925 # Check whether --enable-debug or --disable-debug was given.
1926 if test "${enable_debug+set}" = set; then
1927 enableval="$enable_debug"
1937 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1938 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1939 { (exit 1); exit 1; }; }
1956 # Check whether --enable-dtrace or --disable-dtrace was given.
1957 if test "${enable_dtrace+set}" = set; then
1958 enableval="$enable_dtrace"
1963 cat >>confdefs.h <<\_ACEOF
1964 #define ENABLE_DTRACE 1
1967 for ac_prog in dtrace
1969 # Extract the first word of "$ac_prog", so it can be a program name with args.
1970 set dummy $ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_DTRACE+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$DTRACE"; then
1977 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_DTRACE="$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 DTRACE=$ac_cv_prog_DTRACE
1996 if test -n "$DTRACE"; then
1997 echo "$as_me:$LINENO: result: $DTRACE" >&5
1998 echo "${ECHO_T}$DTRACE" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2004 test -n "$DTRACE" && break
2007 if test -z "$DTRACE"; then
2008 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2009 echo "$as_me: error: dtrace not found" >&2;}
2010 { (exit 1); exit 1; }; }
2018 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2019 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2020 { (exit 1); exit 1; }; }
2035 # For historical reasons you can also use --with-CC to specify the C compiler
2036 # to use, although the standard way to do this is to set the CC environment
2042 # Check whether --with-CC or --without-CC was given.
2043 if test "${with_CC+set}" = set; then
2048 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2049 echo "$as_me: error: argument required for --with-CC option" >&2;}
2050 { (exit 1); exit 1; }; }
2053 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2054 echo "$as_me: error: argument required for --with-CC option" >&2;}
2055 { (exit 1); exit 1; }; }
2066 aix) pgac_cc_list="gcc xlc";;
2067 irix) pgac_cc_list="cc";; # no gcc
2068 *) pgac_cc_list="gcc cc";;
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 for ac_prog in $pgac_cc_list
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$CC" && break
2117 if test -z "$CC"; then
2119 for ac_prog in $pgac_cc_list
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2156 test -n "$ac_ct_CC" && break
2163 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&2;}
2167 { (exit 1); exit 1; }; }
2169 # Provide some information about the compiler.
2170 echo "$as_me:$LINENO:" \
2171 "checking for C compiler version" >&5
2172 ac_compiler=`set X $ac_compile; echo $2`
2173 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2174 (eval $ac_compiler --version </dev/null >&5) 2>&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }
2178 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2179 (eval $ac_compiler -v </dev/null >&5) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }
2183 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2184 (eval $ac_compiler -V </dev/null >&5) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2204 ac_clean_files_save=$ac_clean_files
2205 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2206 # Try to create an executable without -o first, disregard a.out.
2207 # It will help us diagnose broken compilers, and finding out an intuition
2209 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2210 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2211 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2213 (eval $ac_link_default) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # Find the output, starting from the most likely. This scheme is
2218 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2221 # Be careful to initialize this variable, since it used to be cached.
2222 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224 # b.out is created by i960 compilers.
2225 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227 test -f "$ac_file" || continue
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2232 # This is the source file.
2235 # We found the default executable, but exeext='' is most
2239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2240 # FIXME: I believe we export ac_cv_exeext for Libtool,
2241 # but it would be cool to find out if it's true. Does anybody
2242 # maintain Libtool? --akim.
2250 echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257 { (exit 77); exit 77; }; }
2260 ac_exeext=$ac_cv_exeext
2261 echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6
2264 # Check the compiler produces executables we can run. If not, either
2265 # the compiler is broken, or we cross compile.
2266 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271 if { ac_try='./$ac_file'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 if test "$cross_compiling" = maybe; then
2282 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2283 If you meant to cross compile, use \`--host'.
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot run C compiled programs.
2286 If you meant to cross compile, use \`--host'.
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2292 echo "$as_me:$LINENO: result: yes" >&5
2293 echo "${ECHO_T}yes" >&6
2295 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2296 ac_clean_files=$ac_clean_files_save
2297 # Check the compiler produces executables we can run. If not, either
2298 # the compiler is broken, or we cross compile.
2299 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2300 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2301 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2302 echo "${ECHO_T}$cross_compiling" >&6
2304 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2305 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2307 (eval $ac_link) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; then
2311 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2312 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2313 # work properly (i.e., refer to `conftest.exe'), while it won't with
2315 for ac_file in conftest.exe conftest conftest.*; do
2316 test -f "$ac_file" || continue
2318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2319 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2333 rm -f conftest$ac_cv_exeext
2334 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2335 echo "${ECHO_T}$ac_cv_exeext" >&6
2337 rm -f conftest.$ac_ext
2338 EXEEXT=$ac_cv_exeext
2340 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2342 if test "${ac_cv_objext+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 cat >conftest.$ac_ext <<_ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h. */
2360 rm -f conftest.o conftest.obj
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2378 See \`config.log' for more details." >&5
2379 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&2;}
2381 { (exit 1); exit 1; }; }
2384 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2387 echo "${ECHO_T}$ac_cv_objext" >&6
2388 OBJEXT=$ac_cv_objext
2390 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2391 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2392 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 cat >conftest.$ac_ext <<_ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>conftest.er1
2417 grep -v '^ *+' conftest.er1 >conftest.err
2419 cat conftest.err >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); } &&
2422 { ac_try='test -z "$ac_c_werror_flag"
2423 || test ! -s conftest.err'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; } &&
2429 { ac_try='test -s conftest.$ac_objext'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; }; then
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2446 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2447 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2448 GCC=`test $ac_compiler_gnu = yes && echo yes`
2449 ac_test_CFLAGS=${CFLAGS+set}
2450 ac_save_CFLAGS=$CFLAGS
2452 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2453 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2454 if test "${ac_cv_prog_cc_g+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 rm -f conftest.$ac_objext
2473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474 (eval $ac_compile) 2>conftest.er1
2476 grep -v '^ *+' conftest.er1 >conftest.err
2478 cat conftest.err >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); } &&
2481 { ac_try='test -z "$ac_c_werror_flag"
2482 || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2504 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2505 if test "$ac_test_CFLAGS" = set; then
2506 CFLAGS=$ac_save_CFLAGS
2507 elif test $ac_cv_prog_cc_g = yes; then
2508 if test "$GCC" = yes; then
2514 if test "$GCC" = yes; then
2520 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2521 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2522 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 ac_cv_prog_cc_stdc=no
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2535 #include <sys/types.h>
2536 #include <sys/stat.h>
2537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2538 struct buf { int x; };
2539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2540 static char *e (p, i)
2546 static char *f (char * (*g) (char **, int), char **p, ...)
2551 s = g (p, va_arg (v,int));
2556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2557 function prototypes and stuff, but not '\xHH' hex character constants.
2558 These don't provoke an error unfortunately, instead are silently treated
2559 as 'x'. The following induces an error, until -std1 is added to get
2560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2561 array size at least. It's necessary to write '\x00'==0 to get something
2562 that's true only with -std1. */
2563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565 int test (int i, double x);
2566 struct s1 {int (*f) (int a);};
2567 struct s2 {int (*f) (double a);};
2568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2579 # Don't try gcc -ansi; that turns off useful extensions and
2580 # breaks some systems' header files.
2581 # AIX -qlanglvl=ansi
2582 # Ultrix and OSF/1 -std1
2583 # HP-UX 10.20 and later -Ae
2584 # HP-UX older versions -Aa -D_HPUX_SOURCE
2585 # SVR4 -Xc -D__EXTENSIONS__
2586 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2588 CC="$ac_save_CC $ac_arg"
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 ac_cv_prog_cc_stdc=$ac_arg
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext
2620 rm -f conftest.$ac_ext conftest.$ac_objext
2625 case "x$ac_cv_prog_cc_stdc" in
2627 echo "$as_me:$LINENO: result: none needed" >&5
2628 echo "${ECHO_T}none needed" >&6 ;;
2630 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2631 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2632 CC="$CC $ac_cv_prog_cc_stdc" ;;
2635 # Some people use a C++ compiler to compile C. Since we use `exit',
2636 # in C++ we need to declare it. In case someone uses the same compiler
2637 # for both compiling C and C++ we need to have the C++ compiler decide
2638 # the declaration of exit, since it's the most demanding environment.
2639 cat >conftest.$ac_ext <<_ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_c_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 for ac_declaration in \
2668 'extern "C" void std::exit (int) throw (); using std::exit;' \
2669 'extern "C" void std::exit (int); using std::exit;' \
2670 'extern "C" void exit (int) throw ();' \
2671 'extern "C" void exit (int);' \
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>conftest.er1
2694 grep -v '^ *+' conftest.er1 >conftest.err
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } &&
2699 { ac_try='test -z "$ac_c_werror_flag"
2700 || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737 (eval $ac_compile) 2>conftest.er1
2739 grep -v '^ *+' conftest.er1 >conftest.err
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 { ac_try='test -z "$ac_c_werror_flag"
2745 || test ! -s conftest.err'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766 if test -n "$ac_declaration"; then
2767 echo '#ifdef __cplusplus' >>confdefs.h
2768 echo $ac_declaration >>confdefs.h
2769 echo '#endif' >>confdefs.h
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 . "$srcdir/src/template/$template" || exit
2792 # CFLAGS are selected so:
2793 # If the user specifies something in the environment, that is used.
2794 # else: If the template file set something, that is used.
2795 # else: If the compiler is GCC, then we use -O2.
2796 # else: If the compiler is something else, then we use -0.
2798 if test "$ac_env_CFLAGS_set" = set; then
2799 CFLAGS=$ac_env_CFLAGS_value
2800 elif test "${CFLAGS+set}" = set; then
2801 : # (keep what template set)
2802 elif test "$GCC" = yes; then
2805 # if the user selected debug mode, don't use -O
2806 if test "$enable_debug" != yes; then
2811 # Some versions of GCC support some additional useful warning flags.
2812 # Check whether they are supported, and add them to CFLAGS if so.
2814 if test "$GCC" = yes; then
2816 # ICC pretends to be GCC but it's lying; it doesn't support these options.
2817 # So we have to check if "GCC" is really ICC.
2819 cat >conftest.$ac_ext <<_ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2829 #ifndef __INTEL_COMPILER
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_c_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867 if test "$ICC" = no; then
2868 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2870 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2871 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2872 pgac_save_CFLAGS=$CFLAGS
2873 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } &&
2898 { ac_try='test -z "$ac_c_werror_flag"
2899 || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try='test -s conftest.$ac_objext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2911 echo "$as_me:$LINENO: result: yes" >&5
2912 echo "${ECHO_T}yes" >&6
2914 echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2917 CFLAGS="$pgac_save_CFLAGS"
2918 echo "$as_me:$LINENO: result: no" >&5
2919 echo "${ECHO_T}no" >&6
2921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2924 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2925 pgac_save_CFLAGS=$CFLAGS
2926 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2944 (eval $ac_compile) 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_c_werror_flag"
2952 || test ! -s conftest.err'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 CFLAGS="$pgac_save_CFLAGS"
2971 echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2977 # Intel compiler has a bug/misoptimization in checking for
2978 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the
2980 echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
2981 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6
2982 pgac_save_CFLAGS=$CFLAGS
2983 CFLAGS="$pgac_save_CFLAGS -mp1"
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag"
3009 || test ! -s conftest.err'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 echo "$as_me:$LINENO: result: yes" >&5
3022 echo "${ECHO_T}yes" >&6
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 CFLAGS="$pgac_save_CFLAGS"
3028 echo "$as_me:$LINENO: result: no" >&5
3029 echo "${ECHO_T}no" >&6
3031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3035 # Disable strict-aliasing rules; needed for gcc 3.3+
3036 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3037 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3038 pgac_save_CFLAGS=$CFLAGS
3039 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3057 (eval $ac_compile) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } &&
3064 { ac_try='test -z "$ac_c_werror_flag"
3065 || test ! -s conftest.err'
3066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; } &&
3071 { ac_try='test -s conftest.$ac_objext'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; }; then
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3083 CFLAGS="$pgac_save_CFLAGS"
3084 echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3089 elif test x"${CC}" = x"xlc"; then
3090 # AIX xlc has to have strict aliasing turned off too
3091 echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
3092 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6
3093 pgac_save_CFLAGS=$CFLAGS
3094 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.$ac_objext
3111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3112 (eval $ac_compile) 2>conftest.er1
3114 grep -v '^ *+' conftest.er1 >conftest.err
3116 cat conftest.err >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); } &&
3119 { ac_try='test -z "$ac_c_werror_flag"
3120 || test ! -s conftest.err'
3121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; } &&
3126 { ac_try='test -s conftest.$ac_objext'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; }; then
3132 echo "$as_me:$LINENO: result: yes" >&5
3133 echo "${ECHO_T}yes" >&6
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 CFLAGS="$pgac_save_CFLAGS"
3139 echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 # supply -g if --enable-debug
3147 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
3151 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
3152 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
3154 # We already have this in Makefile.win32, but configure needs it too
3155 if test "$PORTNAME" = "win32"; then
3156 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
3159 # Check if the compiler still works with the template settings
3160 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
3161 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext conftest$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag"
3187 || test ! -s conftest.err'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest$ac_exeext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3208 echo "$as_me: error: cannot proceed" >&2;}
3209 { (exit 1); exit 1; }; }
3211 rm -f conftest.err conftest.$ac_objext \
3212 conftest$ac_exeext conftest.$ac_ext
3214 # Defend against gcc -ffast-math
3215 if test "$GCC" = yes; then
3216 cat >conftest.$ac_ext <<_ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3226 #ifdef __FAST_MATH__
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3260 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3261 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3262 { (exit 1); exit 1; }; }
3264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3272 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3273 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3274 # On Suns, sometimes $CPP names a directory.
3275 if test -n "$CPP" && test -d "$CPP"; then
3278 if test -z "$CPP"; then
3279 if test "${ac_cv_prog_CPP+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 # Double quotes because CPP needs to be expanded
3283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286 for ac_c_preproc_warn_flag in '' yes
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3301 # include <limits.h>
3303 # include <assert.h>
3307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3310 grep -v '^ *+' conftest.er1 >conftest.err
3312 cat conftest.err >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } >/dev/null; then
3315 if test -s conftest.err; then
3316 ac_cpp_err=$ac_c_preproc_warn_flag
3317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3324 if test -z "$ac_cpp_err"; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 # Broken: fails on valid input.
3333 rm -f conftest.err conftest.$ac_ext
3335 # OK, works on sane cases. Now check whether non-existent headers
3336 # can be detected and how.
3337 cat >conftest.$ac_ext <<_ACEOF
3340 cat confdefs.h >>conftest.$ac_ext
3341 cat >>conftest.$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3343 #include <ac_nonexistent.h>
3345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null; then
3353 if test -s conftest.err; then
3354 ac_cpp_err=$ac_c_preproc_warn_flag
3355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 if test -z "$ac_cpp_err"; then
3363 # Broken: success on invalid input.
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 # Passes both tests.
3373 rm -f conftest.err conftest.$ac_ext
3376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3377 rm -f conftest.err conftest.$ac_ext
3378 if $ac_preproc_ok; then
3390 echo "$as_me:$LINENO: result: $CPP" >&5
3391 echo "${ECHO_T}$CPP" >&6
3393 for ac_c_preproc_warn_flag in '' yes
3395 # Use a header file that comes with gcc, so configuring glibc
3396 # with a fresh cross-compiler works.
3397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 # <limits.h> exists even on freestanding compilers.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp. "Syntax error" is here to catch this case.
3401 cat >conftest.$ac_ext <<_ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3408 # include <limits.h>
3410 # include <assert.h>
3414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3417 grep -v '^ *+' conftest.er1 >conftest.err
3419 cat conftest.err >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); } >/dev/null; then
3422 if test -s conftest.err; then
3423 ac_cpp_err=$ac_c_preproc_warn_flag
3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 if test -z "$ac_cpp_err"; then
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 # Broken: fails on valid input.
3440 rm -f conftest.err conftest.$ac_ext
3442 # OK, works on sane cases. Now check whether non-existent headers
3443 # can be detected and how.
3444 cat >conftest.$ac_ext <<_ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3450 #include <ac_nonexistent.h>
3452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1 >conftest.err
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } >/dev/null; then
3460 if test -s conftest.err; then
3461 ac_cpp_err=$ac_c_preproc_warn_flag
3462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3469 if test -z "$ac_cpp_err"; then
3470 # Broken: success on invalid input.
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3476 # Passes both tests.
3480 rm -f conftest.err conftest.$ac_ext
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503 # Create compiler version string
3504 if test x"$GCC" = x"yes" ; then
3505 cc_string="GCC `${CC} --version | sed q`"
3510 cat >>confdefs.h <<_ACEOF
3511 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3517 # Set up TAS assembly code if needed; the template file has now had its
3518 # chance to request this.
3520 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3523 if test "$need_tas" = yes ; then
3532 # Automatic dependency tracking
3537 # Check whether --enable-depend or --disable-depend was given.
3538 if test "${enable_depend+set}" = set; then
3539 enableval="$enable_depend"
3549 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3550 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3551 { (exit 1); exit 1; }; }
3564 # Enable assert checks
3569 # Check whether --enable-cassert or --disable-cassert was given.
3570 if test "${enable_cassert+set}" = set; then
3571 enableval="$enable_cassert"
3576 cat >>confdefs.h <<\_ACEOF
3577 #define USE_ASSERT_CHECKING 1
3585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3586 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3587 { (exit 1); exit 1; }; }
3599 # Include directories
3602 IFS="${IFS}${PATH_SEPARATOR}"
3603 # SRCH_INC comes from the template file
3604 for dir in $with_includes $SRCH_INC; do
3605 if test -d "$dir"; then
3606 INCLUDES="$INCLUDES -I$dir"
3608 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3609 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3617 # Library directories
3620 IFS="${IFS}${PATH_SEPARATOR}"
3621 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3622 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3623 if test -d "$dir"; then
3624 LIBDIRS="$LIBDIRS -L$dir"
3626 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3627 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3633 # Enable thread-safe client libraries
3635 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3636 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3640 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3641 if test "${enable_thread_safety+set}" = set; then
3642 enableval="$enable_thread_safety"
3652 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3653 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3654 { (exit 1); exit 1; }; }
3659 enable_thread_safety=no
3666 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3667 if test "${enable_thread_safety_force+set}" = set; then
3668 enableval="$enable_thread_safety_force"
3678 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3679 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3680 { (exit 1); exit 1; }; }
3685 enable_thread_safety_force=no
3689 if test "$enable_thread_safety" = yes -o \
3690 "$enable_thread_safety_force" = yes; then
3691 enable_thread_safety="yes" # for 'force'
3693 cat >>confdefs.h <<\_ACEOF
3694 #define ENABLE_THREAD_SAFETY 1
3698 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3699 echo "${ECHO_T}$enable_thread_safety" >&6
3703 # Optionally build Tcl modules (PL/Tcl)
3705 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3706 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3711 # Check whether --with-tcl or --without-tcl was given.
3712 if test "${with_tcl+set}" = set; then
3723 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3724 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3725 { (exit 1); exit 1; }; }
3734 echo "$as_me:$LINENO: result: $with_tcl" >&5
3735 echo "${ECHO_T}$with_tcl" >&6
3738 # We see if the path to the Tcl/Tk configuration scripts is specified.
3739 # This will override the use of tclsh to find the paths to search.
3745 # Check whether --with-tclconfig or --without-tclconfig was given.
3746 if test "${with_tclconfig+set}" = set; then
3747 withval="$with_tclconfig"
3751 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3752 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3753 { (exit 1); exit 1; }; }
3756 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3757 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3758 { (exit 1); exit 1; }; }
3769 # Optionally build Perl modules (PL/Perl)
3771 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3772 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3777 # Check whether --with-perl or --without-perl was given.
3778 if test "${with_perl+set}" = set; then
3779 withval="$with_perl"
3789 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3790 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3791 { (exit 1); exit 1; }; }
3800 echo "$as_me:$LINENO: result: $with_perl" >&5
3801 echo "${ECHO_T}$with_perl" >&6
3805 # Optionally build Python modules (PL/Python)
3807 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3808 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3813 # Check whether --with-python or --without-python was given.
3814 if test "${with_python+set}" = set; then
3815 withval="$with_python"
3825 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3826 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3827 { (exit 1); exit 1; }; }
3836 echo "$as_me:$LINENO: result: $with_python" >&5
3837 echo "${ECHO_T}$with_python" >&6
3843 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3844 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3849 # Check whether --with-krb5 or --without-krb5 was given.
3850 if test "${with_krb5+set}" = set; then
3851 withval="$with_krb5"
3857 cat >>confdefs.h <<\_ACEOF
3861 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3868 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3869 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3870 { (exit 1); exit 1; }; }
3879 echo "$as_me:$LINENO: result: $with_krb5" >&5
3880 echo "${ECHO_T}$with_krb5" >&6
3888 # Kerberos configuration parameters
3894 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3895 if test "${with_krb_srvnam+set}" = set; then
3896 withval="$with_krb_srvnam"
3900 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3901 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3902 { (exit 1); exit 1; }; }
3905 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3906 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3907 { (exit 1); exit 1; }; }
3915 with_krb_srvnam="postgres"
3919 cat >>confdefs.h <<_ACEOF
3920 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3928 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3929 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3934 # Check whether --with-pam or --without-pam was given.
3935 if test "${with_pam+set}" = set; then
3941 cat >>confdefs.h <<\_ACEOF
3950 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3951 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3952 { (exit 1); exit 1; }; }
3961 echo "$as_me:$LINENO: result: $with_pam" >&5
3962 echo "${ECHO_T}$with_pam" >&6
3969 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3970 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3975 # Check whether --with-ldap or --without-ldap was given.
3976 if test "${with_ldap+set}" = set; then
3977 withval="$with_ldap"
3982 cat >>confdefs.h <<\_ACEOF
3991 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3992 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3993 { (exit 1); exit 1; }; }
4002 echo "$as_me:$LINENO: result: $with_ldap" >&5
4003 echo "${ECHO_T}$with_ldap" >&6
4010 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
4011 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
4016 # Check whether --with-bonjour or --without-bonjour was given.
4017 if test "${with_bonjour+set}" = set; then
4018 withval="$with_bonjour"
4023 cat >>confdefs.h <<\_ACEOF
4024 #define USE_BONJOUR 1
4032 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
4033 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
4034 { (exit 1); exit 1; }; }
4043 echo "$as_me:$LINENO: result: $with_bonjour" >&5
4044 echo "${ECHO_T}$with_bonjour" >&6
4051 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
4052 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
4057 # Check whether --with-openssl or --without-openssl was given.
4058 if test "${with_openssl+set}" = set; then
4059 withval="$with_openssl"
4064 cat >>confdefs.h <<\_ACEOF
4073 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
4074 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
4075 { (exit 1); exit 1; }; }
4084 echo "$as_me:$LINENO: result: $with_openssl" >&5
4085 echo "${ECHO_T}$with_openssl" >&6
4096 # Check whether --with-readline or --without-readline was given.
4097 if test "${with_readline+set}" = set; then
4098 withval="$with_readline"
4108 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
4109 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
4110 { (exit 1); exit 1; }; }
4119 # readline on MinGW has problems with backslashes in psql and other bugs.
4120 # This is particularly a problem with non-US code pages.
4121 # Therefore disable its use until we understand the cause. 2004-07-20
4122 if test "$PORTNAME" = "win32"; then
4123 if test "$with_readline" = yes; then
4124 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
4125 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
4138 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
4139 if test "${with_libedit_preferred+set}" = set; then
4140 withval="$with_libedit_preferred"
4150 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
4151 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
4152 { (exit 1); exit 1; }; }
4157 with_libedit_preferred=no
4170 # Check whether --with-zlib or --without-zlib was given.
4171 if test "${with_zlib+set}" = set; then
4172 withval="$with_zlib"
4182 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
4183 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
4184 { (exit 1); exit 1; }; }
4199 # Assume system is ELF if it predefines __ELF__ as 1,
4200 # otherwise believe host_os based default.
4202 freebsd1*|freebsd2*) elf=no;;
4203 freebsd3*|freebsd4*) elf=yes;;
4207 echo "$as_me:$LINENO: checking for egrep" >&5
4208 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4209 if test "${ac_cv_prog_egrep+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4213 then ac_cv_prog_egrep='grep -E'
4214 else ac_cv_prog_egrep='egrep'
4217 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4218 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4219 EGREP=$ac_cv_prog_egrep
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234 $EGREP "yes" >/dev/null 2>&1; then
4237 if test "X$elf" = "Xyes" ; then
4251 CPPFLAGS="$CPPFLAGS $INCLUDES"
4252 LDFLAGS="$LDFLAGS $LIBDIRS"
4254 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4255 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4256 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4257 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4261 for ac_prog in gawk mawk nawk awk
4263 # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_AWK+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 if test -n "$AWK"; then
4271 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_AWK="$ac_prog"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$AWK"; then
4291 echo "$as_me:$LINENO: result: $AWK" >&5
4292 echo "${ECHO_T}$AWK" >&6
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4298 test -n "$AWK" && break
4301 echo "$as_me:$LINENO: checking for flex" >&5
4302 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4303 if test "${pgac_cv_path_flex+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 # Let the user override the test
4307 if test -n "$FLEX"; then
4308 pgac_cv_path_flex=$FLEX
4312 for pgac_dir in $PATH; do
4314 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4317 for pgac_prog in flex lex; do
4318 pgac_candidate="$pgac_dir/$pgac_prog"
4319 if test -f "$pgac_candidate" \
4320 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4322 echo '%%' > conftest.l
4323 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4324 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4325 pgac_broken_flex=$pgac_candidate
4329 pgac_cv_path_flex=$pgac_candidate
4335 rm -f conftest.l lex.yy.c
4336 : ${pgac_cv_path_flex=no}
4340 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4341 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4342 if test x"$pgac_cv_path_flex" = x"no"; then
4343 if test -n "$pgac_broken_flex"; then
4344 { echo "$as_me:$LINENO: WARNING:
4345 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4346 *** should get version 2.5.4 or later." >&5
4347 echo "$as_me: WARNING:
4348 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4349 *** should get version 2.5.4 or later." >&2;}
4352 { echo "$as_me:$LINENO: WARNING:
4353 *** Without Flex you will not be able to build PostgreSQL from CVS or
4354 *** change any of the scanner definition files. You can obtain Flex from
4355 *** a GNU mirror site. (If you are using the official distribution of
4356 *** PostgreSQL then you do not need to worry about this because the Flex
4357 *** output is pre-generated.)" >&5
4358 echo "$as_me: WARNING:
4359 *** Without Flex you will not be able to build PostgreSQL from CVS or
4360 *** change any of the scanner definition files. You can obtain Flex from
4361 *** a GNU mirror site. (If you are using the official distribution of
4362 *** PostgreSQL then you do not need to worry about this because the Flex
4363 *** output is pre-generated.)" >&2;}
4366 if test x"$pgac_cv_path_flex" = x"no"; then
4369 FLEX=$pgac_cv_path_flex
4375 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4376 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4378 if test "$LN_S" = "ln -s"; then
4379 echo "$as_me:$LINENO: result: yes" >&5
4380 echo "${ECHO_T}yes" >&6
4382 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4383 echo "${ECHO_T}no, using $LN_S" >&6
4387 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4388 if test "${with_gnu_ld+set}" = set; then
4389 withval="$with_gnu_ld"
4390 test "$withval" = no || with_gnu_ld=yes
4395 if test "$GCC" = yes; then
4396 # Check if gcc -print-prog-name=ld gives a path.
4397 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4398 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4401 # gcc leaves a trailing carriage return which upsets mingw
4402 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4404 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4407 # Accept absolute paths.
4408 [\\/]* | [A-Za-z]:[\\/]*)
4409 re_direlt='/[^/][^/]*/\.\./'
4410 # Canonicalize the path of ld
4411 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4412 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4413 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4415 test -z "$LD" && LD="$ac_prog"
4418 # If it fails, then pretend we aren't using GCC.
4422 # If it is relative, then search for the first ld in PATH.
4426 elif test "$with_gnu_ld" = yes; then
4427 echo "$as_me:$LINENO: checking for GNU ld" >&5
4428 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4430 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4431 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4433 if test "${ac_cv_path_LD+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 if test -z "$LD"; then
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4438 for ac_dir in $PATH; do
4439 test -z "$ac_dir" && ac_dir=.
4440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4441 ac_cv_path_LD="$ac_dir/$ac_prog"
4442 # Check to see if the program is GNU ld. I'd rather use --version,
4443 # but apparently some GNU ld's only accept -v.
4444 # Break only if it was the GNU/non-GNU ld that we prefer.
4445 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4446 test "$with_gnu_ld" != no && break
4448 test "$with_gnu_ld" != yes && break
4454 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4459 if test -n "$LD"; then
4460 echo "$as_me:$LINENO: result: $LD" >&5
4461 echo "${ECHO_T}$LD" >&6
4463 echo "$as_me:$LINENO: result: no" >&5
4464 echo "${ECHO_T}no" >&6
4466 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4467 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4468 { (exit 1); exit 1; }; }
4469 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4470 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4471 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4475 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4476 ac_cv_prog_gnu_ld=yes
4478 ac_cv_prog_gnu_ld=no
4481 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4482 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4483 with_gnu_ld=$ac_cv_prog_gnu_ld
4488 case $host_os in sysv5*)
4489 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4490 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4491 if test "${pgac_cv_prog_ld_R+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4511 rm -f conftest.$ac_objext conftest$ac_exeext
4512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4513 (eval $ac_link) 2>conftest.er1
4515 grep -v '^ *+' conftest.er1 >conftest.err
4517 cat conftest.err >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); } &&
4520 { ac_try='test -z "$ac_c_werror_flag"
4521 || test ! -s conftest.err'
4522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; } &&
4527 { ac_try='test -s conftest$ac_exeext'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; }; then
4533 pgac_cv_prog_ld_R=yes
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.$ac_ext >&5
4538 pgac_cv_prog_ld_R=no
4540 rm -f conftest.err conftest.$ac_objext \
4541 conftest$ac_exeext conftest.$ac_ext
4542 LDFLAGS=$pgac_save_LDFLAGS
4545 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4546 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4547 ld_R_works=$pgac_cv_prog_ld_R
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_RANLIB+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$RANLIB"; then
4559 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 RANLIB=$ac_cv_prog_RANLIB
4578 if test -n "$RANLIB"; then
4579 echo "$as_me:$LINENO: result: $RANLIB" >&5
4580 echo "${ECHO_T}$RANLIB" >&6
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4587 if test -z "$ac_cv_prog_RANLIB"; then
4588 ac_ct_RANLIB=$RANLIB
4589 # Extract the first word of "ranlib", so it can be a program name with args.
4590 set dummy ranlib; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$ac_ct_RANLIB"; then
4597 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_ac_ct_RANLIB="ranlib"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4616 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4617 if test -n "$ac_ct_RANLIB"; then
4618 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4619 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4621 echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4625 RANLIB=$ac_ct_RANLIB
4627 RANLIB="$ac_cv_prog_RANLIB"
4630 # Extract the first word of "tar", so it can be a program name with args.
4631 set dummy tar; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_TAR+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 if test -n "$TAR"; then
4662 echo "$as_me:$LINENO: result: $TAR" >&5
4663 echo "${ECHO_T}$TAR" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}strip; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_prog_STRIP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$STRIP"; then
4679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 STRIP=$ac_cv_prog_STRIP
4698 if test -n "$STRIP"; then
4699 echo "$as_me:$LINENO: result: $STRIP" >&5
4700 echo "${ECHO_T}$STRIP" >&6
4702 echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6
4707 if test -z "$ac_cv_prog_STRIP"; then
4709 # Extract the first word of "strip", so it can be a program name with args.
4710 set dummy strip; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 if test -n "$ac_ct_STRIP"; then
4717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_ac_ct_STRIP="strip"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4736 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4737 if test -n "$ac_ct_STRIP"; then
4738 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4739 echo "${ECHO_T}$ac_ct_STRIP" >&6
4741 echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6
4747 STRIP="$ac_cv_prog_STRIP"
4751 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4752 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4753 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4754 STRIP_STATIC_LIB="$STRIP -x"
4755 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4756 echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4761 echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6
4768 for ac_prog in 'bison -y'
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 echo "$as_me:$LINENO: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774 if test "${ac_cv_prog_YACC+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -n "$YACC"; then
4778 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_YACC="$ac_prog"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 YACC=$ac_cv_prog_YACC
4797 if test -n "$YACC"; then
4798 echo "$as_me:$LINENO: result: $YACC" >&5
4799 echo "${ECHO_T}$YACC" >&6
4801 echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6
4805 test -n "$YACC" && break
4809 if test "$YACC"; then
4810 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4811 { echo "$as_me:$LINENO: WARNING:
4812 *** If you are going to modify the grammar files or build from CVS, the installed
4813 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4814 echo "$as_me: WARNING:
4815 *** If you are going to modify the grammar files or build from CVS, the installed
4816 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4820 if test -z "$YACC"; then
4821 { echo "$as_me:$LINENO: WARNING:
4822 *** Without Bison you will not be able to build PostgreSQL from CVS or
4823 *** change any of the parser definition files. You can obtain Bison from
4824 *** a GNU mirror site. (If you are using the official distribution of
4825 *** PostgreSQL then you do not need to worry about this because the Bison
4826 *** output is pre-generated.) To use a different yacc program (possible,
4827 *** but not recommended), set the environment variable YACC before running
4828 *** 'configure'." >&5
4829 echo "$as_me: WARNING:
4830 *** Without Bison you will not be able to build PostgreSQL from CVS or
4831 *** change any of the parser definition files. You can obtain Bison from
4832 *** a GNU mirror site. (If you are using the official distribution of
4833 *** PostgreSQL then you do not need to worry about this because the Bison
4834 *** output is pre-generated.) To use a different yacc program (possible,
4835 *** but not recommended), set the environment variable YACC before running
4836 *** 'configure'." >&2;}
4840 # Extract the first word of "perl", so it can be a program name with args.
4841 set dummy perl; ac_word=$2
4842 echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4844 if test "${ac_cv_path_PERL+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 PERL=$ac_cv_path_PERL
4871 if test -n "$PERL"; then
4872 echo "$as_me:$LINENO: result: $PERL" >&5
4873 echo "${ECHO_T}$PERL" >&6
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4879 if test "$with_perl" = yes; then
4881 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4882 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4883 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4884 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4885 echo "${ECHO_T}$perl_archlibexp" >&6
4886 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4887 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4888 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4889 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4890 echo "${ECHO_T}$perl_privlibexp" >&6
4891 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4892 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4893 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4894 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4895 echo "${ECHO_T}$perl_useshrplib" >&6
4897 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4898 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4899 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4900 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4901 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4902 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4903 echo "${ECHO_T}$perl_embed_ldflags" >&6
4906 if test "$with_python" = yes; then
4907 # Extract the first word of "python", so it can be a program name with args.
4908 set dummy python; ac_word=$2
4909 echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4911 if test "${ac_cv_path_PYTHON+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 PYTHON=$ac_cv_path_PYTHON
4938 if test -n "$PYTHON"; then
4939 echo "$as_me:$LINENO: result: $PYTHON" >&5
4940 echo "${ECHO_T}$PYTHON" >&6
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4946 if test x"$PYTHON" = x""; then
4947 { { echo "$as_me:$LINENO: error: Python not found" >&5
4948 echo "$as_me: error: Python not found" >&2;}
4949 { (exit 1); exit 1; }; }
4953 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4954 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4955 if "${PYTHON}" 2>&- -c 'import distutils'
4957 echo "$as_me:$LINENO: result: yes" >&5
4958 echo "${ECHO_T}yes" >&6
4960 echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6
4962 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4963 echo "$as_me: error: distutils module not found" >&2;}
4964 { (exit 1); exit 1; }; }
4966 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4967 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4968 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4969 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4970 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4972 # This should be enough of a message.
4973 echo "$as_me:$LINENO: result: $python_configdir" >&5
4974 echo "${ECHO_T}$python_configdir" >&6
4977 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4978 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4980 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4981 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4982 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4983 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4985 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4987 # New way: use the official shared library
4988 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4989 python_libspec="-L${python_libdir} -l${ldlibrary}"
4991 # Old way: use libpython from python_configdir
4992 python_libdir="${python_configdir}"
4993 python_libspec="-L${python_libdir} -lpython${python_version}"
4996 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4998 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4999 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
5002 # threaded python is not supported on bsd's
5003 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
5004 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
5005 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
5006 if test "$pythreads" = "1"; then
5007 echo "$as_me:$LINENO: result: yes" >&5
5008 echo "${ECHO_T}yes" >&6
5011 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
5012 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
5013 { (exit 1); exit 1; }; }
5017 echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5024 # Supply a numeric version string for use by 3rd party add-ons
5025 # awk -F is a regex on some platforms, and not on others, so make "." a tab
5026 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
5028 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
5030 cat >>confdefs.h <<_ACEOF
5031 #define PG_VERSION_NUM $PG_VERSION_NUM
5039 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
5040 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
5041 if test "${ac_cv_search_setproctitle+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 ac_func_search_save_LIBS=$LIBS
5045 ac_cv_search_setproctitle=no
5046 cat >conftest.$ac_ext <<_ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5053 /* Override any gcc2 internal prototype to avoid an error. */
5057 /* We use char because int might match the return type of a gcc2
5058 builtin and then its argument prototype would still apply. */
5059 char setproctitle ();
5068 rm -f conftest.$ac_objext conftest$ac_exeext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5070 (eval $ac_link) 2>conftest.er1
5072 grep -v '^ *+' conftest.er1 >conftest.err
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -z "$ac_c_werror_flag"
5078 || test ! -s conftest.err'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; } &&
5084 { ac_try='test -s conftest$ac_exeext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 ac_cv_search_setproctitle="none required"
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5096 rm -f conftest.err conftest.$ac_objext \
5097 conftest$ac_exeext conftest.$ac_ext
5098 if test "$ac_cv_search_setproctitle" = no; then
5099 for ac_lib in util; do
5100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5108 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5114 char setproctitle ();
5123 rm -f conftest.$ac_objext conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } &&
5132 { ac_try='test -z "$ac_c_werror_flag"
5133 || test ! -s conftest.err'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; } &&
5139 { ac_try='test -s conftest$ac_exeext'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 ac_cv_search_setproctitle="-l$ac_lib"
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5152 rm -f conftest.err conftest.$ac_objext \
5153 conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_func_search_save_LIBS
5158 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
5159 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
5160 if test "$ac_cv_search_setproctitle" != no; then
5161 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
5165 echo "$as_me:$LINENO: checking for library containing pow" >&5
5166 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
5167 if test "${ac_cv_search_pow+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_func_search_save_LIBS=$LIBS
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5179 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest$ac_exeext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_search_pow="none required"
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5222 rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 if test "$ac_cv_search_pow" = no; then
5226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5234 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest$ac_exeext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5271 ac_cv_search_pow="-l$ac_lib"
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5278 rm -f conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
5282 LIBS=$ac_func_search_save_LIBS
5284 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5285 echo "${ECHO_T}$ac_cv_search_pow" >&6
5286 if test "$ac_cv_search_pow" != no; then
5287 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5291 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5292 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5293 if test "${ac_cv_search_dlopen+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_func_search_save_LIBS=$LIBS
5297 ac_cv_search_dlopen=no
5298 cat >conftest.$ac_ext <<_ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5320 rm -f conftest.$ac_objext conftest$ac_exeext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 (eval $ac_link) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1 >conftest.err
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try='test -s conftest$ac_exeext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_cv_search_dlopen="none required"
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5348 rm -f conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
5350 if test "$ac_cv_search_dlopen" = no; then
5351 for ac_lib in dl; do
5352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5360 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5375 rm -f conftest.$ac_objext conftest$ac_exeext
5376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5377 (eval $ac_link) 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_c_werror_flag"
5385 || test ! -s conftest.err'
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest$ac_exeext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 ac_cv_search_dlopen="-l$ac_lib"
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5404 rm -f conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_func_search_save_LIBS
5410 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5411 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5412 if test "$ac_cv_search_dlopen" != no; then
5413 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5417 echo "$as_me:$LINENO: checking for library containing socket" >&5
5418 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5419 if test "${ac_cv_search_socket+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 ac_func_search_save_LIBS=$LIBS
5423 ac_cv_search_socket=no
5424 cat >conftest.$ac_ext <<_ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5431 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5446 rm -f conftest.$ac_objext conftest$ac_exeext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } &&
5455 { ac_try='test -z "$ac_c_werror_flag"
5456 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_search_socket="none required"
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5474 rm -f conftest.err conftest.$ac_objext \
5475 conftest$ac_exeext conftest.$ac_ext
5476 if test "$ac_cv_search_socket" = no; then
5477 for ac_lib in socket wsock32; do
5478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5486 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5501 rm -f conftest.$ac_objext conftest$ac_exeext
5502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503 (eval $ac_link) 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 ac_cv_search_socket="-l$ac_lib"
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5530 rm -f conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_func_search_save_LIBS
5536 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5537 echo "${ECHO_T}$ac_cv_search_socket" >&6
5538 if test "$ac_cv_search_socket" != no; then
5539 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5543 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5544 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5545 if test "${ac_cv_search_shl_load+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_func_search_save_LIBS=$LIBS
5549 ac_cv_search_shl_load=no
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5557 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } &&
5581 { ac_try='test -z "$ac_c_werror_flag"
5582 || test ! -s conftest.err'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; } &&
5588 { ac_try='test -s conftest$ac_exeext'
5589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; }; then
5594 ac_cv_search_shl_load="none required"
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5600 rm -f conftest.err conftest.$ac_objext \
5601 conftest$ac_exeext conftest.$ac_ext
5602 if test "$ac_cv_search_shl_load" = no; then
5603 for ac_lib in dld; do
5604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5605 cat >conftest.$ac_ext <<_ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5612 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5627 rm -f conftest.$ac_objext conftest$ac_exeext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5629 (eval $ac_link) 2>conftest.er1
5631 grep -v '^ *+' conftest.er1 >conftest.err
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_c_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest$ac_exeext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_search_shl_load="-l$ac_lib"
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_func_search_save_LIBS
5662 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5663 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5664 if test "$ac_cv_search_shl_load" != no; then
5665 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5669 # We only use libld in port/dynloader/aix.c
5672 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5673 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5674 if test "${ac_cv_search_ldopen+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 ac_func_search_save_LIBS=$LIBS
5678 ac_cv_search_ldopen=no
5679 cat >conftest.$ac_ext <<_ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5686 /* Override any gcc2 internal prototype to avoid an error. */
5690 /* We use char because int might match the return type of a gcc2
5691 builtin and then its argument prototype would still apply. */
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_search_ldopen="none required"
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f conftest.err conftest.$ac_objext \
5730 conftest$ac_exeext conftest.$ac_ext
5731 if test "$ac_cv_search_ldopen" = no; then
5732 for ac_lib in ld; do
5733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5741 /* Override any gcc2 internal prototype to avoid an error. */
5745 /* We use char because int might match the return type of a gcc2
5746 builtin and then its argument prototype would still apply. */
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5758 (eval $ac_link) 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -z "$ac_c_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest$ac_exeext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 ac_cv_search_ldopen="-l$ac_lib"
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5785 rm -f conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5789 LIBS=$ac_func_search_save_LIBS
5791 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5792 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5793 if test "$ac_cv_search_ldopen" != no; then
5794 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5800 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5801 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5802 if test "${ac_cv_search_getopt_long+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 ac_func_search_save_LIBS=$LIBS
5806 ac_cv_search_getopt_long=no
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5814 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5820 char getopt_long ();
5829 rm -f conftest.$ac_objext conftest$ac_exeext
5830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5831 (eval $ac_link) 2>conftest.er1
5833 grep -v '^ *+' conftest.er1 >conftest.err
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_getopt_long="none required"
5853 echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5857 rm -f conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
5859 if test "$ac_cv_search_getopt_long" = no; then
5860 for ac_lib in getopt gnugetopt; do
5861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5869 /* Override any gcc2 internal prototype to avoid an error. */
5873 /* We use char because int might match the return type of a gcc2
5874 builtin and then its argument prototype would still apply. */
5875 char getopt_long ();
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886 (eval $ac_link) 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest$ac_exeext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
5906 ac_cv_search_getopt_long="-l$ac_lib"
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5913 rm -f conftest.err conftest.$ac_objext \
5914 conftest$ac_exeext conftest.$ac_ext
5917 LIBS=$ac_func_search_save_LIBS
5919 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5920 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5921 if test "$ac_cv_search_getopt_long" != no; then
5922 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5926 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5927 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5928 if test "${ac_cv_search_crypt+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 ac_func_search_save_LIBS=$LIBS
5932 ac_cv_search_crypt=no
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5940 /* Override any gcc2 internal prototype to avoid an error. */
5944 /* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } &&
5964 { ac_try='test -z "$ac_c_werror_flag"
5965 || test ! -s conftest.err'
5966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; } &&
5971 { ac_try='test -s conftest$ac_exeext'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; }; then
5977 ac_cv_search_crypt="none required"
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5983 rm -f conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext conftest.$ac_ext
5985 if test "$ac_cv_search_crypt" = no; then
5986 for ac_lib in crypt; do
5987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_search_crypt="-l$ac_lib"
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6039 rm -f conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6043 LIBS=$ac_func_search_save_LIBS
6045 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6046 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6047 if test "$ac_cv_search_crypt" != no; then
6048 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6053 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6054 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6055 if test "${ac_cv_search_fdatasync+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_func_search_save_LIBS=$LIBS
6059 ac_cv_search_fdatasync=no
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084 (eval $ac_link) 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest$ac_exeext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_cv_search_fdatasync="none required"
6106 echo "$as_me: failed program was:" >&5
6107 sed 's/^/| /' conftest.$ac_ext >&5
6110 rm -f conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 if test "$ac_cv_search_fdatasync" = no; then
6113 for ac_lib in rt posix4; do
6114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6122 /* Override any gcc2 internal prototype to avoid an error. */
6126 /* We use char because int might match the return type of a gcc2
6127 builtin and then its argument prototype would still apply. */
6137 rm -f conftest.$ac_objext conftest$ac_exeext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6139 (eval $ac_link) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 ac_cv_search_fdatasync="-l$ac_lib"
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6166 rm -f conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6170 LIBS=$ac_func_search_save_LIBS
6172 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6173 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6174 if test "$ac_cv_search_fdatasync" != no; then
6175 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6180 echo "$as_me:$LINENO: checking for library containing shmget" >&5
6181 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
6182 if test "${ac_cv_search_shmget+set}" = set; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_func_search_save_LIBS=$LIBS
6186 ac_cv_search_shmget=no
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6194 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6209 rm -f conftest.$ac_objext conftest$ac_exeext
6210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211 (eval $ac_link) 2>conftest.er1
6213 grep -v '^ *+' conftest.er1 >conftest.err
6215 cat conftest.err >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -z "$ac_c_werror_flag"
6219 || test ! -s conftest.err'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; } &&
6225 { ac_try='test -s conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_search_shmget="none required"
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6237 rm -f conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239 if test "$ac_cv_search_shmget" = no; then
6240 for ac_lib in cygipc; do
6241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6249 /* Override any gcc2 internal prototype to avoid an error. */
6253 /* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag"
6274 || test ! -s conftest.err'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest$ac_exeext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_cv_search_shmget="-l$ac_lib"
6289 echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6293 rm -f conftest.err conftest.$ac_objext \
6294 conftest$ac_exeext conftest.$ac_ext
6297 LIBS=$ac_func_search_save_LIBS
6299 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6300 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6301 if test "$ac_cv_search_shmget" != no; then
6302 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6307 if test "$with_readline" = yes; then
6310 if test "${pgac_cv_check_readline+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 pgac_cv_check_readline=no
6314 pgac_save_LIBS=$LIBS
6315 if test x"$with_libedit_preferred" != x"yes"
6316 then READLINE_ORDER="-lreadline -ledit"
6317 else READLINE_ORDER="-ledit -lreadline"
6319 for pgac_rllib in $READLINE_ORDER ; do
6320 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6321 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6322 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6323 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6369 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6370 # recognize dependent libraries; assume curses is needed if we didn't
6371 # find any dependency.
6373 netbsd* | openbsd* | irix*)
6374 if test x"$pgac_lib" = x"" ; then
6375 pgac_lib=" -lcurses"
6379 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6387 rm -f conftest.err conftest.$ac_objext \
6388 conftest$ac_exeext conftest.$ac_ext
6390 if test "$pgac_cv_check_readline" != no ; then
6391 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6392 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6395 echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6399 LIBS=$pgac_save_LIBS
6403 if test "$pgac_cv_check_readline" != no ; then
6404 LIBS="$pgac_cv_check_readline $LIBS"
6406 cat >>confdefs.h <<\_ACEOF
6407 #define HAVE_LIBREADLINE 1
6413 if test x"$pgac_cv_check_readline" = x"no"; then
6414 { { echo "$as_me:$LINENO: error: readline library not found
6415 If you have readline already installed, see config.log for details on the
6416 failure. It is possible the compiler isn't looking in the proper directory.
6417 Use --without-readline to disable readline support." >&5
6418 echo "$as_me: error: readline library not found
6419 If you have readline already installed, see config.log for details on the
6420 failure. It is possible the compiler isn't looking in the proper directory.
6421 Use --without-readline to disable readline support." >&2;}
6422 { (exit 1); exit 1; }; }
6426 if test "$with_zlib" = yes; then
6428 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6429 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6430 if test "${ac_cv_lib_z_inflate+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_check_lib_save_LIBS=$LIBS
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6442 /* Override any gcc2 internal prototype to avoid an error. */
6446 /* We use char because int might match the return type of a gcc2
6447 builtin and then its argument prototype would still apply. */
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459 (eval $ac_link) 2>conftest.er1
6461 grep -v '^ *+' conftest.er1 >conftest.err
6463 cat conftest.err >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } &&
6466 { ac_try='test -z "$ac_c_werror_flag"
6467 || test ! -s conftest.err'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_lib_z_inflate=yes
6481 echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_cv_lib_z_inflate=no
6486 rm -f conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_check_lib_save_LIBS
6490 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6491 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6492 if test $ac_cv_lib_z_inflate = yes; then
6493 cat >>confdefs.h <<_ACEOF
6500 { { echo "$as_me:$LINENO: error: zlib library not found
6501 If you have zlib already installed, see config.log for details on the
6502 failure. It is possible the compiler isn't looking in the proper directory.
6503 Use --without-zlib to disable zlib support." >&5
6504 echo "$as_me: error: zlib library not found
6505 If you have zlib already installed, see config.log for details on the
6506 failure. It is possible the compiler isn't looking in the proper directory.
6507 Use --without-zlib to disable zlib support." >&2;}
6508 { (exit 1); exit 1; }; }
6513 if test "$enable_spinlocks" = yes; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_SPINLOCKS 1
6520 { echo "$as_me:$LINENO: WARNING:
6521 *** Not using spinlocks will cause poor performance." >&5
6522 echo "$as_me: WARNING:
6523 *** Not using spinlocks will cause poor performance." >&2;}
6526 if test "$with_krb5" = yes ; then
6527 if test "$PORTNAME" != "win32"; then
6528 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6529 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6530 if test "${ac_cv_search_com_err+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_func_search_save_LIBS=$LIBS
6534 ac_cv_search_com_err=no
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag"
6567 || test ! -s conftest.err'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_search_com_err="none required"
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6585 rm -f conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587 if test "$ac_cv_search_com_err" = no; then
6588 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6612 rm -f conftest.$ac_objext conftest$ac_exeext
6613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6614 (eval $ac_link) 2>conftest.er1
6616 grep -v '^ *+' conftest.er1 >conftest.err
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -z "$ac_c_werror_flag"
6622 || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_search_com_err="-l$ac_lib"
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6641 rm -f conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_func_search_save_LIBS
6647 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6648 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6649 if test "$ac_cv_search_com_err" != no; then
6650 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6653 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6654 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6655 { (exit 1); exit 1; }; }
6658 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6659 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6660 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 ac_func_search_save_LIBS=$LIBS
6664 ac_cv_search_krb5_sendauth=no
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6672 /* Override any gcc2 internal prototype to avoid an error. */
6676 /* We use char because int might match the return type of a gcc2
6677 builtin and then its argument prototype would still apply. */
6678 char krb5_sendauth ();
6687 rm -f conftest.$ac_objext conftest$ac_exeext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_c_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_cv_search_krb5_sendauth="none required"
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6715 rm -f conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6717 if test "$ac_cv_search_krb5_sendauth" = no; then
6718 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6727 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6733 char krb5_sendauth ();
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1 >conftest.err
6748 cat conftest.err >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -z "$ac_c_werror_flag"
6752 || test ! -s conftest.err'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 ac_cv_search_krb5_sendauth="-l$ac_lib"
6767 echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6771 rm -f conftest.err conftest.$ac_objext \
6772 conftest$ac_exeext conftest.$ac_ext
6775 LIBS=$ac_func_search_save_LIBS
6777 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6778 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6779 if test "$ac_cv_search_krb5_sendauth" != no; then
6780 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6783 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6784 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6785 { (exit 1); exit 1; }; }
6789 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6790 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6791 if test "${ac_cv_search_com_err+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 ac_func_search_save_LIBS=$LIBS
6795 ac_cv_search_com_err=no
6796 cat >conftest.$ac_ext <<_ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6803 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } &&
6827 { ac_try='test -z "$ac_c_werror_flag"
6828 || test ! -s conftest.err'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; } &&
6834 { ac_try='test -s conftest$ac_exeext'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 ac_cv_search_com_err="none required"
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6846 rm -f conftest.err conftest.$ac_objext \
6847 conftest$ac_exeext conftest.$ac_ext
6848 if test "$ac_cv_search_com_err" = no; then
6849 for ac_lib in 'comerr32 -lkrb5_32'; do
6850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_search_com_err="-l$ac_lib"
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6906 LIBS=$ac_func_search_save_LIBS
6908 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6909 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6910 if test "$ac_cv_search_com_err" != no; then
6911 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6914 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6915 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6916 { (exit 1); exit 1; }; }
6922 if test "$with_openssl" = yes ; then
6923 if test "$PORTNAME" != "win32"; then
6925 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6926 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6927 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_check_lib_save_LIBS=$LIBS
6931 LIBS="-lcrypto $LIBS"
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6939 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6945 char CRYPTO_new_ex_data ();
6949 CRYPTO_new_ex_data ();
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>conftest.er1
6958 grep -v '^ *+' conftest.er1 >conftest.err
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -z "$ac_c_werror_flag"
6964 || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6983 rm -f conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 LIBS=$ac_check_lib_save_LIBS
6987 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6988 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6989 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6990 cat >>confdefs.h <<_ACEOF
6991 #define HAVE_LIBCRYPTO 1
6994 LIBS="-lcrypto $LIBS"
6997 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6998 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6999 { (exit 1); exit 1; }; }
7003 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7004 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7005 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 ac_check_lib_save_LIBS=$LIBS
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7017 /* Override any gcc2 internal prototype to avoid an error. */
7021 /* We use char because int might match the return type of a gcc2
7022 builtin and then its argument prototype would still apply. */
7023 char SSL_library_init ();
7027 SSL_library_init ();
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7034 (eval $ac_link) 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -z "$ac_c_werror_flag"
7042 || test ! -s conftest.err'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; } &&
7048 { ac_try='test -s conftest$ac_exeext'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7054 ac_cv_lib_ssl_SSL_library_init=yes
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_cv_lib_ssl_SSL_library_init=no
7061 rm -f conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7066 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7067 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_LIBSSL 1
7075 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7076 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7077 { (exit 1); exit 1; }; }
7082 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7083 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7084 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_check_lib_save_LIBS=$LIBS
7088 LIBS="-leay32 $LIBS"
7089 cat >conftest.$ac_ext <<_ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7096 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7102 char CRYPTO_new_ex_data ();
7106 CRYPTO_new_ex_data ();
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>conftest.er1
7115 grep -v '^ *+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -z "$ac_c_werror_flag"
7121 || test ! -s conftest.err'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; } &&
7127 { ac_try='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7138 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7140 rm -f conftest.err conftest.$ac_objext \
7141 conftest$ac_exeext conftest.$ac_ext
7142 LIBS=$ac_check_lib_save_LIBS
7144 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7145 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7146 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define HAVE_LIBEAY32 1
7151 LIBS="-leay32 $LIBS"
7154 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7155 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7156 { (exit 1); exit 1; }; }
7160 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7161 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7162 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_check_lib_save_LIBS=$LIBS
7166 LIBS="-lssleay32 $LIBS"
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7180 char SSL_library_init ();
7184 SSL_library_init ();
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_ssleay32_SSL_library_init=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_lib_ssleay32_SSL_library_init=no
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7223 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7224 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_LIBSSLEAY32 1
7229 LIBS="-lssleay32 $LIBS"
7232 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7233 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7234 { (exit 1); exit 1; }; }
7240 if test "$with_pam" = yes ; then
7242 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7243 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7244 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_check_lib_save_LIBS=$LIBS
7249 cat >conftest.$ac_ext <<_ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 ac_cv_lib_pam_pam_start=yes
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 ac_cv_lib_pam_pam_start=no
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7302 LIBS=$ac_check_lib_save_LIBS
7304 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7305 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7306 if test $ac_cv_lib_pam_pam_start = yes; then
7307 cat >>confdefs.h <<_ACEOF
7308 #define HAVE_LIBPAM 1
7314 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7315 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7316 { (exit 1); exit 1; }; }
7326 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7328 if test "${ac_cv_header_stdc+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7350 rm -f conftest.$ac_objext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352 (eval $ac_compile) 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest.$ac_objext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 ac_cv_header_stdc=yes
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ac_cv_header_stdc=no
7379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7381 if test $ac_cv_header_stdc = yes; then
7382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7393 $EGREP "memchr" >/dev/null 2>&1; then
7396 ac_cv_header_stdc=no
7402 if test $ac_cv_header_stdc = yes; then
7403 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7414 $EGREP "free" >/dev/null 2>&1; then
7417 ac_cv_header_stdc=no
7423 if test $ac_cv_header_stdc = yes; then
7424 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7425 if test "$cross_compiling" = yes; then
7428 cat >conftest.$ac_ext <<_ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7435 #if ((' ' & 0x0FF) == 0x020)
7436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7439 # define ISLOWER(c) \
7440 (('a' <= (c) && (c) <= 'i') \
7441 || ('j' <= (c) && (c) <= 'r') \
7442 || ('s' <= (c) && (c) <= 'z'))
7443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7451 for (i = 0; i < 256; i++)
7452 if (XOR (islower (i), ISLOWER (i))
7453 || toupper (i) != TOUPPER (i))
7458 rm -f conftest$ac_exeext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7460 (eval $ac_link) 2>&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7471 echo "$as_me: program exited with status $ac_status" >&5
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_cv_header_stdc=no
7478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7483 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7484 if test $ac_cv_header_stdc = yes; then
7486 cat >>confdefs.h <<\_ACEOF
7487 #define STDC_HEADERS 1
7492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7502 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7503 inttypes.h stdint.h unistd.h
7505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
7507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7519 #include <$ac_header>
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 eval "$as_ac_Header=yes"
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 eval "$as_ac_Header=no"
7550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555 cat >>confdefs.h <<_ACEOF
7556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7589 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7593 echo "$as_me:$LINENO: checking for $ac_header" >&5
7594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7601 # Is the header compilable?
7602 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 $ac_includes_default
7611 #include <$ac_header>
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_header_compiler=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_header_compiler=no
7642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7644 echo "${ECHO_T}$ac_header_compiler" >&6
7646 # Is the header present?
7647 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7648 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7649 cat >conftest.$ac_ext <<_ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <$ac_header>
7657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7660 grep -v '^ *+' conftest.er1 >conftest.err
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } >/dev/null; then
7665 if test -s conftest.err; then
7666 ac_cpp_err=$ac_c_preproc_warn_flag
7667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7674 if test -z "$ac_cpp_err"; then
7675 ac_header_preproc=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_header_preproc=no
7682 rm -f conftest.err conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7684 echo "${ECHO_T}$ac_header_preproc" >&6
7686 # So? What about this header?
7687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7693 ac_header_preproc=yes
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7710 ## ---------------------------------------- ##
7711 ## Report this to pgsql-bugs@postgresql.org ##
7712 ## ---------------------------------------- ##
7715 sed "s/^/$as_me: WARNING: /" >&2
7718 echo "$as_me:$LINENO: checking for $ac_header" >&5
7719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 eval "$as_ac_Header=\$ac_header_preproc"
7725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7726 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7730 cat >>confdefs.h <<_ACEOF
7731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7740 # netinet/in.h is included first.
7742 for ac_header in netinet/in.h
7744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7754 # Is the header compilable?
7755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7757 cat >conftest.$ac_ext <<_ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 $ac_includes_default
7764 #include <$ac_header>
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768 (eval $ac_compile) 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -z "$ac_c_werror_flag"
7776 || test ! -s conftest.err'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
7788 ac_header_compiler=yes
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_header_compiler=no
7795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7797 echo "${ECHO_T}$ac_header_compiler" >&6
7799 # Is the header present?
7800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <$ac_header>
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } >/dev/null; then
7818 if test -s conftest.err; then
7819 ac_cpp_err=$ac_c_preproc_warn_flag
7820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7827 if test -z "$ac_cpp_err"; then
7828 ac_header_preproc=yes
7830 echo "$as_me: failed program was:" >&5
7831 sed 's/^/| /' conftest.$ac_ext >&5
7833 ac_header_preproc=no
7835 rm -f conftest.err conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7837 echo "${ECHO_T}$ac_header_preproc" >&6
7839 # So? What about this header?
7840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7846 ac_header_preproc=yes
7849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7863 ## ---------------------------------------- ##
7864 ## Report this to pgsql-bugs@postgresql.org ##
7865 ## ---------------------------------------- ##
7868 sed "s/^/$as_me: WARNING: /" >&2
7871 echo "$as_me:$LINENO: checking for $ac_header" >&5
7872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 eval "$as_ac_Header=\$ac_header_preproc"
7878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7883 cat >>confdefs.h <<_ACEOF
7884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7892 for ac_header in netinet/tcp.h
7894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 echo "$as_me:$LINENO: checking for $ac_header" >&5
7896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 #ifdef HAVE_NETINET_IN_H
7908 #include <netinet/in.h>
7912 #include <$ac_header>
7914 rm -f conftest.$ac_objext
7915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7916 (eval $ac_compile) 2>conftest.er1
7918 grep -v '^ *+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -z "$ac_c_werror_flag"
7924 || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest.$ac_objext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 eval "$as_ac_Header=yes"
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 eval "$as_ac_Header=no"
7943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7948 cat >>confdefs.h <<_ACEOF
7949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7959 for ac_header in readline/readline.h
7961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7963 echo "$as_me:$LINENO: checking for $ac_header" >&5
7964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7971 # Is the header compilable?
7972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #include <$ac_header>
7983 rm -f conftest.$ac_objext
7984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7985 (eval $ac_compile) 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } &&
7992 { ac_try='test -z "$ac_c_werror_flag"
7993 || test ! -s conftest.err'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; } &&
7999 { ac_try='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_header_compiler=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_header_compiler=no
8012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8014 echo "${ECHO_T}$ac_header_compiler" >&6
8016 # Is the header present?
8017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 #include <$ac_header>
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } >/dev/null; then
8035 if test -s conftest.err; then
8036 ac_cpp_err=$ac_c_preproc_warn_flag
8037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8044 if test -z "$ac_cpp_err"; then
8045 ac_header_preproc=yes
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_header_preproc=no
8052 rm -f conftest.err conftest.$ac_ext
8053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 echo "${ECHO_T}$ac_header_preproc" >&6
8056 # So? What about this header?
8057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063 ac_header_preproc=yes
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8080 ## ---------------------------------------- ##
8081 ## Report this to pgsql-bugs@postgresql.org ##
8082 ## ---------------------------------------- ##
8085 sed "s/^/$as_me: WARNING: /" >&2
8088 echo "$as_me:$LINENO: checking for $ac_header" >&5
8089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 eval "$as_ac_Header=\$ac_header_preproc"
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8100 cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8106 for ac_header in readline.h
8108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110 echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118 # Is the header compilable?
8119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include <$ac_header>
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_compiler=no
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <$ac_header>
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } >/dev/null; then
8182 if test -s conftest.err; then
8183 ac_cpp_err=$ac_c_preproc_warn_flag
8184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8191 if test -z "$ac_cpp_err"; then
8192 ac_header_preproc=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_header_preproc=no
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8203 # So? What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8210 ac_header_preproc=yes
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8227 ## ---------------------------------------- ##
8228 ## Report this to pgsql-bugs@postgresql.org ##
8229 ## ---------------------------------------- ##
8232 sed "s/^/$as_me: WARNING: /" >&2
8235 echo "$as_me:$LINENO: checking for $ac_header" >&5
8236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 eval "$as_ac_Header=\$ac_header_preproc"
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247 cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8252 { { echo "$as_me:$LINENO: error: readline header not found
8253 If you have readline already installed, see config.log for details on the
8254 failure. It is possible the compiler isn't looking in the proper directory.
8255 Use --without-readline to disable readline support." >&5
8256 echo "$as_me: error: readline header not found
8257 If you have readline already installed, see config.log for details on the
8258 failure. It is possible the compiler isn't looking in the proper directory.
8259 Use --without-readline to disable readline support." >&2;}
8260 { (exit 1); exit 1; }; }
8270 for ac_header in readline/history.h
8272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8274 echo "$as_me:$LINENO: checking for $ac_header" >&5
8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8282 # Is the header compilable?
8283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #include <$ac_header>
8294 rm -f conftest.$ac_objext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8296 (eval $ac_compile) 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag"
8304 || test ! -s conftest.err'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; } &&
8310 { ac_try='test -s conftest.$ac_objext'
8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_header_compiler=yes
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8321 ac_header_compiler=no
8323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8325 echo "${ECHO_T}$ac_header_compiler" >&6
8327 # Is the header present?
8328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8330 cat >conftest.$ac_ext <<_ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 #include <$ac_header>
8338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8341 grep -v '^ *+' conftest.er1 >conftest.err
8343 cat conftest.err >&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } >/dev/null; then
8346 if test -s conftest.err; then
8347 ac_cpp_err=$ac_c_preproc_warn_flag
8348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8355 if test -z "$ac_cpp_err"; then
8356 ac_header_preproc=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 ac_header_preproc=no
8363 rm -f conftest.err conftest.$ac_ext
8364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8365 echo "${ECHO_T}$ac_header_preproc" >&6
8367 # So? What about this header?
8368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8374 ac_header_preproc=yes
8377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8391 ## ---------------------------------------- ##
8392 ## Report this to pgsql-bugs@postgresql.org ##
8393 ## ---------------------------------------- ##
8396 sed "s/^/$as_me: WARNING: /" >&2
8399 echo "$as_me:$LINENO: checking for $ac_header" >&5
8400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 eval "$as_ac_Header=\$ac_header_preproc"
8406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8411 cat >>confdefs.h <<_ACEOF
8412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8417 for ac_header in history.h
8419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8421 echo "$as_me:$LINENO: checking for $ac_header" >&5
8422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8429 # Is the header compilable?
8430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 #include <$ac_header>
8441 rm -f conftest.$ac_objext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8443 (eval $ac_compile) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest.$ac_objext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_header_compiler=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ac_header_compiler=no
8470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8472 echo "${ECHO_T}$ac_header_compiler" >&6
8474 # Is the header present?
8475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #include <$ac_header>
8485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488 grep -v '^ *+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null; then
8493 if test -s conftest.err; then
8494 ac_cpp_err=$ac_c_preproc_warn_flag
8495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8502 if test -z "$ac_cpp_err"; then
8503 ac_header_preproc=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_header_preproc=no
8510 rm -f conftest.err conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8512 echo "${ECHO_T}$ac_header_preproc" >&6
8514 # So? What about this header?
8515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8521 ac_header_preproc=yes
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8538 ## ---------------------------------------- ##
8539 ## Report this to pgsql-bugs@postgresql.org ##
8540 ## ---------------------------------------- ##
8543 sed "s/^/$as_me: WARNING: /" >&2
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 eval "$as_ac_Header=\$ac_header_preproc"
8553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563 { { echo "$as_me:$LINENO: error: history header not found
8564 If you have readline already installed, see config.log for details on the
8565 failure. It is possible the compiler isn't looking in the proper directory.
8566 Use --without-readline to disable readline support." >&5
8567 echo "$as_me: error: history header not found
8568 If you have readline already installed, see config.log for details on the
8569 failure. It is possible the compiler isn't looking in the proper directory.
8570 Use --without-readline to disable readline support." >&2;}
8571 { (exit 1); exit 1; }; }
8582 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8583 # Some installations of libedit usurp /usr/include/readline/, which seems
8584 # bad practice, since in combined installations readline will have its headers
8585 # there. We might have to resort to AC_EGREP checks to make sure we found
8586 # the proper header...
8588 for ac_header in editline/readline.h
8590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8592 echo "$as_me:$LINENO: checking for $ac_header" >&5
8593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8600 # Is the header compilable?
8601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 #include <$ac_header>
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
8634 ac_header_compiler=yes
8636 echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8639 ac_header_compiler=no
8641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8643 echo "${ECHO_T}$ac_header_compiler" >&6
8645 # Is the header present?
8646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 #include <$ac_header>
8656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } >/dev/null; then
8664 if test -s conftest.err; then
8665 ac_cpp_err=$ac_c_preproc_warn_flag
8666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8673 if test -z "$ac_cpp_err"; then
8674 ac_header_preproc=yes
8676 echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8679 ac_header_preproc=no
8681 rm -f conftest.err conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6
8685 # So? What about this header?
8686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8692 ac_header_preproc=yes
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8709 ## ---------------------------------------- ##
8710 ## Report this to pgsql-bugs@postgresql.org ##
8711 ## ---------------------------------------- ##
8714 sed "s/^/$as_me: WARNING: /" >&2
8717 echo "$as_me:$LINENO: checking for $ac_header" >&5
8718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 eval "$as_ac_Header=\$ac_header_preproc"
8724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8729 cat >>confdefs.h <<_ACEOF
8730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 for ac_header in readline.h
8737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo "$as_me:$LINENO: checking for $ac_header" >&5
8740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8747 # Is the header compilable?
8748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8750 cat >conftest.$ac_ext <<_ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8756 $ac_includes_default
8757 #include <$ac_header>
8759 rm -f conftest.$ac_objext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8761 (eval $ac_compile) 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest.$ac_objext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_header_compiler=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_header_compiler=no
8788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8790 echo "${ECHO_T}$ac_header_compiler" >&6
8792 # Is the header present?
8793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 #include <$ac_header>
8803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8806 grep -v '^ *+' conftest.er1 >conftest.err
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); } >/dev/null; then
8811 if test -s conftest.err; then
8812 ac_cpp_err=$ac_c_preproc_warn_flag
8813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8820 if test -z "$ac_cpp_err"; then
8821 ac_header_preproc=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ac_header_preproc=no
8828 rm -f conftest.err conftest.$ac_ext
8829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8830 echo "${ECHO_T}$ac_header_preproc" >&6
8832 # So? What about this header?
8833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8839 ac_header_preproc=yes
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8856 ## ---------------------------------------- ##
8857 ## Report this to pgsql-bugs@postgresql.org ##
8858 ## ---------------------------------------- ##
8861 sed "s/^/$as_me: WARNING: /" >&2
8864 echo "$as_me:$LINENO: checking for $ac_header" >&5
8865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 eval "$as_ac_Header=\$ac_header_preproc"
8871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8876 cat >>confdefs.h <<_ACEOF
8877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8882 for ac_header in readline/readline.h
8884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8886 echo "$as_me:$LINENO: checking for $ac_header" >&5
8887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8894 # Is the header compilable?
8895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8897 cat >conftest.$ac_ext <<_ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 $ac_includes_default
8904 #include <$ac_header>
8906 rm -f conftest.$ac_objext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8908 (eval $ac_compile) 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -z "$ac_c_werror_flag"
8916 || test ! -s conftest.err'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; } &&
8922 { ac_try='test -s conftest.$ac_objext'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8928 ac_header_compiler=yes
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8933 ac_header_compiler=no
8935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8937 echo "${ECHO_T}$ac_header_compiler" >&6
8939 # Is the header present?
8940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 #include <$ac_header>
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } >/dev/null; then
8958 if test -s conftest.err; then
8959 ac_cpp_err=$ac_c_preproc_warn_flag
8960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967 if test -z "$ac_cpp_err"; then
8968 ac_header_preproc=yes
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 ac_header_preproc=no
8975 rm -f conftest.err conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8977 echo "${ECHO_T}$ac_header_preproc" >&6
8979 # So? What about this header?
8980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8986 ac_header_preproc=yes
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9003 ## ---------------------------------------- ##
9004 ## Report this to pgsql-bugs@postgresql.org ##
9005 ## ---------------------------------------- ##
9008 sed "s/^/$as_me: WARNING: /" >&2
9011 echo "$as_me:$LINENO: checking for $ac_header" >&5
9012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 eval "$as_ac_Header=\$ac_header_preproc"
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9023 cat >>confdefs.h <<_ACEOF
9024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9028 { { echo "$as_me:$LINENO: error: readline header not found
9029 If you have libedit already installed, see config.log for details on the
9030 failure. It is possible the compiler isn't looking in the proper directory.
9031 Use --without-readline to disable libedit support." >&5
9032 echo "$as_me: error: readline header not found
9033 If you have libedit already installed, see config.log for details on the
9034 failure. It is possible the compiler isn't looking in the proper directory.
9035 Use --without-readline to disable libedit support." >&2;}
9036 { (exit 1); exit 1; }; }
9050 for ac_header in editline/history.h
9052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054 echo "$as_me:$LINENO: checking for $ac_header" >&5
9055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9062 # Is the header compilable?
9063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9071 $ac_includes_default
9072 #include <$ac_header>
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076 (eval $ac_compile) 2>conftest.er1
9078 grep -v '^ *+' conftest.er1 >conftest.err
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag"
9084 || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest.$ac_objext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_header_compiler=yes
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_header_compiler=no
9103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9105 echo "${ECHO_T}$ac_header_compiler" >&6
9107 # Is the header present?
9108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116 #include <$ac_header>
9118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } >/dev/null; then
9126 if test -s conftest.err; then
9127 ac_cpp_err=$ac_c_preproc_warn_flag
9128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9135 if test -z "$ac_cpp_err"; then
9136 ac_header_preproc=yes
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9141 ac_header_preproc=no
9143 rm -f conftest.err conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9145 echo "${ECHO_T}$ac_header_preproc" >&6
9147 # So? What about this header?
9148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9153 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9154 ac_header_preproc=yes
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9158 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9160 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9162 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9164 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9168 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9171 ## ---------------------------------------- ##
9172 ## Report this to pgsql-bugs@postgresql.org ##
9173 ## ---------------------------------------- ##
9176 sed "s/^/$as_me: WARNING: /" >&2
9179 echo "$as_me:$LINENO: checking for $ac_header" >&5
9180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 eval "$as_ac_Header=\$ac_header_preproc"
9186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9191 cat >>confdefs.h <<_ACEOF
9192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9197 for ac_header in history.h
9199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo "$as_me:$LINENO: checking for $ac_header" >&5
9202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9209 # Is the header compilable?
9210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 $ac_includes_default
9219 #include <$ac_header>
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -z "$ac_c_werror_flag"
9231 || test ! -s conftest.err'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try='test -s conftest.$ac_objext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 ac_header_compiler=yes
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9248 ac_header_compiler=no
9250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252 echo "${ECHO_T}$ac_header_compiler" >&6
9254 # Is the header present?
9255 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263 #include <$ac_header>
9265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9268 grep -v '^ *+' conftest.er1 >conftest.err
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } >/dev/null; then
9273 if test -s conftest.err; then
9274 ac_cpp_err=$ac_c_preproc_warn_flag
9275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9282 if test -z "$ac_cpp_err"; then
9283 ac_header_preproc=yes
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9288 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9318 ## ---------------------------------------- ##
9319 ## Report this to pgsql-bugs@postgresql.org ##
9320 ## ---------------------------------------- ##
9323 sed "s/^/$as_me: WARNING: /" >&2
9326 echo "$as_me:$LINENO: checking for $ac_header" >&5
9327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 eval "$as_ac_Header=\$ac_header_preproc"
9333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9338 cat >>confdefs.h <<_ACEOF
9339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9344 for ac_header in readline/history.h
9346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9348 echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9356 # Is the header compilable?
9357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 $ac_includes_default
9366 #include <$ac_header>
9368 rm -f conftest.$ac_objext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9370 (eval $ac_compile) 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -z "$ac_c_werror_flag"
9378 || test ! -s conftest.err'
9379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest.$ac_objext'
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; }; then
9390 ac_header_compiler=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_header_compiler=no
9397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9399 echo "${ECHO_T}$ac_header_compiler" >&6
9401 # Is the header present?
9402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 #include <$ac_header>
9412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } >/dev/null; then
9420 if test -s conftest.err; then
9421 ac_cpp_err=$ac_c_preproc_warn_flag
9422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9429 if test -z "$ac_cpp_err"; then
9430 ac_header_preproc=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_header_preproc=no
9437 rm -f conftest.err conftest.$ac_ext
9438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9465 ## ---------------------------------------- ##
9466 ## Report this to pgsql-bugs@postgresql.org ##
9467 ## ---------------------------------------- ##
9470 sed "s/^/$as_me: WARNING: /" >&2
9473 echo "$as_me:$LINENO: checking for $ac_header" >&5
9474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 eval "$as_ac_Header=\$ac_header_preproc"
9480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9485 cat >>confdefs.h <<_ACEOF
9486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9490 { { echo "$as_me:$LINENO: error: history header not found
9491 If you have libedit already installed, see config.log for details on the
9492 failure. It is possible the compiler isn't looking in the proper directory.
9493 Use --without-readline to disable libedit support." >&5
9494 echo "$as_me: error: history header not found
9495 If you have libedit already installed, see config.log for details on the
9496 failure. It is possible the compiler isn't looking in the proper directory.
9497 Use --without-readline to disable libedit support." >&2;}
9498 { (exit 1); exit 1; }; }
9513 if test "$with_zlib" = yes; then
9514 if test "${ac_cv_header_zlib_h+set}" = set; then
9515 echo "$as_me:$LINENO: checking for zlib.h" >&5
9516 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9517 if test "${ac_cv_header_zlib_h+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9521 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9523 # Is the header compilable?
9524 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9525 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9526 cat >conftest.$ac_ext <<_ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h. */
9532 $ac_includes_default
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>conftest.er1
9539 grep -v '^ *+' conftest.er1 >conftest.err
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -z "$ac_c_werror_flag"
9545 || test ! -s conftest.err'
9546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); }; } &&
9551 { ac_try='test -s conftest.$ac_objext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_header_compiler=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_header_compiler=no
9564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9566 echo "${ECHO_T}$ac_header_compiler" >&6
9568 # Is the header present?
9569 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9570 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } >/dev/null; then
9587 if test -s conftest.err; then
9588 ac_cpp_err=$ac_c_preproc_warn_flag
9589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596 if test -z "$ac_cpp_err"; then
9597 ac_header_preproc=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_header_preproc=no
9604 rm -f conftest.err conftest.$ac_ext
9605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9606 echo "${ECHO_T}$ac_header_preproc" >&6
9608 # So? What about this header?
9609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9611 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9612 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9614 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9615 ac_header_preproc=yes
9618 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9619 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9621 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9622 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9623 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9624 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9625 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9627 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9629 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9632 ## ---------------------------------------- ##
9633 ## Report this to pgsql-bugs@postgresql.org ##
9634 ## ---------------------------------------- ##
9637 sed "s/^/$as_me: WARNING: /" >&2
9640 echo "$as_me:$LINENO: checking for zlib.h" >&5
9641 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9642 if test "${ac_cv_header_zlib_h+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_cv_header_zlib_h=$ac_header_preproc
9647 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9648 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9651 if test $ac_cv_header_zlib_h = yes; then
9654 { { echo "$as_me:$LINENO: error: zlib header not found
9655 If you have zlib already installed, see config.log for details on the
9656 failure. It is possible the compiler isn't looking in the proper directory.
9657 Use --without-zlib to disable zlib support." >&5
9658 echo "$as_me: error: zlib header not found
9659 If you have zlib already installed, see config.log for details on the
9660 failure. It is possible the compiler isn't looking in the proper directory.
9661 Use --without-zlib to disable zlib support." >&2;}
9662 { (exit 1); exit 1; }; }
9668 if test "$with_krb5" = yes ; then
9669 if test "${ac_cv_header_krb5_h+set}" = set; then
9670 echo "$as_me:$LINENO: checking for krb5.h" >&5
9671 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9672 if test "${ac_cv_header_krb5_h+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9678 # Is the header compilable?
9679 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9680 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 $ac_includes_default
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692 (eval $ac_compile) 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_header_compiler=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_header_compiler=no
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9721 echo "${ECHO_T}$ac_header_compiler" >&6
9723 # Is the header present?
9724 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9725 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null; then
9742 if test -s conftest.err; then
9743 ac_cpp_err=$ac_c_preproc_warn_flag
9744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9751 if test -z "$ac_cpp_err"; then
9752 ac_header_preproc=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_header_preproc=no
9759 rm -f conftest.err conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9761 echo "${ECHO_T}$ac_header_preproc" >&6
9763 # So? What about this header?
9764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9766 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9767 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9769 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9770 ac_header_preproc=yes
9773 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9774 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9776 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9778 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9780 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9782 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9783 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9784 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9787 ## ---------------------------------------- ##
9788 ## Report this to pgsql-bugs@postgresql.org ##
9789 ## ---------------------------------------- ##
9792 sed "s/^/$as_me: WARNING: /" >&2
9795 echo "$as_me:$LINENO: checking for krb5.h" >&5
9796 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9797 if test "${ac_cv_header_krb5_h+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 ac_cv_header_krb5_h=$ac_header_preproc
9802 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9803 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9806 if test $ac_cv_header_krb5_h = yes; then
9809 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9810 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9811 { (exit 1); exit 1; }; }
9817 if test "$with_openssl" = yes ; then
9818 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9819 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9820 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9821 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9825 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9827 # Is the header compilable?
9828 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9829 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 #include <openssl/ssl.h>
9839 rm -f conftest.$ac_objext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9841 (eval $ac_compile) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest.$ac_objext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_header_compiler=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_header_compiler=no
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9870 echo "${ECHO_T}$ac_header_compiler" >&6
9872 # Is the header present?
9873 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9874 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9881 #include <openssl/ssl.h>
9883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1 >conftest.err
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } >/dev/null; then
9891 if test -s conftest.err; then
9892 ac_cpp_err=$ac_c_preproc_warn_flag
9893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9900 if test -z "$ac_cpp_err"; then
9901 ac_header_preproc=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9906 ac_header_preproc=no
9908 rm -f conftest.err conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9910 echo "${ECHO_T}$ac_header_preproc" >&6
9912 # So? What about this header?
9913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9915 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9916 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9917 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9918 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9919 ac_header_preproc=yes
9922 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9923 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9925 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9927 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9928 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9929 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9930 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9931 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9933 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9936 ## ---------------------------------------- ##
9937 ## Report this to pgsql-bugs@postgresql.org ##
9938 ## ---------------------------------------- ##
9941 sed "s/^/$as_me: WARNING: /" >&2
9944 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9945 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9946 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9951 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9952 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9955 if test $ac_cv_header_openssl_ssl_h = yes; then
9958 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9959 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9960 { (exit 1); exit 1; }; }
9964 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9965 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9966 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9967 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9971 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9973 # Is the header compilable?
9974 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9975 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 $ac_includes_default
9983 #include <openssl/err.h>
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest.$ac_objext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_header_compiler=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_header_compiler=no
10014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10016 echo "${ECHO_T}$ac_header_compiler" >&6
10018 # Is the header present?
10019 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10020 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 #include <openssl/err.h>
10029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } >/dev/null; then
10037 if test -s conftest.err; then
10038 ac_cpp_err=$ac_c_preproc_warn_flag
10039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10046 if test -z "$ac_cpp_err"; then
10047 ac_header_preproc=yes
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_header_preproc=no
10054 rm -f conftest.err conftest.$ac_ext
10055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10056 echo "${ECHO_T}$ac_header_preproc" >&6
10058 # So? What about this header?
10059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10061 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10062 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10063 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10064 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10065 ac_header_preproc=yes
10068 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10069 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10071 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10073 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10075 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10077 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10079 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10082 ## ---------------------------------------- ##
10083 ## Report this to pgsql-bugs@postgresql.org ##
10084 ## ---------------------------------------- ##
10087 sed "s/^/$as_me: WARNING: /" >&2
10090 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10091 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10092 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_cv_header_openssl_err_h=$ac_header_preproc
10097 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10098 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10101 if test $ac_cv_header_openssl_err_h = yes; then
10104 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10105 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10106 { (exit 1); exit 1; }; }
10112 if test "$with_pam" = yes ; then
10114 for ac_header in security/pam_appl.h
10116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10118 echo "$as_me:$LINENO: checking for $ac_header" >&5
10119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10126 # Is the header compilable?
10127 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10129 cat >conftest.$ac_ext <<_ACEOF
10132 cat confdefs.h >>conftest.$ac_ext
10133 cat >>conftest.$ac_ext <<_ACEOF
10134 /* end confdefs.h. */
10135 $ac_includes_default
10136 #include <$ac_header>
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag"
10148 || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_header_compiler=yes
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_header_compiler=no
10167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10169 echo "${ECHO_T}$ac_header_compiler" >&6
10171 # Is the header present?
10172 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10174 cat >conftest.$ac_ext <<_ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 #include <$ac_header>
10182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10185 grep -v '^ *+' conftest.er1 >conftest.err
10187 cat conftest.err >&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } >/dev/null; then
10190 if test -s conftest.err; then
10191 ac_cpp_err=$ac_c_preproc_warn_flag
10192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10199 if test -z "$ac_cpp_err"; then
10200 ac_header_preproc=yes
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_header_preproc=no
10207 rm -f conftest.err conftest.$ac_ext
10208 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10209 echo "${ECHO_T}$ac_header_preproc" >&6
10211 # So? What about this header?
10212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10218 ac_header_preproc=yes
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10235 ## ---------------------------------------- ##
10236 ## Report this to pgsql-bugs@postgresql.org ##
10237 ## ---------------------------------------- ##
10240 sed "s/^/$as_me: WARNING: /" >&2
10243 echo "$as_me:$LINENO: checking for $ac_header" >&5
10244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 eval "$as_ac_Header=\$ac_header_preproc"
10250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261 for ac_header in pam/pam_appl.h
10263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10265 echo "$as_me:$LINENO: checking for $ac_header" >&5
10266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10273 # Is the header compilable?
10274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10282 $ac_includes_default
10283 #include <$ac_header>
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_header_compiler=yes
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_header_compiler=no
10314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10316 echo "${ECHO_T}$ac_header_compiler" >&6
10318 # Is the header present?
10319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 #include <$ac_header>
10329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10332 grep -v '^ *+' conftest.er1 >conftest.err
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } >/dev/null; then
10337 if test -s conftest.err; then
10338 ac_cpp_err=$ac_c_preproc_warn_flag
10339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10346 if test -z "$ac_cpp_err"; then
10347 ac_header_preproc=yes
10349 echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10352 ac_header_preproc=no
10354 rm -f conftest.err conftest.$ac_ext
10355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10356 echo "${ECHO_T}$ac_header_preproc" >&6
10358 # So? What about this header?
10359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10365 ac_header_preproc=yes
10368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10382 ## ---------------------------------------- ##
10383 ## Report this to pgsql-bugs@postgresql.org ##
10384 ## ---------------------------------------- ##
10387 sed "s/^/$as_me: WARNING: /" >&2
10390 echo "$as_me:$LINENO: checking for $ac_header" >&5
10391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 eval "$as_ac_Header=\$ac_header_preproc"
10397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10402 cat >>confdefs.h <<_ACEOF
10403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10407 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10408 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10409 { (exit 1); exit 1; }; }
10420 if test "$with_ldap" = yes ; then
10421 if test "$PORTNAME" != "win32"; then
10423 for ac_header in ldap.h
10425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10427 echo "$as_me:$LINENO: checking for $ac_header" >&5
10428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10435 # Is the header compilable?
10436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10438 cat >conftest.$ac_ext <<_ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444 $ac_includes_default
10445 #include <$ac_header>
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } &&
10456 { ac_try='test -z "$ac_c_werror_flag"
10457 || test ! -s conftest.err'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; } &&
10463 { ac_try='test -s conftest.$ac_objext'
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 ac_header_compiler=yes
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10474 ac_header_compiler=no
10476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10478 echo "${ECHO_T}$ac_header_compiler" >&6
10480 # Is the header present?
10481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <$ac_header>
10491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10494 grep -v '^ *+' conftest.er1 >conftest.err
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } >/dev/null; then
10499 if test -s conftest.err; then
10500 ac_cpp_err=$ac_c_preproc_warn_flag
10501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10508 if test -z "$ac_cpp_err"; then
10509 ac_header_preproc=yes
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10514 ac_header_preproc=no
10516 rm -f conftest.err conftest.$ac_ext
10517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10518 echo "${ECHO_T}$ac_header_preproc" >&6
10520 # So? What about this header?
10521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10527 ac_header_preproc=yes
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10544 ## ---------------------------------------- ##
10545 ## Report this to pgsql-bugs@postgresql.org ##
10546 ## ---------------------------------------- ##
10549 sed "s/^/$as_me: WARNING: /" >&2
10552 echo "$as_me:$LINENO: checking for $ac_header" >&5
10553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 eval "$as_ac_Header=\$ac_header_preproc"
10559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10564 cat >>confdefs.h <<_ACEOF
10565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10569 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
10570 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10571 { (exit 1); exit 1; }; }
10578 for ac_header in winldap.h
10580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 #include <windows.h>
10596 #include <$ac_header>
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 eval "$as_ac_Header=yes"
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 eval "$as_ac_Header=no"
10627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10637 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10638 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10639 { (exit 1); exit 1; }; }
10647 if test "$with_bonjour" = yes ; then
10648 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10649 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10650 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10651 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10655 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10657 # Is the header compilable?
10658 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10659 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10660 cat >conftest.$ac_ext <<_ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h. */
10666 $ac_includes_default
10667 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671 (eval $ac_compile) 2>conftest.er1
10673 grep -v '^ *+' conftest.er1 >conftest.err
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_header_compiler=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_header_compiler=no
10698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10700 echo "${ECHO_T}$ac_header_compiler" >&6
10702 # Is the header present?
10703 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10704 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10705 cat >conftest.$ac_ext <<_ACEOF
10708 cat confdefs.h >>conftest.$ac_ext
10709 cat >>conftest.$ac_ext <<_ACEOF
10710 /* end confdefs.h. */
10711 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10716 grep -v '^ *+' conftest.er1 >conftest.err
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } >/dev/null; then
10721 if test -s conftest.err; then
10722 ac_cpp_err=$ac_c_preproc_warn_flag
10723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10730 if test -z "$ac_cpp_err"; then
10731 ac_header_preproc=yes
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_header_preproc=no
10738 rm -f conftest.err conftest.$ac_ext
10739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10740 echo "${ECHO_T}$ac_header_preproc" >&6
10742 # So? What about this header?
10743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10745 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10746 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10748 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10749 ac_header_preproc=yes
10752 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10753 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10755 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10756 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10757 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10758 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10759 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10760 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10761 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10762 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10763 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10766 ## ---------------------------------------- ##
10767 ## Report this to pgsql-bugs@postgresql.org ##
10768 ## ---------------------------------------- ##
10771 sed "s/^/$as_me: WARNING: /" >&2
10774 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10775 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10776 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10781 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10782 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10785 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10788 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10789 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10790 { (exit 1); exit 1; }; }
10798 ## Types, structures, compiler characteristics
10801 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10802 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10803 if test "${ac_cv_c_const+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10816 /* FIXME: Include the comments suggested by Paul. */
10817 #ifndef __cplusplus
10818 /* Ultrix mips cc rejects this. */
10819 typedef int charset[2];
10821 /* SunOS 4.1.1 cc rejects this. */
10822 char const *const *ccp;
10824 /* NEC SVR4.0.2 mips cc rejects this. */
10825 struct point {int x, y;};
10826 static struct point const zero = {0,0};
10827 /* AIX XL C 1.02.0.0 rejects this.
10828 It does not let you subtract one const X* pointer from another in
10829 an arm of an if-expression whose if-part is not a constant
10831 const char *g = "string";
10832 ccp = &g + (g ? g-g : 0);
10833 /* HPUX 7.0 cc rejects these. */
10836 ccp = (char const *const *) p;
10837 { /* SCO 3.2v4 cc rejects this. */
10839 char const *s = 0 ? (char *) 0 : (char const *) 0;
10843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10844 int x[] = {25, 17};
10845 const int *foo = &x[0];
10848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10849 typedef const int *iptr;
10853 { /* AIX XL C 1.02.0.0 rejects this saying
10854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10855 struct s { int j; const int *ap[3]; };
10856 struct s *b; b->j = 5;
10858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10859 const int foo = 10;
10867 rm -f conftest.$ac_objext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10869 (eval $ac_compile) 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag"
10877 || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest.$ac_objext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10891 echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10898 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10899 echo "${ECHO_T}$ac_cv_c_const" >&6
10900 if test $ac_cv_c_const = no; then
10902 cat >>confdefs.h <<\_ACEOF
10909 echo "$as_me:$LINENO: checking for inline" >&5
10910 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10911 if test "${ac_cv_c_inline+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 for ac_kw in inline __inline__ __inline; do
10916 cat >conftest.$ac_ext <<_ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #ifndef __cplusplus
10924 static $ac_kw foo_t static_foo () {return 0; }
10925 $ac_kw int foo () {return 0; }
10929 rm -f conftest.$ac_objext
10930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10931 (eval $ac_compile) 2>conftest.er1
10933 grep -v '^ *+' conftest.er1 >conftest.err
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -z "$ac_c_werror_flag"
10939 || test ! -s conftest.err'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; } &&
10945 { ac_try='test -s conftest.$ac_objext'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_c_inline=$ac_kw; break
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10962 echo "${ECHO_T}$ac_cv_c_inline" >&6
10963 case $ac_cv_c_inline in
10966 cat >>confdefs.h <<\_ACEOF
10970 *) cat >>confdefs.h <<_ACEOF
10971 #define inline $ac_cv_c_inline
10976 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10977 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10978 if test "${ac_cv_c_stringize+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 cat >conftest.$ac_ext <<_ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h. */
10989 char *s = x(teststring);
10991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10992 $EGREP "#teststring" >/dev/null 2>&1; then
10993 ac_cv_c_stringize=no
10995 ac_cv_c_stringize=yes
11000 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11001 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11002 if test $ac_cv_c_stringize = yes; then
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_STRINGIZE 1
11010 echo "$as_me:$LINENO: checking for signed types" >&5
11011 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11012 if test "${pgac_cv_c_signed+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11025 signed char c; signed short s; signed int i;
11030 rm -f conftest.$ac_objext
11031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 pgac_cv_c_signed=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 pgac_cv_c_signed=no
11059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11062 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11063 if test x"$pgac_cv_c_signed" = xno ; then
11065 cat >>confdefs.h <<\_ACEOF
11070 echo "$as_me:$LINENO: checking for working volatile" >&5
11071 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11072 if test "${ac_cv_c_volatile+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11092 rm -f conftest.$ac_objext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11094 (eval $ac_compile) 2>conftest.er1
11096 grep -v '^ *+' conftest.er1 >conftest.err
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } &&
11101 { ac_try='test -z "$ac_c_werror_flag"
11102 || test ! -s conftest.err'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; } &&
11108 { ac_try='test -s conftest.$ac_objext'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
11114 ac_cv_c_volatile=yes
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11119 ac_cv_c_volatile=no
11121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11123 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11124 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11125 if test $ac_cv_c_volatile = no; then
11127 cat >>confdefs.h <<\_ACEOF
11133 echo "$as_me:$LINENO: checking for __func__" >&5
11134 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11135 if test "${pgac_cv_funcname_func_support+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11148 printf("%s\n", __func__);
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155 (eval $ac_compile) 2>conftest.er1
11157 grep -v '^ *+' conftest.er1 >conftest.err
11159 cat conftest.err >&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -z "$ac_c_werror_flag"
11163 || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 pgac_cv_funcname_func_support=yes
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 pgac_cv_funcname_func_support=no
11182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11184 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11185 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11186 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11188 cat >>confdefs.h <<\_ACEOF
11189 #define HAVE_FUNCNAME__FUNC 1
11193 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11194 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11195 if test "${pgac_cv_funcname_function_support+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11208 printf("%s\n", __FUNCTION__);
11213 rm -f conftest.$ac_objext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11215 (eval $ac_compile) 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest.$ac_objext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 pgac_cv_funcname_function_support=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 pgac_cv_funcname_function_support=no
11242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11245 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11246 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11248 cat >>confdefs.h <<\_ACEOF
11249 #define HAVE_FUNCNAME__FUNCTION 1
11254 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11255 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11256 if test "${ac_cv_struct_tm+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <sys/types.h>
11271 struct tm *tp; tp->tm_sec;
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>conftest.er1
11280 grep -v '^ *+' conftest.er1 >conftest.err
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_struct_tm=time.h
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_cv_struct_tm=sys/time.h
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11308 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11309 if test $ac_cv_struct_tm = sys/time.h; then
11311 cat >>confdefs.h <<\_ACEOF
11312 #define TM_IN_SYS_TIME 1
11317 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11318 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11319 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 cat >conftest.$ac_ext <<_ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <sys/types.h>
11329 #include <$ac_cv_struct_tm>
11335 static struct tm ac_aggr;
11336 if (ac_aggr.tm_zone)
11342 rm -f conftest.$ac_objext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11344 (eval $ac_compile) 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
11351 { ac_try='test -z "$ac_c_werror_flag"
11352 || test ! -s conftest.err'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; } &&
11358 { ac_try='test -s conftest.$ac_objext'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_member_struct_tm_tm_zone=yes
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <sys/types.h>
11376 #include <$ac_cv_struct_tm>
11382 static struct tm ac_aggr;
11383 if (sizeof ac_aggr.tm_zone)
11389 rm -f conftest.$ac_objext
11390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11391 (eval $ac_compile) 2>conftest.er1
11393 grep -v '^ *+' conftest.er1 >conftest.err
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag"
11399 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 ac_cv_member_struct_tm_tm_zone=yes
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11416 ac_cv_member_struct_tm_tm_zone=no
11418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11423 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11424 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_STRUCT_TM_TM_ZONE 1
11433 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11435 cat >>confdefs.h <<\_ACEOF
11436 #define HAVE_TM_ZONE 1
11440 echo "$as_me:$LINENO: checking for tzname" >&5
11441 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11442 if test "${ac_cv_var_tzname+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11452 #ifndef tzname /* For SGI. */
11453 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11464 rm -f conftest.$ac_objext conftest$ac_exeext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11466 (eval $ac_link) 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag"
11474 || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_cv_var_tzname=yes
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11491 ac_cv_var_tzname=no
11493 rm -f conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11496 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11497 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11498 if test $ac_cv_var_tzname = yes; then
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_TZNAME 1
11506 echo "$as_me:$LINENO: checking for union semun" >&5
11507 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11508 if test "${ac_cv_type_union_semun+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 #include <sys/types.h>
11518 #include <sys/ipc.h>
11519 #include <sys/sem.h>
11524 if ((union semun *) 0)
11526 if (sizeof (union semun))
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_cv_type_union_semun=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_cv_type_union_semun=no
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11563 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11564 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11565 if test $ac_cv_type_union_semun = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_UNION_SEMUN 1
11574 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11575 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11576 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11585 #include <sys/types.h>
11586 #ifdef HAVE_SYS_UN_H
11587 #include <sys/un.h>
11594 if ((struct sockaddr_un *) 0)
11596 if (sizeof (struct sockaddr_un))
11602 rm -f conftest.$ac_objext
11603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11604 (eval $ac_compile) 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag"
11612 || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_type_struct_sockaddr_un=yes
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_cv_type_struct_sockaddr_un=no
11631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11634 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11635 if test $ac_cv_type_struct_sockaddr_un = yes; then
11637 cat >>confdefs.h <<_ACEOF
11638 #define HAVE_STRUCT_SOCKADDR_UN 1
11642 cat >>confdefs.h <<\_ACEOF
11643 #define HAVE_UNIX_SOCKETS 1
11648 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11649 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11650 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11659 #include <sys/types.h>
11660 #ifdef HAVE_SYS_SOCKET_H
11661 #include <sys/socket.h>
11668 if ((struct sockaddr_storage *) 0)
11670 if (sizeof (struct sockaddr_storage))
11676 rm -f conftest.$ac_objext
11677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11678 (eval $ac_compile) 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag"
11686 || test ! -s conftest.err'
11687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688 (eval $ac_try) 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try='test -s conftest.$ac_objext'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; }; then
11698 ac_cv_type_struct_sockaddr_storage=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11703 ac_cv_type_struct_sockaddr_storage=no
11705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11707 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11708 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11709 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11711 cat >>confdefs.h <<_ACEOF
11712 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11718 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11719 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11720 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 #include <sys/types.h>
11730 #ifdef HAVE_SYS_SOCKET_H
11731 #include <sys/socket.h>
11738 static struct sockaddr_storage ac_aggr;
11739 if (ac_aggr.ss_family)
11745 rm -f conftest.$ac_objext
11746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11747 (eval $ac_compile) 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 #include <sys/types.h>
11779 #ifdef HAVE_SYS_SOCKET_H
11780 #include <sys/socket.h>
11787 static struct sockaddr_storage ac_aggr;
11788 if (sizeof ac_aggr.ss_family)
11794 rm -f conftest.$ac_objext
11795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11796 (eval $ac_compile) 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -z "$ac_c_werror_flag"
11804 || test ! -s conftest.err'
11805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806 (eval $ac_try) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); }; } &&
11810 { ac_try='test -s conftest.$ac_objext'
11811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812 (eval $ac_try) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_cv_member_struct_sockaddr_storage_ss_family=no
11823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11828 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11829 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11831 cat >>confdefs.h <<_ACEOF
11832 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11837 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11838 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11839 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <sys/types.h>
11849 #ifdef HAVE_SYS_SOCKET_H
11850 #include <sys/socket.h>
11857 static struct sockaddr_storage ac_aggr;
11858 if (ac_aggr.__ss_family)
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_c_werror_flag"
11874 || test ! -s conftest.err'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest.$ac_objext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #include <sys/types.h>
11898 #ifdef HAVE_SYS_SOCKET_H
11899 #include <sys/socket.h>
11906 static struct sockaddr_storage ac_aggr;
11907 if (sizeof ac_aggr.__ss_family)
11913 rm -f conftest.$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_cv_member_struct_sockaddr_storage___ss_family=no
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11947 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11948 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11956 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11957 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11958 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <sys/types.h>
11968 #ifdef HAVE_SYS_SOCKET_H
11969 #include <sys/socket.h>
11976 static struct sockaddr_storage ac_aggr;
11977 if (ac_aggr.ss_len)
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <sys/types.h>
12017 #ifdef HAVE_SYS_SOCKET_H
12018 #include <sys/socket.h>
12025 static struct sockaddr_storage ac_aggr;
12026 if (sizeof ac_aggr.ss_len)
12032 rm -f conftest.$ac_objext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034 (eval $ac_compile) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_member_struct_sockaddr_storage_ss_len=no
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12066 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12067 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12075 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12076 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12077 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <sys/types.h>
12087 #ifdef HAVE_SYS_SOCKET_H
12088 #include <sys/socket.h>
12095 static struct sockaddr_storage ac_aggr;
12096 if (ac_aggr.__ss_len)
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #include <sys/types.h>
12136 #ifdef HAVE_SYS_SOCKET_H
12137 #include <sys/socket.h>
12144 static struct sockaddr_storage ac_aggr;
12145 if (sizeof ac_aggr.__ss_len)
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_cv_member_struct_sockaddr_storage___ss_len=no
12180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12185 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12186 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12194 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12195 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12196 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 #include <sys/types.h>
12206 #ifdef HAVE_SYS_SOCKET_H
12207 #include <sys/socket.h>
12214 static struct sockaddr ac_aggr;
12215 if (ac_aggr.sa_len)
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_cv_member_struct_sockaddr_sa_len=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <sys/types.h>
12255 #ifdef HAVE_SYS_SOCKET_H
12256 #include <sys/socket.h>
12263 static struct sockaddr ac_aggr;
12264 if (sizeof ac_aggr.sa_len)
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_member_struct_sockaddr_sa_len=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_member_struct_sockaddr_sa_len=no
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12304 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12305 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12314 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12315 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12316 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 #include <sys/types.h>
12326 #include <sys/socket.h>
12333 if ((struct addrinfo *) 0)
12335 if (sizeof (struct addrinfo))
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343 (eval $ac_compile) 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_c_werror_flag"
12351 || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_type_struct_addrinfo=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12368 ac_cv_type_struct_addrinfo=no
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12373 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12374 if test $ac_cv_type_struct_addrinfo = yes; then
12376 cat >>confdefs.h <<_ACEOF
12377 #define HAVE_STRUCT_ADDRINFO 1
12384 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12385 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12386 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <sys/param.h>
12396 #include <sys/types.h>
12397 #include <sys/socket.h>
12398 #include <sys/ucred.h>
12403 if ((struct cmsgcred *) 0)
12405 if (sizeof (struct cmsgcred))
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_type_struct_cmsgcred=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_cv_type_struct_cmsgcred=no
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12442 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12443 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12444 if test $ac_cv_type_struct_cmsgcred = yes; then
12446 cat >>confdefs.h <<_ACEOF
12447 #define HAVE_STRUCT_CMSGCRED 1
12452 echo "$as_me:$LINENO: checking for struct fcred" >&5
12453 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12454 if test "${ac_cv_type_struct_fcred+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 cat >conftest.$ac_ext <<_ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12463 #include <sys/param.h>
12464 #include <sys/types.h>
12465 #include <sys/socket.h>
12466 #include <sys/ucred.h>
12471 if ((struct fcred *) 0)
12473 if (sizeof (struct fcred))
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>conftest.er1
12483 grep -v '^ *+' conftest.er1 >conftest.err
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -z "$ac_c_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_cv_type_struct_fcred=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_cv_type_struct_fcred=no
12508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12510 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12511 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12512 if test $ac_cv_type_struct_fcred = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define HAVE_STRUCT_FCRED 1
12520 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12521 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12522 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 cat >conftest.$ac_ext <<_ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 #include <sys/param.h>
12532 #include <sys/types.h>
12533 #include <sys/socket.h>
12534 #include <sys/ucred.h>
12539 if ((struct sockcred *) 0)
12541 if (sizeof (struct sockcred))
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 ac_cv_type_struct_sockcred=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_type_struct_sockcred=no
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12579 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12580 if test $ac_cv_type_struct_sockcred = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_STRUCT_SOCKCRED 1
12590 echo "$as_me:$LINENO: checking for struct option" >&5
12591 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12592 if test "${ac_cv_type_struct_option+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 #ifdef HAVE_GETOPT_H
12602 #include <getopt.h>
12608 if ((struct option *) 0)
12610 if (sizeof (struct option))
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_type_struct_option=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_cv_type_struct_option=no
12645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12648 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12649 if test $ac_cv_type_struct_option = yes; then
12651 cat >>confdefs.h <<_ACEOF
12652 #define HAVE_STRUCT_OPTION 1
12659 if test "$with_zlib" = yes; then
12660 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12661 # did not). While we could work around the lack of z_streamp, it
12662 # seems unwise to encourage people to use such old zlib versions...
12663 echo "$as_me:$LINENO: checking for z_streamp" >&5
12664 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12665 if test "${ac_cv_type_z_streamp+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12679 if ((z_streamp *) 0)
12681 if (sizeof (z_streamp))
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 ac_cv_type_z_streamp=yes
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.$ac_ext >&5
12714 ac_cv_type_z_streamp=no
12716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12719 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12720 if test $ac_cv_type_z_streamp = yes; then
12723 { { echo "$as_me:$LINENO: error: zlib version is too old
12724 Use --without-zlib to disable zlib support." >&5
12725 echo "$as_me: error: zlib version is too old
12726 Use --without-zlib to disable zlib support." >&2;}
12727 { (exit 1); exit 1; }; }
12732 if test "$with_krb5" = yes; then
12733 # Check for differences between MIT and Heimdal (KTH) releases
12734 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12735 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12736 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12737 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 cat >conftest.$ac_ext <<_ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12750 static krb5_ticket ac_aggr;
12751 if (ac_aggr.enc_part2)
12757 rm -f conftest.$ac_objext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12759 (eval $ac_compile) 2>conftest.er1
12761 grep -v '^ *+' conftest.er1 >conftest.err
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest.$ac_objext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 ac_cv_member_krb5_ticket_enc_part2=yes
12781 echo "$as_me: failed program was:" >&5
12782 sed 's/^/| /' conftest.$ac_ext >&5
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12795 static krb5_ticket ac_aggr;
12796 if (sizeof ac_aggr.enc_part2)
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_cv_member_krb5_ticket_enc_part2=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 ac_cv_member_krb5_ticket_enc_part2=no
12831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12835 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12836 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12837 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12839 cat >>confdefs.h <<_ACEOF
12840 #define HAVE_KRB5_TICKET_ENC_PART2 1
12845 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12846 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12847 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12861 static krb5_ticket ac_aggr;
12862 if (ac_aggr.client)
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_member_krb5_ticket_client=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 cat >conftest.$ac_ext <<_ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12906 static krb5_ticket ac_aggr;
12907 if (sizeof ac_aggr.client)
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>conftest.er1
12917 grep -v '^ *+' conftest.er1 >conftest.err
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_member_krb5_ticket_client=yes
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_member_krb5_ticket_client=no
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12947 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12948 if test $ac_cv_member_krb5_ticket_client = yes; then
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_KRB5_TICKET_CLIENT 1
12956 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12957 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12958 { (exit 1); exit 1; }; }
12963 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12964 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12965 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12979 static krb5_error ac_aggr;
12980 if (ac_aggr.text.data)
12986 rm -f conftest.$ac_objext
12987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12988 (eval $ac_compile) 2>conftest.er1
12990 grep -v '^ *+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_c_werror_flag"
12996 || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 ac_cv_member_krb5_error_text_data=yes
13010 echo "$as_me: failed program was:" >&5
13011 sed 's/^/| /' conftest.$ac_ext >&5
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13024 static krb5_error ac_aggr;
13025 if (sizeof ac_aggr.text.data)
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_member_krb5_error_text_data=yes
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 ac_cv_member_krb5_error_text_data=no
13060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13064 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13065 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13066 if test $ac_cv_member_krb5_error_text_data = yes; then
13068 cat >>confdefs.h <<_ACEOF
13069 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13074 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13075 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13076 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13090 static krb5_error ac_aggr;
13091 if (ac_aggr.e_data)
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_member_krb5_error_e_data=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13135 static krb5_error ac_aggr;
13136 if (sizeof ac_aggr.e_data)
13142 rm -f conftest.$ac_objext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_c_werror_flag"
13152 || test ! -s conftest.err'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_member_krb5_error_e_data=yes
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_cv_member_krb5_error_e_data=no
13171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13176 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13177 if test $ac_cv_member_krb5_error_e_data = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_KRB5_ERROR_E_DATA 1
13185 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13186 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13187 { (exit 1); exit 1; }; }
13196 ## Functions, global variables
13199 echo "$as_me:$LINENO: checking for int timezone" >&5
13200 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13201 if test "${pgac_cv_var_int_timezone+set}" = set; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13204 cat >conftest.$ac_ext <<_ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13216 res = timezone / 60;
13218 res = _timezone / 60;
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
13233 { ac_try='test -z "$ac_c_werror_flag"
13234 || test ! -s conftest.err'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest$ac_exeext'
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13246 pgac_cv_var_int_timezone=yes
13248 echo "$as_me: failed program was:" >&5
13249 sed 's/^/| /' conftest.$ac_ext >&5
13251 pgac_cv_var_int_timezone=no
13253 rm -f conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13256 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13257 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13258 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_INT_TIMEZONE
13265 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13266 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13267 if test "${ac_cv_func_accept_return+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13270 if test "${ac_cv_func_accept_arg1+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 if test "${ac_cv_func_accept_arg2+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 if test "${ac_cv_func_accept_arg3+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13280 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13281 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13282 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 #ifdef HAVE_SYS_TYPES_H
13290 #include <sys/types.h>
13292 #ifdef HAVE_SYS_SOCKET_H
13293 #include <sys/socket.h>
13295 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest.$ac_objext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 ac_not_found=no; break 4
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13338 if test "$ac_not_found" = yes; then
13339 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13340 echo "$as_me: error: could not determine argument types" >&2;}
13341 { (exit 1); exit 1; }; }
13343 if test "$ac_cv_func_accept_arg3" = "void"; then
13344 ac_cv_func_accept_arg3=int
13354 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
13355 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13357 cat >>confdefs.h <<_ACEOF
13358 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13362 cat >>confdefs.h <<_ACEOF
13363 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13367 cat >>confdefs.h <<_ACEOF
13368 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13372 cat >>confdefs.h <<_ACEOF
13373 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13377 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13378 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13379 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 #include <sys/time.h>
13392 struct timeval *tp;
13393 struct timezone *tzp;
13394 gettimeofday(tp,tzp);
13399 rm -f conftest.$ac_objext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13401 (eval $ac_compile) 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 pgac_cv_func_gettimeofday_1arg=no
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 pgac_cv_func_gettimeofday_1arg=yes
13428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13430 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13431 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13432 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13434 cat >>confdefs.h <<\_ACEOF
13435 #define GETTIMEOFDAY_1ARG
13461 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13464 echo "$as_me:$LINENO: checking for $ac_func" >&5
13465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13466 if eval "test \"\${$as_ac_var+set}\" = set"; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13477 #define $ac_func innocuous_$ac_func
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char $ac_func (); below.
13481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13482 <limits.h> exists even on freestanding compilers. */
13485 # include <limits.h>
13487 # include <assert.h>
13492 /* Override any gcc2 internal prototype to avoid an error. */
13497 /* We use char because int might match the return type of a gcc2
13498 builtin and then its argument prototype would still apply. */
13500 /* The GNU C library defines this for functions which it implements
13501 to always fail with ENOSYS. Some functions are actually named
13502 something starting with __ and the normal name is an alias. */
13503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13506 char (*f) () = $ac_func;
13515 return f != $ac_func;
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13522 (eval $ac_link) 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag"
13530 || test ! -s conftest.err'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest$ac_exeext'
13537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538 (eval $ac_try) 2>&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); }; }; then
13542 eval "$as_ac_var=yes"
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 eval "$as_ac_var=no"
13549 rm -f conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13554 if test `eval echo '${'$as_ac_var'}'` = yes; then
13555 cat >>confdefs.h <<_ACEOF
13556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13564 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13565 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 cat >conftest.$ac_ext <<_ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h. */
13574 #include <unistd.h>
13580 char *p = (char *) fdatasync;
13587 rm -f conftest.$ac_objext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13589 (eval $ac_compile) 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest.$ac_objext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_have_decl_fdatasync=yes
13611 echo "$as_me: failed program was:" >&5
13612 sed 's/^/| /' conftest.$ac_ext >&5
13614 ac_cv_have_decl_fdatasync=no
13616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13619 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13620 if test $ac_cv_have_decl_fdatasync = yes; then
13622 cat >>confdefs.h <<_ACEOF
13623 #define HAVE_DECL_FDATASYNC 1
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_DECL_FDATASYNC 0
13636 echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
13637 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6
13638 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13652 #ifndef posix_fadvise
13653 char *p = (char *) posix_fadvise;
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest.$ac_objext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 ac_cv_have_decl_posix_fadvise=yes
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_cv_have_decl_posix_fadvise=no
13689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13691 echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
13692 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6
13693 if test $ac_cv_have_decl_posix_fadvise = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_DECL_POSIX_FADVISE 1
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_DECL_POSIX_FADVISE 0
13709 echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
13710 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6
13711 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13725 char *p = (char *) strlcpy;
13732 rm -f conftest.$ac_objext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>conftest.er1
13736 grep -v '^ *+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } &&
13741 { ac_try='test -z "$ac_c_werror_flag"
13742 || test ! -s conftest.err'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; } &&
13748 { ac_try='test -s conftest.$ac_objext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 ac_cv_have_decl_strlcpy=yes
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.$ac_ext >&5
13759 ac_cv_have_decl_strlcpy=no
13761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13763 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
13764 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6
13765 if test $ac_cv_have_decl_strlcpy = yes; then
13767 cat >>confdefs.h <<_ACEOF
13768 #define HAVE_DECL_STRLCPY 1
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_DECL_STRLCPY 0
13781 # This is probably only present on Darwin, but may as well check always
13782 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13783 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13784 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13798 #ifndef F_FULLFSYNC
13799 char *p = (char *) F_FULLFSYNC;
13806 rm -f conftest.$ac_objext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>conftest.er1
13810 grep -v '^ *+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } &&
13815 { ac_try='test -z "$ac_c_werror_flag"
13816 || test ! -s conftest.err'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; } &&
13822 { ac_try='test -s conftest.$ac_objext'
13823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13824 (eval $ac_try) 2>&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; }; then
13828 ac_cv_have_decl_F_FULLFSYNC=yes
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13833 ac_cv_have_decl_F_FULLFSYNC=no
13835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13838 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13839 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_DECL_F_FULLFSYNC 1
13847 cat >>confdefs.h <<_ACEOF
13848 #define HAVE_DECL_F_FULLFSYNC 0
13857 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13858 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13859 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13869 #include <netinet/in.h>
13874 if ((struct sockaddr_in6 *) 0)
13876 if (sizeof (struct sockaddr_in6))
13882 rm -f conftest.$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag"
13892 || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13904 ac_cv_type_struct_sockaddr_in6=yes
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ac_cv_type_struct_sockaddr_in6=no
13911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13914 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13915 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_IPV6 1
13926 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13927 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13928 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13937 #include <machine/vmparam.h>
13938 #include <sys/exec.h>
13943 PS_STRINGS->ps_nargvstr = 1;
13944 PS_STRINGS->ps_argvstr = "foo";
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 (eval $ac_link) 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 pgac_cv_var_PS_STRINGS=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 pgac_cv_var_PS_STRINGS=no
13978 rm -f conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13981 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13982 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13983 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13985 cat >>confdefs.h <<\_ACEOF
13986 #define HAVE_PS_STRINGS
13992 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13993 # is missing. Yes, there are machines that have only one. We may
13994 # also decide to use snprintf.c if snprintf() is present but does not
13995 # have all the features we need --- see below.
13997 if test "$PORTNAME" = "win32"; then
13998 # Win32 gets snprintf.c built unconditionally.
14000 # To properly translate all NLS languages strings, we must support the
14001 # *printf() %$ format, which allows *printf() arguments to be selected
14002 # by position in the translated string.
14004 # libintl versions < 0.13 use the native *printf() functions, and Win32
14005 # *printf() doesn't understand %$, so we must use our /port versions,
14006 # which do understand %$. libintl versions >= 0.13 include their own
14007 # *printf versions on Win32. The libintl 0.13 release note text is:
14009 # C format strings with positions, as they arise when a translator
14010 # needs to reorder a sentence, are now supported on all platforms.
14011 # On those few platforms (NetBSD and Woe32) for which the native
14012 # printf()/fprintf()/... functions don't support such format
14013 # strings, replacements are provided through <libintl.h>.
14015 # We could use libintl >= 0.13's *printf() if we were sure that we had
14016 # a litint >= 0.13 at runtime, but seeing that there is no clean way
14017 # to guarantee that, it is best to just use our own, so we are sure to
14018 # get %$ support. In include/port.h we disable the *printf() macros
14019 # that might have been defined by libintl.
14021 # We do this unconditionally whether NLS is used or not so we are sure
14022 # that all Win32 libraries and binaries behave the same.
14023 pgac_need_repl_snprintf=yes
14025 pgac_need_repl_snprintf=no
14027 for ac_func in snprintf
14029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14030 echo "$as_me:$LINENO: checking for $ac_func" >&5
14031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_var+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14043 #define $ac_func innocuous_$ac_func
14045 /* System header to define __stub macros and hopefully few prototypes,
14046 which can conflict with char $ac_func (); below.
14047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14048 <limits.h> exists even on freestanding compilers. */
14051 # include <limits.h>
14053 # include <assert.h>
14058 /* Override any gcc2 internal prototype to avoid an error. */
14063 /* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14072 char (*f) () = $ac_func;
14081 return f != $ac_func;
14086 rm -f conftest.$ac_objext conftest$ac_exeext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14088 (eval $ac_link) 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag"
14096 || test ! -s conftest.err'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; } &&
14102 { ac_try='test -s conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 eval "$as_ac_var=yes"
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 eval "$as_ac_var=no"
14115 rm -f conftest.err conftest.$ac_objext \
14116 conftest$ac_exeext conftest.$ac_ext
14118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14120 if test `eval echo '${'$as_ac_var'}'` = yes; then
14121 cat >>confdefs.h <<_ACEOF
14122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14126 pgac_need_repl_snprintf=yes
14131 for ac_func in vsnprintf
14133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14134 echo "$as_me:$LINENO: checking for $ac_func" >&5
14135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14136 if eval "test \"\${$as_ac_var+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 cat >conftest.$ac_ext <<_ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14147 #define $ac_func innocuous_$ac_func
14149 /* System header to define __stub macros and hopefully few prototypes,
14150 which can conflict with char $ac_func (); below.
14151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14152 <limits.h> exists even on freestanding compilers. */
14155 # include <limits.h>
14157 # include <assert.h>
14162 /* Override any gcc2 internal prototype to avoid an error. */
14167 /* We use char because int might match the return type of a gcc2
14168 builtin and then its argument prototype would still apply. */
14170 /* The GNU C library defines this for functions which it implements
14171 to always fail with ENOSYS. Some functions are actually named
14172 something starting with __ and the normal name is an alias. */
14173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14176 char (*f) () = $ac_func;
14185 return f != $ac_func;
14190 rm -f conftest.$ac_objext conftest$ac_exeext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14192 (eval $ac_link) 2>conftest.er1
14194 grep -v '^ *+' conftest.er1 >conftest.err
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } &&
14199 { ac_try='test -z "$ac_c_werror_flag"
14200 || test ! -s conftest.err'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest$ac_exeext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 eval "$as_ac_var=yes"
14214 echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14217 eval "$as_ac_var=no"
14219 rm -f conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14224 if test `eval echo '${'$as_ac_var'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14230 pgac_need_repl_snprintf=yes
14237 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14238 # include/c.h will provide declarations. Note this is a separate test
14239 # from whether the functions exist in the C library --- there are
14240 # systems that have the functions but don't bother to declare them :-(
14242 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14243 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14244 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14247 cat >conftest.$ac_ext <<_ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14258 char *p = (char *) snprintf;
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14269 grep -v '^ *+' conftest.er1 >conftest.err
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_cv_have_decl_snprintf=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 ac_cv_have_decl_snprintf=no
14294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14297 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14298 if test $ac_cv_have_decl_snprintf = yes; then
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE_DECL_SNPRINTF 1
14306 cat >>confdefs.h <<_ACEOF
14307 #define HAVE_DECL_SNPRINTF 0
14312 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14313 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14314 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14328 char *p = (char *) vsnprintf;
14335 rm -f conftest.$ac_objext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14337 (eval $ac_compile) 2>conftest.er1
14339 grep -v '^ *+' conftest.er1 >conftest.err
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_have_decl_vsnprintf=yes
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_have_decl_vsnprintf=no
14364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14367 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14368 if test $ac_cv_have_decl_vsnprintf = yes; then
14370 cat >>confdefs.h <<_ACEOF
14371 #define HAVE_DECL_VSNPRINTF 1
14376 cat >>confdefs.h <<_ACEOF
14377 #define HAVE_DECL_VSNPRINTF 0
14386 echo "$as_me:$LINENO: checking for isinf" >&5
14387 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14388 if test "${ac_cv_func_isinf+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14399 double glob_double;
14404 return isinf(glob_double) ? 0 : 1;
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_func_isinf=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_cv_func_isinf=no
14438 rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14441 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14442 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14444 if test $ac_cv_func_isinf = yes ; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_ISINF 1
14452 "isinf.$ac_objext" | \
14453 *" isinf.$ac_objext" | \
14454 "isinf.$ac_objext "* | \
14455 *" isinf.$ac_objext "* ) ;;
14456 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14459 # Look for a way to implement a substitute for isinf()
14464 for ac_func in fpclass fp_class fp_class_d class
14466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14467 echo "$as_me:$LINENO: checking for $ac_func" >&5
14468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_var+set}\" = set"; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14480 #define $ac_func innocuous_$ac_func
14482 /* System header to define __stub macros and hopefully few prototypes,
14483 which can conflict with char $ac_func (); below.
14484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485 <limits.h> exists even on freestanding compilers. */
14488 # include <limits.h>
14490 # include <assert.h>
14495 /* Override any gcc2 internal prototype to avoid an error. */
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14503 /* The GNU C library defines this for functions which it implements
14504 to always fail with ENOSYS. Some functions are actually named
14505 something starting with __ and the normal name is an alias. */
14506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14509 char (*f) () = $ac_func;
14518 return f != $ac_func;
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>conftest.er1
14527 grep -v '^ *+' conftest.er1 >conftest.err
14529 cat conftest.err >&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -z "$ac_c_werror_flag"
14533 || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest$ac_exeext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 eval "$as_ac_var=yes"
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 eval "$as_ac_var=no"
14552 rm -f conftest.err conftest.$ac_objext \
14553 conftest$ac_exeext conftest.$ac_ext
14555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14557 if test `eval echo '${'$as_ac_var'}'` = yes; then
14558 cat >>confdefs.h <<_ACEOF
14559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcpy strtol strtoul unsetenv
14583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14584 echo "$as_me:$LINENO: checking for $ac_func" >&5
14585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14586 if eval "test \"\${$as_ac_var+set}\" = set"; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 cat >conftest.$ac_ext <<_ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14597 #define $ac_func innocuous_$ac_func
14599 /* System header to define __stub macros and hopefully few prototypes,
14600 which can conflict with char $ac_func (); below.
14601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14602 <limits.h> exists even on freestanding compilers. */
14605 # include <limits.h>
14607 # include <assert.h>
14612 /* Override any gcc2 internal prototype to avoid an error. */
14617 /* We use char because int might match the return type of a gcc2
14618 builtin and then its argument prototype would still apply. */
14620 /* The GNU C library defines this for functions which it implements
14621 to always fail with ENOSYS. Some functions are actually named
14622 something starting with __ and the normal name is an alias. */
14623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14626 char (*f) () = $ac_func;
14635 return f != $ac_func;
14640 rm -f conftest.$ac_objext conftest$ac_exeext
14641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14642 (eval $ac_link) 2>conftest.er1
14644 grep -v '^ *+' conftest.er1 >conftest.err
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } &&
14649 { ac_try='test -z "$ac_c_werror_flag"
14650 || test ! -s conftest.err'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; } &&
14656 { ac_try='test -s conftest$ac_exeext'
14657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14658 (eval $ac_try) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 eval "$as_ac_var=yes"
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 eval "$as_ac_var=no"
14669 rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
14672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14674 if test `eval echo '${'$as_ac_var'}'` = yes; then
14675 cat >>confdefs.h <<_ACEOF
14676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14681 "$ac_func.$ac_objext" | \
14682 *" $ac_func.$ac_objext" | \
14683 "$ac_func.$ac_objext "* | \
14684 *" $ac_func.$ac_objext "* ) ;;
14685 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14693 # System's version of getaddrinfo(), if any, may be used only if we found
14694 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14695 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14696 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14697 # because we want to use our own getaddrinfo.c on Windows anyway.)
14698 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14700 for ac_func in getaddrinfo
14702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14703 echo "$as_me:$LINENO: checking for $ac_func" >&5
14704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14705 if eval "test \"\${$as_ac_var+set}\" = set"; then
14706 echo $ECHO_N "(cached) $ECHO_C" >&6
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14716 #define $ac_func innocuous_$ac_func
14718 /* System header to define __stub macros and hopefully few prototypes,
14719 which can conflict with char $ac_func (); below.
14720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14721 <limits.h> exists even on freestanding compilers. */
14724 # include <limits.h>
14726 # include <assert.h>
14731 /* Override any gcc2 internal prototype to avoid an error. */
14736 /* We use char because int might match the return type of a gcc2
14737 builtin and then its argument prototype would still apply. */
14739 /* The GNU C library defines this for functions which it implements
14740 to always fail with ENOSYS. Some functions are actually named
14741 something starting with __ and the normal name is an alias. */
14742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14745 char (*f) () = $ac_func;
14754 return f != $ac_func;
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14761 (eval $ac_link) 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -z "$ac_c_werror_flag"
14769 || test ! -s conftest.err'
14770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14771 (eval $ac_try) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14781 eval "$as_ac_var=yes"
14783 echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 eval "$as_ac_var=no"
14788 rm -f conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14793 if test `eval echo '${'$as_ac_var'}'` = yes; then
14794 cat >>confdefs.h <<_ACEOF
14795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14800 "$ac_func.$ac_objext" | \
14801 *" $ac_func.$ac_objext" | \
14802 "$ac_func.$ac_objext "* | \
14803 *" $ac_func.$ac_objext "* ) ;;
14804 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14813 "getaddrinfo.$ac_objext" | \
14814 *" getaddrinfo.$ac_objext" | \
14815 "getaddrinfo.$ac_objext "* | \
14816 *" getaddrinfo.$ac_objext "* ) ;;
14817 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14822 # similarly, use system's getopt_long() only if system provides struct option.
14823 if test x"$ac_cv_type_struct_option" = xyes ; then
14825 for ac_func in getopt_long
14827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$as_ac_var+set}\" = set"; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14841 #define $ac_func innocuous_$ac_func
14843 /* System header to define __stub macros and hopefully few prototypes,
14844 which can conflict with char $ac_func (); below.
14845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14846 <limits.h> exists even on freestanding compilers. */
14849 # include <limits.h>
14851 # include <assert.h>
14856 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14864 /* The GNU C library defines this for functions which it implements
14865 to always fail with ENOSYS. Some functions are actually named
14866 something starting with __ and the normal name is an alias. */
14867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14870 char (*f) () = $ac_func;
14879 return f != $ac_func;
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886 (eval $ac_link) 2>conftest.er1
14888 grep -v '^ *+' conftest.er1 >conftest.err
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
14893 { ac_try='test -z "$ac_c_werror_flag"
14894 || test ! -s conftest.err'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest$ac_exeext'
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 eval "$as_ac_var=yes"
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 eval "$as_ac_var=no"
14913 rm -f conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14918 if test `eval echo '${'$as_ac_var'}'` = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14925 "$ac_func.$ac_objext" | \
14926 *" $ac_func.$ac_objext" | \
14927 "$ac_func.$ac_objext "* | \
14928 *" $ac_func.$ac_objext "* ) ;;
14929 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14938 "getopt_long.$ac_objext" | \
14939 *" getopt_long.$ac_objext" | \
14940 "getopt_long.$ac_objext "* | \
14941 *" getopt_long.$ac_objext "* ) ;;
14942 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14947 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14948 # We override the previous test that said fseeko/ftello didn't exist
14949 # OS tests are also done in include/c.h and port/fseeko.c
14950 case $host_os in bsdi*|netbsd*)
14951 ac_cv_func_fseeko=yes
14954 # Solaris has a very slow qsort in certain cases, so we replace it:
14955 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14956 # Supposedly it is fixed in Solaris, but not sure which version, and
14957 # no confirmed testing. 2005-12-16
14958 if test "$PORTNAME" = "solaris"; then
14960 "qsort.$ac_objext" | \
14961 *" qsort.$ac_objext" | \
14962 "qsort.$ac_objext "* | \
14963 *" qsort.$ac_objext "* ) ;;
14964 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14970 if test "$PORTNAME" = "win32"; then
14972 "gettimeofday.$ac_objext" | \
14973 *" gettimeofday.$ac_objext" | \
14974 "gettimeofday.$ac_objext "* | \
14975 *" gettimeofday.$ac_objext "* ) ;;
14976 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14980 "kill.$ac_objext" | \
14981 *" kill.$ac_objext" | \
14982 "kill.$ac_objext "* | \
14983 *" kill.$ac_objext "* ) ;;
14984 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14988 "open.$ac_objext" | \
14989 *" open.$ac_objext" | \
14990 "open.$ac_objext "* | \
14991 *" open.$ac_objext "* ) ;;
14992 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14996 "rand.$ac_objext" | \
14997 *" rand.$ac_objext" | \
14998 "rand.$ac_objext "* | \
14999 *" rand.$ac_objext "* ) ;;
15000 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
15004 "win32error.$ac_objext" | \
15005 *" win32error.$ac_objext" | \
15006 "win32error.$ac_objext "* | \
15007 *" win32error.$ac_objext "* ) ;;
15008 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" ;;
15012 cat >>confdefs.h <<\_ACEOF
15013 #define HAVE_SYMLINK 1
15018 if test "$with_readline" = yes; then
15019 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
15020 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15028 #ifdef HAVE_READLINE_READLINE_H
15029 # include <readline/readline.h>
15030 #elif defined(HAVE_READLINE_H)
15031 # include <readline.h>
15037 rl_completion_append_character = 'x';
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15044 (eval $ac_link) 2>conftest.er1
15046 grep -v '^ *+' conftest.er1 >conftest.err
15048 cat conftest.err >&5
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -z "$ac_c_werror_flag"
15052 || test ! -s conftest.err'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; } &&
15058 { ac_try='test -s conftest$ac_exeext'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15064 echo "$as_me:$LINENO: result: yes" >&5
15065 echo "${ECHO_T}yes" >&6
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15075 echo "$as_me:$LINENO: result: no" >&5
15076 echo "${ECHO_T}no" >&6
15078 rm -f conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15082 for ac_func in rl_completion_matches rl_filename_completion_function
15084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15085 echo "$as_me:$LINENO: checking for $ac_func" >&5
15086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15087 if eval "test \"\${$as_ac_var+set}\" = set"; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15098 #define $ac_func innocuous_$ac_func
15100 /* System header to define __stub macros and hopefully few prototypes,
15101 which can conflict with char $ac_func (); below.
15102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15103 <limits.h> exists even on freestanding compilers. */
15106 # include <limits.h>
15108 # include <assert.h>
15113 /* Override any gcc2 internal prototype to avoid an error. */
15118 /* We use char because int might match the return type of a gcc2
15119 builtin and then its argument prototype would still apply. */
15121 /* The GNU C library defines this for functions which it implements
15122 to always fail with ENOSYS. Some functions are actually named
15123 something starting with __ and the normal name is an alias. */
15124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15127 char (*f) () = $ac_func;
15136 return f != $ac_func;
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -z "$ac_c_werror_flag"
15151 || test ! -s conftest.err'
15152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153 (eval $ac_try) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 eval "$as_ac_var=yes"
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 eval "$as_ac_var=no"
15170 rm -f conftest.err conftest.$ac_objext \
15171 conftest$ac_exeext conftest.$ac_ext
15173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15175 if test `eval echo '${'$as_ac_var'}'` = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15184 for ac_func in replace_history_entry
15186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15187 echo "$as_me:$LINENO: checking for $ac_func" >&5
15188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15189 if eval "test \"\${$as_ac_var+set}\" = set"; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15200 #define $ac_func innocuous_$ac_func
15202 /* System header to define __stub macros and hopefully few prototypes,
15203 which can conflict with char $ac_func (); below.
15204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15205 <limits.h> exists even on freestanding compilers. */
15208 # include <limits.h>
15210 # include <assert.h>
15215 /* Override any gcc2 internal prototype to avoid an error. */
15220 /* We use char because int might match the return type of a gcc2
15221 builtin and then its argument prototype would still apply. */
15223 /* The GNU C library defines this for functions which it implements
15224 to always fail with ENOSYS. Some functions are actually named
15225 something starting with __ and the normal name is an alias. */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15229 char (*f) () = $ac_func;
15238 return f != $ac_func;
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15245 (eval $ac_link) 2>conftest.er1
15247 grep -v '^ *+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -z "$ac_c_werror_flag"
15253 || test ! -s conftest.err'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; } &&
15259 { ac_try='test -s conftest$ac_exeext'
15260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15265 eval "$as_ac_var=yes"
15267 echo "$as_me: failed program was:" >&5
15268 sed 's/^/| /' conftest.$ac_ext >&5
15270 eval "$as_ac_var=no"
15272 rm -f conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15277 if test `eval echo '${'$as_ac_var'}'` = yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15288 echo "$as_me:$LINENO: checking for finite" >&5
15289 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15298 double glob_double;
15303 return finite(glob_double) ? 0 : 1;
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15310 (eval $ac_link) 2>conftest.er1
15312 grep -v '^ *+' conftest.er1 >conftest.err
15314 cat conftest.err >&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } &&
15317 { ac_try='test -z "$ac_c_werror_flag"
15318 || test ! -s conftest.err'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; } &&
15324 { ac_try='test -s conftest$ac_exeext'
15325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326 (eval $ac_try) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_FINITE 1
15335 echo "$as_me:$LINENO: result: yes" >&5
15336 echo "${ECHO_T}yes" >&6
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 echo "$as_me:$LINENO: result: no" >&5
15342 echo "${ECHO_T}no" >&6
15344 rm -f conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15347 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15348 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 #include <setjmp.h>
15359 sigjmp_buf x; sigsetjmp(x, 1);
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>conftest.er1
15368 grep -v '^ *+' conftest.er1 >conftest.err
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } &&
15373 { ac_try='test -z "$ac_c_werror_flag"
15374 || test ! -s conftest.err'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15387 cat >>confdefs.h <<\_ACEOF
15388 #define HAVE_SIGSETJMP 1
15391 echo "$as_me:$LINENO: result: yes" >&5
15392 echo "${ECHO_T}yes" >&6
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15397 echo "$as_me:$LINENO: result: no" >&5
15398 echo "${ECHO_T}no" >&6
15400 rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
15403 echo "$as_me:$LINENO: checking for syslog" >&5
15404 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15405 if test "${ac_cv_func_syslog+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15416 #define syslog innocuous_syslog
15418 /* System header to define __stub macros and hopefully few prototypes,
15419 which can conflict with char syslog (); below.
15420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15421 <limits.h> exists even on freestanding compilers. */
15424 # include <limits.h>
15426 # include <assert.h>
15431 /* Override any gcc2 internal prototype to avoid an error. */
15436 /* We use char because int might match the return type of a gcc2
15437 builtin and then its argument prototype would still apply. */
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_syslog) || defined (__stub___syslog)
15445 char (*f) () = syslog;
15454 return f != syslog;
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest$ac_exeext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 ac_cv_func_syslog=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 ac_cv_func_syslog=no
15488 rm -f conftest.err conftest.$ac_objext \
15489 conftest$ac_exeext conftest.$ac_ext
15491 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15492 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15493 if test $ac_cv_func_syslog = yes; then
15494 if test "${ac_cv_header_syslog_h+set}" = set; then
15495 echo "$as_me:$LINENO: checking for syslog.h" >&5
15496 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15497 if test "${ac_cv_header_syslog_h+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15501 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15503 # Is the header compilable?
15504 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15505 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15513 #include <syslog.h>
15515 rm -f conftest.$ac_objext
15516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15517 (eval $ac_compile) 2>conftest.er1
15519 grep -v '^ *+' conftest.er1 >conftest.err
15521 cat conftest.err >&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -z "$ac_c_werror_flag"
15525 || test ! -s conftest.err'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_header_compiler=yes
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15542 ac_header_compiler=no
15544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15546 echo "${ECHO_T}$ac_header_compiler" >&6
15548 # Is the header present?
15549 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15550 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15551 cat >conftest.$ac_ext <<_ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h. */
15557 #include <syslog.h>
15559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15584 rm -f conftest.err conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15586 echo "${ECHO_T}$ac_header_preproc" >&6
15588 # So? What about this header?
15589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15591 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15592 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15593 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15594 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15595 ac_header_preproc=yes
15598 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15599 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15601 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15603 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15605 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15606 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15607 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15608 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15609 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15612 ## ---------------------------------------- ##
15613 ## Report this to pgsql-bugs@postgresql.org ##
15614 ## ---------------------------------------- ##
15617 sed "s/^/$as_me: WARNING: /" >&2
15620 echo "$as_me:$LINENO: checking for syslog.h" >&5
15621 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15622 if test "${ac_cv_header_syslog_h+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 ac_cv_header_syslog_h=$ac_header_preproc
15627 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15628 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15631 if test $ac_cv_header_syslog_h = yes; then
15633 cat >>confdefs.h <<\_ACEOF
15634 #define HAVE_SYSLOG 1
15643 echo "$as_me:$LINENO: checking for optreset" >&5
15644 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15645 if test "${pgac_cv_var_int_optreset+set}" = set; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15651 cat confdefs.h >>conftest.$ac_ext
15652 cat >>conftest.$ac_ext <<_ACEOF
15653 /* end confdefs.h. */
15654 #include <unistd.h>
15658 extern int optreset; optreset = 1;
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15665 (eval $ac_link) 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } &&
15672 { ac_try='test -z "$ac_c_werror_flag"
15673 || test ! -s conftest.err'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest$ac_exeext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 pgac_cv_var_int_optreset=yes
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 pgac_cv_var_int_optreset=no
15692 rm -f conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15695 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15696 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15697 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_INT_OPTRESET 1
15707 for ac_func in strtoll strtoq
15709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15710 echo "$as_me:$LINENO: checking for $ac_func" >&5
15711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15712 if eval "test \"\${$as_ac_var+set}\" = set"; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 cat >conftest.$ac_ext <<_ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15723 #define $ac_func innocuous_$ac_func
15725 /* System header to define __stub macros and hopefully few prototypes,
15726 which can conflict with char $ac_func (); below.
15727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15728 <limits.h> exists even on freestanding compilers. */
15731 # include <limits.h>
15733 # include <assert.h>
15738 /* Override any gcc2 internal prototype to avoid an error. */
15743 /* We use char because int might match the return type of a gcc2
15744 builtin and then its argument prototype would still apply. */
15746 /* The GNU C library defines this for functions which it implements
15747 to always fail with ENOSYS. Some functions are actually named
15748 something starting with __ and the normal name is an alias. */
15749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15752 char (*f) () = $ac_func;
15761 return f != $ac_func;
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15768 (eval $ac_link) 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag"
15776 || test ! -s conftest.err'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; } &&
15782 { ac_try='test -s conftest$ac_exeext'
15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784 (eval $ac_try) 2>&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); }; }; then
15788 eval "$as_ac_var=yes"
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 eval "$as_ac_var=no"
15795 rm -f conftest.err conftest.$ac_objext \
15796 conftest$ac_exeext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801 cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15810 for ac_func in strtoull strtouq
15812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15813 echo "$as_me:$LINENO: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$as_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 cat >conftest.$ac_ext <<_ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15826 #define $ac_func innocuous_$ac_func
15828 /* System header to define __stub macros and hopefully few prototypes,
15829 which can conflict with char $ac_func (); below.
15830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15831 <limits.h> exists even on freestanding compilers. */
15834 # include <limits.h>
15836 # include <assert.h>
15841 /* Override any gcc2 internal prototype to avoid an error. */
15846 /* We use char because int might match the return type of a gcc2
15847 builtin and then its argument prototype would still apply. */
15849 /* The GNU C library defines this for functions which it implements
15850 to always fail with ENOSYS. Some functions are actually named
15851 something starting with __ and the normal name is an alias. */
15852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15855 char (*f) () = $ac_func;
15864 return f != $ac_func;
15869 rm -f conftest.$ac_objext conftest$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest$ac_exeext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 eval "$as_ac_var=yes"
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 eval "$as_ac_var=no"
15898 rm -f conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15903 if test `eval echo '${'$as_ac_var'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15912 # Check for one of atexit() or on_exit()
15914 for ac_func in atexit
15916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15917 echo "$as_me:$LINENO: checking for $ac_func" >&5
15918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15919 if eval "test \"\${$as_ac_var+set}\" = set"; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15930 #define $ac_func innocuous_$ac_func
15932 /* System header to define __stub macros and hopefully few prototypes,
15933 which can conflict with char $ac_func (); below.
15934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15935 <limits.h> exists even on freestanding compilers. */
15938 # include <limits.h>
15940 # include <assert.h>
15945 /* Override any gcc2 internal prototype to avoid an error. */
15950 /* We use char because int might match the return type of a gcc2
15951 builtin and then its argument prototype would still apply. */
15953 /* The GNU C library defines this for functions which it implements
15954 to always fail with ENOSYS. Some functions are actually named
15955 something starting with __ and the normal name is an alias. */
15956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15959 char (*f) () = $ac_func;
15968 return f != $ac_func;
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15975 (eval $ac_link) 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag"
15983 || test ! -s conftest.err'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } &&
15989 { ac_try='test -s conftest$ac_exeext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15995 eval "$as_ac_var=yes"
15997 echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 eval "$as_ac_var=no"
16002 rm -f conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16007 if test `eval echo '${'$as_ac_var'}'` = yes; then
16008 cat >>confdefs.h <<_ACEOF
16009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16014 for ac_func in on_exit
16016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16017 echo "$as_me:$LINENO: checking for $ac_func" >&5
16018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16019 if eval "test \"\${$as_ac_var+set}\" = set"; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 cat >conftest.$ac_ext <<_ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16030 #define $ac_func innocuous_$ac_func
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char $ac_func (); below.
16034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035 <limits.h> exists even on freestanding compilers. */
16038 # include <limits.h>
16040 # include <assert.h>
16045 /* Override any gcc2 internal prototype to avoid an error. */
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16053 /* The GNU C library defines this for functions which it implements
16054 to always fail with ENOSYS. Some functions are actually named
16055 something starting with __ and the normal name is an alias. */
16056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16059 char (*f) () = $ac_func;
16068 return f != $ac_func;
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>conftest.er1
16077 grep -v '^ *+' conftest.er1 >conftest.err
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 eval "$as_ac_var=yes"
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 eval "$as_ac_var=no"
16102 rm -f conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16107 if test `eval echo '${'$as_ac_var'}'` = yes; then
16108 cat >>confdefs.h <<_ACEOF
16109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16113 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16114 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16115 { (exit 1); exit 1; }; }
16123 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16124 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16125 if test "${ac_cv_sys_largefile_source+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 ac_cv_sys_largefile_source=no
16130 cat >conftest.$ac_ext <<_ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 #define _LARGEFILE_SOURCE 1
16190 rm -f conftest.$ac_objext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192 (eval $ac_compile) 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag"
16200 || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest.$ac_objext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16212 ac_cv_sys_largefile_source=1; break
16214 echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16223 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16224 if test "$ac_cv_sys_largefile_source" != no; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16233 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16234 # in glibc 2.1.3, but that breaks too many other things.
16235 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16236 echo "$as_me:$LINENO: checking for fseeko" >&5
16237 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16238 if test "${ac_cv_func_fseeko+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16251 return fseeko && fseeko (stdin, 0, 0);
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258 (eval $ac_link) 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } &&
16265 { ac_try='test -z "$ac_c_werror_flag"
16266 || test ! -s conftest.err'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; } &&
16272 { ac_try='test -s conftest$ac_exeext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 ac_cv_func_fseeko=yes
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 ac_cv_func_fseeko=no
16285 rm -f conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
16288 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16289 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16290 if test $ac_cv_func_fseeko = yes; then
16292 cat >>confdefs.h <<\_ACEOF
16293 #define HAVE_FSEEKO 1
16302 # For each platform, we need to know about any special compile and link
16303 # libraries, and whether the normal C function names are thread-safe.
16304 # See the comment at the top of src/port/thread.c for more information.
16306 if test "$enable_thread_safety" = yes; then
16312 ac_cpp='$CPP $CPPFLAGS'
16313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16319 # We used to check for pthread.h first, but this fails if pthread.h
16320 # requires special compiler flags (e.g. on True64 or Sequent).
16321 # It gets checked for in the link test anyway.
16323 # First of all, check if the user has set any of the PTHREAD_LIBS,
16324 # etcetera environment variables, and if threads linking works using
16326 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16327 save_CFLAGS="$CFLAGS"
16328 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16330 LIBS="$PTHREAD_LIBS $LIBS"
16331 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16332 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h. */
16340 /* Override any gcc2 internal prototype to avoid an error. */
16344 /* We use char because int might match the return type of a gcc2
16345 builtin and then its argument prototype would still apply. */
16346 char pthread_join ();
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16357 (eval $ac_link) 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } &&
16364 { ac_try='test -z "$ac_c_werror_flag"
16365 || test ! -s conftest.err'
16366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); }; } &&
16371 { ac_try='test -s conftest$ac_exeext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16383 rm -f conftest.err conftest.$ac_objext \
16384 conftest$ac_exeext conftest.$ac_ext
16385 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16386 echo "${ECHO_T}$acx_pthread_ok" >&6
16387 if test x"$acx_pthread_ok" = xno; then
16392 CFLAGS="$save_CFLAGS"
16395 # We must check for the threads library under a number of different
16396 # names; the ordering is very important because some systems
16397 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16398 # libraries is broken (non-POSIX).
16400 # Create a list of thread flags to try. Items starting with a "-" are
16401 # C compiler flags, and other items are library names, except for "none"
16402 # which indicates that we try without any flags at all, and "pthread-config"
16403 # which is a program returning the flags for the Pth emulation library.
16405 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16407 # The ordering *is* (sometimes) important. Some notes on the
16408 # individual items follow:
16410 # pthreads: AIX (must check this before -lpthread)
16411 # none: in case threads are in libc; should be tried before -Kthread and
16412 # other compiler flags to prevent continual compiler warnings
16413 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16414 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16415 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16416 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16417 # -pthreads: Solaris/gcc
16418 # -mthreads: Mingw32/gcc, Lynx/gcc
16419 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16420 # doesn't hurt to check since this sometimes defines pthreads too;
16421 # also defines -D_REENTRANT)
16422 # pthread: Linux, etcetera
16423 # --thread-safe: KAI C++
16424 # pthread-config: use pthread-config program (for GNU Pth library)
16426 case "${host_cpu}-${host_os}" in
16429 # On Solaris (at least, for some versions), libc contains stubbed
16430 # (non-functional) versions of the pthreads routines, so link-based
16431 # tests will erroneously succeed. (We need to link with -pthread or
16432 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16433 # a function called by this macro, so we could check for that, but
16434 # who knows whether they'll stub that too in a future libc.) So,
16435 # we'll just look for -pthreads and -lpthread first:
16437 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16441 if test x"$acx_pthread_ok" = xno; then
16442 for flag in $acx_pthread_flags; do
16444 tryPTHREAD_CFLAGS=""
16448 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16449 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16453 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16454 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16455 tryPTHREAD_CFLAGS="$flag"
16459 # skip this if we already have flags defined, for PostgreSQL
16460 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16461 # Extract the first word of "pthread-config", so it can be a program name with args.
16462 set dummy pthread-config; ac_word=$2
16463 echo "$as_me:$LINENO: checking for $ac_word" >&5
16464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16465 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 if test -n "$acx_pthread_config"; then
16469 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472 for as_dir in $PATH
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
16477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16478 ac_cv_prog_acx_pthread_config="yes"
16479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16488 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16489 if test -n "$acx_pthread_config"; then
16490 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16491 echo "${ECHO_T}$acx_pthread_config" >&6
16493 echo "$as_me:$LINENO: result: no" >&5
16494 echo "${ECHO_T}no" >&6
16497 if test x"$acx_pthread_config" = xno; then continue; fi
16498 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16499 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16503 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16504 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16505 tryPTHREAD_LIBS="-l$flag"
16510 save_CFLAGS="$CFLAGS"
16511 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16512 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16514 # Check for various functions. We must include pthread.h,
16515 # since some functions may be macros. (On the Sequent, we
16516 # need a special flag -Kthread to make this header compile.)
16517 # We check for pthread_join because it is in -lpthread on IRIX
16518 # while pthread_create is in libc. We check for pthread_attr_init
16519 # due to DEC craziness with -lpthreads. We check for
16520 # pthread_cleanup_push because it is one of the few pthread
16521 # functions on Solaris that doesn't have a non-functional libc stub.
16522 # We try pthread_create on general principles.
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 #include <pthread.h>
16533 pthread_t th; pthread_join(th, 0);
16534 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16535 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16540 rm -f conftest.$ac_objext conftest$ac_exeext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16542 (eval $ac_link) 2>conftest.er1
16544 grep -v '^ *+' conftest.er1 >conftest.err
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -z "$ac_c_werror_flag"
16550 || test ! -s conftest.err'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest$ac_exeext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16569 rm -f conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16572 if test "x$acx_pthread_ok" = xyes; then
16573 # Don't use options that are ignored by the compiler.
16574 # We find them by checking stderror.
16575 cat >conftest.$ac_ext <<_ACEOF
16577 main (int argc, char **argv)
16584 rm -f conftest.$ac_objext conftest$ac_exeext
16585 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16586 # we continue with more flags because Linux needs -lpthread
16587 # for libpq builds on PostgreSQL. The test above only
16588 # tests for building binaries, not shared libraries.
16589 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16590 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16591 else acx_pthread_ok=no
16596 CFLAGS="$save_CFLAGS"
16598 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16599 echo "${ECHO_T}$acx_pthread_ok" >&6
16603 # Various other checks:
16604 if test "x$acx_pthread_ok" = xyes; then
16606 LIBS="$PTHREAD_LIBS $LIBS"
16607 save_CFLAGS="$CFLAGS"
16608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16610 # Detect AIX lossage: threads are created detached by default
16611 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16612 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16613 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16614 cat >conftest.$ac_ext <<_ACEOF
16617 cat confdefs.h >>conftest.$ac_ext
16618 cat >>conftest.$ac_ext <<_ACEOF
16619 /* end confdefs.h. */
16620 #include <pthread.h>
16624 int attr=PTHREAD_CREATE_JOINABLE;
16629 rm -f conftest.$ac_objext conftest$ac_exeext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16631 (eval $ac_link) 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -z "$ac_c_werror_flag"
16639 || test ! -s conftest.err'
16640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641 (eval $ac_try) 2>&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); }; } &&
16645 { ac_try='test -s conftest$ac_exeext'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ok=PTHREAD_CREATE_JOINABLE
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16658 rm -f conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 if test x"$ok" = xunknown; then
16661 cat >conftest.$ac_ext <<_ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <pthread.h>
16671 int attr=PTHREAD_CREATE_UNDETACHED;
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16678 (eval $ac_link) 2>conftest.er1
16680 grep -v '^ *+' conftest.er1 >conftest.err
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest$ac_exeext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 ok=PTHREAD_CREATE_UNDETACHED
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16705 rm -f conftest.err conftest.$ac_objext \
16706 conftest$ac_exeext conftest.$ac_ext
16708 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16710 cat >>confdefs.h <<\_ACEOF
16711 #define PTHREAD_CREATE_JOINABLE $ok
16715 echo "$as_me:$LINENO: result: ${ok}" >&5
16716 echo "${ECHO_T}${ok}" >&6
16717 if test x"$ok" = xunknown; then
16718 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16719 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16722 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16723 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16725 # We always add these in PostgreSQL
16726 # case "${host_cpu}-${host_os}" in
16727 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16728 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16730 echo "$as_me:$LINENO: result: ${flag}" >&5
16731 echo "${ECHO_T}${flag}" >&6
16732 if test "x$flag" != xno; then
16733 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16737 CFLAGS="$save_CFLAGS"
16739 # Supporting cc_r would require a special CC in all places that
16740 # use libpq, and that is ugly, so we don't do it. Users can still
16741 # define their compiler as cc_r to do thread builds of everything.
16742 # More AIX lossage: must compile with cc_r
16743 # Extract the first word of "cc_r", so it can be a program name with args.
16744 set dummy cc_r; ac_word=$2
16745 echo "$as_me:$LINENO: checking for $ac_word" >&5
16746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16747 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 if test -n "$PTHREAD_CC"; then
16751 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16754 for as_dir in $PATH
16757 test -z "$as_dir" && as_dir=.
16758 for ac_exec_ext in '' $ac_executable_extensions; do
16759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16760 ac_cv_prog_PTHREAD_CC="cc_r"
16761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16767 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16770 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16771 if test -n "$PTHREAD_CC"; then
16772 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16773 echo "${ECHO_T}$PTHREAD_CC" >&6
16775 echo "$as_me:$LINENO: result: no" >&5
16776 echo "${ECHO_T}no" >&6
16787 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16788 if test x"$acx_pthread_ok" = xyes; then
16790 cat >>confdefs.h <<\_ACEOF
16791 #define HAVE_PTHREAD 1
16800 ac_cpp='$CPP $CPPFLAGS'
16801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16807 # Some platforms use these, so just defineed them. They can't hurt if they
16808 # are not supported.
16809 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16812 # At this point, we don't want to muck with the compiler name for threading.
16813 # Let's see who fails, perhaps AIX. 2004-04-23
16814 if test "$PTHREAD_CC" != "$CC"; then
16815 { { echo "$as_me:$LINENO: error:
16816 PostgreSQL does not support platforms that require a special
16817 compiler binary for thread-safety.
16819 echo "$as_me: error:
16820 PostgreSQL does not support platforms that require a special
16821 compiler binary for thread-safety.
16823 { (exit 1); exit 1; }; }
16826 if test "$THREAD_SUPPORT" = no; then
16827 { { echo "$as_me:$LINENO: error:
16828 Cannot enable threads on your platform.
16829 Your platform is known to not support thread-safe programs.
16830 For details, compile and run src/bin/pg_thread_test.
16832 echo "$as_me: error:
16833 Cannot enable threads on your platform.
16834 Your platform is known to not support thread-safe programs.
16835 For details, compile and run src/bin/pg_thread_test.
16837 { (exit 1); exit 1; }; }
16840 # Check for *_r functions
16843 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16844 LIBS="$LIBS $PTHREAD_LIBS"
16846 if test "${ac_cv_header_pthread_h+set}" = set; then
16847 echo "$as_me:$LINENO: checking for pthread.h" >&5
16848 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16849 if test "${ac_cv_header_pthread_h+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16853 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16855 # Is the header compilable?
16856 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16857 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 $ac_includes_default
16865 #include <pthread.h>
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16871 grep -v '^ *+' conftest.er1 >conftest.err
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 ac_header_compiler=yes
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16894 ac_header_compiler=no
16896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6
16900 # Is the header present?
16901 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16902 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <pthread.h>
16911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } >/dev/null; then
16919 if test -s conftest.err; then
16920 ac_cpp_err=$ac_c_preproc_warn_flag
16921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16928 if test -z "$ac_cpp_err"; then
16929 ac_header_preproc=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.$ac_ext >&5
16934 ac_header_preproc=no
16936 rm -f conftest.err conftest.$ac_ext
16937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16938 echo "${ECHO_T}$ac_header_preproc" >&6
16940 # So? What about this header?
16941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16943 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16944 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16945 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16946 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16947 ac_header_preproc=yes
16950 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16955 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16957 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16959 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16961 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16964 ## ---------------------------------------- ##
16965 ## Report this to pgsql-bugs@postgresql.org ##
16966 ## ---------------------------------------- ##
16969 sed "s/^/$as_me: WARNING: /" >&2
16972 echo "$as_me:$LINENO: checking for pthread.h" >&5
16973 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16974 if test "${ac_cv_header_pthread_h+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 ac_cv_header_pthread_h=$ac_header_preproc
16979 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16980 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16983 if test $ac_cv_header_pthread_h = yes; then
16986 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16987 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16988 { (exit 1); exit 1; }; }
16996 for ac_func in strerror_r getpwuid_r gethostbyname_r
16998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16999 echo "$as_me:$LINENO: checking for $ac_func" >&5
17000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17001 if eval "test \"\${$as_ac_var+set}\" = set"; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17012 #define $ac_func innocuous_$ac_func
17014 /* System header to define __stub macros and hopefully few prototypes,
17015 which can conflict with char $ac_func (); below.
17016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017 <limits.h> exists even on freestanding compilers. */
17020 # include <limits.h>
17022 # include <assert.h>
17027 /* Override any gcc2 internal prototype to avoid an error. */
17032 /* We use char because int might match the return type of a gcc2
17033 builtin and then its argument prototype would still apply. */
17035 /* The GNU C library defines this for functions which it implements
17036 to always fail with ENOSYS. Some functions are actually named
17037 something starting with __ and the normal name is an alias. */
17038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17041 char (*f) () = $ac_func;
17050 return f != $ac_func;
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17057 (eval $ac_link) 2>conftest.er1
17059 grep -v '^ *+' conftest.er1 >conftest.err
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest$ac_exeext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 eval "$as_ac_var=yes"
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 eval "$as_ac_var=no"
17084 rm -f conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17089 if test `eval echo '${'$as_ac_var'}'` = yes; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17098 # Do test here with the proper thread flags
17099 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17100 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17101 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17110 #include <sys/types.h>
17116 struct passwd *space;
17119 struct passwd **result;
17120 getpwuid_r(uid, space, buf, bufsize, result);
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127 (eval $ac_compile) 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag"
17135 || test ! -s conftest.err'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } &&
17141 { ac_try='test -s conftest.$ac_objext'
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 pgac_func_getpwuid_r_5arg=yes
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 pgac_func_getpwuid_r_5arg=no
17154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17156 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17157 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17158 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17160 cat >>confdefs.h <<\_ACEOF
17161 #define GETPWUID_R_5ARG
17166 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17167 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17168 if test "${pgac_func_strerror_r_int+set}" = set; then
17169 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 #include <string.h>
17182 int strerror_r(int, char *, size_t);
17184 /* Older AIX has 'int' for the third argument so we don't test the args. */
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 pgac_func_strerror_r_int=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 pgac_func_strerror_r_int=no
17220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17222 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17223 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17224 if test x"$pgac_func_strerror_r_int" = xyes ; then
17226 cat >>confdefs.h <<\_ACEOF
17227 #define STRERROR_R_INT
17237 # do not use values from template file
17246 # We can test for libldap_r only after we know PTHREAD_LIBS
17247 if test "$with_ldap" = yes ; then
17249 if test "$PORTNAME" != "win32"; then
17251 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
17252 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
17253 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 ac_check_lib_save_LIBS=$LIBS
17257 LIBS="-lldap $LIBS"
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17265 /* Override any gcc2 internal prototype to avoid an error. */
17269 /* We use char because int might match the return type of a gcc2
17270 builtin and then its argument prototype would still apply. */
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282 (eval $ac_link) 2>conftest.er1
17284 grep -v '^ *+' conftest.er1 >conftest.err
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest$ac_exeext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_cv_lib_ldap_ldap_bind=yes
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 ac_cv_lib_ldap_ldap_bind=no
17309 rm -f conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17313 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
17314 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
17315 if test $ac_cv_lib_ldap_ldap_bind = yes; then
17316 cat >>confdefs.h <<_ACEOF
17317 #define HAVE_LIBLDAP 1
17320 LIBS="-lldap $LIBS"
17323 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
17324 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
17325 { (exit 1); exit 1; }; }
17328 LDAP_LIBS_BE="-lldap"
17329 if test "$enable_thread_safety" = yes; then
17330 # on some platforms ldap_r fails to link without PTHREAD_LIBS
17332 echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
17333 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6
17334 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 ac_check_lib_save_LIBS=$LIBS
17338 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17346 /* Override any gcc2 internal prototype to avoid an error. */
17350 /* We use char because int might match the return type of a gcc2
17351 builtin and then its argument prototype would still apply. */
17352 char ldap_simple_bind ();
17356 ldap_simple_bind ();
17361 rm -f conftest.$ac_objext conftest$ac_exeext
17362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17363 (eval $ac_link) 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } &&
17370 { ac_try='test -z "$ac_c_werror_flag"
17371 || test ! -s conftest.err'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; } &&
17377 { ac_try='test -s conftest$ac_exeext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_cv_lib_ldap_r_ldap_simple_bind=yes
17385 echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17388 ac_cv_lib_ldap_r_ldap_simple_bind=no
17390 rm -f conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17394 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
17395 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6
17396 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
17397 cat >>confdefs.h <<_ACEOF
17398 #define HAVE_LIBLDAP_R 1
17401 LIBS="-lldap_r $LIBS"
17404 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
17405 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
17406 { (exit 1); exit 1; }; }
17409 LDAP_LIBS_FE="-lldap_r"
17411 LDAP_LIBS_FE="-lldap"
17415 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
17416 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
17417 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 ac_check_lib_save_LIBS=$LIBS
17421 LIBS="-lwldap32 $LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 ac_cv_lib_wldap32_ldap_bind=yes
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_cv_lib_wldap32_ldap_bind=no
17473 rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
17478 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
17479 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
17480 cat >>confdefs.h <<_ACEOF
17481 #define HAVE_LIBWLDAP32 1
17484 LIBS="-lwldap32 $LIBS"
17487 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
17488 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
17489 { (exit 1); exit 1; }; }
17492 LDAP_LIBS_FE="-lwldap32"
17493 LDAP_LIBS_BE="-lwldap32"
17501 # This test makes sure that run tests work at all. Sometimes a shared
17502 # library is found by the linker, but the runtime linker can't find it.
17503 # This check should come after all modifications of compiler or linker
17504 # variables, and before any other run tests.
17505 echo "$as_me:$LINENO: checking test program" >&5
17506 echo $ECHO_N "checking test program... $ECHO_C" >&6
17507 if test "$cross_compiling" = yes; then
17508 echo "$as_me:$LINENO: result: cross-compiling" >&5
17509 echo "${ECHO_T}cross-compiling" >&6
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 int main() { return 0; }
17519 rm -f conftest$ac_exeext
17520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17521 (eval $ac_link) 2>&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 echo "$as_me:$LINENO: result: ok" >&5
17531 echo "${ECHO_T}ok" >&6
17533 echo "$as_me: program exited with status $ac_status" >&5
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ( exit $ac_status )
17538 echo "$as_me:$LINENO: result: failed" >&5
17539 echo "${ECHO_T}failed" >&6
17540 { { echo "$as_me:$LINENO: error:
17541 *** Could not execute a simple test program. This may be a problem
17542 *** related to locating shared libraries. Check the file 'config.log'
17543 *** for the exact reason." >&5
17544 echo "$as_me: error:
17545 *** Could not execute a simple test program. This may be a problem
17546 *** related to locating shared libraries. Check the file 'config.log'
17547 *** for the exact reason." >&2;}
17548 { (exit 1); exit 1; }; }
17550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17553 # --------------------
17554 # Run tests below here
17555 # --------------------
17557 # Force use of our snprintf if system's doesn't do arg control
17558 # See comment above at snprintf test for details.
17559 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17560 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17561 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17562 if test "${pgac_cv_printf_arg_control+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 if test "$cross_compiling" = yes; then
17566 pgac_cv_printf_arg_control=cross
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17575 #include <string.h>
17581 /* can it swap arguments? */
17582 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17583 if (strcmp(buf, "4 3") != 0)
17588 rm -f conftest$ac_exeext
17589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17590 (eval $ac_link) 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 pgac_cv_printf_arg_control=yes
17601 echo "$as_me: program exited with status $ac_status" >&5
17602 echo "$as_me: failed program was:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ( exit $ac_status )
17606 pgac_cv_printf_arg_control=no
17608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17612 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17613 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17615 if test $pgac_cv_printf_arg_control != yes ; then
17616 pgac_need_repl_snprintf=yes
17622 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17623 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17624 if test "${pgac_cv_type_long_int_64+set}" = set; then
17625 echo $ECHO_N "(cached) $ECHO_C" >&6
17627 if test "$cross_compiling" = yes; then
17628 # If cross-compiling, check the size reported by the compiler and
17629 # trust that the arithmetic works.
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17640 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17647 rm -f conftest.$ac_objext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17649 (eval $ac_compile) 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 pgac_cv_type_long_int_64=yes
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 pgac_cv_type_long_int_64=no
17676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 typedef long int ac_int64;
17687 * These are globals to discourage the compiler from folding all the
17688 * arithmetic tests down to compile-time constants.
17690 ac_int64 a = 20000001;
17691 ac_int64 b = 40000005;
17693 int does_int64_work()
17697 if (sizeof(ac_int64) != 8)
17698 return 0; /* definitely not the right size */
17700 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17708 exit(! does_int64_work());
17711 rm -f conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 pgac_cv_type_long_int_64=yes
17724 echo "$as_me: program exited with status $ac_status" >&5
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ( exit $ac_status )
17729 pgac_cv_type_long_int_64=no
17731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17734 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17735 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17737 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17738 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17740 cat >>confdefs.h <<\_ACEOF
17741 #define HAVE_LONG_INT_64
17747 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17748 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17749 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17750 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17753 if test "$cross_compiling" = yes; then
17754 # If cross-compiling, check the size reported by the compiler and
17755 # trust that the arithmetic works.
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17766 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17773 rm -f conftest.$ac_objext
17774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17775 (eval $ac_compile) 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } &&
17782 { ac_try='test -z "$ac_c_werror_flag"
17783 || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest.$ac_objext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 pgac_cv_type_long_long_int_64=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 pgac_cv_type_long_long_int_64=no
17802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17804 cat >conftest.$ac_ext <<_ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 typedef long long int ac_int64;
17813 * These are globals to discourage the compiler from folding all the
17814 * arithmetic tests down to compile-time constants.
17816 ac_int64 a = 20000001;
17817 ac_int64 b = 40000005;
17819 int does_int64_work()
17823 if (sizeof(ac_int64) != 8)
17824 return 0; /* definitely not the right size */
17826 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17834 exit(! does_int64_work());
17837 rm -f conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839 (eval $ac_link) 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 pgac_cv_type_long_long_int_64=yes
17850 echo "$as_me: program exited with status $ac_status" >&5
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ( exit $ac_status )
17855 pgac_cv_type_long_long_int_64=no
17857 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17860 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17861 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17863 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17864 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_LONG_LONG_INT_64
17876 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17884 #define INT64CONST(x) x##LL
17885 long long int foo = INT64CONST(0x1234567890123456);
17895 rm -f conftest.$ac_objext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897 (eval $ac_compile) 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag"
17905 || test ! -s conftest.err'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17918 cat >>confdefs.h <<\_ACEOF
17919 #define HAVE_LL_CONSTANTS 1
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931 # If we found "long int" is 64 bits, assume snprintf handles it. If
17932 # we found we need to use "long long int", better check. We cope with
17933 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17934 # work, fall back to our own snprintf emulation (which we know uses %lld).
17936 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17937 if test $pgac_need_repl_snprintf = no; then
17938 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17939 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17940 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17943 for pgac_format in '%lld' '%qd' '%I64d'; do
17944 if test "$cross_compiling" = yes; then
17945 pgac_cv_snprintf_long_long_int_format=cross; break
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17954 typedef long long int ac_int64;
17955 #define INT64_FORMAT "$pgac_format"
17957 ac_int64 a = 20000001;
17958 ac_int64 b = 40000005;
17960 int does_int64_snprintf_work()
17965 if (sizeof(ac_int64) != 8)
17966 return 0; /* doesn't look like the right size */
17969 snprintf(buf, 100, INT64_FORMAT, c);
17970 if (strcmp(buf, "800000140000005") != 0)
17971 return 0; /* either multiply or snprintf is busted */
17975 exit(! does_int64_snprintf_work());
17978 rm -f conftest$ac_exeext
17979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17980 (eval $ac_link) 2>&5
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; }; then
17989 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17991 echo "$as_me: program exited with status $ac_status" >&5
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.$ac_ext >&5
17996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18001 LONG_LONG_INT_FORMAT=''
18003 case $pgac_cv_snprintf_long_long_int_format in
18004 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
18005 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
18006 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
18007 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
18008 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
18009 *) echo "$as_me:$LINENO: result: none" >&5
18010 echo "${ECHO_T}none" >&6;;
18012 if test "$LONG_LONG_INT_FORMAT" = ""; then
18013 # Force usage of our own snprintf, since system snprintf is broken
18014 pgac_need_repl_snprintf=yes
18015 LONG_LONG_INT_FORMAT='%lld'
18018 # Here if we previously decided we needed to use our own snprintf
18019 LONG_LONG_INT_FORMAT='%lld'
18021 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
18022 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
18023 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
18025 # Here if we are not using 'long long int' at all
18026 INT64_FORMAT='"%ld"'
18027 UINT64_FORMAT='"%lu"'
18031 cat >>confdefs.h <<_ACEOF
18032 #define INT64_FORMAT $INT64_FORMAT
18037 cat >>confdefs.h <<_ACEOF
18038 #define UINT64_FORMAT $UINT64_FORMAT
18042 # Now we have checked all the reasons to replace snprintf
18043 if test $pgac_need_repl_snprintf = yes; then
18045 cat >>confdefs.h <<\_ACEOF
18046 #define USE_REPL_SNPRINTF 1
18050 "snprintf.$ac_objext" | \
18051 *" snprintf.$ac_objext" | \
18052 "snprintf.$ac_objext "* | \
18053 *" snprintf.$ac_objext "* ) ;;
18054 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
18059 # Need a #define for the size of Datum (unsigned long)
18060 echo "$as_me:$LINENO: checking for unsigned long" >&5
18061 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
18062 if test "${ac_cv_type_unsigned_long+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18075 if ((unsigned long *) 0)
18077 if (sizeof (unsigned long))
18083 rm -f conftest.$ac_objext
18084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18085 (eval $ac_compile) 2>conftest.er1
18087 grep -v '^ *+' conftest.er1 >conftest.err
18089 cat conftest.err >&5
18090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } &&
18092 { ac_try='test -z "$ac_c_werror_flag"
18093 || test ! -s conftest.err'
18094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18095 (eval $ac_try) 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; } &&
18099 { ac_try='test -s conftest.$ac_objext'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); }; }; then
18105 ac_cv_type_unsigned_long=yes
18107 echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_cv_type_unsigned_long=no
18112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18114 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
18115 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
18117 echo "$as_me:$LINENO: checking size of unsigned long" >&5
18118 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
18119 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 if test "$ac_cv_type_unsigned_long" = yes; then
18123 # The cast to unsigned long works around a bug in the HP C Compiler
18124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18126 # This bug is HP SR number 8606223364.
18127 if test "$cross_compiling" = yes; then
18128 # Depending upon the size, compute the lo and hi bounds.
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 $ac_includes_default
18139 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148 (eval $ac_compile) 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag"
18156 || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 $ac_includes_default
18180 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189 (eval $ac_compile) 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } &&
18196 { ac_try='test -z "$ac_c_werror_flag"
18197 || test ! -s conftest.err'
18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199 (eval $ac_try) 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; } &&
18203 { ac_try='test -s conftest.$ac_objext'
18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18209 ac_hi=$ac_mid; break
18211 echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_lo=`expr $ac_mid + 1`
18215 if test $ac_lo -le $ac_mid; then
18219 ac_mid=`expr 2 '*' $ac_mid + 1`
18221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 cat >conftest.$ac_ext <<_ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 $ac_includes_default
18237 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
18244 rm -f conftest.$ac_objext
18245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18246 (eval $ac_compile) 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } &&
18253 { ac_try='test -z "$ac_c_werror_flag"
18254 || test ! -s conftest.err'
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; } &&
18260 { ac_try='test -s conftest.$ac_objext'
18261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18262 (eval $ac_try) 2>&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18268 cat >conftest.$ac_ext <<_ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h. */
18274 $ac_includes_default
18278 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
18285 rm -f conftest.$ac_objext
18286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18287 (eval $ac_compile) 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } &&
18294 { ac_try='test -z "$ac_c_werror_flag"
18295 || test ! -s conftest.err'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_lo=$ac_mid; break
18309 echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_hi=`expr '(' $ac_mid ')' - 1`
18313 if test $ac_mid -le $ac_hi; then
18317 ac_mid=`expr 2 '*' $ac_mid`
18319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18330 # Binary search between lo and hi bounds.
18331 while test "x$ac_lo" != "x$ac_hi"; do
18332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18333 cat >conftest.$ac_ext <<_ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18339 $ac_includes_default
18343 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18350 rm -f conftest.$ac_objext
18351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18352 (eval $ac_compile) 2>conftest.er1
18354 grep -v '^ *+' conftest.er1 >conftest.err
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
18359 { ac_try='test -z "$ac_c_werror_flag"
18360 || test ! -s conftest.err'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18377 ac_lo=`expr '(' $ac_mid ')' + 1`
18379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18382 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18383 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18384 See \`config.log' for more details." >&5
18385 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18386 See \`config.log' for more details." >&2;}
18387 { (exit 1); exit 1; }; } ;;
18390 if test "$cross_compiling" = yes; then
18391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18392 See \`config.log' for more details." >&5
18393 echo "$as_me: error: cannot run test program while cross compiling
18394 See \`config.log' for more details." >&2;}
18395 { (exit 1); exit 1; }; }
18397 cat >conftest.$ac_ext <<_ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 $ac_includes_default
18404 long longval () { return (long) (sizeof (unsigned long)); }
18405 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18407 #include <stdlib.h>
18412 FILE *f = fopen ("conftest.val", "w");
18415 if (((long) (sizeof (unsigned long))) < 0)
18417 long i = longval ();
18418 if (i != ((long) (sizeof (unsigned long))))
18420 fprintf (f, "%ld\n", i);
18424 unsigned long i = ulongval ();
18425 if (i != ((long) (sizeof (unsigned long))))
18427 fprintf (f, "%lu\n", i);
18429 exit (ferror (f) || fclose (f) != 0);
18435 rm -f conftest$ac_exeext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18437 (eval $ac_link) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18446 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18448 echo "$as_me: program exited with status $ac_status" >&5
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ( exit $ac_status )
18453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18454 See \`config.log' for more details." >&5
18455 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18456 See \`config.log' for more details." >&2;}
18457 { (exit 1); exit 1; }; }
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18464 ac_cv_sizeof_unsigned_long=0
18467 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18468 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18469 cat >>confdefs.h <<_ACEOF
18470 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18475 # And one for the size of size_t (enables tweaks for > 32bit address space)
18476 echo "$as_me:$LINENO: checking for size_t" >&5
18477 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18478 if test "${ac_cv_type_size_t+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18487 $ac_includes_default
18493 if (sizeof (size_t))
18499 rm -f conftest.$ac_objext
18500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18501 (eval $ac_compile) 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag"
18509 || test ! -s conftest.err'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest.$ac_objext'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; }; then
18521 ac_cv_type_size_t=yes
18523 echo "$as_me: failed program was:" >&5
18524 sed 's/^/| /' conftest.$ac_ext >&5
18526 ac_cv_type_size_t=no
18528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18531 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18533 echo "$as_me:$LINENO: checking size of size_t" >&5
18534 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18535 if test "${ac_cv_sizeof_size_t+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 if test "$ac_cv_type_size_t" = yes; then
18539 # The cast to unsigned long works around a bug in the HP C Compiler
18540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18542 # This bug is HP SR number 8606223364.
18543 if test "$cross_compiling" = yes; then
18544 # Depending upon the size, compute the lo and hi bounds.
18545 cat >conftest.$ac_ext <<_ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 $ac_includes_default
18555 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18562 rm -f conftest.$ac_objext
18563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18564 (eval $ac_compile) 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
18571 { ac_try='test -z "$ac_c_werror_flag"
18572 || test ! -s conftest.err'
18573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574 (eval $ac_try) 2>&5
18576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); }; } &&
18578 { ac_try='test -s conftest.$ac_objext'
18579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580 (eval $ac_try) 2>&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); }; }; then
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 $ac_includes_default
18596 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18603 rm -f conftest.$ac_objext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18605 (eval $ac_compile) 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag"
18613 || test ! -s conftest.err'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; } &&
18619 { ac_try='test -s conftest.$ac_objext'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_hi=$ac_mid; break
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_lo=`expr $ac_mid + 1`
18631 if test $ac_lo -le $ac_mid; then
18635 ac_mid=`expr 2 '*' $ac_mid + 1`
18637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 cat >conftest.$ac_ext <<_ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 $ac_includes_default
18653 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18660 rm -f conftest.$ac_objext
18661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662 (eval $ac_compile) 2>conftest.er1
18664 grep -v '^ *+' conftest.er1 >conftest.err
18666 cat conftest.err >&5
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } &&
18669 { ac_try='test -z "$ac_c_werror_flag"
18670 || test ! -s conftest.err'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; } &&
18676 { ac_try='test -s conftest.$ac_objext'
18677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18678 (eval $ac_try) 2>&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); }; }; then
18684 cat >conftest.$ac_ext <<_ACEOF
18687 cat confdefs.h >>conftest.$ac_ext
18688 cat >>conftest.$ac_ext <<_ACEOF
18689 /* end confdefs.h. */
18690 $ac_includes_default
18694 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18701 rm -f conftest.$ac_objext
18702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18703 (eval $ac_compile) 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } &&
18710 { ac_try='test -z "$ac_c_werror_flag"
18711 || test ! -s conftest.err'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } &&
18717 { ac_try='test -s conftest.$ac_objext'
18718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18719 (eval $ac_try) 2>&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
18723 ac_lo=$ac_mid; break
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 ac_hi=`expr '(' $ac_mid ')' - 1`
18729 if test $ac_mid -le $ac_hi; then
18733 ac_mid=`expr 2 '*' $ac_mid`
18735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746 # Binary search between lo and hi bounds.
18747 while test "x$ac_lo" != "x$ac_hi"; do
18748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 $ac_includes_default
18759 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18766 rm -f conftest.$ac_objext
18767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18768 (eval $ac_compile) 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag"
18776 || test ! -s conftest.err'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest.$ac_objext'
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_lo=`expr '(' $ac_mid ')' + 1`
18795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18798 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18799 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18800 See \`config.log' for more details." >&5
18801 echo "$as_me: error: cannot compute sizeof (size_t), 77
18802 See \`config.log' for more details." >&2;}
18803 { (exit 1); exit 1; }; } ;;
18806 if test "$cross_compiling" = yes; then
18807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18808 See \`config.log' for more details." >&5
18809 echo "$as_me: error: cannot run test program while cross compiling
18810 See \`config.log' for more details." >&2;}
18811 { (exit 1); exit 1; }; }
18813 cat >conftest.$ac_ext <<_ACEOF
18816 cat confdefs.h >>conftest.$ac_ext
18817 cat >>conftest.$ac_ext <<_ACEOF
18818 /* end confdefs.h. */
18819 $ac_includes_default
18820 long longval () { return (long) (sizeof (size_t)); }
18821 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18823 #include <stdlib.h>
18828 FILE *f = fopen ("conftest.val", "w");
18831 if (((long) (sizeof (size_t))) < 0)
18833 long i = longval ();
18834 if (i != ((long) (sizeof (size_t))))
18836 fprintf (f, "%ld\n", i);
18840 unsigned long i = ulongval ();
18841 if (i != ((long) (sizeof (size_t))))
18843 fprintf (f, "%lu\n", i);
18845 exit (ferror (f) || fclose (f) != 0);
18851 rm -f conftest$ac_exeext
18852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18853 (eval $ac_link) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_sizeof_size_t=`cat conftest.val`
18864 echo "$as_me: program exited with status $ac_status" >&5
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ( exit $ac_status )
18869 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18870 See \`config.log' for more details." >&5
18871 echo "$as_me: error: cannot compute sizeof (size_t), 77
18872 See \`config.log' for more details." >&2;}
18873 { (exit 1); exit 1; }; }
18875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18880 ac_cv_sizeof_size_t=0
18883 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18884 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18885 cat >>confdefs.h <<_ACEOF
18886 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18891 # Determine memory alignment requirements for the basic C data types.
18893 echo "$as_me:$LINENO: checking for short" >&5
18894 echo $ECHO_N "checking for short... $ECHO_C" >&6
18895 if test "${ac_cv_type_short+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 $ac_includes_default
18910 if (sizeof (short))
18916 rm -f conftest.$ac_objext
18917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18918 (eval $ac_compile) 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
18925 { ac_try='test -z "$ac_c_werror_flag"
18926 || test ! -s conftest.err'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; } &&
18932 { ac_try='test -s conftest.$ac_objext'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938 ac_cv_type_short=yes
18940 echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18943 ac_cv_type_short=no
18945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18947 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18948 echo "${ECHO_T}$ac_cv_type_short" >&6
18950 echo "$as_me:$LINENO: checking alignment of short" >&5
18951 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18952 if test "${pgac_cv_alignof_short+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 if test "$ac_cv_type_short" = yes; then
18956 if test "$cross_compiling" = yes; then
18957 # Depending upon the size, compute the lo and hi bounds.
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 $ac_includes_default
18965 struct { char filler; short field; } pgac_struct;
18969 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18976 rm -f conftest.$ac_objext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18978 (eval $ac_compile) 2>conftest.er1
18980 grep -v '^ *+' conftest.er1 >conftest.err
18982 cat conftest.err >&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
18985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest.$ac_objext'
18993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
19000 cat >conftest.$ac_ext <<_ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 $ac_includes_default
19007 struct { char filler; short field; } pgac_struct;
19011 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020 (eval $ac_compile) 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_hi=$ac_mid; break
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19045 ac_lo=`expr $ac_mid + 1`
19046 if test $ac_lo -le $ac_mid; then
19050 ac_mid=`expr 2 '*' $ac_mid + 1`
19052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19055 echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 $ac_includes_default
19065 struct { char filler; short field; } pgac_struct;
19069 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078 (eval $ac_compile) 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -z "$ac_c_werror_flag"
19086 || test ! -s conftest.err'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19100 cat >conftest.$ac_ext <<_ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19106 $ac_includes_default
19107 struct { char filler; short field; } pgac_struct;
19111 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_lo=$ac_mid; break
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_hi=`expr '(' $ac_mid ')' - 1`
19146 if test $ac_mid -le $ac_hi; then
19150 ac_mid=`expr 2 '*' $ac_mid`
19152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19163 # Binary search between lo and hi bounds.
19164 while test "x$ac_lo" != "x$ac_hi"; do
19165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 $ac_includes_default
19173 struct { char filler; short field; } pgac_struct;
19177 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19184 rm -f conftest.$ac_objext
19185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest.$ac_objext'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_lo=`expr '(' $ac_mid ')' + 1`
19213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19216 ?*) pgac_cv_alignof_short=$ac_lo;;
19217 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19218 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19219 { (exit 1); exit 1; }; } ;;
19222 if test "$cross_compiling" = yes; then
19223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19224 See \`config.log' for more details." >&5
19225 echo "$as_me: error: cannot run test program while cross compiling
19226 See \`config.log' for more details." >&2;}
19227 { (exit 1); exit 1; }; }
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 $ac_includes_default
19236 struct { char filler; short field; } pgac_struct;
19237 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19238 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19240 #include <stdlib.h>
19245 FILE *f = fopen ("conftest.val", "w");
19248 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19250 long i = longval ();
19251 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19253 fprintf (f, "%ld\n", i);
19257 unsigned long i = ulongval ();
19258 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19260 fprintf (f, "%lu\n", i);
19262 exit (ferror (f) || fclose (f) != 0);
19268 rm -f conftest$ac_exeext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19270 (eval $ac_link) 2>&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 pgac_cv_alignof_short=`cat conftest.val`
19281 echo "$as_me: program exited with status $ac_status" >&5
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 ( exit $ac_status )
19286 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
19287 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
19288 { (exit 1); exit 1; }; }
19290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19295 pgac_cv_alignof_short=0
19298 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
19299 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
19300 cat >>confdefs.h <<_ACEOF
19301 #define ALIGNOF_SHORT $pgac_cv_alignof_short
19305 echo "$as_me:$LINENO: checking for int" >&5
19306 echo $ECHO_N "checking for int... $ECHO_C" >&6
19307 if test "${ac_cv_type_int+set}" = set; then
19308 echo $ECHO_N "(cached) $ECHO_C" >&6
19310 cat >conftest.$ac_ext <<_ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 $ac_includes_default
19328 rm -f conftest.$ac_objext
19329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19330 (eval $ac_compile) 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } &&
19337 { ac_try='test -z "$ac_c_werror_flag"
19338 || test ! -s conftest.err'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; } &&
19344 { ac_try='test -s conftest.$ac_objext'
19345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346 (eval $ac_try) 2>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); }; }; then
19352 echo "$as_me: failed program was:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19359 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19360 echo "${ECHO_T}$ac_cv_type_int" >&6
19362 echo "$as_me:$LINENO: checking alignment of int" >&5
19363 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19364 if test "${pgac_cv_alignof_int+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 if test "$ac_cv_type_int" = yes; then
19368 if test "$cross_compiling" = yes; then
19369 # Depending upon the size, compute the lo and hi bounds.
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19377 struct { char filler; int field; } pgac_struct;
19381 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19388 rm -f conftest.$ac_objext
19389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19390 (eval $ac_compile) 2>conftest.er1
19392 grep -v '^ *+' conftest.er1 >conftest.err
19394 cat conftest.err >&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); } &&
19397 { ac_try='test -z "$ac_c_werror_flag"
19398 || test ! -s conftest.err'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; } &&
19404 { ac_try='test -s conftest.$ac_objext'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; }; then
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19418 $ac_includes_default
19419 struct { char filler; int field; } pgac_struct;
19423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19430 rm -f conftest.$ac_objext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432 (eval $ac_compile) 2>conftest.er1
19434 grep -v '^ *+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } &&
19439 { ac_try='test -z "$ac_c_werror_flag"
19440 || test ! -s conftest.err'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; } &&
19446 { ac_try='test -s conftest.$ac_objext'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_hi=$ac_mid; break
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_lo=`expr $ac_mid + 1`
19458 if test $ac_lo -le $ac_mid; then
19462 ac_mid=`expr 2 '*' $ac_mid + 1`
19464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 $ac_includes_default
19477 struct { char filler; int field; } pgac_struct;
19481 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19488 rm -f conftest.$ac_objext
19489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490 (eval $ac_compile) 2>conftest.er1
19492 grep -v '^ *+' conftest.er1 >conftest.err
19494 cat conftest.err >&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
19497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest.$ac_objext'
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 $ac_includes_default
19519 struct { char filler; int field; } pgac_struct;
19523 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19530 rm -f conftest.$ac_objext
19531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19532 (eval $ac_compile) 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try='test -z "$ac_c_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest.$ac_objext'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552 ac_lo=$ac_mid; break
19554 echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19557 ac_hi=`expr '(' $ac_mid ')' - 1`
19558 if test $ac_mid -le $ac_hi; then
19562 ac_mid=`expr 2 '*' $ac_mid`
19564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19575 # Binary search between lo and hi bounds.
19576 while test "x$ac_lo" != "x$ac_hi"; do
19577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19578 cat >conftest.$ac_ext <<_ACEOF
19581 cat confdefs.h >>conftest.$ac_ext
19582 cat >>conftest.$ac_ext <<_ACEOF
19583 /* end confdefs.h. */
19584 $ac_includes_default
19585 struct { char filler; int field; } pgac_struct;
19589 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19596 rm -f conftest.$ac_objext
19597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_c_werror_flag"
19606 || test ! -s conftest.err'
19607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19608 (eval $ac_try) 2>&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest.$ac_objext'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19620 echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 ac_lo=`expr '(' $ac_mid ')' + 1`
19625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19628 ?*) pgac_cv_alignof_int=$ac_lo;;
19629 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19630 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19631 { (exit 1); exit 1; }; } ;;
19634 if test "$cross_compiling" = yes; then
19635 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19636 See \`config.log' for more details." >&5
19637 echo "$as_me: error: cannot run test program while cross compiling
19638 See \`config.log' for more details." >&2;}
19639 { (exit 1); exit 1; }; }
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 $ac_includes_default
19648 struct { char filler; int field; } pgac_struct;
19649 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19650 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19652 #include <stdlib.h>
19657 FILE *f = fopen ("conftest.val", "w");
19660 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19662 long i = longval ();
19663 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19665 fprintf (f, "%ld\n", i);
19669 unsigned long i = ulongval ();
19670 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19672 fprintf (f, "%lu\n", i);
19674 exit (ferror (f) || fclose (f) != 0);
19680 rm -f conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682 (eval $ac_link) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19691 pgac_cv_alignof_int=`cat conftest.val`
19693 echo "$as_me: program exited with status $ac_status" >&5
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ( exit $ac_status )
19698 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19699 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19700 { (exit 1); exit 1; }; }
19702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19707 pgac_cv_alignof_int=0
19710 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19711 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19712 cat >>confdefs.h <<_ACEOF
19713 #define ALIGNOF_INT $pgac_cv_alignof_int
19717 echo "$as_me:$LINENO: checking for long" >&5
19718 echo $ECHO_N "checking for long... $ECHO_C" >&6
19719 if test "${ac_cv_type_long+set}" = set; then
19720 echo $ECHO_N "(cached) $ECHO_C" >&6
19722 cat >conftest.$ac_ext <<_ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 $ac_includes_default
19740 rm -f conftest.$ac_objext
19741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742 (eval $ac_compile) 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -z "$ac_c_werror_flag"
19750 || test ! -s conftest.err'
19751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752 (eval $ac_try) 2>&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); }; } &&
19756 { ac_try='test -s conftest.$ac_objext'
19757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758 (eval $ac_try) 2>&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); }; }; then
19762 ac_cv_type_long=yes
19764 echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19771 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19772 echo "${ECHO_T}$ac_cv_type_long" >&6
19774 echo "$as_me:$LINENO: checking alignment of long" >&5
19775 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19776 if test "${pgac_cv_alignof_long+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 if test "$ac_cv_type_long" = yes; then
19780 if test "$cross_compiling" = yes; then
19781 # Depending upon the size, compute the lo and hi bounds.
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19788 $ac_includes_default
19789 struct { char filler; long field; } pgac_struct;
19793 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802 (eval $ac_compile) 2>conftest.er1
19804 grep -v '^ *+' conftest.er1 >conftest.err
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
19809 { ac_try='test -z "$ac_c_werror_flag"
19810 || test ! -s conftest.err'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818 (eval $ac_try) 2>&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); }; }; then
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 $ac_includes_default
19831 struct { char filler; long field; } pgac_struct;
19835 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19842 rm -f conftest.$ac_objext
19843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19844 (eval $ac_compile) 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
19851 { ac_try='test -z "$ac_c_werror_flag"
19852 || test ! -s conftest.err'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
19859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_hi=$ac_mid; break
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 ac_lo=`expr $ac_mid + 1`
19870 if test $ac_lo -le $ac_mid; then
19874 ac_mid=`expr 2 '*' $ac_mid + 1`
19876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19889 struct { char filler; long field; } pgac_struct;
19893 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19900 rm -f conftest.$ac_objext
19901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19902 (eval $ac_compile) 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
19909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19924 cat >conftest.$ac_ext <<_ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19930 $ac_includes_default
19931 struct { char filler; long field; } pgac_struct;
19935 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19942 rm -f conftest.$ac_objext
19943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19944 (eval $ac_compile) 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_c_werror_flag"
19952 || test ! -s conftest.err'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; } &&
19958 { ac_try='test -s conftest.$ac_objext'
19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960 (eval $ac_try) 2>&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); }; }; then
19964 ac_lo=$ac_mid; break
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 ac_hi=`expr '(' $ac_mid ')' - 1`
19970 if test $ac_mid -le $ac_hi; then
19974 ac_mid=`expr 2 '*' $ac_mid`
19976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19987 # Binary search between lo and hi bounds.
19988 while test "x$ac_lo" != "x$ac_hi"; do
19989 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19990 cat >conftest.$ac_ext <<_ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19996 $ac_includes_default
19997 struct { char filler; long field; } pgac_struct;
20001 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20008 rm -f conftest.$ac_objext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20010 (eval $ac_compile) 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest.$ac_objext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_lo=`expr '(' $ac_mid ')' + 1`
20037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20040 ?*) pgac_cv_alignof_long=$ac_lo;;
20041 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20042 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20043 { (exit 1); exit 1; }; } ;;
20046 if test "$cross_compiling" = yes; then
20047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20048 See \`config.log' for more details." >&5
20049 echo "$as_me: error: cannot run test program while cross compiling
20050 See \`config.log' for more details." >&2;}
20051 { (exit 1); exit 1; }; }
20053 cat >conftest.$ac_ext <<_ACEOF
20056 cat confdefs.h >>conftest.$ac_ext
20057 cat >>conftest.$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 $ac_includes_default
20060 struct { char filler; long field; } pgac_struct;
20061 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20062 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20064 #include <stdlib.h>
20069 FILE *f = fopen ("conftest.val", "w");
20072 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20074 long i = longval ();
20075 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20077 fprintf (f, "%ld\n", i);
20081 unsigned long i = ulongval ();
20082 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20084 fprintf (f, "%lu\n", i);
20086 exit (ferror (f) || fclose (f) != 0);
20092 rm -f conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094 (eval $ac_link) 2>&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; }; then
20103 pgac_cv_alignof_long=`cat conftest.val`
20105 echo "$as_me: program exited with status $ac_status" >&5
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ( exit $ac_status )
20110 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
20111 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
20112 { (exit 1); exit 1; }; }
20114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20119 pgac_cv_alignof_long=0
20122 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
20123 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
20124 cat >>confdefs.h <<_ACEOF
20125 #define ALIGNOF_LONG $pgac_cv_alignof_long
20129 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
20130 echo "$as_me:$LINENO: checking for long long int" >&5
20131 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
20132 if test "${ac_cv_type_long_long_int+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 $ac_includes_default
20145 if ((long long int *) 0)
20147 if (sizeof (long long int))
20153 rm -f conftest.$ac_objext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20155 (eval $ac_compile) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag"
20163 || test ! -s conftest.err'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_type_long_long_int=yes
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_type_long_long_int=no
20182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20184 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
20185 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
20187 echo "$as_me:$LINENO: checking alignment of long long int" >&5
20188 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
20189 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20192 if test "$ac_cv_type_long_long_int" = yes; then
20193 if test "$cross_compiling" = yes; then
20194 # Depending upon the size, compute the lo and hi bounds.
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20202 struct { char filler; long long int field; } pgac_struct;
20206 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20213 rm -f conftest.$ac_objext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20215 (eval $ac_compile) 2>conftest.er1
20217 grep -v '^ *+' conftest.er1 >conftest.err
20219 cat conftest.err >&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); } &&
20222 { ac_try='test -z "$ac_c_werror_flag"
20223 || test ! -s conftest.err'
20224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20225 (eval $ac_try) 2>&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); }; } &&
20229 { ac_try='test -s conftest.$ac_objext'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243 $ac_includes_default
20244 struct { char filler; long long int field; } pgac_struct;
20248 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20255 rm -f conftest.$ac_objext
20256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20257 (eval $ac_compile) 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } &&
20264 { ac_try='test -z "$ac_c_werror_flag"
20265 || test ! -s conftest.err'
20266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20267 (eval $ac_try) 2>&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); }; } &&
20271 { ac_try='test -s conftest.$ac_objext'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; }; then
20277 ac_hi=$ac_mid; break
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_lo=`expr $ac_mid + 1`
20283 if test $ac_lo -le $ac_mid; then
20287 ac_mid=`expr 2 '*' $ac_mid + 1`
20289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20301 $ac_includes_default
20302 struct { char filler; long long int field; } pgac_struct;
20306 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20313 rm -f conftest.$ac_objext
20314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315 (eval $ac_compile) 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } &&
20322 { ac_try='test -z "$ac_c_werror_flag"
20323 || test ! -s conftest.err'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest.$ac_objext'
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 $ac_includes_default
20344 struct { char filler; long long int field; } pgac_struct;
20348 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20355 rm -f conftest.$ac_objext
20356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag"
20365 || test ! -s conftest.err'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } &&
20371 { ac_try='test -s conftest.$ac_objext'
20372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373 (eval $ac_try) 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_lo=$ac_mid; break
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_hi=`expr '(' $ac_mid ')' - 1`
20383 if test $ac_mid -le $ac_hi; then
20387 ac_mid=`expr 2 '*' $ac_mid`
20389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20400 # Binary search between lo and hi bounds.
20401 while test "x$ac_lo" != "x$ac_hi"; do
20402 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20410 struct { char filler; long long int field; } pgac_struct;
20414 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 ac_lo=`expr '(' $ac_mid ')' + 1`
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20453 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20454 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20455 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20456 { (exit 1); exit 1; }; } ;;
20459 if test "$cross_compiling" = yes; then
20460 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20461 See \`config.log' for more details." >&5
20462 echo "$as_me: error: cannot run test program while cross compiling
20463 See \`config.log' for more details." >&2;}
20464 { (exit 1); exit 1; }; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20473 struct { char filler; long long int field; } pgac_struct;
20474 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20475 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20477 #include <stdlib.h>
20482 FILE *f = fopen ("conftest.val", "w");
20485 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20487 long i = longval ();
20488 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20490 fprintf (f, "%ld\n", i);
20494 unsigned long i = ulongval ();
20495 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20497 fprintf (f, "%lu\n", i);
20499 exit (ferror (f) || fclose (f) != 0);
20505 rm -f conftest$ac_exeext
20506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20507 (eval $ac_link) 2>&5
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; }; then
20516 pgac_cv_alignof_long_long_int=`cat conftest.val`
20518 echo "$as_me: program exited with status $ac_status" >&5
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ( exit $ac_status )
20523 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20524 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20525 { (exit 1); exit 1; }; }
20527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20532 pgac_cv_alignof_long_long_int=0
20535 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20536 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20537 cat >>confdefs.h <<_ACEOF
20538 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20543 echo "$as_me:$LINENO: checking for double" >&5
20544 echo $ECHO_N "checking for double... $ECHO_C" >&6
20545 if test "${ac_cv_type_double+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.$ac_ext <<_ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 $ac_includes_default
20560 if (sizeof (double))
20566 rm -f conftest.$ac_objext
20567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20568 (eval $ac_compile) 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
20575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest.$ac_objext'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_type_double=yes
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_type_double=no
20595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20597 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20598 echo "${ECHO_T}$ac_cv_type_double" >&6
20600 echo "$as_me:$LINENO: checking alignment of double" >&5
20601 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20602 if test "${pgac_cv_alignof_double+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 if test "$ac_cv_type_double" = yes; then
20606 if test "$cross_compiling" = yes; then
20607 # Depending upon the size, compute the lo and hi bounds.
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 $ac_includes_default
20615 struct { char filler; double field; } pgac_struct;
20619 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20626 rm -f conftest.$ac_objext
20627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20628 (eval $ac_compile) 2>conftest.er1
20630 grep -v '^ *+' conftest.er1 >conftest.err
20632 cat conftest.err >&5
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); } &&
20635 { ac_try='test -z "$ac_c_werror_flag"
20636 || test ! -s conftest.err'
20637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638 (eval $ac_try) 2>&5
20640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }; } &&
20642 { ac_try='test -s conftest.$ac_objext'
20643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644 (eval $ac_try) 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20650 cat >conftest.$ac_ext <<_ACEOF
20653 cat confdefs.h >>conftest.$ac_ext
20654 cat >>conftest.$ac_ext <<_ACEOF
20655 /* end confdefs.h. */
20656 $ac_includes_default
20657 struct { char filler; double field; } pgac_struct;
20661 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20668 rm -f conftest.$ac_objext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20670 (eval $ac_compile) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest.$ac_objext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_hi=$ac_mid; break
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_lo=`expr $ac_mid + 1`
20696 if test $ac_lo -le $ac_mid; then
20700 ac_mid=`expr 2 '*' $ac_mid + 1`
20702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 $ac_includes_default
20715 struct { char filler; double field; } pgac_struct;
20719 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20726 rm -f conftest.$ac_objext
20727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20728 (eval $ac_compile) 2>conftest.er1
20730 grep -v '^ *+' conftest.er1 >conftest.err
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
20735 { ac_try='test -z "$ac_c_werror_flag"
20736 || test ! -s conftest.err'
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 $ac_includes_default
20757 struct { char filler; double field; } pgac_struct;
20761 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20768 rm -f conftest.$ac_objext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770 (eval $ac_compile) 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } &&
20777 { ac_try='test -z "$ac_c_werror_flag"
20778 || test ! -s conftest.err'
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; }; then
20790 ac_lo=$ac_mid; break
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_hi=`expr '(' $ac_mid ')' - 1`
20796 if test $ac_mid -le $ac_hi; then
20800 ac_mid=`expr 2 '*' $ac_mid`
20802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20805 echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20813 # Binary search between lo and hi bounds.
20814 while test "x$ac_lo" != "x$ac_hi"; do
20815 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20823 struct { char filler; double field; } pgac_struct;
20827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20834 rm -f conftest.$ac_objext
20835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20836 (eval $ac_compile) 2>conftest.er1
20838 grep -v '^ *+' conftest.er1 >conftest.err
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } &&
20843 { ac_try='test -z "$ac_c_werror_flag"
20844 || test ! -s conftest.err'
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20858 echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_lo=`expr '(' $ac_mid ')' + 1`
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20866 ?*) pgac_cv_alignof_double=$ac_lo;;
20867 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20868 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20869 { (exit 1); exit 1; }; } ;;
20872 if test "$cross_compiling" = yes; then
20873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20874 See \`config.log' for more details." >&5
20875 echo "$as_me: error: cannot run test program while cross compiling
20876 See \`config.log' for more details." >&2;}
20877 { (exit 1); exit 1; }; }
20879 cat >conftest.$ac_ext <<_ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 $ac_includes_default
20886 struct { char filler; double field; } pgac_struct;
20887 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20888 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20890 #include <stdlib.h>
20895 FILE *f = fopen ("conftest.val", "w");
20898 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20900 long i = longval ();
20901 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20903 fprintf (f, "%ld\n", i);
20907 unsigned long i = ulongval ();
20908 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20910 fprintf (f, "%lu\n", i);
20912 exit (ferror (f) || fclose (f) != 0);
20918 rm -f conftest$ac_exeext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20920 (eval $ac_link) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20925 (eval $ac_try) 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; }; then
20929 pgac_cv_alignof_double=`cat conftest.val`
20931 echo "$as_me: program exited with status $ac_status" >&5
20932 echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ( exit $ac_status )
20936 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20937 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20938 { (exit 1); exit 1; }; }
20940 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20945 pgac_cv_alignof_double=0
20948 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20949 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20950 cat >>confdefs.h <<_ACEOF
20951 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20956 # Compute maximum alignment of any basic type.
20957 # We assume long's alignment is at least as strong as char, short, or int;
20958 # but we must check long long (if it exists) and double.
20960 MAX_ALIGNOF=$pgac_cv_alignof_long
20961 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20962 MAX_ALIGNOF=$pgac_cv_alignof_double
20964 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20965 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20968 cat >>confdefs.h <<_ACEOF
20969 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20974 # Some platforms predefine the types int8, int16, etc. Only check
20975 # a (hopefully) representative subset.
20976 echo "$as_me:$LINENO: checking for int8" >&5
20977 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20978 if test "${ac_cv_type_int8+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 #ifdef HAVE_SUPPORTDEFS_H
20989 #include <SupportDefs.h>
21003 rm -f conftest.$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } &&
21012 { ac_try='test -z "$ac_c_werror_flag"
21013 || test ! -s conftest.err'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 ac_cv_type_int8=yes
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
21035 echo "${ECHO_T}$ac_cv_type_int8" >&6
21036 if test $ac_cv_type_int8 = yes; then
21038 cat >>confdefs.h <<_ACEOF
21039 #define HAVE_INT8 1
21044 echo "$as_me:$LINENO: checking for uint8" >&5
21045 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
21046 if test "${ac_cv_type_uint8+set}" = set; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21056 #ifdef HAVE_SUPPORTDEFS_H
21057 #include <SupportDefs.h>
21065 if (sizeof (uint8))
21071 rm -f conftest.$ac_objext
21072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21073 (eval $ac_compile) 2>conftest.er1
21075 grep -v '^ *+' conftest.er1 >conftest.err
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
21080 { ac_try='test -z "$ac_c_werror_flag"
21081 || test ! -s conftest.err'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 ac_cv_type_uint8=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_cv_type_uint8=no
21100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
21103 echo "${ECHO_T}$ac_cv_type_uint8" >&6
21104 if test $ac_cv_type_uint8 = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define HAVE_UINT8 1
21112 echo "$as_me:$LINENO: checking for int64" >&5
21113 echo $ECHO_N "checking for int64... $ECHO_C" >&6
21114 if test "${ac_cv_type_int64+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21124 #ifdef HAVE_SUPPORTDEFS_H
21125 #include <SupportDefs.h>
21133 if (sizeof (int64))
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141 (eval $ac_compile) 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -z "$ac_c_werror_flag"
21149 || test ! -s conftest.err'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; } &&
21155 { ac_try='test -s conftest.$ac_objext'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; }; then
21161 ac_cv_type_int64=yes
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ac_cv_type_int64=no
21168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
21171 echo "${ECHO_T}$ac_cv_type_int64" >&6
21172 if test $ac_cv_type_int64 = yes; then
21174 cat >>confdefs.h <<_ACEOF
21175 #define HAVE_INT64 1
21180 echo "$as_me:$LINENO: checking for uint64" >&5
21181 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
21182 if test "${ac_cv_type_uint64+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21192 #ifdef HAVE_SUPPORTDEFS_H
21193 #include <SupportDefs.h>
21201 if (sizeof (uint64))
21207 rm -f conftest.$ac_objext
21208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21209 (eval $ac_compile) 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
21216 { ac_try='test -z "$ac_c_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_type_uint64=yes
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_cv_type_uint64=no
21236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21238 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
21239 echo "${ECHO_T}$ac_cv_type_uint64" >&6
21240 if test $ac_cv_type_uint64 = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define HAVE_UINT64 1
21250 # We also check for sig_atomic_t, which *should* be defined per ANSI
21251 # C, but is missing on some old platforms.
21252 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
21253 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
21254 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
21255 echo $ECHO_N "(cached) $ECHO_C" >&6
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 #include <signal.h>
21268 if ((sig_atomic_t *) 0)
21270 if (sizeof (sig_atomic_t))
21276 rm -f conftest.$ac_objext
21277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21278 (eval $ac_compile) 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } &&
21285 { ac_try='test -z "$ac_c_werror_flag"
21286 || test ! -s conftest.err'
21287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; } &&
21292 { ac_try='test -s conftest.$ac_objext'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; }; then
21298 ac_cv_type_sig_atomic_t=yes
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_cv_type_sig_atomic_t=no
21305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21307 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
21308 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
21309 if test $ac_cv_type_sig_atomic_t = yes; then
21311 cat >>confdefs.h <<_ACEOF
21312 #define HAVE_SIG_ATOMIC_T 1
21320 if test x"$template" != x"win32"
21322 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
21323 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
21324 if test "${pgac_cv_func_posix_signals+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 cat >conftest.$ac_ext <<_ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 #include <signal.h>
21338 struct sigaction act, oact;
21339 sigemptyset(&act.sa_mask);
21340 act.sa_flags = SA_RESTART;
21341 sigaction(0, &act, &oact);
21346 rm -f conftest.$ac_objext conftest$ac_exeext
21347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21348 (eval $ac_link) 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
21355 { ac_try='test -z "$ac_c_werror_flag"
21356 || test ! -s conftest.err'
21357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358 (eval $ac_try) 2>&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); }; } &&
21362 { ac_try='test -s conftest$ac_exeext'
21363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21368 pgac_cv_func_posix_signals=yes
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 pgac_cv_func_posix_signals=no
21375 rm -f conftest.err conftest.$ac_objext \
21376 conftest$ac_exeext conftest.$ac_ext
21378 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21379 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21380 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21382 cat >>confdefs.h <<\_ACEOF
21383 #define HAVE_POSIX_SIGNALS
21387 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21389 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21390 { { echo "$as_me:$LINENO: error:
21391 *** Thread-safety requires POSIX signals, which are not supported by your
21392 *** operating system.
21394 echo "$as_me: error:
21395 *** Thread-safety requires POSIX signals, which are not supported by your
21396 *** operating system.
21398 { (exit 1); exit 1; }; }
21402 if test $ac_cv_func_fseeko = yes; then
21403 # Check whether --enable-largefile or --disable-largefile was given.
21404 if test "${enable_largefile+set}" = set; then
21405 enableval="$enable_largefile"
21408 if test "$enable_largefile" != no; then
21410 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21411 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21412 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21413 echo $ECHO_N "(cached) $ECHO_C" >&6
21415 ac_cv_sys_largefile_CC=no
21416 if test "$GCC" != yes; then
21419 # IRIX 6.2 and later do not support large files by default,
21420 # so use the C compiler's -n32 option if that helps.
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <sys/types.h>
21428 /* Check that off_t can represent 2**63 - 1 correctly.
21429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21430 since some C++ compilers masquerading as C compilers
21431 incorrectly reject 9223372036854775807. */
21432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21434 && LARGE_OFF_T % 2147483647 == 1)
21444 rm -f conftest.$ac_objext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21446 (eval $ac_compile) 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } &&
21453 { ac_try='test -z "$ac_c_werror_flag"
21454 || test ! -s conftest.err'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; } &&
21460 { ac_try='test -s conftest.$ac_objext'
21461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462 (eval $ac_try) 2>&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); }; }; then
21468 echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21472 rm -f conftest.err conftest.$ac_objext
21474 rm -f conftest.$ac_objext
21475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21476 (eval $ac_compile) 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } &&
21483 { ac_try='test -z "$ac_c_werror_flag"
21484 || test ! -s conftest.err'
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; } &&
21490 { ac_try='test -s conftest.$ac_objext'
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; }; then
21496 ac_cv_sys_largefile_CC=' -n32'; break
21498 echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21502 rm -f conftest.err conftest.$ac_objext
21506 rm -f conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21510 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21511 if test "$ac_cv_sys_largefile_CC" != no; then
21512 CC=$CC$ac_cv_sys_largefile_CC
21515 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21516 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21517 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 ac_cv_sys_file_offset_bits=no
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <sys/types.h>
21529 /* Check that off_t can represent 2**63 - 1 correctly.
21530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21531 since some C++ compilers masquerading as C compilers
21532 incorrectly reject 9223372036854775807. */
21533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21535 && LARGE_OFF_T % 2147483647 == 1)
21545 rm -f conftest.$ac_objext
21546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21547 (eval $ac_compile) 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } &&
21554 { ac_try='test -z "$ac_c_werror_flag"
21555 || test ! -s conftest.err'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest.$ac_objext'
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #define _FILE_OFFSET_BITS 64
21581 #include <sys/types.h>
21582 /* Check that off_t can represent 2**63 - 1 correctly.
21583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21584 since some C++ compilers masquerading as C compilers
21585 incorrectly reject 9223372036854775807. */
21586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21588 && LARGE_OFF_T % 2147483647 == 1)
21598 rm -f conftest.$ac_objext
21599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21600 (eval $ac_compile) 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); } &&
21607 { ac_try='test -z "$ac_c_werror_flag"
21608 || test ! -s conftest.err'
21609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610 (eval $ac_try) 2>&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; } &&
21614 { ac_try='test -s conftest.$ac_objext'
21615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21616 (eval $ac_try) 2>&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; }; then
21620 ac_cv_sys_file_offset_bits=64; break
21622 echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21630 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21631 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21632 if test "$ac_cv_sys_file_offset_bits" != no; then
21634 cat >>confdefs.h <<_ACEOF
21635 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21640 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21641 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21642 if test "${ac_cv_sys_large_files+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21646 ac_cv_sys_large_files=no
21647 cat >conftest.$ac_ext <<_ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <sys/types.h>
21654 /* Check that off_t can represent 2**63 - 1 correctly.
21655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21656 since some C++ compilers masquerading as C compilers
21657 incorrectly reject 9223372036854775807. */
21658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21660 && LARGE_OFF_T % 2147483647 == 1)
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672 (eval $ac_compile) 2>conftest.er1
21674 grep -v '^ *+' conftest.er1 >conftest.err
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
21679 { ac_try='test -z "$ac_c_werror_flag"
21680 || test ! -s conftest.err'
21681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); }; } &&
21686 { ac_try='test -s conftest.$ac_objext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 #define _LARGE_FILES 1
21706 #include <sys/types.h>
21707 /* Check that off_t can represent 2**63 - 1 correctly.
21708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21709 since some C++ compilers masquerading as C compilers
21710 incorrectly reject 9223372036854775807. */
21711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21713 && LARGE_OFF_T % 2147483647 == 1)
21723 rm -f conftest.$ac_objext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21725 (eval $ac_compile) 2>conftest.er1
21727 grep -v '^ *+' conftest.er1 >conftest.err
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
21732 { ac_try='test -z "$ac_c_werror_flag"
21733 || test ! -s conftest.err'
21734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21735 (eval $ac_try) 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); }; } &&
21739 { ac_try='test -s conftest.$ac_objext'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; }; then
21745 ac_cv_sys_large_files=1; break
21747 echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21755 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21756 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21757 if test "$ac_cv_sys_large_files" != no; then
21759 cat >>confdefs.h <<_ACEOF
21760 #define _LARGE_FILES $ac_cv_sys_large_files
21769 # SunOS doesn't handle negative byte comparisons properly with +/- return
21770 echo "$as_me:$LINENO: checking for working memcmp" >&5
21771 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21772 if test "${ac_cv_func_memcmp_working+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 if test "$cross_compiling" = yes; then
21776 ac_cv_func_memcmp_working=no
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 $ac_includes_default
21789 /* Some versions of memcmp are not 8-bit clean. */
21790 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21791 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21794 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21795 or more and with at least one buffer not starting on a 4-byte boundary.
21796 William Lewis provided this test program. */
21801 for (i = 0; i < 4; i++)
21805 strcpy (a, "--------01111111");
21806 strcpy (b, "--------10000000");
21807 if (memcmp (a, b, 16) >= 0)
21817 rm -f conftest$ac_exeext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21819 (eval $ac_link) 2>&5
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_cv_func_memcmp_working=yes
21830 echo "$as_me: program exited with status $ac_status" >&5
21831 echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21834 ( exit $ac_status )
21835 ac_cv_func_memcmp_working=no
21837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21840 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21841 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21842 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21843 "memcmp.$ac_objext" | \
21844 *" memcmp.$ac_objext" | \
21845 "memcmp.$ac_objext "* | \
21846 *" memcmp.$ac_objext "* ) ;;
21847 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21853 # Select semaphore implementation type.
21854 if test "$PORTNAME" != "win32"; then
21855 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21857 cat >>confdefs.h <<\_ACEOF
21858 #define USE_NAMED_POSIX_SEMAPHORES 1
21861 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21863 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21865 cat >>confdefs.h <<\_ACEOF
21866 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21869 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21872 cat >>confdefs.h <<\_ACEOF
21873 #define USE_SYSV_SEMAPHORES 1
21876 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21881 cat >>confdefs.h <<\_ACEOF
21882 #define USE_WIN32_SEMAPHORES 1
21885 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
21889 # Select shared-memory implementation type.
21891 cat >>confdefs.h <<\_ACEOF
21892 #define USE_SYSV_SHARED_MEMORY 1
21895 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21898 # If not set in template file, set bytes to use libc memset()
21899 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21900 MEMSET_LOOP_LIMIT=1024
21903 cat >>confdefs.h <<_ACEOF
21904 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21909 if test "$enable_nls" = yes ; then
21911 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21912 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21913 if test "${ac_cv_search_gettext+set}" = set; then
21914 echo $ECHO_N "(cached) $ECHO_C" >&6
21916 ac_func_search_save_LIBS=$LIBS
21917 ac_cv_search_gettext=no
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21925 /* Override any gcc2 internal prototype to avoid an error. */
21929 /* We use char because int might match the return type of a gcc2
21930 builtin and then its argument prototype would still apply. */
21940 rm -f conftest.$ac_objext conftest$ac_exeext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21942 (eval $ac_link) 2>conftest.er1
21944 grep -v '^ *+' conftest.er1 >conftest.err
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try='test -s conftest$ac_exeext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 ac_cv_search_gettext="none required"
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21968 rm -f conftest.err conftest.$ac_objext \
21969 conftest$ac_exeext conftest.$ac_ext
21970 if test "$ac_cv_search_gettext" = no; then
21971 for ac_lib in intl; do
21972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21980 /* Override any gcc2 internal prototype to avoid an error. */
21984 /* We use char because int might match the return type of a gcc2
21985 builtin and then its argument prototype would still apply. */
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21997 (eval $ac_link) 2>conftest.er1
21999 grep -v '^ *+' conftest.er1 >conftest.err
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } &&
22004 { ac_try='test -z "$ac_c_werror_flag"
22005 || test ! -s conftest.err'
22006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007 (eval $ac_try) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; } &&
22011 { ac_try='test -s conftest$ac_exeext'
22012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22013 (eval $ac_try) 2>&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); }; }; then
22017 ac_cv_search_gettext="-l$ac_lib"
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22024 rm -f conftest.err conftest.$ac_objext \
22025 conftest$ac_exeext conftest.$ac_ext
22028 LIBS=$ac_func_search_save_LIBS
22030 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
22031 echo "${ECHO_T}$ac_cv_search_gettext" >&6
22032 if test "$ac_cv_search_gettext" != no; then
22033 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
22036 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
22037 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
22038 { (exit 1); exit 1; }; }
22041 if test "${ac_cv_header_libintl_h+set}" = set; then
22042 echo "$as_me:$LINENO: checking for libintl.h" >&5
22043 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22044 if test "${ac_cv_header_libintl_h+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22047 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22048 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22050 # Is the header compilable?
22051 echo "$as_me:$LINENO: checking libintl.h usability" >&5
22052 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
22053 cat >conftest.$ac_ext <<_ACEOF
22056 cat confdefs.h >>conftest.$ac_ext
22057 cat >>conftest.$ac_ext <<_ACEOF
22058 /* end confdefs.h. */
22059 $ac_includes_default
22060 #include <libintl.h>
22062 rm -f conftest.$ac_objext
22063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22064 (eval $ac_compile) 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
22071 { ac_try='test -z "$ac_c_werror_flag"
22072 || test ! -s conftest.err'
22073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22074 (eval $ac_try) 2>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); }; } &&
22078 { ac_try='test -s conftest.$ac_objext'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; }; then
22084 ac_header_compiler=yes
22086 echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ac_header_compiler=no
22091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22093 echo "${ECHO_T}$ac_header_compiler" >&6
22095 # Is the header present?
22096 echo "$as_me:$LINENO: checking libintl.h presence" >&5
22097 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include <libintl.h>
22106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } >/dev/null; then
22114 if test -s conftest.err; then
22115 ac_cpp_err=$ac_c_preproc_warn_flag
22116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22123 if test -z "$ac_cpp_err"; then
22124 ac_header_preproc=yes
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ac_header_preproc=no
22131 rm -f conftest.err conftest.$ac_ext
22132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22133 echo "${ECHO_T}$ac_header_preproc" >&6
22135 # So? What about this header?
22136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22138 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22139 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
22141 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
22142 ac_header_preproc=yes
22145 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
22146 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
22147 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
22148 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
22149 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
22150 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
22152 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
22154 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
22156 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
22159 ## ---------------------------------------- ##
22160 ## Report this to pgsql-bugs@postgresql.org ##
22161 ## ---------------------------------------- ##
22164 sed "s/^/$as_me: WARNING: /" >&2
22167 echo "$as_me:$LINENO: checking for libintl.h" >&5
22168 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
22169 if test "${ac_cv_header_libintl_h+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 ac_cv_header_libintl_h=$ac_header_preproc
22174 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
22175 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
22178 if test $ac_cv_header_libintl_h = yes; then
22181 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
22182 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
22183 { (exit 1); exit 1; }; }
22187 for ac_prog in msgfmt
22189 # Extract the first word of "$ac_prog", so it can be a program name with args.
22190 set dummy $ac_prog; ac_word=$2
22191 echo "$as_me:$LINENO: checking for $ac_word" >&5
22192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22193 if test "${ac_cv_prog_MSGFMT+set}" = set; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22196 if test -n "$MSGFMT"; then
22197 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
22199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22200 for as_dir in $PATH
22203 test -z "$as_dir" && as_dir=.
22204 for ac_exec_ext in '' $ac_executable_extensions; do
22205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22206 ac_cv_prog_MSGFMT="$ac_prog"
22207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22215 MSGFMT=$ac_cv_prog_MSGFMT
22216 if test -n "$MSGFMT"; then
22217 echo "$as_me:$LINENO: result: $MSGFMT" >&5
22218 echo "${ECHO_T}$MSGFMT" >&6
22220 echo "$as_me:$LINENO: result: no" >&5
22221 echo "${ECHO_T}no" >&6
22224 test -n "$MSGFMT" && break
22227 if test -z "$MSGFMT"; then
22228 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
22229 echo "$as_me: error: msgfmt is required for NLS" >&2;}
22230 { (exit 1); exit 1; }; }
22232 for ac_prog in msgmerge
22234 # Extract the first word of "$ac_prog", so it can be a program name with args.
22235 set dummy $ac_prog; ac_word=$2
22236 echo "$as_me:$LINENO: checking for $ac_word" >&5
22237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22238 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 if test -n "$MSGMERGE"; then
22242 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
22244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22245 for as_dir in $PATH
22248 test -z "$as_dir" && as_dir=.
22249 for ac_exec_ext in '' $ac_executable_extensions; do
22250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22251 ac_cv_prog_MSGMERGE="$ac_prog"
22252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22260 MSGMERGE=$ac_cv_prog_MSGMERGE
22261 if test -n "$MSGMERGE"; then
22262 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
22263 echo "${ECHO_T}$MSGMERGE" >&6
22265 echo "$as_me:$LINENO: result: no" >&5
22266 echo "${ECHO_T}no" >&6
22269 test -n "$MSGMERGE" && break
22272 for ac_prog in xgettext
22274 # Extract the first word of "$ac_prog", so it can be a program name with args.
22275 set dummy $ac_prog; ac_word=$2
22276 echo "$as_me:$LINENO: checking for $ac_word" >&5
22277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22278 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22281 if test -n "$XGETTEXT"; then
22282 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
22284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22285 for as_dir in $PATH
22288 test -z "$as_dir" && as_dir=.
22289 for ac_exec_ext in '' $ac_executable_extensions; do
22290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22291 ac_cv_prog_XGETTEXT="$ac_prog"
22292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22300 XGETTEXT=$ac_cv_prog_XGETTEXT
22301 if test -n "$XGETTEXT"; then
22302 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22303 echo "${ECHO_T}$XGETTEXT" >&6
22305 echo "$as_me:$LINENO: result: no" >&5
22306 echo "${ECHO_T}no" >&6
22309 test -n "$XGETTEXT" && break
22313 # Note: share/locale is always the default, independent of $datadir
22314 localedir='${prefix}/share/locale'
22319 # Check for Tcl configuration script tclConfig.sh
22320 if test "$with_tcl" = yes; then
22321 for ac_prog in tclsh tcl
22323 # Extract the first word of "$ac_prog", so it can be a program name with args.
22324 set dummy $ac_prog; ac_word=$2
22325 echo "$as_me:$LINENO: checking for $ac_word" >&5
22326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22327 if test "${ac_cv_path_TCLSH+set}" = set; then
22328 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22339 test -z "$as_dir" && as_dir=.
22340 for ac_exec_ext in '' $ac_executable_extensions; do
22341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22342 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 TCLSH=$ac_cv_path_TCLSH
22354 if test -n "$TCLSH"; then
22355 echo "$as_me:$LINENO: result: $TCLSH" >&5
22356 echo "${ECHO_T}$TCLSH" >&6
22358 echo "$as_me:$LINENO: result: no" >&5
22359 echo "${ECHO_T}no" >&6
22362 test -n "$TCLSH" && break
22365 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22366 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22367 # Let user override test
22368 if test -z "$TCL_CONFIG_SH"; then
22369 pgac_test_dirs="$with_tclconfig"
22371 set X $pgac_test_dirs; shift
22372 if test $# -eq 0; then
22373 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22374 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22375 { (exit 1); exit 1; }; }
22376 set X `echo 'puts $auto_path' | $TCLSH`; shift
22380 if test -r "$pgac_dir/tclConfig.sh"; then
22381 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22387 if test -z "$TCL_CONFIG_SH"; then
22388 echo "$as_me:$LINENO: result: no" >&5
22389 echo "${ECHO_T}no" >&6
22390 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22391 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22392 { (exit 1); exit 1; }; }
22394 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22395 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22401 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22402 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22403 eval TCL_LIBS=\"$TCL_LIBS\"
22404 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22405 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22407 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22408 ac_save_CPPFLAGS=$CPPFLAGS
22409 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22410 if test "${ac_cv_header_tcl_h+set}" = set; then
22411 echo "$as_me:$LINENO: checking for tcl.h" >&5
22412 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22413 if test "${ac_cv_header_tcl_h+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22417 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22419 # Is the header compilable?
22420 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22421 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 $ac_includes_default
22431 rm -f conftest.$ac_objext
22432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22433 (eval $ac_compile) 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
22440 { ac_try='test -z "$ac_c_werror_flag"
22441 || test ! -s conftest.err'
22442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); }; } &&
22447 { ac_try='test -s conftest.$ac_objext'
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; }; then
22453 ac_header_compiler=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ac_header_compiler=no
22460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22462 echo "${ECHO_T}$ac_header_compiler" >&6
22464 # Is the header present?
22465 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22466 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22478 grep -v '^ *+' conftest.er1 >conftest.err
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } >/dev/null; then
22483 if test -s conftest.err; then
22484 ac_cpp_err=$ac_c_preproc_warn_flag
22485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22492 if test -z "$ac_cpp_err"; then
22493 ac_header_preproc=yes
22495 echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22498 ac_header_preproc=no
22500 rm -f conftest.err conftest.$ac_ext
22501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22502 echo "${ECHO_T}$ac_header_preproc" >&6
22504 # So? What about this header?
22505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22507 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22508 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22509 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22510 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22511 ac_header_preproc=yes
22514 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22515 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22517 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22519 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22521 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22523 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22524 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22525 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22528 ## ---------------------------------------- ##
22529 ## Report this to pgsql-bugs@postgresql.org ##
22530 ## ---------------------------------------- ##
22533 sed "s/^/$as_me: WARNING: /" >&2
22536 echo "$as_me:$LINENO: checking for tcl.h" >&5
22537 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22538 if test "${ac_cv_header_tcl_h+set}" = set; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22541 ac_cv_header_tcl_h=$ac_header_preproc
22543 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22544 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22547 if test $ac_cv_header_tcl_h = yes; then
22550 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22551 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22552 { (exit 1); exit 1; }; }
22556 CPPFLAGS=$ac_save_CPPFLAGS
22560 # Check for DocBook and tools
22562 for ac_prog in onsgmls nsgmls
22564 # Extract the first word of "$ac_prog", so it can be a program name with args.
22565 set dummy $ac_prog; ac_word=$2
22566 echo "$as_me:$LINENO: checking for $ac_word" >&5
22567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22568 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 if test -n "$NSGMLS"; then
22572 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22575 for as_dir in $PATH
22578 test -z "$as_dir" && as_dir=.
22579 for ac_exec_ext in '' $ac_executable_extensions; do
22580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22581 ac_cv_prog_NSGMLS="$ac_prog"
22582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22590 NSGMLS=$ac_cv_prog_NSGMLS
22591 if test -n "$NSGMLS"; then
22592 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22593 echo "${ECHO_T}$NSGMLS" >&6
22595 echo "$as_me:$LINENO: result: no" >&5
22596 echo "${ECHO_T}no" >&6
22599 test -n "$NSGMLS" && break
22602 for ac_prog in openjade jade
22604 # Extract the first word of "$ac_prog", so it can be a program name with args.
22605 set dummy $ac_prog; ac_word=$2
22606 echo "$as_me:$LINENO: checking for $ac_word" >&5
22607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22608 if test "${ac_cv_prog_JADE+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 if test -n "$JADE"; then
22612 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22615 for as_dir in $PATH
22618 test -z "$as_dir" && as_dir=.
22619 for ac_exec_ext in '' $ac_executable_extensions; do
22620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22621 ac_cv_prog_JADE="$ac_prog"
22622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22630 JADE=$ac_cv_prog_JADE
22631 if test -n "$JADE"; then
22632 echo "$as_me:$LINENO: result: $JADE" >&5
22633 echo "${ECHO_T}$JADE" >&6
22635 echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6
22639 test -n "$JADE" && break
22643 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22644 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22645 if test "${pgac_cv_check_docbook+set}" = set; then
22646 echo $ECHO_N "(cached) $ECHO_C" >&6
22648 cat >conftest.sgml <<EOF
22649 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22651 <title>test</title>
22653 <title>random</title>
22655 <title>testsect</title>
22662 pgac_cv_check_docbook=no
22664 if test -n "$NSGMLS"; then
22665 $NSGMLS -s conftest.sgml 1>&5 2>&1
22666 if test $? -eq 0; then
22667 pgac_cv_check_docbook=yes
22670 rm -f conftest.sgml
22672 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22673 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22675 have_docbook=$pgac_cv_check_docbook
22678 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22679 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22680 if test "${pgac_cv_path_stylesheets+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22683 if test -n "$DOCBOOKSTYLE"; then
22684 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22686 for pgac_prefix in /usr /usr/local /opt; do
22687 for pgac_infix in share lib; do
22688 for pgac_postfix in \
22689 sgml/stylesheets/nwalsh-modular \
22690 sgml/stylesheets/docbook \
22691 sgml/docbook-dsssl \
22692 sgml/docbook/dsssl/modular \
22693 sgml/docbook/stylesheet/dsssl/modular \
22694 sgml/docbook/dsssl-stylesheets
22696 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22697 if test -r "$pgac_candidate/html/docbook.dsl" \
22698 && test -r "$pgac_candidate/print/docbook.dsl"
22700 pgac_cv_path_stylesheets=$pgac_candidate
22709 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22711 if test -n "$DOCBOOKSTYLE"; then
22712 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22713 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22715 echo "$as_me:$LINENO: result: no" >&5
22716 echo "${ECHO_T}no" >&6
22718 if test -n "$DOCBOOKSTYLE"; then
22719 for ac_prog in collateindex.pl
22721 # Extract the first word of "$ac_prog", so it can be a program name with args.
22722 set dummy $ac_prog; ac_word=$2
22723 echo "$as_me:$LINENO: checking for $ac_word" >&5
22724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22725 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22728 case $COLLATEINDEX in
22730 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22734 for as_dir in $DOCBOOKSTYLE/bin $PATH
22737 test -z "$as_dir" && as_dir=.
22738 for ac_exec_ext in '' $ac_executable_extensions; do
22739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22740 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22750 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22752 if test -n "$COLLATEINDEX"; then
22753 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22754 echo "${ECHO_T}$COLLATEINDEX" >&6
22756 echo "$as_me:$LINENO: result: no" >&5
22757 echo "${ECHO_T}no" >&6
22760 test -n "$COLLATEINDEX" && break
22764 for ac_prog in collateindex.pl
22766 # Extract the first word of "$ac_prog", so it can be a program name with args.
22767 set dummy $ac_prog; ac_word=$2
22768 echo "$as_me:$LINENO: checking for $ac_word" >&5
22769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22770 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 case $COLLATEINDEX in
22775 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22779 for as_dir in $PATH
22782 test -z "$as_dir" && as_dir=.
22783 for ac_exec_ext in '' $ac_executable_extensions; do
22784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22785 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22795 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22797 if test -n "$COLLATEINDEX"; then
22798 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22799 echo "${ECHO_T}$COLLATEINDEX" >&6
22801 echo "$as_me:$LINENO: result: no" >&5
22802 echo "${ECHO_T}no" >&6
22805 test -n "$COLLATEINDEX" && break
22809 for ac_prog in sgmlspl
22811 # Extract the first word of "$ac_prog", so it can be a program name with args.
22812 set dummy $ac_prog; ac_word=$2
22813 echo "$as_me:$LINENO: checking for $ac_word" >&5
22814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22815 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22816 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 if test -n "$SGMLSPL"; then
22819 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22822 for as_dir in $PATH
22825 test -z "$as_dir" && as_dir=.
22826 for ac_exec_ext in '' $ac_executable_extensions; do
22827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22828 ac_cv_prog_SGMLSPL="$ac_prog"
22829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22837 SGMLSPL=$ac_cv_prog_SGMLSPL
22838 if test -n "$SGMLSPL"; then
22839 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22840 echo "${ECHO_T}$SGMLSPL" >&6
22842 echo "$as_me:$LINENO: result: no" >&5
22843 echo "${ECHO_T}no" >&6
22846 test -n "$SGMLSPL" && break
22852 # We have to run the thread test near the end so we have all our symbols
22853 # defined. Cross compiling throws a warning.
22855 if test "$enable_thread_safety_force" = yes; then
22856 if test x"$template" != x"win32"
22858 { echo "$as_me:$LINENO: WARNING:
22859 *** Skipping thread test program. --enable-thread-safety-force was used.
22860 *** Run the program in src/test/thread on the your machine and add
22861 proper locking function calls to your applications to guarantee thread
22864 echo "$as_me: WARNING:
22865 *** Skipping thread test program. --enable-thread-safety-force was used.
22866 *** Run the program in src/test/thread on the your machine and add
22867 proper locking function calls to your applications to guarantee thread
22871 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22872 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22874 elif test "$enable_thread_safety" = yes; then
22875 if test x"$template" != x"win32"
22877 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22878 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22882 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22883 LIBS="$LIBS $PTHREAD_LIBS"
22884 if test "$cross_compiling" = yes; then
22885 echo "$as_me:$LINENO: result: maybe" >&5
22886 echo "${ECHO_T}maybe" >&6
22887 { echo "$as_me:$LINENO: WARNING:
22888 *** Skipping thread test program because of cross-compile build.
22889 *** Run the program in src/test/thread on the target machine.
22891 echo "$as_me: WARNING:
22892 *** Skipping thread test program because of cross-compile build.
22893 *** Run the program in src/test/thread on the target machine.
22896 cat >conftest.$ac_ext <<_ACEOF
22899 cat confdefs.h >>conftest.$ac_ext
22900 cat >>conftest.$ac_ext <<_ACEOF
22901 /* end confdefs.h. */
22902 #include "$srcdir/src/test/thread/thread_test.c"
22904 rm -f conftest$ac_exeext
22905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22906 (eval $ac_link) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; }; then
22915 echo "$as_me:$LINENO: result: yes" >&5
22916 echo "${ECHO_T}yes" >&6
22918 echo "$as_me: program exited with status $ac_status" >&5
22919 echo "$as_me: failed program was:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ( exit $ac_status )
22923 echo "$as_me:$LINENO: result: no" >&5
22924 echo "${ECHO_T}no" >&6
22925 { { echo "$as_me:$LINENO: error:
22926 *** Thread test program failed. Your platform is not thread-safe.
22927 *** Check the file 'config.log'for the exact reason.
22929 *** You can use the configure option --enable-thread-safety-force
22930 *** to force threads to be enabled. However, you must then run
22931 *** the program in src/test/thread and add locking function calls
22932 *** to your applications to guarantee thread safety.
22934 echo "$as_me: error:
22935 *** Thread test program failed. Your platform is not thread-safe.
22936 *** Check the file 'config.log'for the exact reason.
22938 *** You can use the configure option --enable-thread-safety-force
22939 *** to force threads to be enabled. However, you must then run
22940 *** the program in src/test/thread and add locking function calls
22941 *** to your applications to guarantee thread safety.
22943 { (exit 1); exit 1; }; }
22945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22950 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22951 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22955 # prepare build tree if outside source tree
22956 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22957 # Note 2: /bin/pwd might be better than shell's built-in at getting
22958 # a symlink-free name.
22959 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22963 if test "$no_create" != yes; then
22964 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22965 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22966 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22967 || { { echo "$as_me:$LINENO: error: failed" >&5
22968 echo "$as_me: error: failed" >&2;}
22969 { (exit 1); exit 1; }; }
22970 echo "$as_me:$LINENO: result: done" >&5
22971 echo "${ECHO_T}done" >&6
22977 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22980 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
22983 if test "$PORTNAME" = "win32"; then
22984 ac_config_commands="$ac_config_commands check_win32_symlinks"
22988 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22991 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
22996 # Warn about unknown options
23000 for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do
23007 enable_integer_datetimes) ;;
23012 enable_spinlocks) ;;
23018 enable_thread_safety) ;;
23019 enable_thread_safety_force) ;;
23025 with_krb_srvnam) ;;
23031 with_libedit_preferred) ;;
23036 echo -n "*** Option ignored: "
23037 echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g'
23043 cat >confcache <<\_ACEOF
23044 # This file is a shell script that caches the results of configure
23045 # tests run on this system so they can be shared between configure
23046 # scripts and configure runs, see configure's option --config-cache.
23047 # It is not useful on other systems. If it contains results you don't
23048 # want to keep, you may remove or edit it.
23050 # config.status only pays attention to the cache file if you give it
23051 # the --recheck option to rerun configure.
23053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23055 # following values.
23059 # The following way of writing the cache mishandles newlines in values,
23060 # but we know of no workaround that is simple, portable, and efficient.
23061 # So, don't put newlines in cache variables' values.
23062 # Ultrix sh set writes to stderr and can't be redirected directly,
23063 # and sets the high bit in the cache file unless we assign to the vars.
23066 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23068 # `set' does not quote correctly, so add quotes (double-quote
23069 # substitution turns \\\\ into \\, and sed turns \\ into \).
23072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23075 # `set' quotes correctly as required by POSIX, so do not add quotes.
23077 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23084 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23086 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23088 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23089 if test -w $cache_file; then
23090 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23091 cat confcache >$cache_file
23093 echo "not updating unwritable cache $cache_file"
23098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23099 # Let make expand exec_prefix.
23100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23102 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23103 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23104 # trailing colons and then remove the whole line if VPATH becomes empty
23105 # (actually we leave an empty line to preserve line numbers).
23106 if test "x$srcdir" = x.; then
23107 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23108 s/:*\$(srcdir):*/:/;
23109 s/:*\${srcdir}:*/:/;
23111 s/^\([^=]*=[ ]*\):*/\1/;
23117 DEFS=-DHAVE_CONFIG_H
23121 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23122 # 1. Remove the extension, and $U if already installed.
23123 ac_i=`echo "$ac_i" |
23124 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23126 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23127 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23129 LIBOBJS=$ac_libobjs
23131 LTLIBOBJS=$ac_ltlibobjs
23135 : ${CONFIG_STATUS=./config.status}
23136 ac_clean_files_save=$ac_clean_files
23137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23138 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23140 cat >$CONFIG_STATUS <<_ACEOF
23142 # Generated by $as_me.
23143 # Run this file to recreate the current configuration.
23144 # Compiler output produced by configure, useful for debugging
23145 # configure, is in config.log if it exists.
23148 ac_cs_recheck=false
23150 SHELL=\${CONFIG_SHELL-$SHELL}
23153 cat >>$CONFIG_STATUS <<\_ACEOF
23154 ## --------------------- ##
23155 ## M4sh Initialization. ##
23156 ## --------------------- ##
23158 # Be Bourne compatible
23159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23163 # is contrary to our usage. Disable this feature.
23164 alias -g '${1+"$@"}'='"$@"'
23165 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23168 DUALCASE=1; export DUALCASE # for MKS sh
23170 # Support unset when possible.
23171 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23178 # Work around bugs in pre-3.0 UWIN ksh.
23179 $as_unset ENV MAIL MAILPATH
23186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23188 LC_TELEPHONE LC_TIME
23190 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23191 eval $as_var=C; export $as_var
23197 # Required to use basename.
23198 if expr a : '\(a\)' >/dev/null 2>&1; then
23204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23205 as_basename=basename
23211 # Name of the executable.
23212 as_me=`$as_basename "$0" ||
23213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23214 X"$0" : 'X\(//\)$' \| \
23215 X"$0" : 'X\(/\)$' \| \
23216 . : '\(.\)' 2>/dev/null ||
23218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23219 /^X\/\(\/\/\)$/{ s//\1/; q; }
23220 /^X\/\(\/\).*/{ s//\1/; q; }
23224 # PATH needs CR, and LINENO needs CR and PATH.
23225 # Avoid depending upon Character Ranges.
23226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23229 as_cr_digits='0123456789'
23230 as_cr_alnum=$as_cr_Letters$as_cr_digits
23232 # The user is always right.
23233 if test "${PATH_SEPARATOR+set}" != set; then
23234 echo "#! /bin/sh" >conf$$.sh
23235 echo "exit 0" >>conf$$.sh
23237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23246 as_lineno_1=$LINENO
23247 as_lineno_2=$LINENO
23248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23249 test "x$as_lineno_1" != "x$as_lineno_2" &&
23250 test "x$as_lineno_3" = "x$as_lineno_2" || {
23251 # Find who we are. Look in the path if we contain no path at all
23254 *[\\/]* ) as_myself=$0 ;;
23255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23256 for as_dir in $PATH
23259 test -z "$as_dir" && as_dir=.
23260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23265 # We did not find ourselves, most probably we were run as `sh COMMAND'
23266 # in which case we are not to be found in the path.
23267 if test "x$as_myself" = x; then
23270 if test ! -f "$as_myself"; then
23271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23273 { (exit 1); exit 1; }; }
23275 case $CONFIG_SHELL in
23277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23281 test -z "$as_dir" && as_dir=.
23282 for as_base in sh bash ksh sh5; do
23285 if ("$as_dir/$as_base" -c '
23286 as_lineno_1=$LINENO
23287 as_lineno_2=$LINENO
23288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23289 test "x$as_lineno_1" != "x$as_lineno_2" &&
23290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23293 CONFIG_SHELL=$as_dir/$as_base
23294 export CONFIG_SHELL
23295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23304 # uniformly replaced by the line number. The first 'sed' inserts a
23305 # line-number line before each line; the second 'sed' does the real
23306 # work. The second script uses 'N' to pair each line-number line
23307 # with the numbered line, and appends trailing '-' during
23308 # substitution so that $LINENO is not a special case at line end.
23309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23311 sed '=' <$as_myself |
23316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23319 s,^['$as_cr_digits']*\n,,
23320 ' >$as_me.lineno &&
23321 chmod +x $as_me.lineno ||
23322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23324 { (exit 1); exit 1; }; }
23326 # Don't try to exec as it changes $[0], causing all sort of problems
23327 # (the dirname of $[0] is not the place where we might find the
23328 # original and so on. Autoconf is especially sensible to this).
23330 # Exit status is that of the last command.
23335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23336 *c*,-n*) ECHO_N= ECHO_C='
23338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23342 if expr a : '\(a\)' >/dev/null 2>&1; then
23348 rm -f conf$$ conf$$.exe conf$$.file
23350 if ln -s conf$$.file conf$$ 2>/dev/null; then
23351 # We could just check for DJGPP; but this test a) works b) is more generic
23352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23353 if test -f conf$$.exe; then
23354 # Don't use ln at all; we don't have any links
23359 elif ln conf$$.file conf$$ 2>/dev/null; then
23364 rm -f conf$$ conf$$.exe conf$$.file
23366 if mkdir -p . 2>/dev/null; then
23369 test -d ./-p && rmdir ./-p
23373 as_executable_p="test -f"
23375 # Sed expression to map a string onto a valid CPP name.
23376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23378 # Sed expression to map a string onto a valid variable name.
23379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23383 # We need space, tab and new line, in precisely that order.
23393 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23394 # report actual input values of CONFIG_FILES etc. instead of their
23395 # values after options handling. Logging --version etc. is OK.
23399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23400 ## Running $as_me. ##
23405 This file was extended by PostgreSQL $as_me 8.2beta1, which was
23406 generated by GNU Autoconf 2.59. Invocation command line was
23408 CONFIG_FILES = $CONFIG_FILES
23409 CONFIG_HEADERS = $CONFIG_HEADERS
23410 CONFIG_LINKS = $CONFIG_LINKS
23411 CONFIG_COMMANDS = $CONFIG_COMMANDS
23415 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23419 # Files that config.status was made for.
23420 if test -n "$ac_config_files"; then
23421 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23424 if test -n "$ac_config_headers"; then
23425 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23428 if test -n "$ac_config_links"; then
23429 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23432 if test -n "$ac_config_commands"; then
23433 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23439 \`$as_me' instantiates files from templates according to the
23440 current configuration.
23442 Usage: $0 [OPTIONS] [FILE]...
23444 -h, --help print this help, then exit
23445 -V, --version print version number, then exit
23446 -q, --quiet do not print progress messages
23447 -d, --debug don't remove temporary files
23448 --recheck update $as_me by reconfiguring in the same conditions
23449 --file=FILE[:TEMPLATE]
23450 instantiate the configuration file FILE
23451 --header=FILE[:TEMPLATE]
23452 instantiate the configuration header FILE
23454 Configuration files:
23457 Configuration headers:
23460 Configuration links:
23463 Configuration commands:
23466 Report bugs to <bug-autoconf@gnu.org>."
23469 cat >>$CONFIG_STATUS <<_ACEOF
23471 PostgreSQL config.status 8.2beta1
23472 configured by $0, generated by GNU Autoconf 2.59,
23473 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23475 Copyright (C) 2003 Free Software Foundation, Inc.
23476 This config.status script is free software; the Free Software Foundation
23477 gives unlimited permission to copy, distribute and modify it."
23481 cat >>$CONFIG_STATUS <<\_ACEOF
23482 # If no file are specified by the user, then we need to provide default
23483 # value. By we need to know if files were specified by the user.
23489 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23490 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23498 *) # This is not an option, so the user has probably given explicit
23501 ac_need_defaults=false;;
23505 # Handling of the options.
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23510 --version | --vers* | -V )
23511 echo "$ac_cs_version"; exit 0 ;;
23513 # Conflict between --help and --header
23514 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23515 Try \`$0 --help' for more information." >&5
23516 echo "$as_me: error: ambiguous option: $1
23517 Try \`$0 --help' for more information." >&2;}
23518 { (exit 1); exit 1; }; };;
23519 --help | --hel | -h )
23520 echo "$ac_cs_usage"; exit 0 ;;
23521 --debug | --d* | -d )
23523 --file | --fil | --fi | --f )
23525 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23526 ac_need_defaults=false;;
23527 --header | --heade | --head | --hea )
23529 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23530 ac_need_defaults=false;;
23531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23535 # This is an error.
23536 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23537 Try \`$0 --help' for more information." >&5
23538 echo "$as_me: error: unrecognized option: $1
23539 Try \`$0 --help' for more information." >&2;}
23540 { (exit 1); exit 1; }; } ;;
23542 *) ac_config_targets="$ac_config_targets $1" ;;
23548 ac_configure_extra_args=
23550 if $ac_cs_silent; then
23552 ac_configure_extra_args="$ac_configure_extra_args --silent"
23556 cat >>$CONFIG_STATUS <<_ACEOF
23557 if \$ac_cs_recheck; then
23558 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23559 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23568 cat >>$CONFIG_STATUS <<\_ACEOF
23569 for ac_config_target in $ac_config_targets
23571 case "$ac_config_target" in
23572 # Handling of arguments.
23573 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23574 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23575 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23576 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23577 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23578 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23579 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23580 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23581 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23582 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23583 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23584 "src/interfaces/ecpg/include/ecpg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
23585 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23586 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23587 { (exit 1); exit 1; }; };;
23591 # If the user did not use the arguments to specify the items to instantiate,
23592 # then the envvar interface is used. Set only those that are not.
23593 # We use the long form for the default assignment because of an extremely
23594 # bizarre bug on SunOS 4.1.3.
23595 if $ac_need_defaults; then
23596 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23597 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23598 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23599 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23602 # Have a temporary directory for convenience. Make it in the build tree
23603 # simply because there is no reason to put it here, and in addition,
23604 # creating and moving files from /tmp can sometimes cause problems.
23605 # Create a temporary directory, and hook for its removal unless debugging.
23608 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23609 trap '{ (exit 1); exit 1; }' 1 2 13 15
23612 # Create a (secure) tmp directory for tmp files.
23615 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23616 test -n "$tmp" && test -d "$tmp"
23619 tmp=./confstat$$-$RANDOM
23620 (umask 077 && mkdir $tmp)
23623 echo "$me: cannot create a temporary directory in ." >&2
23624 { (exit 1); exit 1; }
23629 cat >>$CONFIG_STATUS <<_ACEOF
23632 # CONFIG_FILES section.
23635 # No need to generate the scripts if there are no CONFIG_FILES.
23636 # This happens for instance when ./config.status config.h
23637 if test -n "\$CONFIG_FILES"; then
23638 # Protect against being on the right side of a sed subst in config.status.
23639 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23640 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23641 s,@SHELL@,$SHELL,;t t
23642 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23643 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23644 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23645 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23646 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23647 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23648 s,@exec_prefix@,$exec_prefix,;t t
23649 s,@prefix@,$prefix,;t t
23650 s,@program_transform_name@,$program_transform_name,;t t
23651 s,@bindir@,$bindir,;t t
23652 s,@sbindir@,$sbindir,;t t
23653 s,@libexecdir@,$libexecdir,;t t
23654 s,@datadir@,$datadir,;t t
23655 s,@sysconfdir@,$sysconfdir,;t t
23656 s,@sharedstatedir@,$sharedstatedir,;t t
23657 s,@localstatedir@,$localstatedir,;t t
23658 s,@libdir@,$libdir,;t t
23659 s,@includedir@,$includedir,;t t
23660 s,@oldincludedir@,$oldincludedir,;t t
23661 s,@infodir@,$infodir,;t t
23662 s,@mandir@,$mandir,;t t
23663 s,@build_alias@,$build_alias,;t t
23664 s,@host_alias@,$host_alias,;t t
23665 s,@target_alias@,$target_alias,;t t
23666 s,@DEFS@,$DEFS,;t t
23667 s,@ECHO_C@,$ECHO_C,;t t
23668 s,@ECHO_N@,$ECHO_N,;t t
23669 s,@ECHO_T@,$ECHO_T,;t t
23670 s,@LIBS@,$LIBS,;t t
23671 s,@configure_args@,$configure_args,;t t
23672 s,@build@,$build,;t t
23673 s,@build_cpu@,$build_cpu,;t t
23674 s,@build_vendor@,$build_vendor,;t t
23675 s,@build_os@,$build_os,;t t
23676 s,@host@,$host,;t t
23677 s,@host_cpu@,$host_cpu,;t t
23678 s,@host_vendor@,$host_vendor,;t t
23679 s,@host_os@,$host_os,;t t
23680 s,@PORTNAME@,$PORTNAME,;t t
23681 s,@docdir@,$docdir,;t t
23682 s,@enable_nls@,$enable_nls,;t t
23683 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23684 s,@default_port@,$default_port,;t t
23685 s,@enable_shared@,$enable_shared,;t t
23686 s,@enable_rpath@,$enable_rpath,;t t
23687 s,@enable_debug@,$enable_debug,;t t
23688 s,@DTRACE@,$DTRACE,;t t
23689 s,@DTRACEFLAGS@,$DTRACEFLAGS,;t t
23690 s,@enable_dtrace@,$enable_dtrace,;t t
23692 s,@CFLAGS@,$CFLAGS,;t t
23693 s,@LDFLAGS@,$LDFLAGS,;t t
23694 s,@CPPFLAGS@,$CPPFLAGS,;t t
23695 s,@ac_ct_CC@,$ac_ct_CC,;t t
23696 s,@EXEEXT@,$EXEEXT,;t t
23697 s,@OBJEXT@,$OBJEXT,;t t
23701 s,@autodepend@,$autodepend,;t t
23702 s,@INCLUDES@,$INCLUDES,;t t
23703 s,@enable_thread_safety@,$enable_thread_safety,;t t
23704 s,@with_tcl@,$with_tcl,;t t
23705 s,@with_perl@,$with_perl,;t t
23706 s,@with_python@,$with_python,;t t
23707 s,@with_krb5@,$with_krb5,;t t
23708 s,@krb_srvtab@,$krb_srvtab,;t t
23709 s,@with_pam@,$with_pam,;t t
23710 s,@with_ldap@,$with_ldap,;t t
23711 s,@with_bonjour@,$with_bonjour,;t t
23712 s,@with_openssl@,$with_openssl,;t t
23713 s,@with_zlib@,$with_zlib,;t t
23714 s,@EGREP@,$EGREP,;t t
23715 s,@ELF_SYS@,$ELF_SYS,;t t
23716 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23718 s,@FLEX@,$FLEX,;t t
23719 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23720 s,@LN_S@,$LN_S,;t t
23722 s,@with_gnu_ld@,$with_gnu_ld,;t t
23723 s,@ld_R_works@,$ld_R_works,;t t
23724 s,@RANLIB@,$RANLIB,;t t
23725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23727 s,@STRIP@,$STRIP,;t t
23728 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23729 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23730 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23731 s,@YACC@,$YACC,;t t
23732 s,@YFLAGS@,$YFLAGS,;t t
23733 s,@PERL@,$PERL,;t t
23734 s,@perl_archlibexp@,$perl_archlibexp,;t t
23735 s,@perl_privlibexp@,$perl_privlibexp,;t t
23736 s,@perl_useshrplib@,$perl_useshrplib,;t t
23737 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23738 s,@PYTHON@,$PYTHON,;t t
23739 s,@python_version@,$python_version,;t t
23740 s,@python_configdir@,$python_configdir,;t t
23741 s,@python_includespec@,$python_includespec,;t t
23742 s,@python_libdir@,$python_libdir,;t t
23743 s,@python_libspec@,$python_libspec,;t t
23744 s,@python_additional_libs@,$python_additional_libs,;t t
23745 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23746 s,@LIBOBJS@,$LIBOBJS,;t t
23747 s,@acx_pthread_config@,$acx_pthread_config,;t t
23748 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23749 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23750 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23751 s,@LDAP_LIBS_FE@,$LDAP_LIBS_FE,;t t
23752 s,@LDAP_LIBS_BE@,$LDAP_LIBS_BE,;t t
23753 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23754 s,@MSGFMT@,$MSGFMT,;t t
23755 s,@MSGMERGE@,$MSGMERGE,;t t
23756 s,@XGETTEXT@,$XGETTEXT,;t t
23757 s,@localedir@,$localedir,;t t
23758 s,@TCLSH@,$TCLSH,;t t
23759 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23760 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23761 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23762 s,@TCL_LIBS@,$TCL_LIBS,;t t
23763 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23764 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23765 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23766 s,@NSGMLS@,$NSGMLS,;t t
23767 s,@JADE@,$JADE,;t t
23768 s,@have_docbook@,$have_docbook,;t t
23769 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23770 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23771 s,@SGMLSPL@,$SGMLSPL,;t t
23772 s,@vpath_build@,$vpath_build,;t t
23773 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23778 cat >>$CONFIG_STATUS <<\_ACEOF
23779 # Split the substitutions into bite-sized pieces for seds with
23780 # small command number limits, like on Digital OSF/1 and HP-UX.
23781 ac_max_sed_lines=48
23782 ac_sed_frag=1 # Number of current file.
23783 ac_beg=1 # First line for current file.
23784 ac_end=$ac_max_sed_lines # Line after last line for current file.
23787 while $ac_more_lines; do
23788 if test $ac_beg -gt 1; then
23789 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23791 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23793 if test ! -s $tmp/subs.frag; then
23794 ac_more_lines=false
23796 # The purpose of the label and of the branching condition is to
23797 # speed up the sed processing (if there are no `@' at all, there
23798 # is no need to browse any of the substitutions).
23799 # These are the two extra sed commands mentioned above.
23801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23802 if test -z "$ac_sed_cmds"; then
23803 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23805 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23807 ac_sed_frag=`expr $ac_sed_frag + 1`
23809 ac_end=`expr $ac_end + $ac_max_sed_lines`
23812 if test -z "$ac_sed_cmds"; then
23815 fi # test -n "$CONFIG_FILES"
23818 cat >>$CONFIG_STATUS <<\_ACEOF
23819 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23822 - | *:- | *:-:* ) # input from stdin
23824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23828 * ) ac_file_in=$ac_file.in ;;
23831 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23832 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23833 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834 X"$ac_file" : 'X\(//\)[^/]' \| \
23835 X"$ac_file" : 'X\(//\)$' \| \
23836 X"$ac_file" : 'X\(/\)' \| \
23837 . : '\(.\)' 2>/dev/null ||
23839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23841 /^X\(\/\/\)$/{ s//\1/; q; }
23842 /^X\(\/\).*/{ s//\1/; q; }
23844 { if $as_mkdir_p; then
23849 while test ! -d "$as_dir"; do
23850 as_dirs="$as_dir $as_dirs"
23851 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23853 X"$as_dir" : 'X\(//\)[^/]' \| \
23854 X"$as_dir" : 'X\(//\)$' \| \
23855 X"$as_dir" : 'X\(/\)' \| \
23856 . : '\(.\)' 2>/dev/null ||
23858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23860 /^X\(\/\/\)$/{ s//\1/; q; }
23861 /^X\(\/\).*/{ s//\1/; q; }
23864 test ! -n "$as_dirs" || mkdir $as_dirs
23865 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23866 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23867 { (exit 1); exit 1; }; }; }
23871 if test "$ac_dir" != .; then
23872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23873 # A "../" for each directory in $ac_dir_suffix.
23874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23876 ac_dir_suffix= ac_top_builddir=
23880 .) # No --srcdir option. We are building in place.
23882 if test -z "$ac_top_builddir"; then
23885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23887 [\\/]* | ?:[\\/]* ) # Absolute path.
23888 ac_srcdir=$srcdir$ac_dir_suffix;
23889 ac_top_srcdir=$srcdir ;;
23890 *) # Relative path.
23891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23895 # Do not use `cd foo && pwd` to compute absolute paths, because
23896 # the directories may not exist.
23898 .) ac_abs_builddir="$ac_dir";;
23901 .) ac_abs_builddir=`pwd`;;
23902 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23903 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23906 case $ac_abs_builddir in
23907 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23909 case ${ac_top_builddir}. in
23910 .) ac_abs_top_builddir=$ac_abs_builddir;;
23911 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23912 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23915 case $ac_abs_builddir in
23916 .) ac_abs_srcdir=$ac_srcdir;;
23919 .) ac_abs_srcdir=$ac_abs_builddir;;
23920 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23921 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23924 case $ac_abs_builddir in
23925 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23927 case $ac_top_srcdir in
23928 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23929 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23930 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23936 if test x"$ac_file" != x-; then
23937 { echo "$as_me:$LINENO: creating $ac_file" >&5
23938 echo "$as_me: creating $ac_file" >&6;}
23941 # Let's still pretend it is `configure' which instantiates (i.e., don't
23942 # use $as_me), people would be surprised to read:
23943 # /* config.h. Generated by config.status. */
23944 if test x"$ac_file" = x-; then
23947 configure_input="$ac_file. "
23949 configure_input=$configure_input"Generated from `echo $ac_file_in |
23950 sed 's,.*/,,'` by configure."
23952 # First look for the input files in the build tree, otherwise in the
23954 ac_file_inputs=`IFS=:
23955 for f in $ac_file_in; do
23957 -) echo $tmp/stdin ;;
23959 # Absolute (can't be DOS-style, as IFS=:)
23960 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23961 echo "$as_me: error: cannot find input file: $f" >&2;}
23962 { (exit 1); exit 1; }; }
23965 if test -f "$f"; then
23968 elif test -f "$srcdir/$f"; then
23973 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23974 echo "$as_me: error: cannot find input file: $f" >&2;}
23975 { (exit 1); exit 1; }; }
23978 done` || { (exit 1); exit 1; }
23980 cat >>$CONFIG_STATUS <<_ACEOF
23984 cat >>$CONFIG_STATUS <<\_ACEOF
23986 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23987 s,@configure_input@,$configure_input,;t t
23988 s,@srcdir@,$ac_srcdir,;t t
23989 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23990 s,@top_srcdir@,$ac_top_srcdir,;t t
23991 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23992 s,@builddir@,$ac_builddir,;t t
23993 s,@abs_builddir@,$ac_abs_builddir,;t t
23994 s,@top_builddir@,$ac_top_builddir,;t t
23995 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23996 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23998 if test x"$ac_file" != x-; then
23999 mv $tmp/out $ac_file
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24010 # CONFIG_HEADER section.
24013 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24014 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24016 # ac_d sets the value in "#define NAME VALUE" lines.
24017 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24018 ac_dB='[ ].*$,\1#\2'
24021 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24022 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24023 ac_uB='$,\1#\2define\3'
24027 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24030 - | *:- | *:-:* ) # input from stdin
24032 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24034 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24036 * ) ac_file_in=$ac_file.in ;;
24039 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24040 echo "$as_me: creating $ac_file" >&6;}
24042 # First look for the input files in the build tree, otherwise in the
24044 ac_file_inputs=`IFS=:
24045 for f in $ac_file_in; do
24047 -) echo $tmp/stdin ;;
24049 # Absolute (can't be DOS-style, as IFS=:)
24050 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24051 echo "$as_me: error: cannot find input file: $f" >&2;}
24052 { (exit 1); exit 1; }; }
24053 # Do quote $f, to prevent DOS paths from being IFS'd.
24056 if test -f "$f"; then
24059 elif test -f "$srcdir/$f"; then
24064 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24065 echo "$as_me: error: cannot find input file: $f" >&2;}
24066 { (exit 1); exit 1; }; }
24069 done` || { (exit 1); exit 1; }
24070 # Remove the trailing spaces.
24071 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24075 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24076 # `conftest.undefs', that substitutes the proper values into
24077 # config.h.in to produce config.h. The first handles `#define'
24078 # templates, and the second `#undef' templates.
24079 # And first: Protect against being on the right side of a sed subst in
24080 # config.status. Protect against being in an unquoted here document
24081 # in config.status.
24082 rm -f conftest.defines conftest.undefs
24083 # Using a here document instead of a string reduces the quoting nightmare.
24084 # Putting comments in sed scripts is not portable.
24086 # `end' is used to avoid that the second main sed command (meant for
24087 # 0-ary CPP macros) applies to n-ary macro definitions.
24088 # See the Autoconf documentation for `clear'.
24089 cat >confdef2sed.sed <<\_ACEOF
24094 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24096 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24099 # If some macros were called several times there might be several times
24100 # the same #defines, which is useless. Nevertheless, we may not want to
24101 # sort them, since we want the *last* AC-DEFINE to be honored.
24102 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24103 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24104 rm -f confdef2sed.sed
24106 # This sed command replaces #undef with comments. This is necessary, for
24107 # example, in the case of _POSIX_SOURCE, which is predefined and required
24108 # on some systems where configure will not decide to define it.
24109 cat >>conftest.undefs <<\_ACEOF
24110 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24113 # Break up conftest.defines because some shells have a limit on the size
24114 # of here documents, and old seds have small limits too (100 cmds).
24115 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24116 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24117 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24118 echo ' :' >>$CONFIG_STATUS
24119 rm -f conftest.tail
24120 while grep . conftest.defines >/dev/null
24122 # Write a limited-size here document to $tmp/defines.sed.
24123 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24124 # Speed up: don't consider the non `#define' lines.
24125 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24126 # Work around the forget-to-reset-the-flag bug.
24127 echo 't clr' >>$CONFIG_STATUS
24128 echo ': clr' >>$CONFIG_STATUS
24129 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24131 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24133 mv $tmp/out $tmp/in
24135 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24136 rm -f conftest.defines
24137 mv conftest.tail conftest.defines
24139 rm -f conftest.defines
24140 echo ' fi # grep' >>$CONFIG_STATUS
24141 echo >>$CONFIG_STATUS
24143 # Break up conftest.undefs because some shells have a limit on the size
24144 # of here documents, and old seds have small limits too (100 cmds).
24145 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24146 rm -f conftest.tail
24147 while grep . conftest.undefs >/dev/null
24149 # Write a limited-size here document to $tmp/undefs.sed.
24150 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24151 # Speed up: don't consider the non `#undef'
24152 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24153 # Work around the forget-to-reset-the-flag bug.
24154 echo 't clr' >>$CONFIG_STATUS
24155 echo ': clr' >>$CONFIG_STATUS
24156 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24158 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24160 mv $tmp/out $tmp/in
24162 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24163 rm -f conftest.undefs
24164 mv conftest.tail conftest.undefs
24166 rm -f conftest.undefs
24168 cat >>$CONFIG_STATUS <<\_ACEOF
24169 # Let's still pretend it is `configure' which instantiates (i.e., don't
24170 # use $as_me), people would be surprised to read:
24171 # /* config.h. Generated by config.status. */
24172 if test x"$ac_file" = x-; then
24173 echo "/* Generated by configure. */" >$tmp/config.h
24175 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24177 cat $tmp/in >>$tmp/config.h
24179 if test x"$ac_file" != x-; then
24180 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24181 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24182 echo "$as_me: $ac_file is unchanged" >&6;}
24184 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24185 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24186 X"$ac_file" : 'X\(//\)[^/]' \| \
24187 X"$ac_file" : 'X\(//\)$' \| \
24188 X"$ac_file" : 'X\(/\)' \| \
24189 . : '\(.\)' 2>/dev/null ||
24191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24192 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24193 /^X\(\/\/\)$/{ s//\1/; q; }
24194 /^X\(\/\).*/{ s//\1/; q; }
24196 { if $as_mkdir_p; then
24201 while test ! -d "$as_dir"; do
24202 as_dirs="$as_dir $as_dirs"
24203 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24205 X"$as_dir" : 'X\(//\)[^/]' \| \
24206 X"$as_dir" : 'X\(//\)$' \| \
24207 X"$as_dir" : 'X\(/\)' \| \
24208 . : '\(.\)' 2>/dev/null ||
24210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24212 /^X\(\/\/\)$/{ s//\1/; q; }
24213 /^X\(\/\).*/{ s//\1/; q; }
24216 test ! -n "$as_dirs" || mkdir $as_dirs
24217 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24218 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24219 { (exit 1); exit 1; }; }; }
24222 mv $tmp/config.h $ac_file
24226 rm -f $tmp/config.h
24228 # Run the commands associated with the file.
24230 src/include/pg_config.h )
24231 # Update timestamp for pg_config.h (see Makefile.global)
24232 echo >src/include/stamp-h
24237 cat >>$CONFIG_STATUS <<\_ACEOF
24240 # CONFIG_LINKS section.
24243 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24244 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24245 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24247 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24248 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24250 if test ! -r $srcdir/$ac_source; then
24251 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24252 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24253 { (exit 1); exit 1; }; }
24257 # Make relative symlinks.
24258 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24259 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24260 X"$ac_dest" : 'X\(//\)[^/]' \| \
24261 X"$ac_dest" : 'X\(//\)$' \| \
24262 X"$ac_dest" : 'X\(/\)' \| \
24263 . : '\(.\)' 2>/dev/null ||
24265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24267 /^X\(\/\/\)$/{ s//\1/; q; }
24268 /^X\(\/\).*/{ s//\1/; q; }
24270 { if $as_mkdir_p; then
24271 mkdir -p "$ac_dest_dir"
24273 as_dir="$ac_dest_dir"
24275 while test ! -d "$as_dir"; do
24276 as_dirs="$as_dir $as_dirs"
24277 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24278 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24279 X"$as_dir" : 'X\(//\)[^/]' \| \
24280 X"$as_dir" : 'X\(//\)$' \| \
24281 X"$as_dir" : 'X\(/\)' \| \
24282 . : '\(.\)' 2>/dev/null ||
24284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24286 /^X\(\/\/\)$/{ s//\1/; q; }
24287 /^X\(\/\).*/{ s//\1/; q; }
24290 test ! -n "$as_dirs" || mkdir $as_dirs
24291 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24292 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24293 { (exit 1); exit 1; }; }; }
24297 if test "$ac_dest_dir" != .; then
24298 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24299 # A "../" for each directory in $ac_dir_suffix.
24300 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24302 ac_dir_suffix= ac_top_builddir=
24306 .) # No --srcdir option. We are building in place.
24308 if test -z "$ac_top_builddir"; then
24311 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24313 [\\/]* | ?:[\\/]* ) # Absolute path.
24314 ac_srcdir=$srcdir$ac_dir_suffix;
24315 ac_top_srcdir=$srcdir ;;
24316 *) # Relative path.
24317 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24318 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24321 # Do not use `cd foo && pwd` to compute absolute paths, because
24322 # the directories may not exist.
24324 .) ac_abs_builddir="$ac_dest_dir";;
24326 case "$ac_dest_dir" in
24327 .) ac_abs_builddir=`pwd`;;
24328 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24329 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24332 case $ac_abs_builddir in
24333 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24335 case ${ac_top_builddir}. in
24336 .) ac_abs_top_builddir=$ac_abs_builddir;;
24337 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24338 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24341 case $ac_abs_builddir in
24342 .) ac_abs_srcdir=$ac_srcdir;;
24345 .) ac_abs_srcdir=$ac_abs_builddir;;
24346 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24347 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24350 case $ac_abs_builddir in
24351 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24353 case $ac_top_srcdir in
24354 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24355 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24356 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24362 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24363 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24366 # Try a symlink, then a hard link, then a copy.
24367 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24368 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24369 cp -p $srcdir/$ac_source $ac_dest ||
24370 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24371 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24372 { (exit 1); exit 1; }; }
24375 cat >>$CONFIG_STATUS <<\_ACEOF
24378 # CONFIG_COMMANDS section.
24380 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24381 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24382 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24383 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24384 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24385 X"$ac_dest" : 'X\(//\)[^/]' \| \
24386 X"$ac_dest" : 'X\(//\)$' \| \
24387 X"$ac_dest" : 'X\(/\)' \| \
24388 . : '\(.\)' 2>/dev/null ||
24390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24391 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24392 /^X\(\/\/\)$/{ s//\1/; q; }
24393 /^X\(\/\).*/{ s//\1/; q; }
24395 { if $as_mkdir_p; then
24400 while test ! -d "$as_dir"; do
24401 as_dirs="$as_dir $as_dirs"
24402 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24404 X"$as_dir" : 'X\(//\)[^/]' \| \
24405 X"$as_dir" : 'X\(//\)$' \| \
24406 X"$as_dir" : 'X\(/\)' \| \
24407 . : '\(.\)' 2>/dev/null ||
24409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24411 /^X\(\/\/\)$/{ s//\1/; q; }
24412 /^X\(\/\).*/{ s//\1/; q; }
24415 test ! -n "$as_dirs" || mkdir $as_dirs
24416 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24417 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24418 { (exit 1); exit 1; }; }; }
24422 if test "$ac_dir" != .; then
24423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24424 # A "../" for each directory in $ac_dir_suffix.
24425 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24427 ac_dir_suffix= ac_top_builddir=
24431 .) # No --srcdir option. We are building in place.
24433 if test -z "$ac_top_builddir"; then
24436 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24438 [\\/]* | ?:[\\/]* ) # Absolute path.
24439 ac_srcdir=$srcdir$ac_dir_suffix;
24440 ac_top_srcdir=$srcdir ;;
24441 *) # Relative path.
24442 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24443 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24446 # Do not use `cd foo && pwd` to compute absolute paths, because
24447 # the directories may not exist.
24449 .) ac_abs_builddir="$ac_dir";;
24452 .) ac_abs_builddir=`pwd`;;
24453 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24454 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24457 case $ac_abs_builddir in
24458 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24460 case ${ac_top_builddir}. in
24461 .) ac_abs_top_builddir=$ac_abs_builddir;;
24462 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24463 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24466 case $ac_abs_builddir in
24467 .) ac_abs_srcdir=$ac_srcdir;;
24470 .) ac_abs_srcdir=$ac_abs_builddir;;
24471 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24472 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24475 case $ac_abs_builddir in
24476 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24478 case $ac_top_srcdir in
24479 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24480 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24481 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24486 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24487 echo "$as_me: executing $ac_dest commands" >&6;}
24489 check_win32_symlinks )
24490 # Links sometimes fail undetected on Mingw -
24491 # so here we detect it and warn the user
24492 for FILE in $CONFIG_LINKS
24494 # test -e works for symlinks in the MinGW console
24495 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24496 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24503 cat >>$CONFIG_STATUS <<\_ACEOF
24505 { (exit 0); exit 0; }
24507 chmod +x $CONFIG_STATUS
24508 ac_clean_files=$ac_clean_files_save
24511 # configure is writing to config.log, and then calls config.status.
24512 # config.status does its own redirection, appending to config.log.
24513 # Unfortunately, on DOS this fails, as config.log is still kept open
24514 # by configure, so config.status won't be able to write to it; its
24515 # output is simply discarded. So we exec the FD to /dev/null,
24516 # effectively closing config.log, so it can be properly (re)opened and
24517 # appended to by config.status. When coming back to configure, we
24518 # need to make the FD available again.
24519 if test "$no_create" != yes; then
24521 ac_config_status_args=
24522 test "$silent" = yes &&
24523 ac_config_status_args="$ac_config_status_args --quiet"
24525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24528 # would make configure fail if this is the last instruction.
24529 $ac_cs_success || { (exit 1); exit 1; }