2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
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.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
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 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 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.2devel 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.2devel:";;
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-depend turn on automatic dependency tracking
869 --enable-cassert enable assertion checks (for debugging)
870 --enable-thread-safety make client libraries thread-safe
871 --enable-thread-safety-force force thread-safety in spite of thread test failure
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
879 --without-docdir do not install the documentation
880 --with-includes=DIRS look for additional header files in DIRS
881 --with-libraries=DIRS look for additional libraries in DIRS
882 --with-libs=DIRS alternative spelling of --with-libraries
883 --with-pgport=PORTNUM change default port number [5432]
884 --with-tcl build Tcl modules (PL/Tcl)
885 --with-tclconfig=DIR tclConfig.sh is in DIR
886 --with-perl build Perl modules (PL/Perl)
887 --with-python build Python modules (PL/Python)
888 --with-krb5 build with Kerberos 5 support
889 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
890 --with-pam build with PAM support
891 --with-ldap build with LDAP support
892 --with-bonjour build with Bonjour support
893 --with-openssl build with OpenSSL support
894 --with-libedit-preferred prefer BSD Libedit over GNU Readline
895 --without-readline do not use GNU Readline / BSD Libedit line editing
896 --without-zlib do not use Zlib
897 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
909 location of DocBook stylesheets
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
914 Report bugs to <pgsql-bugs@postgresql.org>.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1010 PostgreSQL configure 8.2devel
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1017 Copyright (c) 1996-2006, PostgreSQL Global Development Group
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1026 It was created by PostgreSQL $as_me 8.2devel, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1086 ac_must_keep_next=false
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115 -* ) ac_must_keep_next=true ;;
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1144 # The following way of writing the cache mishandles newlines in values,
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1167 for ac_var in $ac_subst_vars
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1174 if test -n "$ac_subst_files"; then
1181 for ac_var in $ac_subst_files
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1189 if test -s confdefs.h; then
1196 sed "/^$/d" confdefs.h | sort
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 # Predefined preprocessor variables.
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1262 if test -r "$cache_file"; then
1263 # Some versions of bash will fail to source /dev/null (special
1264 # files actually), so we avoid doing that.
1265 if test -f "$cache_file"; then
1266 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1269 [\\/]* | ?:[\\/]* ) . $cache_file;;
1270 *) . ./$cache_file;;
1274 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1279 # Check that the precious variables saved in the cache have kept the same
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285 eval ac_new_set=\$ac_env_${ac_var}_set
1286 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287 eval ac_new_val="\$ac_env_${ac_var}_value"
1288 case $ac_old_set,$ac_new_set in
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1299 if test "x$ac_old_val" != "x$ac_new_val"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1303 echo "$as_me: former value: $ac_old_val" >&2;}
1304 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1305 echo "$as_me: current value: $ac_new_val" >&2;}
1306 ac_cache_corrupted=:
1309 # Pass precious variables to config.status.
1310 if test "$ac_new_set" = set; then
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314 *) ac_arg=$ac_var=$ac_new_val ;;
1316 case " $ac_configure_args " in
1317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1318 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 if $ac_cache_corrupted; then
1323 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327 { (exit 1); exit 1; }; }
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in config $srcdir/config; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392 configure_args=$ac_configure_args
1396 cat >>confdefs.h <<_ACEOF
1397 #define PG_VERSION "$PACKAGE_VERSION"
1401 # Make sure we can run config.sub.
1402 $ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1407 echo "$as_me:$LINENO: checking build system type" >&5
1408 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409 if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 ac_cv_build_alias=$build_alias
1413 test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415 test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1425 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426 echo "${ECHO_T}$ac_cv_build" >&6
1428 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433 echo "$as_me:$LINENO: checking host system type" >&5
1434 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435 if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_host_alias=$host_alias
1439 test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1447 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448 echo "${ECHO_T}$ac_cv_host" >&6
1450 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457 echo "$as_me:$LINENO: checking which template to use" >&5
1458 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1463 # Check whether --with-template or --without-template was given.
1464 if test "${with_template+set}" = set; then
1465 withval="$with_template"
1469 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1470 echo "$as_me: error: argument required for --with-template option" >&2;}
1471 { (exit 1); exit 1; }; }
1474 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1475 echo "$as_me: error: argument required for --with-template option" >&2;}
1476 { (exit 1); exit 1; }; }
1481 list) echo; ls "$srcdir/src/template"; exit;;
1482 *) if test -f "$srcdir/src/template/$with_template" ; then
1485 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1486 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1487 { (exit 1); exit 1; }; }
1496 # --with-template not given
1499 aix*) template=aix ;;
1500 bsdi*) template=bsdi ;;
1501 cygwin*) template=cygwin ;;
1502 darwin*) template=darwin ;;
1503 dgux*) template=dgux ;;
1504 freebsd*) template=freebsd ;;
1505 hpux*) template=hpux ;;
1506 irix*) template=irix ;;
1507 linux*|gnu*|k*bsd*-gnu)
1509 mingw*) template=win32 ;;
1510 netbsd*) template=netbsd ;;
1511 nextstep*) template=nextstep ;;
1512 openbsd*) template=openbsd ;;
1513 osf*) template=osf ;;
1514 sco*) template=sco ;;
1515 solaris*) template=solaris ;;
1516 sunos*) template=sunos4 ;;
1518 case $host_vendor in
1519 univel) template=univel ;;
1521 sysv4*) template=svr4 ;;
1522 sysv5*) template=unixware ;;
1523 ultrix*) template=ultrix4 ;;
1526 if test x"$template" = x"" ; then
1527 { { echo "$as_me:$LINENO: error:
1528 *******************************************************************
1529 PostgreSQL has apparently not been ported to your platform yet.
1530 To try a manual configuration, look into the src/template directory
1531 for a similar platform and use the '--with-template=' option.
1533 Please also contact <pgsql-ports@postgresql.org> to see about
1534 rectifying this. Include the above 'checking host system type...'
1536 *******************************************************************
1538 echo "$as_me: error:
1539 *******************************************************************
1540 PostgreSQL has apparently not been ported to your platform yet.
1541 To try a manual configuration, look into the src/template directory
1542 for a similar platform and use the '--with-template=' option.
1544 Please also contact <pgsql-ports@postgresql.org> to see about
1545 rectifying this. Include the above 'checking host system type...'
1547 *******************************************************************
1549 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $template" >&5
1557 echo "${ECHO_T}$template" >&6
1562 # Initialize default assumption that we do not need separate assembly code
1563 # for TAS (test-and-set). This can be overridden by the template file
1564 # when it's executed.
1571 ## Command line options
1575 # Installation directory for documentation
1580 # Check whether --with-docdir or --without-docdir was given.
1581 if test "${with_docdir+set}" = set; then
1582 withval="$with_docdir"
1586 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1587 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1588 { (exit 1); exit 1; }; }
1599 docdir='${prefix}/doc'
1606 # Add non-standard directories to the include path
1611 # Check whether --with-includes or --without-includes was given.
1612 if test "${with_includes+set}" = set; then
1613 withval="$with_includes"
1617 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1618 echo "$as_me: error: argument required for --with-includes option" >&2;}
1619 { (exit 1); exit 1; }; }
1622 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1623 echo "$as_me: error: argument required for --with-includes option" >&2;}
1624 { (exit 1); exit 1; }; }
1636 # Add non-standard directories to the library search path
1641 # Check whether --with-libraries or --without-libraries was given.
1642 if test "${with_libraries+set}" = set; then
1643 withval="$with_libraries"
1647 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1648 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1649 { (exit 1); exit 1; }; }
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 LIBRARY_DIRS=$withval
1667 # Check whether --with-libs or --without-libs was given.
1668 if test "${with_libs+set}" = set; then
1669 withval="$with_libs"
1673 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1674 echo "$as_me: error: argument required for --with-libs option" >&2;}
1675 { (exit 1); exit 1; }; }
1678 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1679 echo "$as_me: error: argument required for --with-libs option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 LIBRARY_DIRS=$withval
1692 # 64-bit integer date/time storage (--enable-integer-datetimes)
1694 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1695 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1698 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1699 if test "${enable_integer_datetimes+set}" = set; then
1700 enableval="$enable_integer_datetimes"
1705 cat >>confdefs.h <<\_ACEOF
1706 #define USE_INTEGER_DATETIMES 1
1714 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1715 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1716 { (exit 1); exit 1; }; }
1721 enable_integer_datetimes=no
1725 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1726 echo "${ECHO_T}$enable_integer_datetimes" >&6
1732 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1733 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1736 # Check whether --enable-nls or --disable-nls was given.
1737 if test "${enable_nls+set}" = set; then
1738 enableval="$enable_nls"
1749 WANTED_LANGUAGES=$enableval
1758 if test "$enable_nls" = yes; then
1760 cat >>confdefs.h <<\_ACEOF
1761 #define ENABLE_NLS 1
1766 echo "$as_me:$LINENO: result: $enable_nls" >&5
1767 echo "${ECHO_T}$enable_nls" >&6
1772 # Default port number (--with-pgport), default 5432
1774 echo "$as_me:$LINENO: checking for default port number" >&5
1775 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1779 # Check whether --with-pgport or --without-pgport was given.
1780 if test "${with_pgport+set}" = set; then
1781 withval="$with_pgport"
1785 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1786 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1787 { (exit 1); exit 1; }; }
1790 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1791 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1792 { (exit 1); exit 1; }; }
1795 default_port=$withval
1803 echo "$as_me:$LINENO: result: $default_port" >&5
1804 echo "${ECHO_T}$default_port" >&6
1805 # Need both of these because some places want an integer and some a string
1807 cat >>confdefs.h <<_ACEOF
1808 #define DEF_PGPORT ${default_port}
1812 cat >>confdefs.h <<_ACEOF
1813 #define DEF_PGPORT_STR "${default_port}"
1819 # Option to disable shared libraries
1823 # Check whether --enable-shared or --disable-shared was given.
1824 if test "${enable_shared+set}" = set; then
1825 enableval="$enable_shared"
1835 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1836 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1837 { (exit 1); exit 1; }; }
1849 # '-rpath'-like feature can be disabled
1853 # Check whether --enable-rpath or --disable-rpath was given.
1854 if test "${enable_rpath+set}" = set; then
1855 enableval="$enable_rpath"
1865 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1866 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1867 { (exit 1); exit 1; }; }
1883 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1884 if test "${enable_spinlocks+set}" = set; then
1885 enableval="$enable_spinlocks"
1895 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1896 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1897 { (exit 1); exit 1; }; }
1902 enable_spinlocks=yes
1908 # --enable-debug adds -g to compiler flags
1912 # Check whether --enable-debug or --disable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914 enableval="$enable_debug"
1924 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1925 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1926 { (exit 1); exit 1; }; }
1941 # For historical reasons you can also use --with-CC to specify the C compiler
1942 # to use, although the standard way to do this is to set the CC environment
1947 # Check whether --with-CC or --without-CC was given.
1948 if test "${with_CC+set}" = set; then
1953 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1954 echo "$as_me: error: argument required for --with-CC option" >&2;}
1955 { (exit 1); exit 1; }; }
1958 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1959 echo "$as_me: error: argument required for --with-CC option" >&2;}
1960 { (exit 1); exit 1; }; }
1971 aix) pgac_cc_list="gcc xlc";;
1972 irix) pgac_cc_list="cc";; # no gcc
1973 *) pgac_cc_list="gcc cc";;
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in $pgac_cc_list
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in $pgac_cc_list
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$ac_ct_CC" && break
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO:" \
2076 "checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2079 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2084 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2089 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2094 cat >conftest.$ac_ext <<_ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2109 ac_clean_files_save=$ac_clean_files
2110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111 # Try to create an executable without -o first, disregard a.out.
2112 # It will help us diagnose broken compilers, and finding out an intuition
2114 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2118 (eval $ac_link_default) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 # Find the output, starting from the most likely. This scheme is
2123 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # Be careful to initialize this variable, since it used to be cached.
2127 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129 # b.out is created by i960 compilers.
2130 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132 test -f "$ac_file" || continue
2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137 # This is the source file.
2140 # We found the default executable, but exeext='' is most
2144 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145 # FIXME: I believe we export ac_cv_exeext for Libtool,
2146 # but it would be cool to find out if it's true. Does anybody
2147 # maintain Libtool? --akim.
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&2;}
2162 { (exit 77); exit 77; }; }
2165 ac_exeext=$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6
2169 # Check the compiler produces executables we can run. If not, either
2170 # the compiler is broken, or we cross compile.
2171 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2174 # If not cross compiling, check that we can run a simple program.
2175 if test "$cross_compiling" != yes; then
2176 if { ac_try='./$ac_file'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2184 if test "$cross_compiling" = maybe; then
2187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }
2197 echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6
2200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201 ac_clean_files=$ac_clean_files_save
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207 echo "${ECHO_T}$cross_compiling" >&6
2209 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212 (eval $ac_link) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2218 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 for ac_file in conftest.exe conftest conftest.*; do
2221 test -f "$ac_file" || continue
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2238 rm -f conftest$ac_cv_exeext
2239 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2240 echo "${ECHO_T}$ac_cv_exeext" >&6
2242 rm -f conftest.$ac_ext
2243 EXEEXT=$ac_cv_exeext
2245 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2246 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2247 if test "${ac_cv_objext+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 cat >conftest.$ac_ext <<_ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2265 rm -f conftest.o conftest.obj
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2292 echo "${ECHO_T}$ac_cv_objext" >&6
2293 OBJEXT=$ac_cv_objext
2295 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2296 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2297 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2322 grep -v '^ *+' conftest.er1 >conftest.err
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2353 GCC=`test $ac_compiler_gnu = yes && echo yes`
2354 ac_test_CFLAGS=${CFLAGS+set}
2355 ac_save_CFLAGS=$CFLAGS
2357 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2358 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_g+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410 if test "$ac_test_CFLAGS" = set; then
2411 CFLAGS=$ac_save_CFLAGS
2412 elif test $ac_cv_prog_cc_g = yes; then
2413 if test "$GCC" = yes; then
2419 if test "$GCC" = yes; then
2425 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_cv_prog_cc_stdc=no
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 #include <sys/types.h>
2441 #include <sys/stat.h>
2442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2443 struct buf { int x; };
2444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2456 s = g (p, va_arg (v,int));
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2462 function prototypes and stuff, but not '\xHH' hex character constants.
2463 These don't provoke an error unfortunately, instead are silently treated
2464 as 'x'. The following induces an error, until -std1 is added to get
2465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2466 array size at least. It's necessary to write '\x00'==0 to get something
2467 that's true only with -std1. */
2468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX -qlanglvl=ansi
2487 # Ultrix and OSF/1 -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions -Aa -D_HPUX_SOURCE
2490 # SVR4 -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 CC="$ac_save_CC $ac_arg"
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_stdc=$ac_arg
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2530 case "x$ac_cv_prog_cc_stdc" in
2532 echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 # Some people use a C++ compiler to compile C. Since we use `exit',
2541 # in C++ we need to declare it. In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 for ac_declaration in \
2573 'extern "C" void std::exit (int) throw (); using std::exit;' \
2574 'extern "C" void std::exit (int); using std::exit;' \
2575 'extern "C" void exit (int) throw ();' \
2576 'extern "C" void exit (int);' \
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 if test -n "$ac_declaration"; then
2672 echo '#ifdef __cplusplus' >>confdefs.h
2673 echo $ac_declaration >>confdefs.h
2674 echo '#endif' >>confdefs.h
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 . "$srcdir/src/template/$template" || exit
2697 # CFLAGS are selected so:
2698 # If the user specifies something in the environment, that is used.
2699 # else: If the template file set something, that is used.
2700 # else: If the compiler is GCC, then we use -O2.
2701 # else: If the compiler is something else, then we use -0.
2703 if test "$ac_env_CFLAGS_set" = set; then
2704 CFLAGS=$ac_env_CFLAGS_value
2705 elif test "${CFLAGS+set}" = set; then
2706 : # (keep what template set)
2707 elif test "$GCC" = yes; then
2710 # if the user selected debug mode, don't use -O
2711 if test "$enable_debug" != yes; then
2716 # The Intel compiler on Linux supports most gcc options, but not
2717 # all of them, so only add these options if we are really using
2718 # gcc. Intel compiler has a bug in checking for division by NAN
2719 # (NaN == 0), -mp1 fixes it, so someday we might way to add it.
2721 if test "$GCC" = yes; then
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2733 #ifndef __INTEL_COMPILER
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 if test "$ICC" = no; then
2771 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2773 # Some versions of GCC support some additional useful warning flags.
2774 # Check whether they are supported, and add them to CFLAGS if so.
2775 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2776 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2777 pgac_save_CFLAGS=$CFLAGS
2778 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag"
2804 || test ! -s conftest.err'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2822 CFLAGS="$pgac_save_CFLAGS"
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2829 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2830 pgac_save_CFLAGS=$CFLAGS
2831 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2832 cat >conftest.$ac_ext <<_ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 CFLAGS="$pgac_save_CFLAGS"
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883 # Disable strict-aliasing rules; needed for gcc 3.3+
2884 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2885 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2886 pgac_save_CFLAGS=$CFLAGS
2887 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926 echo "${ECHO_T}yes" >&6
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 CFLAGS="$pgac_save_CFLAGS"
2932 echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2939 # supply -g if --enable-debug
2940 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2944 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2945 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2947 # We already have this in Makefile.win32, but configure needs it too
2948 if test "$PORTNAME" = "win32"; then
2949 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2952 # Check if the compiler still works with the template settings
2953 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2954 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2955 cat >conftest.$ac_ext <<_ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2970 rm -f conftest.$ac_objext conftest$ac_exeext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972 (eval $ac_link) 2>conftest.er1
2974 grep -v '^ *+' conftest.er1 >conftest.err
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_c_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest$ac_exeext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 echo "$as_me:$LINENO: result: yes" >&5
2993 echo "${ECHO_T}yes" >&6
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3001 echo "$as_me: error: cannot proceed" >&2;}
3002 { (exit 1); exit 1; }; }
3004 rm -f conftest.err conftest.$ac_objext \
3005 conftest$ac_exeext conftest.$ac_ext
3007 # Defend against gcc -ffast-math
3008 if test "$GCC" = yes; then
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3019 #ifdef __FAST_MATH__
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3053 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3054 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3055 { (exit 1); exit 1; }; }
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3067 # On Suns, sometimes $CPP names a directory.
3068 if test -n "$CPP" && test -d "$CPP"; then
3071 if test -z "$CPP"; then
3072 if test "${ac_cv_prog_CPP+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 # Double quotes because CPP needs to be expanded
3076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3079 for ac_c_preproc_warn_flag in '' yes
3081 # Use a header file that comes with gcc, so configuring glibc
3082 # with a fresh cross-compiler works.
3083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3084 # <limits.h> exists even on freestanding compilers.
3085 # On the NeXT, cc -E runs the code through the compiler's parser,
3086 # not just through cpp. "Syntax error" is here to catch this case.
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3117 if test -z "$ac_cpp_err"; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # Broken: fails on valid input.
3126 rm -f conftest.err conftest.$ac_ext
3128 # OK, works on sane cases. Now check whether non-existent headers
3129 # can be detected and how.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3136 #include <ac_nonexistent.h>
3138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null; then
3146 if test -s conftest.err; then
3147 ac_cpp_err=$ac_c_preproc_warn_flag
3148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3155 if test -z "$ac_cpp_err"; then
3156 # Broken: success on invalid input.
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 # Passes both tests.
3166 rm -f conftest.err conftest.$ac_ext
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3183 echo "$as_me:$LINENO: result: $CPP" >&5
3184 echo "${ECHO_T}$CPP" >&6
3186 for ac_c_preproc_warn_flag in '' yes
3188 # Use a header file that comes with gcc, so configuring glibc
3189 # with a fresh cross-compiler works.
3190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3191 # <limits.h> exists even on freestanding compilers.
3192 # On the NeXT, cc -E runs the code through the compiler's parser,
3193 # not just through cpp. "Syntax error" is here to catch this case.
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3201 # include <limits.h>
3203 # include <assert.h>
3207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } >/dev/null; then
3215 if test -s conftest.err; then
3216 ac_cpp_err=$ac_c_preproc_warn_flag
3217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3224 if test -z "$ac_cpp_err"; then
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 # Broken: fails on valid input.
3233 rm -f conftest.err conftest.$ac_ext
3235 # OK, works on sane cases. Now check whether non-existent headers
3236 # can be detected and how.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243 #include <ac_nonexistent.h>
3245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 if test -z "$ac_cpp_err"; then
3263 # Broken: success on invalid input.
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Passes both tests.
3273 rm -f conftest.err conftest.$ac_ext
3276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3277 rm -f conftest.err conftest.$ac_ext
3278 if $ac_preproc_ok; then
3281 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3282 See \`config.log' for more details." >&5
3283 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 ac_cpp='$CPP $CPPFLAGS'
3290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3296 # Create compiler version string
3297 if test x"$GCC" = x"yes" ; then
3298 cc_string="GCC `${CC} --version | sed q`"
3303 cat >>confdefs.h <<_ACEOF
3304 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3310 # Set up TAS assembly code if needed; the template file has now had its
3311 # chance to request this.
3313 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3316 if test "$need_tas" = yes ; then
3325 # Automatic dependency tracking
3329 # Check whether --enable-depend or --disable-depend was given.
3330 if test "${enable_depend+set}" = set; then
3331 enableval="$enable_depend"
3341 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3342 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3343 { (exit 1); exit 1; }; }
3356 # Enable assert checks
3360 # Check whether --enable-cassert or --disable-cassert was given.
3361 if test "${enable_cassert+set}" = set; then
3362 enableval="$enable_cassert"
3367 cat >>confdefs.h <<\_ACEOF
3368 #define USE_ASSERT_CHECKING 1
3376 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3377 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3378 { (exit 1); exit 1; }; }
3390 # Include directories
3393 IFS="${IFS}${PATH_SEPARATOR}"
3394 # SRCH_INC comes from the template file
3395 for dir in $with_includes $SRCH_INC; do
3396 if test -d "$dir"; then
3397 INCLUDES="$INCLUDES -I$dir"
3399 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3400 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3408 # Library directories
3411 IFS="${IFS}${PATH_SEPARATOR}"
3412 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3413 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3414 if test -d "$dir"; then
3415 LIBDIRS="$LIBDIRS -L$dir"
3417 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3418 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3424 # Enable thread-safe client libraries
3426 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3427 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3430 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3431 if test "${enable_thread_safety+set}" = set; then
3432 enableval="$enable_thread_safety"
3442 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3443 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3444 { (exit 1); exit 1; }; }
3449 enable_thread_safety=no
3455 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3456 if test "${enable_thread_safety_force+set}" = set; then
3457 enableval="$enable_thread_safety_force"
3467 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3468 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3469 { (exit 1); exit 1; }; }
3474 enable_thread_safety_force=no
3478 if test "$enable_thread_safety" = yes -o \
3479 "$enable_thread_safety_force" = yes; then
3480 enable_thread_safety="yes" # for 'force'
3482 cat >>confdefs.h <<\_ACEOF
3483 #define ENABLE_THREAD_SAFETY 1
3487 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3488 echo "${ECHO_T}$enable_thread_safety" >&6
3492 # Optionally build Tcl modules (PL/Tcl)
3494 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3495 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3499 # Check whether --with-tcl or --without-tcl was given.
3500 if test "${with_tcl+set}" = set; then
3511 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3512 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3513 { (exit 1); exit 1; }; }
3522 echo "$as_me:$LINENO: result: $with_tcl" >&5
3523 echo "${ECHO_T}$with_tcl" >&6
3526 # We see if the path to the Tcl/Tk configuration scripts is specified.
3527 # This will override the use of tclsh to find the paths to search.
3532 # Check whether --with-tclconfig or --without-tclconfig was given.
3533 if test "${with_tclconfig+set}" = set; then
3534 withval="$with_tclconfig"
3538 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3539 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3540 { (exit 1); exit 1; }; }
3543 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3544 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3545 { (exit 1); exit 1; }; }
3556 # Optionally build Perl modules (PL/Perl)
3558 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3559 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3563 # Check whether --with-perl or --without-perl was given.
3564 if test "${with_perl+set}" = set; then
3565 withval="$with_perl"
3575 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3576 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3577 { (exit 1); exit 1; }; }
3586 echo "$as_me:$LINENO: result: $with_perl" >&5
3587 echo "${ECHO_T}$with_perl" >&6
3591 # Optionally build Python modules (PL/Python)
3593 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3594 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3598 # Check whether --with-python or --without-python was given.
3599 if test "${with_python+set}" = set; then
3600 withval="$with_python"
3610 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3611 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3612 { (exit 1); exit 1; }; }
3621 echo "$as_me:$LINENO: result: $with_python" >&5
3622 echo "${ECHO_T}$with_python" >&6
3628 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3629 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3633 # Check whether --with-krb5 or --without-krb5 was given.
3634 if test "${with_krb5+set}" = set; then
3635 withval="$with_krb5"
3641 cat >>confdefs.h <<\_ACEOF
3645 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3652 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3653 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3654 { (exit 1); exit 1; }; }
3663 echo "$as_me:$LINENO: result: $with_krb5" >&5
3664 echo "${ECHO_T}$with_krb5" >&6
3672 # Kerberos configuration parameters
3677 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3678 if test "${with_krb_srvnam+set}" = set; then
3679 withval="$with_krb_srvnam"
3683 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3684 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3685 { (exit 1); exit 1; }; }
3688 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3689 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3690 { (exit 1); exit 1; }; }
3698 with_krb_srvnam="postgres"
3702 cat >>confdefs.h <<_ACEOF
3703 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3711 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3712 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3716 # Check whether --with-pam or --without-pam was given.
3717 if test "${with_pam+set}" = set; then
3723 cat >>confdefs.h <<\_ACEOF
3732 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3733 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3734 { (exit 1); exit 1; }; }
3743 echo "$as_me:$LINENO: result: $with_pam" >&5
3744 echo "${ECHO_T}$with_pam" >&6
3751 echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
3752 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6
3756 # Check whether --with-ldap or --without-ldap was given.
3757 if test "${with_ldap+set}" = set; then
3758 withval="$with_ldap"
3763 cat >>confdefs.h <<\_ACEOF
3772 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
3773 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
3774 { (exit 1); exit 1; }; }
3783 echo "$as_me:$LINENO: result: $with_ldap" >&5
3784 echo "${ECHO_T}$with_ldap" >&6
3791 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3792 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3796 # Check whether --with-bonjour or --without-bonjour was given.
3797 if test "${with_bonjour+set}" = set; then
3798 withval="$with_bonjour"
3803 cat >>confdefs.h <<\_ACEOF
3804 #define USE_BONJOUR 1
3812 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3813 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3814 { (exit 1); exit 1; }; }
3823 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3824 echo "${ECHO_T}$with_bonjour" >&6
3831 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3832 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3836 # Check whether --with-openssl or --without-openssl was given.
3837 if test "${with_openssl+set}" = set; then
3838 withval="$with_openssl"
3843 cat >>confdefs.h <<\_ACEOF
3852 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3853 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3854 { (exit 1); exit 1; }; }
3863 echo "$as_me:$LINENO: result: $with_openssl" >&5
3864 echo "${ECHO_T}$with_openssl" >&6
3874 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3875 if test "${with_libedit_preferred+set}" = set; then
3876 withval="$with_libedit_preferred"
3886 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3887 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3888 { (exit 1); exit 1; }; }
3893 with_libedit_preferred=no
3905 # Check whether --with-readline or --without-readline was given.
3906 if test "${with_readline+set}" = set; then
3907 withval="$with_readline"
3917 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3918 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3919 { (exit 1); exit 1; }; }
3928 # readline on MinGW has problems with backslashes in psql and other bugs.
3929 # This is particularly a problem with non-US code pages.
3930 # Therefore disable its use until we understand the cause. 2004-07-20
3931 if test "$PORTNAME" = "win32"; then
3932 if test "$with_readline" = yes; then
3933 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3934 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3946 # Check whether --with-zlib or --without-zlib was given.
3947 if test "${with_zlib+set}" = set; then
3948 withval="$with_zlib"
3958 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3959 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3960 { (exit 1); exit 1; }; }
3975 # Assume system is ELF if it predefines __ELF__ as 1,
3976 # otherwise believe host_os based default.
3978 freebsd1*|freebsd2*) elf=no;;
3979 freebsd3*|freebsd4*) elf=yes;;
3983 echo "$as_me:$LINENO: checking for egrep" >&5
3984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3985 if test "${ac_cv_prog_egrep+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3988 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3989 then ac_cv_prog_egrep='grep -E'
3990 else ac_cv_prog_egrep='egrep'
3993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3995 EGREP=$ac_cv_prog_egrep
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010 $EGREP "yes" >/dev/null 2>&1; then
4013 if test "X$elf" = "Xyes" ; then
4027 CPPFLAGS="$CPPFLAGS $INCLUDES"
4028 LDFLAGS="$LDFLAGS $LIBDIRS"
4030 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4031 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4032 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4033 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4037 for ac_prog in gawk mawk nawk awk
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_AWK+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$AWK"; then
4047 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_AWK="$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 if test -n "$AWK"; then
4067 echo "$as_me:$LINENO: result: $AWK" >&5
4068 echo "${ECHO_T}$AWK" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4074 test -n "$AWK" && break
4077 echo "$as_me:$LINENO: checking for flex" >&5
4078 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4079 if test "${pgac_cv_path_flex+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # Let the user override the test
4083 if test -n "$FLEX"; then
4084 pgac_cv_path_flex=$FLEX
4088 for pgac_dir in $PATH; do
4090 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4093 for pgac_prog in flex lex; do
4094 pgac_candidate="$pgac_dir/$pgac_prog"
4095 if test -f "$pgac_candidate" \
4096 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4098 echo '%%' > conftest.l
4099 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4100 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4101 pgac_broken_flex=$pgac_candidate
4105 pgac_cv_path_flex=$pgac_candidate
4111 rm -f conftest.l lex.yy.c
4112 : ${pgac_cv_path_flex=no}
4116 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4117 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4118 if test x"$pgac_cv_path_flex" = x"no"; then
4119 if test -n "$pgac_broken_flex"; then
4120 { echo "$as_me:$LINENO: WARNING:
4121 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4122 *** should get version 2.5.4 or later." >&5
4123 echo "$as_me: WARNING:
4124 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4125 *** should get version 2.5.4 or later." >&2;}
4128 { echo "$as_me:$LINENO: WARNING:
4129 *** Without Flex you will not be able to build PostgreSQL from CVS or
4130 *** change any of the scanner definition files. You can obtain Flex from
4131 *** a GNU mirror site. (If you are using the official distribution of
4132 *** PostgreSQL then you do not need to worry about this because the Flex
4133 *** output is pre-generated.)" >&5
4134 echo "$as_me: WARNING:
4135 *** Without Flex you will not be able to build PostgreSQL from CVS or
4136 *** change any of the scanner definition files. You can obtain Flex from
4137 *** a GNU mirror site. (If you are using the official distribution of
4138 *** PostgreSQL then you do not need to worry about this because the Flex
4139 *** output is pre-generated.)" >&2;}
4142 if test x"$pgac_cv_path_flex" = x"no"; then
4145 FLEX=$pgac_cv_path_flex
4151 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4154 if test "$LN_S" = "ln -s"; then
4155 echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6
4158 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4159 echo "${ECHO_T}no, using $LN_S" >&6
4163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4164 if test "${with_gnu_ld+set}" = set; then
4165 withval="$with_gnu_ld"
4166 test "$withval" = no || with_gnu_ld=yes
4171 if test "$GCC" = yes; then
4172 # Check if gcc -print-prog-name=ld gives a path.
4173 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4174 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4177 # gcc leaves a trailing carriage return which upsets mingw
4178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4183 # Accept absolute paths.
4184 [\\/]* | [A-Za-z]:[\\/]*)
4185 re_direlt='/[^/][^/]*/\.\./'
4186 # Canonicalize the path of ld
4187 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4188 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4189 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4191 test -z "$LD" && LD="$ac_prog"
4194 # If it fails, then pretend we aren't using GCC.
4198 # If it is relative, then search for the first ld in PATH.
4202 elif test "$with_gnu_ld" = yes; then
4203 echo "$as_me:$LINENO: checking for GNU ld" >&5
4204 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4206 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4207 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4209 if test "${ac_cv_path_LD+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 if test -z "$LD"; then
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4214 for ac_dir in $PATH; do
4215 test -z "$ac_dir" && ac_dir=.
4216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4217 ac_cv_path_LD="$ac_dir/$ac_prog"
4218 # Check to see if the program is GNU ld. I'd rather use --version,
4219 # but apparently some GNU ld's only accept -v.
4220 # Break only if it was the GNU/non-GNU ld that we prefer.
4221 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4222 test "$with_gnu_ld" != no && break
4224 test "$with_gnu_ld" != yes && break
4230 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4235 if test -n "$LD"; then
4236 echo "$as_me:$LINENO: result: $LD" >&5
4237 echo "${ECHO_T}$LD" >&6
4239 echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4244 { (exit 1); exit 1; }; }
4245 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4247 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4251 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4252 ac_cv_prog_gnu_ld=yes
4254 ac_cv_prog_gnu_ld=no
4257 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4258 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4259 with_gnu_ld=$ac_cv_prog_gnu_ld
4264 case $host_os in sysv5*)
4265 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4266 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4267 if test "${pgac_cv_prog_ld_R+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4287 rm -f conftest.$ac_objext conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest$ac_exeext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 pgac_cv_prog_ld_R=yes
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 pgac_cv_prog_ld_R=no
4316 rm -f conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318 LDFLAGS=$pgac_save_LDFLAGS
4321 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4322 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4323 ld_R_works=$pgac_cv_prog_ld_R
4326 if test -n "$ac_tool_prefix"; then
4327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_prog_RANLIB+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 if test -n "$RANLIB"; then
4335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 RANLIB=$ac_cv_prog_RANLIB
4354 if test -n "$RANLIB"; then
4355 echo "$as_me:$LINENO: result: $RANLIB" >&5
4356 echo "${ECHO_T}$RANLIB" >&6
4358 echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4363 if test -z "$ac_cv_prog_RANLIB"; then
4364 ac_ct_RANLIB=$RANLIB
4365 # Extract the first word of "ranlib", so it can be a program name with args.
4366 set dummy ranlib; ac_word=$2
4367 echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$ac_ct_RANLIB"; then
4373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_prog_ac_ct_RANLIB="ranlib"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4393 if test -n "$ac_ct_RANLIB"; then
4394 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4395 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4397 echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4401 RANLIB=$ac_ct_RANLIB
4403 RANLIB="$ac_cv_prog_RANLIB"
4406 # Extract the first word of "tar", so it can be a program name with args.
4407 set dummy tar; ac_word=$2
4408 echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410 if test "${ac_cv_path_TAR+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 if test -n "$TAR"; then
4438 echo "$as_me:$LINENO: result: $TAR" >&5
4439 echo "${ECHO_T}$TAR" >&6
4441 echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}strip; ac_word=$2
4449 echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4451 if test "${ac_cv_prog_STRIP+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 if test -n "$STRIP"; then
4455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 STRIP=$ac_cv_prog_STRIP
4474 if test -n "$STRIP"; then
4475 echo "$as_me:$LINENO: result: $STRIP" >&5
4476 echo "${ECHO_T}$STRIP" >&6
4478 echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4483 if test -z "$ac_cv_prog_STRIP"; then
4485 # Extract the first word of "strip", so it can be a program name with args.
4486 set dummy strip; ac_word=$2
4487 echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4489 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 if test -n "$ac_ct_STRIP"; then
4493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_ac_ct_STRIP="strip"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4513 if test -n "$ac_ct_STRIP"; then
4514 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4515 echo "${ECHO_T}$ac_ct_STRIP" >&6
4517 echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6
4523 STRIP="$ac_cv_prog_STRIP"
4527 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4528 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4529 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4530 STRIP_STATIC_LIB="$STRIP -x"
4531 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4532 echo "$as_me:$LINENO: result: yes" >&5
4533 echo "${ECHO_T}yes" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4544 for ac_prog in 'bison -y'
4546 # Extract the first word of "$ac_prog", so it can be a program name with args.
4547 set dummy $ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_YACC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test -n "$YACC"; then
4554 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_YACC="$ac_prog"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 YACC=$ac_cv_prog_YACC
4573 if test -n "$YACC"; then
4574 echo "$as_me:$LINENO: result: $YACC" >&5
4575 echo "${ECHO_T}$YACC" >&6
4577 echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4581 test -n "$YACC" && break
4585 if test "$YACC"; then
4586 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4587 { echo "$as_me:$LINENO: WARNING:
4588 *** If you are going to modify the grammar files or build from CVS, the installed
4589 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4590 echo "$as_me: WARNING:
4591 *** If you are going to modify the grammar files or build from CVS, the installed
4592 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4596 if test -z "$YACC"; then
4597 { echo "$as_me:$LINENO: WARNING:
4598 *** Without Bison you will not be able to build PostgreSQL from CVS or
4599 *** change any of the parser definition files. You can obtain Bison from
4600 *** a GNU mirror site. (If you are using the official distribution of
4601 *** PostgreSQL then you do not need to worry about this because the Bison
4602 *** output is pre-generated.) To use a different yacc program (possible,
4603 *** but not recommended), set the environment variable YACC before running
4604 *** 'configure'." >&5
4605 echo "$as_me: WARNING:
4606 *** Without Bison you will not be able to build PostgreSQL from CVS or
4607 *** change any of the parser definition files. You can obtain Bison from
4608 *** a GNU mirror site. (If you are using the official distribution of
4609 *** PostgreSQL then you do not need to worry about this because the Bison
4610 *** output is pre-generated.) To use a different yacc program (possible,
4611 *** but not recommended), set the environment variable YACC before running
4612 *** 'configure'." >&2;}
4616 # Extract the first word of "perl", so it can be a program name with args.
4617 set dummy perl; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_path_PERL+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 PERL=$ac_cv_path_PERL
4647 if test -n "$PERL"; then
4648 echo "$as_me:$LINENO: result: $PERL" >&5
4649 echo "${ECHO_T}$PERL" >&6
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 if test "$with_perl" = yes; then
4657 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4658 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4659 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4660 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4661 echo "${ECHO_T}$perl_archlibexp" >&6
4662 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4663 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4664 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4665 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4666 echo "${ECHO_T}$perl_privlibexp" >&6
4667 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4668 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4669 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4670 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4671 echo "${ECHO_T}$perl_useshrplib" >&6
4673 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4674 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4675 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4676 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4677 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4678 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4679 echo "${ECHO_T}$perl_embed_ldflags" >&6
4682 if test "$with_python" = yes; then
4683 # Extract the first word of "python", so it can be a program name with args.
4684 set dummy python; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_path_PYTHON+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 PYTHON=$ac_cv_path_PYTHON
4714 if test -n "$PYTHON"; then
4715 echo "$as_me:$LINENO: result: $PYTHON" >&5
4716 echo "${ECHO_T}$PYTHON" >&6
4718 echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4722 if test x"$PYTHON" = x""; then
4723 { { echo "$as_me:$LINENO: error: Python not found" >&5
4724 echo "$as_me: error: Python not found" >&2;}
4725 { (exit 1); exit 1; }; }
4729 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4730 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4731 if "${PYTHON}" 2>&- -c 'import distutils'
4733 echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6
4736 echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6
4738 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4739 echo "$as_me: error: distutils module not found" >&2;}
4740 { (exit 1); exit 1; }; }
4742 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4743 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4744 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4745 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')"`
4746 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4748 # This should be enough of a message.
4749 echo "$as_me:$LINENO: result: $python_configdir" >&5
4750 echo "${ECHO_T}$python_configdir" >&6
4753 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4754 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4756 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4757 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4758 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4759 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4761 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4763 # New way: use the official shared library
4764 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4765 python_libspec="-L${python_libdir} -l${ldlibrary}"
4767 # Old way: use libpython from python_configdir
4768 python_libdir="${python_configdir}"
4769 python_libspec="-L${python_libdir} -lpython${python_version}"
4772 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4774 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4775 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4778 # threaded python is not supported on bsd's
4779 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4780 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4781 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4782 if test "$pythreads" = "1"; then
4783 echo "$as_me:$LINENO: result: yes" >&5
4784 echo "${ECHO_T}yes" >&6
4787 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4788 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4789 { (exit 1); exit 1; }; }
4793 echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6
4800 # Supply a numeric version string for use by 3rd party add-ons
4801 # awk -F is a regex on some platforms, and not on others, so make "." a tab
4802 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
4804 $AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
4806 cat >>confdefs.h <<_ACEOF
4807 #define PG_VERSION_NUM $PG_VERSION_NUM
4815 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4816 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4817 if test "${ac_cv_search_setproctitle+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_func_search_save_LIBS=$LIBS
4821 ac_cv_search_setproctitle=no
4822 cat >conftest.$ac_ext <<_ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4829 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */
4835 char setproctitle ();
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1 >conftest.err
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest$ac_exeext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_cv_search_setproctitle="none required"
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4872 rm -f conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4874 if test "$ac_cv_search_setproctitle" = no; then
4875 for ac_lib in util; do
4876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4877 cat >conftest.$ac_ext <<_ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h. */
4884 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4890 char setproctitle ();
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4901 (eval $ac_link) 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag"
4909 || test ! -s conftest.err'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; } &&
4915 { ac_try='test -s conftest$ac_exeext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4921 ac_cv_search_setproctitle="-l$ac_lib"
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -f conftest.err conftest.$ac_objext \
4929 conftest$ac_exeext conftest.$ac_ext
4932 LIBS=$ac_func_search_save_LIBS
4934 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4935 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4936 if test "$ac_cv_search_setproctitle" != no; then
4937 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4941 echo "$as_me:$LINENO: checking for library containing pow" >&5
4942 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4943 if test "${ac_cv_search_pow+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 ac_func_search_save_LIBS=$LIBS
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4959 /* We use char because int might match the return type of a gcc2
4960 builtin and then its argument prototype would still apply. */
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 ac_cv_search_pow="none required"
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4998 rm -f conftest.err conftest.$ac_objext \
4999 conftest$ac_exeext conftest.$ac_ext
5000 if test "$ac_cv_search_pow" = no; then
5002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5003 cat >conftest.$ac_ext <<_ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5025 rm -f conftest.$ac_objext conftest$ac_exeext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try='test -s conftest$ac_exeext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_search_pow="-l$ac_lib"
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5054 rm -f conftest.err conftest.$ac_objext \
5055 conftest$ac_exeext conftest.$ac_ext
5058 LIBS=$ac_func_search_save_LIBS
5060 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
5061 echo "${ECHO_T}$ac_cv_search_pow" >&6
5062 if test "$ac_cv_search_pow" != no; then
5063 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5067 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5068 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5069 if test "${ac_cv_search_dlopen+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 ac_func_search_save_LIBS=$LIBS
5073 ac_cv_search_dlopen=no
5074 cat >conftest.$ac_ext <<_ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5081 /* Override any gcc2 internal prototype to avoid an error. */
5085 /* We use char because int might match the return type of a gcc2
5086 builtin and then its argument prototype would still apply. */
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -z "$ac_c_werror_flag"
5106 || test ! -s conftest.err'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; } &&
5112 { ac_try='test -s conftest$ac_exeext'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; }; then
5118 ac_cv_search_dlopen="none required"
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f conftest.err conftest.$ac_objext \
5125 conftest$ac_exeext conftest.$ac_ext
5126 if test "$ac_cv_search_dlopen" = no; then
5127 for ac_lib in dl; do
5128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5129 cat >conftest.$ac_ext <<_ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5136 /* Override any gcc2 internal prototype to avoid an error. */
5140 /* We use char because int might match the return type of a gcc2
5141 builtin and then its argument prototype would still apply. */
5151 rm -f conftest.$ac_objext conftest$ac_exeext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5153 (eval $ac_link) 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -z "$ac_c_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_search_dlopen="-l$ac_lib"
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5180 rm -f conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5184 LIBS=$ac_func_search_save_LIBS
5186 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5187 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5188 if test "$ac_cv_search_dlopen" != no; then
5189 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5193 echo "$as_me:$LINENO: checking for library containing socket" >&5
5194 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5195 if test "${ac_cv_search_socket+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 ac_func_search_save_LIBS=$LIBS
5199 ac_cv_search_socket=no
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5207 /* Override any gcc2 internal prototype to avoid an error. */
5211 /* We use char because int might match the return type of a gcc2
5212 builtin and then its argument prototype would still apply. */
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } &&
5231 { ac_try='test -z "$ac_c_werror_flag"
5232 || test ! -s conftest.err'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_search_socket="none required"
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5250 rm -f conftest.err conftest.$ac_objext \
5251 conftest$ac_exeext conftest.$ac_ext
5252 if test "$ac_cv_search_socket" = no; then
5253 for ac_lib in socket wsock32; do
5254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5262 /* Override any gcc2 internal prototype to avoid an error. */
5266 /* We use char because int might match the return type of a gcc2
5267 builtin and then its argument prototype would still apply. */
5277 rm -f conftest.$ac_objext conftest$ac_exeext
5278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5279 (eval $ac_link) 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -z "$ac_c_werror_flag"
5287 || test ! -s conftest.err'
5288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; } &&
5293 { ac_try='test -s conftest$ac_exeext'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; }; then
5299 ac_cv_search_socket="-l$ac_lib"
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5306 rm -f conftest.err conftest.$ac_objext \
5307 conftest$ac_exeext conftest.$ac_ext
5310 LIBS=$ac_func_search_save_LIBS
5312 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5313 echo "${ECHO_T}$ac_cv_search_socket" >&6
5314 if test "$ac_cv_search_socket" != no; then
5315 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5319 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5320 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5321 if test "${ac_cv_search_shl_load+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_func_search_save_LIBS=$LIBS
5325 ac_cv_search_shl_load=no
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5333 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350 (eval $ac_link) 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_c_werror_flag"
5358 || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_search_shl_load="none required"
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f conftest.err conftest.$ac_objext \
5377 conftest$ac_exeext conftest.$ac_ext
5378 if test "$ac_cv_search_shl_load" = no; then
5379 for ac_lib in dld; do
5380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5388 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag"
5413 || test ! -s conftest.err'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; } &&
5419 { ac_try='test -s conftest$ac_exeext'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 ac_cv_search_shl_load="-l$ac_lib"
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5432 rm -f conftest.err conftest.$ac_objext \
5433 conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_func_search_save_LIBS
5438 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5439 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5440 if test "$ac_cv_search_shl_load" != no; then
5441 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5445 # We only use libld in port/dynloader/aix.c
5448 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5449 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5450 if test "${ac_cv_search_ldopen+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 ac_func_search_save_LIBS=$LIBS
5454 ac_cv_search_ldopen=no
5455 cat >conftest.$ac_ext <<_ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5479 (eval $ac_link) 2>conftest.er1
5481 grep -v '^ *+' conftest.er1 >conftest.err
5483 cat conftest.err >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -z "$ac_c_werror_flag"
5487 || test ! -s conftest.err'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest$ac_exeext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 ac_cv_search_ldopen="none required"
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5505 rm -f conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 if test "$ac_cv_search_ldopen" = no; then
5508 for ac_lib in ld; do
5509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5517 /* Override any gcc2 internal prototype to avoid an error. */
5521 /* We use char because int might match the return type of a gcc2
5522 builtin and then its argument prototype would still apply. */
5532 rm -f conftest.$ac_objext conftest$ac_exeext
5533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag"
5542 || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 ac_cv_search_ldopen="-l$ac_lib"
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_func_search_save_LIBS
5567 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5568 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5569 if test "$ac_cv_search_ldopen" != no; then
5570 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5576 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5577 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5578 if test "${ac_cv_search_getopt_long+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 ac_func_search_save_LIBS=$LIBS
5582 ac_cv_search_getopt_long=no
5583 cat >conftest.$ac_ext <<_ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5596 char getopt_long ();
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607 (eval $ac_link) 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } &&
5614 { ac_try='test -z "$ac_c_werror_flag"
5615 || test ! -s conftest.err'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5627 ac_cv_search_getopt_long="none required"
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5633 rm -f conftest.err conftest.$ac_objext \
5634 conftest$ac_exeext conftest.$ac_ext
5635 if test "$ac_cv_search_getopt_long" = no; then
5636 for ac_lib in getopt gnugetopt; do
5637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5645 /* Override any gcc2 internal prototype to avoid an error. */
5649 /* We use char because int might match the return type of a gcc2
5650 builtin and then its argument prototype would still apply. */
5651 char getopt_long ();
5660 rm -f conftest.$ac_objext conftest$ac_exeext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest$ac_exeext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_search_getopt_long="-l$ac_lib"
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5689 rm -f conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5693 LIBS=$ac_func_search_save_LIBS
5695 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5696 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5697 if test "$ac_cv_search_getopt_long" != no; then
5698 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5702 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5703 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5704 if test "${ac_cv_search_crypt+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_func_search_save_LIBS=$LIBS
5708 ac_cv_search_crypt=no
5709 cat >conftest.$ac_ext <<_ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5720 /* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 ac_cv_search_crypt="none required"
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 if test "$ac_cv_search_crypt" = no; then
5762 for ac_lib in crypt; do
5763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>conftest.er1
5790 grep -v '^ *+' conftest.er1 >conftest.err
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -z "$ac_c_werror_flag"
5796 || test ! -s conftest.err'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest$ac_exeext'
5803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; }; then
5808 ac_cv_search_crypt="-l$ac_lib"
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5815 rm -f conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5819 LIBS=$ac_func_search_save_LIBS
5821 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5822 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5823 if test "$ac_cv_search_crypt" != no; then
5824 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5829 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5830 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5831 if test "${ac_cv_search_fdatasync+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5834 ac_func_search_save_LIBS=$LIBS
5835 ac_cv_search_fdatasync=no
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest$ac_exeext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_search_fdatasync="none required"
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5886 rm -f conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 if test "$ac_cv_search_fdatasync" = no; then
5889 for ac_lib in rt posix4; do
5890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5913 rm -f conftest.$ac_objext conftest$ac_exeext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5915 (eval $ac_link) 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_c_werror_flag"
5923 || test ! -s conftest.err'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; } &&
5929 { ac_try='test -s conftest$ac_exeext'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 ac_cv_search_fdatasync="-l$ac_lib"
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5946 LIBS=$ac_func_search_save_LIBS
5948 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5949 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5950 if test "$ac_cv_search_fdatasync" != no; then
5951 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5956 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5957 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5958 if test "${ac_cv_search_shmget+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_func_search_save_LIBS=$LIBS
5962 ac_cv_search_shmget=no
5963 cat >conftest.$ac_ext <<_ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any gcc2 internal prototype to avoid an error. */
5974 /* We use char because int might match the return type of a gcc2
5975 builtin and then its argument prototype would still apply. */
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_search_shmget="none required"
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6013 rm -f conftest.err conftest.$ac_objext \
6014 conftest$ac_exeext conftest.$ac_ext
6015 if test "$ac_cv_search_shmget" = no; then
6016 for ac_lib in cygipc; do
6017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>conftest.er1
6044 grep -v '^ *+' conftest.er1 >conftest.err
6046 cat conftest.err >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -z "$ac_c_werror_flag"
6050 || test ! -s conftest.err'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; } &&
6056 { ac_try='test -s conftest$ac_exeext'
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 ac_cv_search_shmget="-l$ac_lib"
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6069 rm -f conftest.err conftest.$ac_objext \
6070 conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_func_search_save_LIBS
6075 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6076 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6077 if test "$ac_cv_search_shmget" != no; then
6078 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6083 if test "$with_readline" = yes; then
6086 if test "${pgac_cv_check_readline+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 pgac_cv_check_readline=no
6090 pgac_save_LIBS=$LIBS
6091 if test x"$with_libedit_preferred" != x"yes"
6092 then READLINE_ORDER="-lreadline -ledit"
6093 else READLINE_ORDER="-ledit -lreadline"
6095 for pgac_rllib in $READLINE_ORDER ; do
6096 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6097 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6098 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6099 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6100 cat >conftest.$ac_ext <<_ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h. */
6107 /* Override any gcc2 internal prototype to avoid an error. */
6111 /* We use char because int might match the return type of a gcc2
6112 builtin and then its argument prototype would still apply. */
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6145 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6146 # recognize dependent libraries; assume curses is needed if we didn't
6147 # find any dependency.
6149 netbsd* | openbsd* | irix*)
6150 if test x"$pgac_lib" = x"" ; then
6151 pgac_lib=" -lcurses"
6155 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f conftest.err conftest.$ac_objext \
6164 conftest$ac_exeext conftest.$ac_ext
6166 if test "$pgac_cv_check_readline" != no ; then
6167 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6168 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6171 echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6
6175 LIBS=$pgac_save_LIBS
6179 if test "$pgac_cv_check_readline" != no ; then
6180 LIBS="$pgac_cv_check_readline $LIBS"
6182 cat >>confdefs.h <<\_ACEOF
6183 #define HAVE_LIBREADLINE 1
6189 if test x"$pgac_cv_check_readline" = x"no"; then
6190 { { echo "$as_me:$LINENO: error: readline library not found
6191 If you have readline already installed, see config.log for details on the
6192 failure. It is possible the compiler isn't looking in the proper directory.
6193 Use --without-readline to disable readline support." >&5
6194 echo "$as_me: error: readline library not found
6195 If you have readline already installed, see config.log for details on the
6196 failure. It is possible the compiler isn't looking in the proper directory.
6197 Use --without-readline to disable readline support." >&2;}
6198 { (exit 1); exit 1; }; }
6202 if test "$with_zlib" = yes; then
6204 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6205 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6206 if test "${ac_cv_lib_z_inflate+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 ac_check_lib_save_LIBS=$LIBS
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6218 /* Override any gcc2 internal prototype to avoid an error. */
6222 /* We use char because int might match the return type of a gcc2
6223 builtin and then its argument prototype would still apply. */
6233 rm -f conftest.$ac_objext conftest$ac_exeext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6235 (eval $ac_link) 2>conftest.er1
6237 grep -v '^ *+' conftest.er1 >conftest.err
6239 cat conftest.err >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try='test -z "$ac_c_werror_flag"
6243 || test ! -s conftest.err'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_lib_z_inflate=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_cv_lib_z_inflate=no
6262 rm -f conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6266 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6267 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6268 if test $ac_cv_lib_z_inflate = yes; then
6269 cat >>confdefs.h <<_ACEOF
6276 { { echo "$as_me:$LINENO: error: zlib library not found
6277 If you have zlib already installed, see config.log for details on the
6278 failure. It is possible the compiler isn't looking in the proper directory.
6279 Use --without-zlib to disable zlib support." >&5
6280 echo "$as_me: error: zlib library not found
6281 If you have zlib already installed, see config.log for details on the
6282 failure. It is possible the compiler isn't looking in the proper directory.
6283 Use --without-zlib to disable zlib support." >&2;}
6284 { (exit 1); exit 1; }; }
6289 if test "$enable_spinlocks" = yes; then
6291 cat >>confdefs.h <<\_ACEOF
6292 #define HAVE_SPINLOCKS 1
6296 { echo "$as_me:$LINENO: WARNING:
6297 *** Not using spinlocks will cause poor performance." >&5
6298 echo "$as_me: WARNING:
6299 *** Not using spinlocks will cause poor performance." >&2;}
6302 if test "$with_krb5" = yes ; then
6303 if test "$PORTNAME" != "win32"; then
6304 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6305 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6306 if test "${ac_cv_search_com_err+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6309 ac_func_search_save_LIBS=$LIBS
6310 ac_cv_search_com_err=no
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_search_com_err="none required"
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 if test "$ac_cv_search_com_err" = no; then
6364 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6366 cat >conftest.$ac_ext <<_ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6373 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6388 rm -f conftest.$ac_objext conftest$ac_exeext
6389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>conftest.er1
6392 grep -v '^ *+' conftest.er1 >conftest.err
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } &&
6397 { ac_try='test -z "$ac_c_werror_flag"
6398 || test ! -s conftest.err'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_search_com_err="-l$ac_lib"
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6417 rm -f conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6421 LIBS=$ac_func_search_save_LIBS
6423 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6424 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6425 if test "$ac_cv_search_com_err" != no; then
6426 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6429 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6430 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6431 { (exit 1); exit 1; }; }
6434 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6435 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6436 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 ac_func_search_save_LIBS=$LIBS
6440 ac_cv_search_krb5_encrypt=no
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6448 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6454 char krb5_encrypt ();
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465 (eval $ac_link) 2>conftest.er1
6467 grep -v '^ *+' conftest.er1 >conftest.err
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -z "$ac_c_werror_flag"
6473 || test ! -s conftest.err'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6485 ac_cv_search_krb5_encrypt="none required"
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6491 rm -f conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 if test "$ac_cv_search_krb5_encrypt" = no; then
6494 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6503 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char krb5_encrypt ();
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520 (eval $ac_link) 2>conftest.er1
6522 grep -v '^ *+' conftest.er1 >conftest.err
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_search_krb5_encrypt="-l$ac_lib"
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6547 rm -f conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6551 LIBS=$ac_func_search_save_LIBS
6553 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6554 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6555 if test "$ac_cv_search_krb5_encrypt" != no; then
6556 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6559 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6560 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6561 { (exit 1); exit 1; }; }
6564 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6565 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6566 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 ac_func_search_save_LIBS=$LIBS
6570 ac_cv_search_krb5_sendauth=no
6571 cat >conftest.$ac_ext <<_ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6584 char krb5_sendauth ();
6593 rm -f conftest.$ac_objext conftest$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_search_krb5_sendauth="none required"
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6621 rm -f conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6623 if test "$ac_cv_search_krb5_sendauth" = no; then
6624 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 /* Override any gcc2 internal prototype to avoid an error. */
6637 /* We use char because int might match the return type of a gcc2
6638 builtin and then its argument prototype would still apply. */
6639 char krb5_sendauth ();
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6650 (eval $ac_link) 2>conftest.er1
6652 grep -v '^ *+' conftest.er1 >conftest.err
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag"
6658 || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest$ac_exeext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_cv_search_krb5_sendauth="-l$ac_lib"
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6677 rm -f conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_func_search_save_LIBS
6683 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6684 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6685 if test "$ac_cv_search_krb5_sendauth" != no; then
6686 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6689 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6690 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6691 { (exit 1); exit 1; }; }
6695 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6696 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6697 if test "${ac_cv_search_com_err+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_func_search_save_LIBS=$LIBS
6701 ac_cv_search_com_err=no
6702 cat >conftest.$ac_ext <<_ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6709 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag"
6734 || test ! -s conftest.err'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 ac_cv_search_com_err="none required"
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6752 rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754 if test "$ac_cv_search_com_err" = no; then
6755 for ac_lib in 'comerr32 -lkrb5_32'; do
6756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6764 /* Override any gcc2 internal prototype to avoid an error. */
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>conftest.er1
6783 grep -v '^ *+' conftest.er1 >conftest.err
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
6788 { ac_try='test -z "$ac_c_werror_flag"
6789 || test ! -s conftest.err'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_search_com_err="-l$ac_lib"
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6812 LIBS=$ac_func_search_save_LIBS
6814 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6815 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6816 if test "$ac_cv_search_com_err" != no; then
6817 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6820 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6821 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6822 { (exit 1); exit 1; }; }
6828 if test "$with_openssl" = yes ; then
6829 if test "$PORTNAME" != "win32"; then
6831 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6832 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6833 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 ac_check_lib_save_LIBS=$LIBS
6837 LIBS="-lcrypto $LIBS"
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6845 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6851 char CRYPTO_new_ex_data ();
6855 CRYPTO_new_ex_data ();
6860 rm -f conftest.$ac_objext conftest$ac_exeext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6862 (eval $ac_link) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6889 rm -f conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_check_lib_save_LIBS
6893 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6894 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6895 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_LIBCRYPTO 1
6900 LIBS="-lcrypto $LIBS"
6903 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6904 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6905 { (exit 1); exit 1; }; }
6909 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6910 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6911 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_check_lib_save_LIBS=$LIBS
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6923 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char SSL_library_init ();
6933 SSL_library_init ();
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6940 (eval $ac_link) 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -z "$ac_c_werror_flag"
6948 || test ! -s conftest.err'
6949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); }; } &&
6954 { ac_try='test -s conftest$ac_exeext'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; }; then
6960 ac_cv_lib_ssl_SSL_library_init=yes
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 ac_cv_lib_ssl_SSL_library_init=no
6967 rm -f conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
6969 LIBS=$ac_check_lib_save_LIBS
6971 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6972 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6973 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define HAVE_LIBSSL 1
6981 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6982 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6983 { (exit 1); exit 1; }; }
6988 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6989 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6990 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_check_lib_save_LIBS=$LIBS
6994 LIBS="-leay32 $LIBS"
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7002 /* Override any gcc2 internal prototype to avoid an error. */
7006 /* We use char because int might match the return type of a gcc2
7007 builtin and then its argument prototype would still apply. */
7008 char CRYPTO_new_ex_data ();
7012 CRYPTO_new_ex_data ();
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7019 (eval $ac_link) 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag"
7027 || test ! -s conftest.err'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; } &&
7033 { ac_try='test -s conftest$ac_exeext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7046 rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 LIBS=$ac_check_lib_save_LIBS
7050 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7051 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7052 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_LIBEAY32 1
7057 LIBS="-leay32 $LIBS"
7060 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7061 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7062 { (exit 1); exit 1; }; }
7066 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7067 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7068 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 ac_check_lib_save_LIBS=$LIBS
7072 LIBS="-lssleay32 $LIBS"
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7080 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7086 char SSL_library_init ();
7090 SSL_library_init ();
7095 rm -f conftest.$ac_objext conftest$ac_exeext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7097 (eval $ac_link) 2>conftest.er1
7099 grep -v '^ *+' conftest.er1 >conftest.err
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest$ac_exeext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_lib_ssleay32_SSL_library_init=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_lib_ssleay32_SSL_library_init=no
7124 rm -f conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 LIBS=$ac_check_lib_save_LIBS
7128 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7129 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7130 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define HAVE_LIBSSLEAY32 1
7135 LIBS="-lssleay32 $LIBS"
7138 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7139 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7140 { (exit 1); exit 1; }; }
7146 if test "$with_pam" = yes ; then
7148 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7149 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7150 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_check_lib_save_LIBS=$LIBS
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7162 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179 (eval $ac_link) 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -z "$ac_c_werror_flag"
7187 || test ! -s conftest.err'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; } &&
7193 { ac_try='test -s conftest$ac_exeext'
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; }; then
7199 ac_cv_lib_pam_pam_start=yes
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_cv_lib_pam_pam_start=no
7206 rm -f conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7210 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7211 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7212 if test $ac_cv_lib_pam_pam_start = yes; then
7213 cat >>confdefs.h <<_ACEOF
7214 #define HAVE_LIBPAM 1
7220 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7221 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7222 { (exit 1); exit 1; }; }
7228 if test "$with_ldap" = yes ; then
7229 if test "$PORTNAME" != "win32"; then
7231 echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
7232 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6
7233 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 ac_check_lib_save_LIBS=$LIBS
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7245 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_ldap_ldap_bind=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_ldap_ldap_bind=no
7289 rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
7294 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6
7295 if test $ac_cv_lib_ldap_ldap_bind = yes; then
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_LIBLDAP 1
7303 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
7304 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
7305 { (exit 1); exit 1; }; }
7310 echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
7311 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6
7312 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 ac_check_lib_save_LIBS=$LIBS
7316 LIBS="-lwldap32 $LIBS"
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7324 /* Override any gcc2 internal prototype to avoid an error. */
7328 /* We use char because int might match the return type of a gcc2
7329 builtin and then its argument prototype would still apply. */
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7341 (eval $ac_link) 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_c_werror_flag"
7349 || test ! -s conftest.err'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; } &&
7355 { ac_try='test -s conftest$ac_exeext'
7356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_lib_wldap32_ldap_bind=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 ac_cv_lib_wldap32_ldap_bind=no
7368 rm -f conftest.err conftest.$ac_objext \
7369 conftest$ac_exeext conftest.$ac_ext
7370 LIBS=$ac_check_lib_save_LIBS
7372 echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
7373 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6
7374 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define HAVE_LIBWLDAP32 1
7379 LIBS="-lwldap32 $LIBS"
7382 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
7383 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
7384 { (exit 1); exit 1; }; }
7394 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7396 if test "${ac_cv_header_stdc+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -z "$ac_c_werror_flag"
7428 || test ! -s conftest.err'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_cv_header_stdc=yes
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_cv_header_stdc=no
7447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 if test $ac_cv_header_stdc = yes; then
7450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 $EGREP "memchr" >/dev/null 2>&1; then
7464 ac_cv_header_stdc=no
7470 if test $ac_cv_header_stdc = yes; then
7471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "free" >/dev/null 2>&1; then
7485 ac_cv_header_stdc=no
7491 if test $ac_cv_header_stdc = yes; then
7492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7493 if test "$cross_compiling" = yes; then
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7503 #if ((' ' & 0x0FF) == 0x020)
7504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7507 # define ISLOWER(c) \
7508 (('a' <= (c) && (c) <= 'i') \
7509 || ('j' <= (c) && (c) <= 'r') \
7510 || ('s' <= (c) && (c) <= 'z'))
7511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7519 for (i = 0; i < 256; i++)
7520 if (XOR (islower (i), ISLOWER (i))
7521 || toupper (i) != TOUPPER (i))
7526 rm -f conftest$ac_exeext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7528 (eval $ac_link) 2>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7539 echo "$as_me: program exited with status $ac_status" >&5
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7544 ac_cv_header_stdc=no
7546 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7551 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7552 if test $ac_cv_header_stdc = yes; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define STDC_HEADERS 1
7560 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7570 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7571 inttypes.h stdint.h unistd.h
7573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cat >conftest.$ac_ext <<_ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 $ac_includes_default
7587 #include <$ac_header>
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 eval "$as_ac_Header=yes"
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7616 eval "$as_ac_Header=no"
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7657 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
7659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7661 echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7669 # Is the header compilable?
7670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 $ac_includes_default
7679 #include <$ac_header>
7681 rm -f conftest.$ac_objext
7682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7683 (eval $ac_compile) 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -z "$ac_c_werror_flag"
7691 || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_header_compiler=yes
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_header_compiler=no
7710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7712 echo "${ECHO_T}$ac_header_compiler" >&6
7714 # Is the header present?
7715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <$ac_header>
7725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } >/dev/null; then
7733 if test -s conftest.err; then
7734 ac_cpp_err=$ac_c_preproc_warn_flag
7735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7742 if test -z "$ac_cpp_err"; then
7743 ac_header_preproc=yes
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_header_preproc=no
7750 rm -f conftest.err conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7752 echo "${ECHO_T}$ac_header_preproc" >&6
7754 # So? What about this header?
7755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7761 ac_header_preproc=yes
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7778 ## ---------------------------------------- ##
7779 ## Report this to pgsql-bugs@postgresql.org ##
7780 ## ---------------------------------------- ##
7783 sed "s/^/$as_me: WARNING: /" >&2
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 eval "$as_ac_Header=\$ac_header_preproc"
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7808 # netinet/in.h is included first.
7810 for ac_header in netinet/in.h
7812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7814 echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7822 # Is the header compilable?
7823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 $ac_includes_default
7832 #include <$ac_header>
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_c_werror_flag"
7844 || test ! -s conftest.err'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_header_compiler=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_header_compiler=no
7863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7865 echo "${ECHO_T}$ac_header_compiler" >&6
7867 # Is the header present?
7868 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7876 #include <$ac_header>
7878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } >/dev/null; then
7886 if test -s conftest.err; then
7887 ac_cpp_err=$ac_c_preproc_warn_flag
7888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7895 if test -z "$ac_cpp_err"; then
7896 ac_header_preproc=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_header_preproc=no
7903 rm -f conftest.err conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7905 echo "${ECHO_T}$ac_header_preproc" >&6
7907 # So? What about this header?
7908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7911 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7913 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7914 ac_header_preproc=yes
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7918 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7920 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7922 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7924 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7928 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7931 ## ---------------------------------------- ##
7932 ## Report this to pgsql-bugs@postgresql.org ##
7933 ## ---------------------------------------- ##
7936 sed "s/^/$as_me: WARNING: /" >&2
7939 echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 eval "$as_ac_Header=\$ac_header_preproc"
7946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7951 cat >>confdefs.h <<_ACEOF
7952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7960 for ac_header in netinet/tcp.h
7962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
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 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 $ac_includes_default
7975 #ifdef HAVE_NETINET_IN_H
7976 #include <netinet/in.h>
7980 #include <$ac_header>
7982 rm -f conftest.$ac_objext
7983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7984 (eval $ac_compile) 2>conftest.er1
7986 grep -v '^ *+' conftest.er1 >conftest.err
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest.$ac_objext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 eval "$as_ac_Header=yes"
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 eval "$as_ac_Header=no"
8011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016 cat >>confdefs.h <<_ACEOF
8017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8025 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8027 for ac_header in readline/readline.h
8029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031 echo "$as_me:$LINENO: checking for $ac_header" >&5
8032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8039 # Is the header compilable?
8040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8048 $ac_includes_default
8049 #include <$ac_header>
8051 rm -f conftest.$ac_objext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053 (eval $ac_compile) 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -z "$ac_c_werror_flag"
8061 || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try='test -s conftest.$ac_objext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_header_compiler=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8078 ac_header_compiler=no
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8082 echo "${ECHO_T}$ac_header_compiler" >&6
8084 # Is the header present?
8085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <$ac_header>
8095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8098 grep -v '^ *+' conftest.er1 >conftest.err
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } >/dev/null; then
8103 if test -s conftest.err; then
8104 ac_cpp_err=$ac_c_preproc_warn_flag
8105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8112 if test -z "$ac_cpp_err"; then
8113 ac_header_preproc=yes
8115 echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_header_preproc=no
8120 rm -f conftest.err conftest.$ac_ext
8121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8122 echo "${ECHO_T}$ac_header_preproc" >&6
8124 # So? What about this header?
8125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8131 ac_header_preproc=yes
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8148 ## ---------------------------------------- ##
8149 ## Report this to pgsql-bugs@postgresql.org ##
8150 ## ---------------------------------------- ##
8153 sed "s/^/$as_me: WARNING: /" >&2
8156 echo "$as_me:$LINENO: checking for $ac_header" >&5
8157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 eval "$as_ac_Header=\$ac_header_preproc"
8163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8168 cat >>confdefs.h <<_ACEOF
8169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8174 for ac_header in readline.h
8176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8178 echo "$as_me:$LINENO: checking for $ac_header" >&5
8179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8186 # Is the header compilable?
8187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8189 cat >conftest.$ac_ext <<_ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 #include <$ac_header>
8198 rm -f conftest.$ac_objext
8199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8200 (eval $ac_compile) 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -z "$ac_c_werror_flag"
8208 || test ! -s conftest.err'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; } &&
8214 { ac_try='test -s conftest.$ac_objext'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 ac_header_compiler=yes
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 ac_header_compiler=no
8227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8229 echo "${ECHO_T}$ac_header_compiler" >&6
8231 # Is the header present?
8232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 #include <$ac_header>
8242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } >/dev/null; then
8250 if test -s conftest.err; then
8251 ac_cpp_err=$ac_c_preproc_warn_flag
8252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8259 if test -z "$ac_cpp_err"; then
8260 ac_header_preproc=yes
8262 echo "$as_me: failed program was:" >&5
8263 sed 's/^/| /' conftest.$ac_ext >&5
8265 ac_header_preproc=no
8267 rm -f conftest.err conftest.$ac_ext
8268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8269 echo "${ECHO_T}$ac_header_preproc" >&6
8271 # So? What about this header?
8272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8278 ac_header_preproc=yes
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8295 ## ---------------------------------------- ##
8296 ## Report this to pgsql-bugs@postgresql.org ##
8297 ## ---------------------------------------- ##
8300 sed "s/^/$as_me: WARNING: /" >&2
8303 echo "$as_me:$LINENO: checking for $ac_header" >&5
8304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 eval "$as_ac_Header=\$ac_header_preproc"
8310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8315 cat >>confdefs.h <<_ACEOF
8316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8320 { { echo "$as_me:$LINENO: error: readline header not found
8321 If you have readline already installed, see config.log for details on the
8322 failure. It is possible the compiler isn't looking in the proper directory.
8323 Use --without-readline to disable readline support." >&5
8324 echo "$as_me: error: readline header not found
8325 If you have readline already installed, see config.log for details on the
8326 failure. It is possible the compiler isn't looking in the proper directory.
8327 Use --without-readline to disable readline support." >&2;}
8328 { (exit 1); exit 1; }; }
8338 for ac_header in readline/history.h
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342 echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8348 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 # Is the header compilable?
8351 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 #include <$ac_header>
8362 rm -f conftest.$ac_objext
8363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8364 (eval $ac_compile) 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_c_werror_flag"
8372 || test ! -s conftest.err'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8384 ac_header_compiler=yes
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8389 ac_header_compiler=no
8391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8393 echo "${ECHO_T}$ac_header_compiler" >&6
8395 # Is the header present?
8396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 #include <$ac_header>
8406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } >/dev/null; then
8414 if test -s conftest.err; then
8415 ac_cpp_err=$ac_c_preproc_warn_flag
8416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423 if test -z "$ac_cpp_err"; then
8424 ac_header_preproc=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_header_preproc=no
8431 rm -f conftest.err conftest.$ac_ext
8432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8433 echo "${ECHO_T}$ac_header_preproc" >&6
8435 # So? What about this header?
8436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8442 ac_header_preproc=yes
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8459 ## ---------------------------------------- ##
8460 ## Report this to pgsql-bugs@postgresql.org ##
8461 ## ---------------------------------------- ##
8464 sed "s/^/$as_me: WARNING: /" >&2
8467 echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 eval "$as_ac_Header=\$ac_header_preproc"
8474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8485 for ac_header in history.h
8487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489 echo "$as_me:$LINENO: checking for $ac_header" >&5
8490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8497 # Is the header compilable?
8498 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #include <$ac_header>
8509 rm -f conftest.$ac_objext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8511 (eval $ac_compile) 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -z "$ac_c_werror_flag"
8519 || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_header_compiler=yes
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 ac_header_compiler=no
8538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 #include <$ac_header>
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8556 grep -v '^ *+' conftest.er1 >conftest.err
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } >/dev/null; then
8561 if test -s conftest.err; then
8562 ac_cpp_err=$ac_c_preproc_warn_flag
8563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8570 if test -z "$ac_cpp_err"; then
8571 ac_header_preproc=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_header_preproc=no
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8582 # So? What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8606 ## ---------------------------------------- ##
8607 ## Report this to pgsql-bugs@postgresql.org ##
8608 ## ---------------------------------------- ##
8611 sed "s/^/$as_me: WARNING: /" >&2
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 eval "$as_ac_Header=\$ac_header_preproc"
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 { { echo "$as_me:$LINENO: error: history header not found
8632 If you have readline already installed, see config.log for details on the
8633 failure. It is possible the compiler isn't looking in the proper directory.
8634 Use --without-readline to disable readline support." >&5
8635 echo "$as_me: error: history header not found
8636 If you have readline already installed, see config.log for details on the
8637 failure. It is possible the compiler isn't looking in the proper directory.
8638 Use --without-readline to disable readline support." >&2;}
8639 { (exit 1); exit 1; }; }
8650 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8651 # Some installations of libedit usurp /usr/include/readline/, which seems
8652 # bad practice, since in combined installations readline will have its headers
8653 # there. We might have to resort to AC_EGREP checks to make sure we found
8654 # the proper header...
8656 for ac_header in editline/readline.h
8658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8668 # Is the header compilable?
8669 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 $ac_includes_default
8678 #include <$ac_header>
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag"
8690 || test ! -s conftest.err'
8691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); }; } &&
8696 { ac_try='test -s conftest.$ac_objext'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8702 ac_header_compiler=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_header_compiler=no
8709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8711 echo "${ECHO_T}$ac_header_compiler" >&6
8713 # Is the header present?
8714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8716 cat >conftest.$ac_ext <<_ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8722 #include <$ac_header>
8724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8727 grep -v '^ *+' conftest.er1 >conftest.err
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } >/dev/null; then
8732 if test -s conftest.err; then
8733 ac_cpp_err=$ac_c_preproc_warn_flag
8734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8741 if test -z "$ac_cpp_err"; then
8742 ac_header_preproc=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8747 ac_header_preproc=no
8749 rm -f conftest.err conftest.$ac_ext
8750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8751 echo "${ECHO_T}$ac_header_preproc" >&6
8753 # So? What about this header?
8754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8760 ac_header_preproc=yes
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8777 ## ---------------------------------------- ##
8778 ## Report this to pgsql-bugs@postgresql.org ##
8779 ## ---------------------------------------- ##
8782 sed "s/^/$as_me: WARNING: /" >&2
8785 echo "$as_me:$LINENO: checking for $ac_header" >&5
8786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 eval "$as_ac_Header=\$ac_header_preproc"
8792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8797 cat >>confdefs.h <<_ACEOF
8798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8803 for ac_header in readline.h
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8807 echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8815 # Is the header compilable?
8816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8818 cat >conftest.$ac_ext <<_ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824 $ac_includes_default
8825 #include <$ac_header>
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829 (eval $ac_compile) 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest.$ac_objext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_header_compiler=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_header_compiler=no
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8858 echo "${ECHO_T}$ac_header_compiler" >&6
8860 # Is the header present?
8861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 #include <$ac_header>
8871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } >/dev/null; then
8879 if test -s conftest.err; then
8880 ac_cpp_err=$ac_c_preproc_warn_flag
8881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8888 if test -z "$ac_cpp_err"; then
8889 ac_header_preproc=yes
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8894 ac_header_preproc=no
8896 rm -f conftest.err conftest.$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8898 echo "${ECHO_T}$ac_header_preproc" >&6
8900 # So? What about this header?
8901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8907 ac_header_preproc=yes
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8924 ## ---------------------------------------- ##
8925 ## Report this to pgsql-bugs@postgresql.org ##
8926 ## ---------------------------------------- ##
8929 sed "s/^/$as_me: WARNING: /" >&2
8932 echo "$as_me:$LINENO: checking for $ac_header" >&5
8933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8937 eval "$as_ac_Header=\$ac_header_preproc"
8939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8944 cat >>confdefs.h <<_ACEOF
8945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950 for ac_header in readline/readline.h
8952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8954 echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8962 # Is the header compilable?
8963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #include <$ac_header>
8974 rm -f conftest.$ac_objext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976 (eval $ac_compile) 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try='test -s conftest.$ac_objext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_header_compiler=yes
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ac_header_compiler=no
9003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9005 echo "${ECHO_T}$ac_header_compiler" >&6
9007 # Is the header present?
9008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h. */
9016 #include <$ac_header>
9018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } >/dev/null; then
9026 if test -s conftest.err; then
9027 ac_cpp_err=$ac_c_preproc_warn_flag
9028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9035 if test -z "$ac_cpp_err"; then
9036 ac_header_preproc=yes
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9041 ac_header_preproc=no
9043 rm -f conftest.err conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9045 echo "${ECHO_T}$ac_header_preproc" >&6
9047 # So? What about this header?
9048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9054 ac_header_preproc=yes
9057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9071 ## ---------------------------------------- ##
9072 ## Report this to pgsql-bugs@postgresql.org ##
9073 ## ---------------------------------------- ##
9076 sed "s/^/$as_me: WARNING: /" >&2
9079 echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 eval "$as_ac_Header=\$ac_header_preproc"
9086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9091 cat >>confdefs.h <<_ACEOF
9092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9096 { { echo "$as_me:$LINENO: error: readline header not found
9097 If you have libedit already installed, see config.log for details on the
9098 failure. It is possible the compiler isn't looking in the proper directory.
9099 Use --without-readline to disable libedit support." >&5
9100 echo "$as_me: error: readline header not found
9101 If you have libedit already installed, see config.log for details on the
9102 failure. It is possible the compiler isn't looking in the proper directory.
9103 Use --without-readline to disable libedit support." >&2;}
9104 { (exit 1); exit 1; }; }
9118 for ac_header in editline/history.h
9120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9122 echo "$as_me:$LINENO: checking for $ac_header" >&5
9123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9125 echo $ECHO_N "(cached) $ECHO_C" >&6
9127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9130 # Is the header compilable?
9131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 $ac_includes_default
9140 #include <$ac_header>
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144 (eval $ac_compile) 2>conftest.er1
9146 grep -v '^ *+' conftest.er1 >conftest.err
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -z "$ac_c_werror_flag"
9152 || test ! -s conftest.err'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_header_compiler=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_header_compiler=no
9171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9173 echo "${ECHO_T}$ac_header_compiler" >&6
9175 # Is the header present?
9176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <$ac_header>
9186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } >/dev/null; then
9194 if test -s conftest.err; then
9195 ac_cpp_err=$ac_c_preproc_warn_flag
9196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9203 if test -z "$ac_cpp_err"; then
9204 ac_header_preproc=yes
9206 echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9209 ac_header_preproc=no
9211 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9213 echo "${ECHO_T}$ac_header_preproc" >&6
9215 # So? What about this header?
9216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9222 ac_header_preproc=yes
9225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9239 ## ---------------------------------------- ##
9240 ## Report this to pgsql-bugs@postgresql.org ##
9241 ## ---------------------------------------- ##
9244 sed "s/^/$as_me: WARNING: /" >&2
9247 echo "$as_me:$LINENO: checking for $ac_header" >&5
9248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 eval "$as_ac_Header=\$ac_header_preproc"
9254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9265 for ac_header in history.h
9267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269 echo "$as_me:$LINENO: checking for $ac_header" >&5
9270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9277 # Is the header compilable?
9278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9287 #include <$ac_header>
9289 rm -f conftest.$ac_objext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9291 (eval $ac_compile) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest.$ac_objext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_header_compiler=yes
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9316 ac_header_compiler=no
9318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9320 echo "${ECHO_T}$ac_header_compiler" >&6
9322 # Is the header present?
9323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 #include <$ac_header>
9333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9336 grep -v '^ *+' conftest.er1 >conftest.err
9338 cat conftest.err >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); } >/dev/null; then
9341 if test -s conftest.err; then
9342 ac_cpp_err=$ac_c_preproc_warn_flag
9343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9350 if test -z "$ac_cpp_err"; then
9351 ac_header_preproc=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_header_preproc=no
9358 rm -f conftest.err conftest.$ac_ext
9359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9360 echo "${ECHO_T}$ac_header_preproc" >&6
9362 # So? What about this header?
9363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9369 ac_header_preproc=yes
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9386 ## ---------------------------------------- ##
9387 ## Report this to pgsql-bugs@postgresql.org ##
9388 ## ---------------------------------------- ##
9391 sed "s/^/$as_me: WARNING: /" >&2
9394 echo "$as_me:$LINENO: checking for $ac_header" >&5
9395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 eval "$as_ac_Header=\$ac_header_preproc"
9401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9406 cat >>confdefs.h <<_ACEOF
9407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9412 for ac_header in readline/history.h
9414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9416 echo "$as_me:$LINENO: checking for $ac_header" >&5
9417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9424 # Is the header compilable?
9425 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9427 cat >conftest.$ac_ext <<_ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 $ac_includes_default
9434 #include <$ac_header>
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 ac_header_compiler=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_header_compiler=no
9465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9467 echo "${ECHO_T}$ac_header_compiler" >&6
9469 # Is the header present?
9470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 #include <$ac_header>
9480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483 grep -v '^ *+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null; then
9488 if test -s conftest.err; then
9489 ac_cpp_err=$ac_c_preproc_warn_flag
9490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9497 if test -z "$ac_cpp_err"; then
9498 ac_header_preproc=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_header_preproc=no
9505 rm -f conftest.err conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9507 echo "${ECHO_T}$ac_header_preproc" >&6
9509 # So? What about this header?
9510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9516 ac_header_preproc=yes
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9533 ## ---------------------------------------- ##
9534 ## Report this to pgsql-bugs@postgresql.org ##
9535 ## ---------------------------------------- ##
9538 sed "s/^/$as_me: WARNING: /" >&2
9541 echo "$as_me:$LINENO: checking for $ac_header" >&5
9542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 eval "$as_ac_Header=\$ac_header_preproc"
9548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9553 cat >>confdefs.h <<_ACEOF
9554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 { { echo "$as_me:$LINENO: error: history header not found
9559 If you have libedit already installed, see config.log for details on the
9560 failure. It is possible the compiler isn't looking in the proper directory.
9561 Use --without-readline to disable libedit support." >&5
9562 echo "$as_me: error: history header not found
9563 If you have libedit already installed, see config.log for details on the
9564 failure. It is possible the compiler isn't looking in the proper directory.
9565 Use --without-readline to disable libedit support." >&2;}
9566 { (exit 1); exit 1; }; }
9581 if test "$with_zlib" = yes; then
9582 if test "${ac_cv_header_zlib_h+set}" = set; then
9583 echo "$as_me:$LINENO: checking for zlib.h" >&5
9584 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9585 if test "${ac_cv_header_zlib_h+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9589 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9591 # Is the header compilable?
9592 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9593 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 $ac_includes_default
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_header_compiler=yes
9627 echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9630 ac_header_compiler=no
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9634 echo "${ECHO_T}$ac_header_compiler" >&6
9636 # Is the header present?
9637 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9638 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9650 grep -v '^ *+' conftest.er1 >conftest.err
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } >/dev/null; then
9655 if test -s conftest.err; then
9656 ac_cpp_err=$ac_c_preproc_warn_flag
9657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9664 if test -z "$ac_cpp_err"; then
9665 ac_header_preproc=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_header_preproc=no
9672 rm -f conftest.err conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9674 echo "${ECHO_T}$ac_header_preproc" >&6
9676 # So? What about this header?
9677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9679 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9680 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9682 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9683 ac_header_preproc=yes
9686 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9687 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9689 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9691 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9693 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9695 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9697 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9700 ## ---------------------------------------- ##
9701 ## Report this to pgsql-bugs@postgresql.org ##
9702 ## ---------------------------------------- ##
9705 sed "s/^/$as_me: WARNING: /" >&2
9708 echo "$as_me:$LINENO: checking for zlib.h" >&5
9709 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9710 if test "${ac_cv_header_zlib_h+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_cv_header_zlib_h=$ac_header_preproc
9715 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9716 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9719 if test $ac_cv_header_zlib_h = yes; then
9722 { { echo "$as_me:$LINENO: error: zlib header not found
9723 If you have zlib already installed, see config.log for details on the
9724 failure. It is possible the compiler isn't looking in the proper directory.
9725 Use --without-zlib to disable zlib support." >&5
9726 echo "$as_me: error: zlib header not found
9727 If you have zlib already installed, see config.log for details on the
9728 failure. It is possible the compiler isn't looking in the proper directory.
9729 Use --without-zlib to disable zlib support." >&2;}
9730 { (exit 1); exit 1; }; }
9736 if test "$with_krb5" = yes ; then
9737 if test "${ac_cv_header_krb5_h+set}" = set; then
9738 echo "$as_me:$LINENO: checking for krb5.h" >&5
9739 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9740 if test "${ac_cv_header_krb5_h+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9744 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9746 # Is the header compilable?
9747 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9748 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9758 rm -f conftest.$ac_objext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760 (eval $ac_compile) 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_header_compiler=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 ac_header_compiler=no
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6
9791 # Is the header present?
9792 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9793 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev/null; then
9810 if test -s conftest.err; then
9811 ac_cpp_err=$ac_c_preproc_warn_flag
9812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9819 if test -z "$ac_cpp_err"; then
9820 ac_header_preproc=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_preproc=no
9827 rm -f conftest.err conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 echo "${ECHO_T}$ac_header_preproc" >&6
9831 # So? What about this header?
9832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9834 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9835 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9837 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9838 ac_header_preproc=yes
9841 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9842 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9844 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9846 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9848 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9850 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9852 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9855 ## ---------------------------------------- ##
9856 ## Report this to pgsql-bugs@postgresql.org ##
9857 ## ---------------------------------------- ##
9860 sed "s/^/$as_me: WARNING: /" >&2
9863 echo "$as_me:$LINENO: checking for krb5.h" >&5
9864 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9865 if test "${ac_cv_header_krb5_h+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 ac_cv_header_krb5_h=$ac_header_preproc
9870 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9871 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9874 if test $ac_cv_header_krb5_h = yes; then
9877 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9878 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9879 { (exit 1); exit 1; }; }
9885 if test "$with_openssl" = yes ; then
9886 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9887 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9888 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9889 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9893 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9895 # Is the header compilable?
9896 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9897 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 $ac_includes_default
9905 #include <openssl/ssl.h>
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest.$ac_objext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_header_compiler=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_header_compiler=no
9936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9938 echo "${ECHO_T}$ac_header_compiler" >&6
9940 # Is the header present?
9941 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9942 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 #include <openssl/ssl.h>
9951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } >/dev/null; then
9959 if test -s conftest.err; then
9960 ac_cpp_err=$ac_c_preproc_warn_flag
9961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9968 if test -z "$ac_cpp_err"; then
9969 ac_header_preproc=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_header_preproc=no
9976 rm -f conftest.err conftest.$ac_ext
9977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9978 echo "${ECHO_T}$ac_header_preproc" >&6
9980 # So? What about this header?
9981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9984 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9986 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9987 ac_header_preproc=yes
9990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9991 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9993 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9995 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9997 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9999 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10001 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10004 ## ---------------------------------------- ##
10005 ## Report this to pgsql-bugs@postgresql.org ##
10006 ## ---------------------------------------- ##
10009 sed "s/^/$as_me: WARNING: /" >&2
10012 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10013 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10014 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10019 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10020 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10023 if test $ac_cv_header_openssl_ssl_h = yes; then
10026 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10027 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10028 { (exit 1); exit 1; }; }
10032 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10033 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10034 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10035 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10039 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10041 # Is the header compilable?
10042 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10043 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 #include <openssl/err.h>
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>conftest.er1
10057 grep -v '^ *+' conftest.er1 >conftest.err
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_header_compiler=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_header_compiler=no
10082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10083 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10084 echo "${ECHO_T}$ac_header_compiler" >&6
10086 # Is the header present?
10087 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10088 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10089 cat >conftest.$ac_ext <<_ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095 #include <openssl/err.h>
10097 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } >/dev/null; then
10105 if test -s conftest.err; then
10106 ac_cpp_err=$ac_c_preproc_warn_flag
10107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10114 if test -z "$ac_cpp_err"; then
10115 ac_header_preproc=yes
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10120 ac_header_preproc=no
10122 rm -f conftest.err conftest.$ac_ext
10123 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10124 echo "${ECHO_T}$ac_header_preproc" >&6
10126 # So? What about this header?
10127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10130 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10132 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10133 ac_header_preproc=yes
10136 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10137 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10139 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10141 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10143 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10145 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10147 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10150 ## ---------------------------------------- ##
10151 ## Report this to pgsql-bugs@postgresql.org ##
10152 ## ---------------------------------------- ##
10155 sed "s/^/$as_me: WARNING: /" >&2
10158 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10159 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10160 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 ac_cv_header_openssl_err_h=$ac_header_preproc
10165 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10166 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10169 if test $ac_cv_header_openssl_err_h = yes; then
10172 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10173 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10174 { (exit 1); exit 1; }; }
10180 if test "$with_pam" = yes ; then
10182 for ac_header in security/pam_appl.h
10184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10186 echo "$as_me:$LINENO: checking for $ac_header" >&5
10187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10194 # Is the header compilable?
10195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 $ac_includes_default
10204 #include <$ac_header>
10206 rm -f conftest.$ac_objext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10208 (eval $ac_compile) 2>conftest.er1
10210 grep -v '^ *+' conftest.er1 >conftest.err
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_header_compiler=yes
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10233 ac_header_compiler=no
10235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10237 echo "${ECHO_T}$ac_header_compiler" >&6
10239 # Is the header present?
10240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 #include <$ac_header>
10250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10253 grep -v '^ *+' conftest.er1 >conftest.err
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } >/dev/null; then
10258 if test -s conftest.err; then
10259 ac_cpp_err=$ac_c_preproc_warn_flag
10260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10267 if test -z "$ac_cpp_err"; then
10268 ac_header_preproc=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10273 ac_header_preproc=no
10275 rm -f conftest.err conftest.$ac_ext
10276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10277 echo "${ECHO_T}$ac_header_preproc" >&6
10279 # So? What about this header?
10280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10286 ac_header_preproc=yes
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10303 ## ---------------------------------------- ##
10304 ## Report this to pgsql-bugs@postgresql.org ##
10305 ## ---------------------------------------- ##
10308 sed "s/^/$as_me: WARNING: /" >&2
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 eval "$as_ac_Header=\$ac_header_preproc"
10318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10323 cat >>confdefs.h <<_ACEOF
10324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 for ac_header in pam/pam_appl.h
10331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10333 echo "$as_me:$LINENO: checking for $ac_header" >&5
10334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10341 # Is the header compilable?
10342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 $ac_includes_default
10351 #include <$ac_header>
10353 rm -f conftest.$ac_objext
10354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10355 (eval $ac_compile) 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -z "$ac_c_werror_flag"
10363 || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_header_compiler=yes
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_header_compiler=no
10382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10384 echo "${ECHO_T}$ac_header_compiler" >&6
10386 # Is the header present?
10387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <$ac_header>
10397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10400 grep -v '^ *+' conftest.er1 >conftest.err
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_c_preproc_warn_flag
10407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10414 if test -z "$ac_cpp_err"; then
10415 ac_header_preproc=yes
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 ac_header_preproc=no
10422 rm -f conftest.err conftest.$ac_ext
10423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10424 echo "${ECHO_T}$ac_header_preproc" >&6
10426 # So? What about this header?
10427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10433 ac_header_preproc=yes
10436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10450 ## ---------------------------------------- ##
10451 ## Report this to pgsql-bugs@postgresql.org ##
10452 ## ---------------------------------------- ##
10455 sed "s/^/$as_me: WARNING: /" >&2
10458 echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 eval "$as_ac_Header=\$ac_header_preproc"
10465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10475 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10476 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10477 { (exit 1); exit 1; }; }
10488 if test "$with_ldap" = yes ; then
10489 if test "$PORTNAME" != "win32"; then
10491 for ac_header in ldap.h
10493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10495 echo "$as_me:$LINENO: checking for $ac_header" >&5
10496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10503 # Is the header compilable?
10504 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10513 #include <$ac_header>
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -z "$ac_c_werror_flag"
10525 || test ! -s conftest.err'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest.$ac_objext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_header_compiler=yes
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 ac_header_compiler=no
10544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10546 echo "${ECHO_T}$ac_header_compiler" >&6
10548 # Is the header present?
10549 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10550 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10557 #include <$ac_header>
10559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10562 grep -v '^ *+' conftest.er1 >conftest.err
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); } >/dev/null; then
10567 if test -s conftest.err; then
10568 ac_cpp_err=$ac_c_preproc_warn_flag
10569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10576 if test -z "$ac_cpp_err"; then
10577 ac_header_preproc=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_header_preproc=no
10584 rm -f conftest.err conftest.$ac_ext
10585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10586 echo "${ECHO_T}$ac_header_preproc" >&6
10588 # So? What about this header?
10589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10595 ac_header_preproc=yes
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10605 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10612 ## ---------------------------------------- ##
10613 ## Report this to pgsql-bugs@postgresql.org ##
10614 ## ---------------------------------------- ##
10617 sed "s/^/$as_me: WARNING: /" >&2
10620 echo "$as_me:$LINENO: checking for $ac_header" >&5
10621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 eval "$as_ac_Header=\$ac_header_preproc"
10627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10628 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 <ldap.h> is required for LDAP" >&5
10638 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
10639 { (exit 1); exit 1; }; }
10646 for ac_header in winldap.h
10648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10649 echo "$as_me:$LINENO: checking for $ac_header" >&5
10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 $ac_includes_default
10661 #include <windows.h>
10664 #include <$ac_header>
10666 rm -f conftest.$ac_objext
10667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
10675 { ac_try='test -z "$ac_c_werror_flag"
10676 || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 eval "$as_ac_Header=yes"
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 eval "$as_ac_Header=no"
10695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10700 cat >>confdefs.h <<_ACEOF
10701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10705 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
10706 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
10707 { (exit 1); exit 1; }; }
10715 if test "$with_bonjour" = yes ; then
10716 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10717 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10718 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10719 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10723 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10725 # Is the header compilable?
10726 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10727 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10728 cat >conftest.$ac_ext <<_ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h. */
10734 $ac_includes_default
10735 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>conftest.er1
10741 grep -v '^ *+' conftest.er1 >conftest.err
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_header_compiler=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_header_compiler=no
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10768 echo "${ECHO_T}$ac_header_compiler" >&6
10770 # Is the header present?
10771 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10772 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } >/dev/null; then
10789 if test -s conftest.err; then
10790 ac_cpp_err=$ac_c_preproc_warn_flag
10791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10798 if test -z "$ac_cpp_err"; then
10799 ac_header_preproc=yes
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 ac_header_preproc=no
10806 rm -f conftest.err conftest.$ac_ext
10807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10808 echo "${ECHO_T}$ac_header_preproc" >&6
10810 # So? What about this header?
10811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10813 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10814 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10816 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10817 ac_header_preproc=yes
10820 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10821 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10823 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10825 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10827 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10829 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10831 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10834 ## ---------------------------------------- ##
10835 ## Report this to pgsql-bugs@postgresql.org ##
10836 ## ---------------------------------------- ##
10839 sed "s/^/$as_me: WARNING: /" >&2
10842 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10843 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10844 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10849 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10850 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10853 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10856 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10857 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10858 { (exit 1); exit 1; }; }
10866 ## Types, structures, compiler characteristics
10869 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10870 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10871 if test "${ac_cv_c_const+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10884 /* FIXME: Include the comments suggested by Paul. */
10885 #ifndef __cplusplus
10886 /* Ultrix mips cc rejects this. */
10887 typedef int charset[2];
10889 /* SunOS 4.1.1 cc rejects this. */
10890 char const *const *ccp;
10892 /* NEC SVR4.0.2 mips cc rejects this. */
10893 struct point {int x, y;};
10894 static struct point const zero = {0,0};
10895 /* AIX XL C 1.02.0.0 rejects this.
10896 It does not let you subtract one const X* pointer from another in
10897 an arm of an if-expression whose if-part is not a constant
10899 const char *g = "string";
10900 ccp = &g + (g ? g-g : 0);
10901 /* HPUX 7.0 cc rejects these. */
10904 ccp = (char const *const *) p;
10905 { /* SCO 3.2v4 cc rejects this. */
10907 char const *s = 0 ? (char *) 0 : (char const *) 0;
10911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10912 int x[] = {25, 17};
10913 const int *foo = &x[0];
10916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10917 typedef const int *iptr;
10921 { /* AIX XL C 1.02.0.0 rejects this saying
10922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10923 struct s { int j; const int *ap[3]; };
10924 struct s *b; b->j = 5;
10926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10927 const int foo = 10;
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
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); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10966 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10967 echo "${ECHO_T}$ac_cv_c_const" >&6
10968 if test $ac_cv_c_const = no; then
10970 cat >>confdefs.h <<\_ACEOF
10977 echo "$as_me:$LINENO: checking for inline" >&5
10978 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10979 if test "${ac_cv_c_inline+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 for ac_kw in inline __inline__ __inline; do
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #ifndef __cplusplus
10992 static $ac_kw foo_t static_foo () {return 0; }
10993 $ac_kw int foo () {return 0; }
10997 rm -f conftest.$ac_objext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999 (eval $ac_compile) 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -z "$ac_c_werror_flag"
11007 || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_cv_c_inline=$ac_kw; break
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11029 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11030 echo "${ECHO_T}$ac_cv_c_inline" >&6
11031 case $ac_cv_c_inline in
11034 cat >>confdefs.h <<\_ACEOF
11038 *) cat >>confdefs.h <<_ACEOF
11039 #define inline $ac_cv_c_inline
11044 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11045 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11046 if test "${ac_cv_c_stringize+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11049 cat >conftest.$ac_ext <<_ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11057 char *s = x(teststring);
11059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11060 $EGREP "#teststring" >/dev/null 2>&1; then
11061 ac_cv_c_stringize=no
11063 ac_cv_c_stringize=yes
11068 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11069 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11070 if test $ac_cv_c_stringize = yes; then
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_STRINGIZE 1
11078 echo "$as_me:$LINENO: checking for signed types" >&5
11079 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11080 if test "${pgac_cv_c_signed+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11093 signed char c; signed short s; signed int i;
11098 rm -f conftest.$ac_objext
11099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>conftest.er1
11102 grep -v '^ *+' conftest.er1 >conftest.err
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } &&
11107 { ac_try='test -z "$ac_c_werror_flag"
11108 || test ! -s conftest.err'
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); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
11115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11116 (eval $ac_try) 2>&5
11118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); }; }; then
11120 pgac_cv_c_signed=yes
11122 echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11125 pgac_cv_c_signed=no
11127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11129 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11130 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11131 if test x"$pgac_cv_c_signed" = xno ; then
11133 cat >>confdefs.h <<\_ACEOF
11138 echo "$as_me:$LINENO: checking for working volatile" >&5
11139 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11140 if test "${ac_cv_c_volatile+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11164 grep -v '^ *+' conftest.er1 >conftest.err
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
11182 ac_cv_c_volatile=yes
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 ac_cv_c_volatile=no
11189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11191 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11192 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11193 if test $ac_cv_c_volatile = no; then
11195 cat >>confdefs.h <<\_ACEOF
11201 echo "$as_me:$LINENO: checking for __func__" >&5
11202 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11203 if test "${pgac_cv_funcname_func_support+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11206 cat >conftest.$ac_ext <<_ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11216 printf("%s\n", __func__);
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223 (eval $ac_compile) 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag"
11231 || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 pgac_cv_funcname_func_support=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 pgac_cv_funcname_func_support=no
11250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11252 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11253 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11254 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_FUNCNAME__FUNC 1
11261 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11262 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11263 if test "${pgac_cv_funcname_function_support+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.$ac_ext <<_ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11276 printf("%s\n", __FUNCTION__);
11281 rm -f conftest.$ac_objext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11283 (eval $ac_compile) 2>conftest.er1
11285 grep -v '^ *+' conftest.er1 >conftest.err
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag"
11291 || test ! -s conftest.err'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 pgac_cv_funcname_function_support=yes
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11308 pgac_cv_funcname_function_support=no
11310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11312 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11313 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11314 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_FUNCNAME__FUNCTION 1
11322 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11323 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11324 if test "${ac_cv_struct_tm+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <sys/types.h>
11339 struct tm *tp; tp->tm_sec;
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>conftest.er1
11348 grep -v '^ *+' conftest.er1 >conftest.err
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -z "$ac_c_werror_flag"
11354 || test ! -s conftest.err'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; } &&
11360 { ac_try='test -s conftest.$ac_objext'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }; then
11366 ac_cv_struct_tm=time.h
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11371 ac_cv_struct_tm=sys/time.h
11373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11375 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11376 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11377 if test $ac_cv_struct_tm = sys/time.h; then
11379 cat >>confdefs.h <<\_ACEOF
11380 #define TM_IN_SYS_TIME 1
11385 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11386 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11387 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 #include <sys/types.h>
11397 #include <$ac_cv_struct_tm>
11403 static struct tm ac_aggr;
11404 if (ac_aggr.tm_zone)
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -z "$ac_c_werror_flag"
11420 || test ! -s conftest.err'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; } &&
11426 { ac_try='test -s conftest.$ac_objext'
11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428 (eval $ac_try) 2>&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); }; }; then
11432 ac_cv_member_struct_tm_tm_zone=yes
11434 echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <sys/types.h>
11444 #include <$ac_cv_struct_tm>
11450 static struct tm ac_aggr;
11451 if (sizeof ac_aggr.tm_zone)
11457 rm -f conftest.$ac_objext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_c_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_member_struct_tm_tm_zone=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_member_struct_tm_tm_zone=no
11486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11490 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11491 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11492 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_STRUCT_TM_TM_ZONE 1
11501 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define HAVE_TM_ZONE 1
11508 echo "$as_me:$LINENO: checking for tzname" >&5
11509 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11510 if test "${ac_cv_var_tzname+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11520 #ifndef tzname /* For SGI. */
11521 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 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_exeext'
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_var_tzname=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_cv_var_tzname=no
11561 rm -f conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11566 if test $ac_cv_var_tzname = yes; then
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_TZNAME 1
11574 echo "$as_me:$LINENO: checking for union semun" >&5
11575 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11576 if test "${ac_cv_type_union_semun+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 #include <sys/ipc.h>
11587 #include <sys/sem.h>
11592 if ((union semun *) 0)
11594 if (sizeof (union semun))
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_type_union_semun=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_cv_type_union_semun=no
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11632 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11633 if test $ac_cv_type_union_semun = yes; then
11635 cat >>confdefs.h <<_ACEOF
11636 #define HAVE_UNION_SEMUN 1
11642 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11643 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11644 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <sys/types.h>
11654 #ifdef HAVE_SYS_UN_H
11655 #include <sys/un.h>
11662 if ((struct sockaddr_un *) 0)
11664 if (sizeof (struct sockaddr_un))
11670 rm -f conftest.$ac_objext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11672 (eval $ac_compile) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag"
11680 || test ! -s conftest.err'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; } &&
11686 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11692 ac_cv_type_struct_sockaddr_un=yes
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 ac_cv_type_struct_sockaddr_un=no
11699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11701 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11702 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11703 if test $ac_cv_type_struct_sockaddr_un = yes; then
11705 cat >>confdefs.h <<_ACEOF
11706 #define HAVE_STRUCT_SOCKADDR_UN 1
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_UNIX_SOCKETS 1
11716 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11717 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11718 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11727 #include <sys/types.h>
11728 #ifdef HAVE_SYS_SOCKET_H
11729 #include <sys/socket.h>
11736 if ((struct sockaddr_storage *) 0)
11738 if (sizeof (struct sockaddr_storage))
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746 (eval $ac_compile) 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_type_struct_sockaddr_storage=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_type_struct_sockaddr_storage=no
11773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11775 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11776 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11777 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11786 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11787 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11788 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 #include <sys/types.h>
11798 #ifdef HAVE_SYS_SOCKET_H
11799 #include <sys/socket.h>
11806 static struct sockaddr_storage ac_aggr;
11807 if (ac_aggr.ss_family)
11813 rm -f conftest.$ac_objext
11814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11815 (eval $ac_compile) 2>conftest.er1
11817 grep -v '^ *+' conftest.er1 >conftest.err
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -z "$ac_c_werror_flag"
11823 || test ! -s conftest.err'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 #include <sys/types.h>
11847 #ifdef HAVE_SYS_SOCKET_H
11848 #include <sys/socket.h>
11855 static struct sockaddr_storage ac_aggr;
11856 if (sizeof ac_aggr.ss_family)
11862 rm -f conftest.$ac_objext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11864 (eval $ac_compile) 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag"
11872 || test ! -s conftest.err'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest.$ac_objext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_cv_member_struct_sockaddr_storage_ss_family=no
11891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11896 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11897 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11905 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11906 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11907 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h. */
11916 #include <sys/types.h>
11917 #ifdef HAVE_SYS_SOCKET_H
11918 #include <sys/socket.h>
11925 static struct sockaddr_storage ac_aggr;
11926 if (ac_aggr.__ss_family)
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag"
11942 || test ! -s conftest.err'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; }; then
11954 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11956 echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #include <sys/types.h>
11966 #ifdef HAVE_SYS_SOCKET_H
11967 #include <sys/socket.h>
11974 static struct sockaddr_storage ac_aggr;
11975 if (sizeof ac_aggr.__ss_family)
11981 rm -f conftest.$ac_objext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_c_werror_flag"
11991 || test ! -s conftest.err'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; } &&
11997 { ac_try='test -s conftest.$ac_objext'
11998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ac_cv_member_struct_sockaddr_storage___ss_family=no
12010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12014 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12015 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12016 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12024 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12025 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12026 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 #include <sys/types.h>
12036 #ifdef HAVE_SYS_SOCKET_H
12037 #include <sys/socket.h>
12044 static struct sockaddr_storage ac_aggr;
12045 if (ac_aggr.ss_len)
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <sys/types.h>
12085 #ifdef HAVE_SYS_SOCKET_H
12086 #include <sys/socket.h>
12093 static struct sockaddr_storage ac_aggr;
12094 if (sizeof ac_aggr.ss_len)
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>conftest.er1
12104 grep -v '^ *+' conftest.er1 >conftest.err
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ac_cv_member_struct_sockaddr_storage_ss_len=no
12129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12133 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12134 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12135 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12143 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12144 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12145 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 #include <sys/types.h>
12155 #ifdef HAVE_SYS_SOCKET_H
12156 #include <sys/socket.h>
12163 static struct sockaddr_storage ac_aggr;
12164 if (ac_aggr.__ss_len)
12170 rm -f conftest.$ac_objext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12172 (eval $ac_compile) 2>conftest.er1
12174 grep -v '^ *+' conftest.er1 >conftest.err
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag"
12180 || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 #include <sys/types.h>
12204 #ifdef HAVE_SYS_SOCKET_H
12205 #include <sys/socket.h>
12212 static struct sockaddr_storage ac_aggr;
12213 if (sizeof ac_aggr.__ss_len)
12219 rm -f conftest.$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 ac_cv_member_struct_sockaddr_storage___ss_len=no
12248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12253 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12254 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12256 cat >>confdefs.h <<_ACEOF
12257 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12262 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12263 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12264 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 cat >conftest.$ac_ext <<_ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 #include <sys/types.h>
12274 #ifdef HAVE_SYS_SOCKET_H
12275 #include <sys/socket.h>
12282 static struct sockaddr ac_aggr;
12283 if (ac_aggr.sa_len)
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291 (eval $ac_compile) 2>conftest.er1
12293 grep -v '^ *+' conftest.er1 >conftest.err
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } &&
12298 { ac_try='test -z "$ac_c_werror_flag"
12299 || test ! -s conftest.err'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; } &&
12305 { ac_try='test -s conftest.$ac_objext'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_member_struct_sockaddr_sa_len=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <sys/types.h>
12323 #ifdef HAVE_SYS_SOCKET_H
12324 #include <sys/socket.h>
12331 static struct sockaddr ac_aggr;
12332 if (sizeof ac_aggr.sa_len)
12338 rm -f conftest.$ac_objext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12340 (eval $ac_compile) 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -z "$ac_c_werror_flag"
12348 || test ! -s conftest.err'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_member_struct_sockaddr_sa_len=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_member_struct_sockaddr_sa_len=no
12367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12372 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12373 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12375 cat >>confdefs.h <<_ACEOF
12376 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12382 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12383 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12384 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 #include <sys/types.h>
12394 #include <sys/socket.h>
12401 if ((struct addrinfo *) 0)
12403 if (sizeof (struct addrinfo))
12409 rm -f conftest.$ac_objext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag"
12419 || test ! -s conftest.err'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest.$ac_objext'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ac_cv_type_struct_addrinfo=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_type_struct_addrinfo=no
12438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12440 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12441 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12442 if test $ac_cv_type_struct_addrinfo = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_STRUCT_ADDRINFO 1
12452 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12453 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12454 if test "${ac_cv_type_struct_cmsgcred+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 cmsgcred *) 0)
12473 if (sizeof (struct cmsgcred))
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_cmsgcred=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_cv_type_struct_cmsgcred=no
12508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12510 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12511 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12512 if test $ac_cv_type_struct_cmsgcred = yes; then
12514 cat >>confdefs.h <<_ACEOF
12515 #define HAVE_STRUCT_CMSGCRED 1
12520 echo "$as_me:$LINENO: checking for struct fcred" >&5
12521 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12522 if test "${ac_cv_type_struct_fcred+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 fcred *) 0)
12541 if (sizeof (struct fcred))
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_fcred=yes
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12574 ac_cv_type_struct_fcred=no
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12579 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12580 if test $ac_cv_type_struct_fcred = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_STRUCT_FCRED 1
12588 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12589 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12590 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cat >conftest.$ac_ext <<_ACEOF
12596 cat confdefs.h >>conftest.$ac_ext
12597 cat >>conftest.$ac_ext <<_ACEOF
12598 /* end confdefs.h. */
12599 #include <sys/param.h>
12600 #include <sys/types.h>
12601 #include <sys/socket.h>
12602 #include <sys/ucred.h>
12607 if ((struct sockcred *) 0)
12609 if (sizeof (struct sockcred))
12615 rm -f conftest.$ac_objext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12617 (eval $ac_compile) 2>conftest.er1
12619 grep -v '^ *+' conftest.er1 >conftest.err
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_cv_type_struct_sockcred=yes
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 ac_cv_type_struct_sockcred=no
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12646 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12647 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12648 if test $ac_cv_type_struct_sockcred = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_STRUCT_SOCKCRED 1
12658 echo "$as_me:$LINENO: checking for struct option" >&5
12659 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12660 if test "${ac_cv_type_struct_option+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 #ifdef HAVE_GETOPT_H
12670 #include <getopt.h>
12676 if ((struct option *) 0)
12678 if (sizeof (struct option))
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>conftest.er1
12688 grep -v '^ *+' conftest.er1 >conftest.err
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -z "$ac_c_werror_flag"
12694 || test ! -s conftest.err'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; } &&
12700 { ac_try='test -s conftest.$ac_objext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12706 ac_cv_type_struct_option=yes
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12711 ac_cv_type_struct_option=no
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12715 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12716 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12717 if test $ac_cv_type_struct_option = yes; then
12719 cat >>confdefs.h <<_ACEOF
12720 #define HAVE_STRUCT_OPTION 1
12727 if test "$with_zlib" = yes; then
12728 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12729 # did not). While we could work around the lack of z_streamp, it
12730 # seems unwise to encourage people to use such old zlib versions...
12731 echo "$as_me:$LINENO: checking for z_streamp" >&5
12732 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12733 if test "${ac_cv_type_z_streamp+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12747 if ((z_streamp *) 0)
12749 if (sizeof (z_streamp))
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -z "$ac_c_werror_flag"
12765 || test ! -s conftest.err'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; } &&
12771 { ac_try='test -s conftest.$ac_objext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 ac_cv_type_z_streamp=yes
12779 echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_cv_type_z_streamp=no
12784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12787 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12788 if test $ac_cv_type_z_streamp = yes; then
12791 { { echo "$as_me:$LINENO: error: zlib version is too old
12792 Use --without-zlib to disable zlib support." >&5
12793 echo "$as_me: error: zlib version is too old
12794 Use --without-zlib to disable zlib support." >&2;}
12795 { (exit 1); exit 1; }; }
12800 if test "$with_krb5" = yes; then
12801 # Check for differences between MIT and Heimdal (KTH) releases
12802 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12803 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12804 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12807 cat >conftest.$ac_ext <<_ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12818 static krb5_ticket ac_aggr;
12819 if (ac_aggr.enc_part2)
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } &&
12834 { ac_try='test -z "$ac_c_werror_flag"
12835 || test ! -s conftest.err'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
12847 ac_cv_member_krb5_ticket_enc_part2=yes
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12852 cat >conftest.$ac_ext <<_ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12863 static krb5_ticket ac_aggr;
12864 if (sizeof ac_aggr.enc_part2)
12870 rm -f conftest.$ac_objext
12871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12872 (eval $ac_compile) 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -z "$ac_c_werror_flag"
12880 || test ! -s conftest.err'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; } &&
12886 { ac_try='test -s conftest.$ac_objext'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12892 ac_cv_member_krb5_ticket_enc_part2=yes
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_cv_member_krb5_ticket_enc_part2=no
12899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12903 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12904 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12905 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12907 cat >>confdefs.h <<_ACEOF
12908 #define HAVE_KRB5_TICKET_ENC_PART2 1
12913 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12914 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12915 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12929 static krb5_ticket ac_aggr;
12930 if (ac_aggr.client)
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938 (eval $ac_compile) 2>conftest.er1
12940 grep -v '^ *+' conftest.er1 >conftest.err
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -z "$ac_c_werror_flag"
12946 || test ! -s conftest.err'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 ac_cv_member_krb5_ticket_client=yes
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 cat >conftest.$ac_ext <<_ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12974 static krb5_ticket ac_aggr;
12975 if (sizeof ac_aggr.client)
12981 rm -f conftest.$ac_objext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12983 (eval $ac_compile) 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -z "$ac_c_werror_flag"
12991 || test ! -s conftest.err'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } &&
12997 { ac_try='test -s conftest.$ac_objext'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_member_krb5_ticket_client=yes
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 ac_cv_member_krb5_ticket_client=no
13010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13014 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13015 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13016 if test $ac_cv_member_krb5_ticket_client = yes; then
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_KRB5_TICKET_CLIENT 1
13024 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13025 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13026 { (exit 1); exit 1; }; }
13031 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13032 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13033 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13047 static krb5_error ac_aggr;
13048 if (ac_aggr.text.data)
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>conftest.er1
13058 grep -v '^ *+' conftest.er1 >conftest.err
13060 cat conftest.err >&5
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -z "$ac_c_werror_flag"
13064 || test ! -s conftest.err'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 ac_cv_member_krb5_error_text_data=yes
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13092 static krb5_error ac_aggr;
13093 if (sizeof ac_aggr.text.data)
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13103 grep -v '^ *+' conftest.er1 >conftest.err
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_member_krb5_error_text_data=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 ac_cv_member_krb5_error_text_data=no
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13132 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13133 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13134 if test $ac_cv_member_krb5_error_text_data = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13142 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13143 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13144 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13158 static krb5_error ac_aggr;
13159 if (ac_aggr.e_data)
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag"
13175 || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest.$ac_objext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_member_krb5_error_e_data=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13203 static krb5_error ac_aggr;
13204 if (sizeof ac_aggr.e_data)
13210 rm -f conftest.$ac_objext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13212 (eval $ac_compile) 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_member_krb5_error_e_data=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_member_krb5_error_e_data=no
13239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13243 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13244 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13245 if test $ac_cv_member_krb5_error_e_data = yes; then
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_KRB5_ERROR_E_DATA 1
13253 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13254 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13255 { (exit 1); exit 1; }; }
13262 # This is probably only present on Darwin, but may as well check always
13263 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
13264 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
13265 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13279 #ifndef F_FULLFSYNC
13280 char *p = (char *) F_FULLFSYNC;
13287 rm -f conftest.$ac_objext
13288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 (eval $ac_compile) 2>conftest.er1
13291 grep -v '^ *+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } &&
13296 { ac_try='test -z "$ac_c_werror_flag"
13297 || test ! -s conftest.err'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_have_decl_F_FULLFSYNC=yes
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_cv_have_decl_F_FULLFSYNC=no
13316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13318 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
13319 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
13320 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define HAVE_DECL_F_FULLFSYNC 1
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_DECL_F_FULLFSYNC 0
13338 ## Functions, global variables
13341 echo "$as_me:$LINENO: checking for int timezone" >&5
13342 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13343 if test "${pgac_cv_var_int_timezone+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13358 res = timezone / 60;
13360 res = _timezone / 60;
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368 (eval $ac_link) 2>conftest.er1
13370 grep -v '^ *+' conftest.er1 >conftest.err
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -z "$ac_c_werror_flag"
13376 || test ! -s conftest.err'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 pgac_cv_var_int_timezone=yes
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13393 pgac_cv_var_int_timezone=no
13395 rm -f conftest.err conftest.$ac_objext \
13396 conftest$ac_exeext conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13399 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13400 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_INT_TIMEZONE
13407 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13408 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13409 if test "${ac_cv_func_accept_return+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 if test "${ac_cv_func_accept_arg1+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 if test "${ac_cv_func_accept_arg2+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 if test "${ac_cv_func_accept_arg3+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13422 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13423 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13424 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13425 cat >conftest.$ac_ext <<_ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 #ifdef HAVE_SYS_TYPES_H
13432 #include <sys/types.h>
13434 #ifdef HAVE_SYS_SOCKET_H
13435 #include <sys/socket.h>
13437 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_not_found=no; break 4
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13480 if test "$ac_not_found" = yes; then
13481 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13482 echo "$as_me: error: could not determine argument types" >&2;}
13483 { (exit 1); exit 1; }; }
13485 if test "$ac_cv_func_accept_arg3" = "void"; then
13486 ac_cv_func_accept_arg3=int
13496 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
13497 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13499 cat >>confdefs.h <<_ACEOF
13500 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13504 cat >>confdefs.h <<_ACEOF
13505 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13509 cat >>confdefs.h <<_ACEOF
13510 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13514 cat >>confdefs.h <<_ACEOF
13515 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13519 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13520 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13521 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 #include <sys/time.h>
13534 struct timeval *tp;
13535 struct timezone *tzp;
13536 gettimeofday(tp,tzp);
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 pgac_cv_func_gettimeofday_1arg=no
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 pgac_cv_func_gettimeofday_1arg=yes
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13573 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13574 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define GETTIMEOFDAY_1ARG
13603 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13606 echo "$as_me:$LINENO: checking for $ac_func" >&5
13607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_var+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13619 #define $ac_func innocuous_$ac_func
13621 /* System header to define __stub macros and hopefully few prototypes,
13622 which can conflict with char $ac_func (); below.
13623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13624 <limits.h> exists even on freestanding compilers. */
13627 # include <limits.h>
13629 # include <assert.h>
13634 /* Override any gcc2 internal prototype to avoid an error. */
13639 /* We use char because int might match the return type of a gcc2
13640 builtin and then its argument prototype would still apply. */
13642 /* The GNU C library defines this for functions which it implements
13643 to always fail with ENOSYS. Some functions are actually named
13644 something starting with __ and the normal name is an alias. */
13645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13648 char (*f) () = $ac_func;
13657 return f != $ac_func;
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_c_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 eval "$as_ac_var=yes"
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 eval "$as_ac_var=no"
13691 rm -f conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13696 if test `eval echo '${'$as_ac_var'}'` = yes; then
13697 cat >>confdefs.h <<_ACEOF
13698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13705 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13706 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13707 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #include <unistd.h>
13722 char *p = (char *) fdatasync;
13729 rm -f conftest.$ac_objext
13730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13731 (eval $ac_compile) 2>conftest.er1
13733 grep -v '^ *+' conftest.er1 >conftest.err
13735 cat conftest.err >&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -z "$ac_c_werror_flag"
13739 || test ! -s conftest.err'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } &&
13745 { ac_try='test -s conftest.$ac_objext'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; }; then
13751 ac_cv_have_decl_fdatasync=yes
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_have_decl_fdatasync=no
13758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13761 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13762 if test $ac_cv_have_decl_fdatasync = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_DECL_FDATASYNC 1
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_DECL_FDATASYNC 0
13780 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13781 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13782 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 #include <netinet/in.h>
13797 if ((struct sockaddr_in6 *) 0)
13799 if (sizeof (struct sockaddr_in6))
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_type_struct_sockaddr_in6=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_type_struct_sockaddr_in6=no
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13837 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13838 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_IPV6 1
13849 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13850 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13851 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 #include <machine/vmparam.h>
13861 #include <sys/exec.h>
13866 PS_STRINGS->ps_nargvstr = 1;
13867 PS_STRINGS->ps_argvstr = "foo";
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874 (eval $ac_link) 2>conftest.er1
13876 grep -v '^ *+' conftest.er1 >conftest.err
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 pgac_cv_var_PS_STRINGS=yes
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 pgac_cv_var_PS_STRINGS=no
13901 rm -f conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13905 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13906 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13908 cat >>confdefs.h <<\_ACEOF
13909 #define HAVE_PS_STRINGS
13915 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13916 # is missing. Yes, there are machines that have only one. We may
13917 # also decide to use snprintf.c if snprintf() is present but does not
13918 # have all the features we need --- see below.
13920 if test "$PORTNAME" = "win32"; then
13921 # Win32 gets snprintf.c built unconditionally.
13923 # To properly translate all NLS languages strings, we must support the
13924 # *printf() %$ format, which allows *printf() arguments to be selected
13925 # by position in the translated string.
13927 # libintl versions < 0.13 use the native *printf() functions, and Win32
13928 # *printf() doesn't understand %$, so we must use our /port versions,
13929 # which do understand %$. libintl versions >= 0.13 include their own
13930 # *printf versions on Win32. The libintl 0.13 release note text is:
13932 # C format strings with positions, as they arise when a translator
13933 # needs to reorder a sentence, are now supported on all platforms.
13934 # On those few platforms (NetBSD and Woe32) for which the native
13935 # printf()/fprintf()/... functions don't support such format
13936 # strings, replacements are provided through <libintl.h>.
13938 # We could use libintl >= 0.13's *printf() if we were sure that we had
13939 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13940 # to guarantee that, it is best to just use our own, so we are sure to
13941 # get %$ support. In include/port.h we disable the *printf() macros
13942 # that might have been defined by libintl.
13944 # We do this unconditionally whether NLS is used or not so we are sure
13945 # that all Win32 libraries and binaries behave the same.
13946 pgac_need_repl_snprintf=yes
13948 pgac_need_repl_snprintf=no
13950 for ac_func in snprintf
13952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13953 echo "$as_me:$LINENO: checking for $ac_func" >&5
13954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13955 if eval "test \"\${$as_ac_var+set}\" = set"; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13958 cat >conftest.$ac_ext <<_ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h. */
13964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13966 #define $ac_func innocuous_$ac_func
13968 /* System header to define __stub macros and hopefully few prototypes,
13969 which can conflict with char $ac_func (); below.
13970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13971 <limits.h> exists even on freestanding compilers. */
13974 # include <limits.h>
13976 # include <assert.h>
13981 /* Override any gcc2 internal prototype to avoid an error. */
13986 /* We use char because int might match the return type of a gcc2
13987 builtin and then its argument prototype would still apply. */
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13995 char (*f) () = $ac_func;
14004 return f != $ac_func;
14009 rm -f conftest.$ac_objext conftest$ac_exeext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14011 (eval $ac_link) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1 >conftest.err
14015 cat conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try='test -z "$ac_c_werror_flag"
14019 || test ! -s conftest.err'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; } &&
14025 { ac_try='test -s conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 eval "$as_ac_var=yes"
14033 echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 eval "$as_ac_var=no"
14038 rm -f conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14043 if test `eval echo '${'$as_ac_var'}'` = yes; then
14044 cat >>confdefs.h <<_ACEOF
14045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14049 pgac_need_repl_snprintf=yes
14054 for ac_func in vsnprintf
14056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14057 echo "$as_me:$LINENO: checking for $ac_func" >&5
14058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14059 if eval "test \"\${$as_ac_var+set}\" = set"; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14070 #define $ac_func innocuous_$ac_func
14072 /* System header to define __stub macros and hopefully few prototypes,
14073 which can conflict with char $ac_func (); below.
14074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14075 <limits.h> exists even on freestanding compilers. */
14078 # include <limits.h>
14080 # include <assert.h>
14085 /* Override any gcc2 internal prototype to avoid an error. */
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14093 /* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14099 char (*f) () = $ac_func;
14108 return f != $ac_func;
14113 rm -f conftest.$ac_objext conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115 (eval $ac_link) 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } &&
14122 { ac_try='test -z "$ac_c_werror_flag"
14123 || test ! -s conftest.err'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } &&
14129 { ac_try='test -s conftest$ac_exeext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14135 eval "$as_ac_var=yes"
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 eval "$as_ac_var=no"
14142 rm -f conftest.err conftest.$ac_objext \
14143 conftest$ac_exeext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14147 if test `eval echo '${'$as_ac_var'}'` = yes; then
14148 cat >>confdefs.h <<_ACEOF
14149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14153 pgac_need_repl_snprintf=yes
14160 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14161 # include/c.h will provide declarations. Note this is a separate test
14162 # from whether the functions exist in the C library --- there are
14163 # systems that have the functions but don't bother to declare them :-(
14165 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14166 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14167 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 $ac_includes_default
14181 char *p = (char *) snprintf;
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag"
14198 || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_have_decl_snprintf=yes
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14215 ac_cv_have_decl_snprintf=no
14217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14220 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14221 if test $ac_cv_have_decl_snprintf = yes; then
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_DECL_SNPRINTF 1
14229 cat >>confdefs.h <<_ACEOF
14230 #define HAVE_DECL_SNPRINTF 0
14235 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14236 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14237 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 cat >conftest.$ac_ext <<_ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14246 $ac_includes_default
14251 char *p = (char *) vsnprintf;
14258 rm -f conftest.$ac_objext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_have_decl_vsnprintf=yes
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_have_decl_vsnprintf=no
14287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14290 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14291 if test $ac_cv_have_decl_vsnprintf = yes; then
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_DECL_VSNPRINTF 1
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE_DECL_VSNPRINTF 0
14309 echo "$as_me:$LINENO: checking for isinf" >&5
14310 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14311 if test "${ac_cv_func_isinf+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 cat >conftest.$ac_ext <<_ACEOF
14317 cat confdefs.h >>conftest.$ac_ext
14318 cat >>conftest.$ac_ext <<_ACEOF
14319 /* end confdefs.h. */
14322 double glob_double;
14327 return isinf(glob_double) ? 0 : 1;
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>conftest.er1
14336 grep -v '^ *+' conftest.er1 >conftest.err
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
14341 { ac_try='test -z "$ac_c_werror_flag"
14342 || test ! -s conftest.err'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; } &&
14348 { ac_try='test -s conftest$ac_exeext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_func_isinf=yes
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_cv_func_isinf=no
14361 rm -f conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14364 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14365 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14367 if test $ac_cv_func_isinf = yes ; then
14369 cat >>confdefs.h <<\_ACEOF
14370 #define HAVE_ISINF 1
14375 "isinf.$ac_objext" | \
14376 *" isinf.$ac_objext" | \
14377 "isinf.$ac_objext "* | \
14378 *" isinf.$ac_objext "* ) ;;
14379 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14382 # Look for a way to implement a substitute for isinf()
14387 for ac_func in fpclass fp_class fp_class_d class
14389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14390 echo "$as_me:$LINENO: checking for $ac_func" >&5
14391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14392 if eval "test \"\${$as_ac_var+set}\" = set"; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14403 #define $ac_func innocuous_$ac_func
14405 /* System header to define __stub macros and hopefully few prototypes,
14406 which can conflict with char $ac_func (); below.
14407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14408 <limits.h> exists even on freestanding compilers. */
14411 # include <limits.h>
14413 # include <assert.h>
14418 /* Override any gcc2 internal prototype to avoid an error. */
14423 /* We use char because int might match the return type of a gcc2
14424 builtin and then its argument prototype would still apply. */
14426 /* The GNU C library defines this for functions which it implements
14427 to always fail with ENOSYS. Some functions are actually named
14428 something starting with __ and the normal name is an alias. */
14429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14432 char (*f) () = $ac_func;
14441 return f != $ac_func;
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14448 (eval $ac_link) 2>conftest.er1
14450 grep -v '^ *+' conftest.er1 >conftest.err
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
14455 { ac_try='test -z "$ac_c_werror_flag"
14456 || test ! -s conftest.err'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest$ac_exeext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14468 eval "$as_ac_var=yes"
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 eval "$as_ac_var=no"
14475 rm -f conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14480 if test `eval echo '${'$as_ac_var'}'` = yes; then
14481 cat >>confdefs.h <<_ACEOF
14482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14503 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14506 echo "$as_me:$LINENO: checking for $ac_func" >&5
14507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14508 if eval "test \"\${$as_ac_var+set}\" = set"; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14519 #define $ac_func innocuous_$ac_func
14521 /* System header to define __stub macros and hopefully few prototypes,
14522 which can conflict with char $ac_func (); below.
14523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14524 <limits.h> exists even on freestanding compilers. */
14527 # include <limits.h>
14529 # include <assert.h>
14534 /* Override any gcc2 internal prototype to avoid an error. */
14539 /* We use char because int might match the return type of a gcc2
14540 builtin and then its argument prototype would still apply. */
14542 /* The GNU C library defines this for functions which it implements
14543 to always fail with ENOSYS. Some functions are actually named
14544 something starting with __ and the normal name is an alias. */
14545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14548 char (*f) () = $ac_func;
14557 return f != $ac_func;
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14564 (eval $ac_link) 2>conftest.er1
14566 grep -v '^ *+' conftest.er1 >conftest.err
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -z "$ac_c_werror_flag"
14572 || test ! -s conftest.err'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 eval "$as_ac_var=yes"
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 eval "$as_ac_var=no"
14591 rm -f conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14596 if test `eval echo '${'$as_ac_var'}'` = yes; then
14597 cat >>confdefs.h <<_ACEOF
14598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14603 "$ac_func.$ac_objext" | \
14604 *" $ac_func.$ac_objext" | \
14605 "$ac_func.$ac_objext "* | \
14606 *" $ac_func.$ac_objext "* ) ;;
14607 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14615 # System's version of getaddrinfo(), if any, may be used only if we found
14616 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14617 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14618 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14619 # because we want to use our own getaddrinfo.c on Windows anyway.)
14620 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14622 for ac_func in getaddrinfo
14624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14625 echo "$as_me:$LINENO: checking for $ac_func" >&5
14626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14627 if eval "test \"\${$as_ac_var+set}\" = set"; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 cat >conftest.$ac_ext <<_ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14638 #define $ac_func innocuous_$ac_func
14640 /* System header to define __stub macros and hopefully few prototypes,
14641 which can conflict with char $ac_func (); below.
14642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14643 <limits.h> exists even on freestanding compilers. */
14646 # include <limits.h>
14648 # include <assert.h>
14653 /* Override any gcc2 internal prototype to avoid an error. */
14658 /* We use char because int might match the return type of a gcc2
14659 builtin and then its argument prototype would still apply. */
14661 /* The GNU C library defines this for functions which it implements
14662 to always fail with ENOSYS. Some functions are actually named
14663 something starting with __ and the normal name is an alias. */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14667 char (*f) () = $ac_func;
14676 return f != $ac_func;
14681 rm -f conftest.$ac_objext conftest$ac_exeext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14683 (eval $ac_link) 2>conftest.er1
14685 grep -v '^ *+' conftest.er1 >conftest.err
14687 cat conftest.err >&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
14690 { ac_try='test -z "$ac_c_werror_flag"
14691 || test ! -s conftest.err'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest$ac_exeext'
14698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14703 eval "$as_ac_var=yes"
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 eval "$as_ac_var=no"
14710 rm -f conftest.err conftest.$ac_objext \
14711 conftest$ac_exeext conftest.$ac_ext
14713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14715 if test `eval echo '${'$as_ac_var'}'` = yes; then
14716 cat >>confdefs.h <<_ACEOF
14717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14722 "$ac_func.$ac_objext" | \
14723 *" $ac_func.$ac_objext" | \
14724 "$ac_func.$ac_objext "* | \
14725 *" $ac_func.$ac_objext "* ) ;;
14726 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14735 "getaddrinfo.$ac_objext" | \
14736 *" getaddrinfo.$ac_objext" | \
14737 "getaddrinfo.$ac_objext "* | \
14738 *" getaddrinfo.$ac_objext "* ) ;;
14739 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14744 # similarly, use system's getopt_long() only if system provides struct option.
14745 if test x"$ac_cv_type_struct_option" = xyes ; then
14747 for ac_func in getopt_long
14749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 echo "$as_me:$LINENO: checking for $ac_func" >&5
14751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14752 if eval "test \"\${$as_ac_var+set}\" = set"; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14763 #define $ac_func innocuous_$ac_func
14765 /* System header to define __stub macros and hopefully few prototypes,
14766 which can conflict with char $ac_func (); below.
14767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14768 <limits.h> exists even on freestanding compilers. */
14771 # include <limits.h>
14773 # include <assert.h>
14778 /* Override any gcc2 internal prototype to avoid an error. */
14783 /* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14786 /* The GNU C library defines this for functions which it implements
14787 to always fail with ENOSYS. Some functions are actually named
14788 something starting with __ and the normal name is an alias. */
14789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14792 char (*f) () = $ac_func;
14801 return f != $ac_func;
14806 rm -f conftest.$ac_objext conftest$ac_exeext
14807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14808 (eval $ac_link) 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -z "$ac_c_werror_flag"
14816 || test ! -s conftest.err'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest$ac_exeext'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; }; then
14828 eval "$as_ac_var=yes"
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 eval "$as_ac_var=no"
14835 rm -f conftest.err conftest.$ac_objext \
14836 conftest$ac_exeext conftest.$ac_ext
14838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14839 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14840 if test `eval echo '${'$as_ac_var'}'` = yes; then
14841 cat >>confdefs.h <<_ACEOF
14842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14847 "$ac_func.$ac_objext" | \
14848 *" $ac_func.$ac_objext" | \
14849 "$ac_func.$ac_objext "* | \
14850 *" $ac_func.$ac_objext "* ) ;;
14851 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14860 "getopt_long.$ac_objext" | \
14861 *" getopt_long.$ac_objext" | \
14862 "getopt_long.$ac_objext "* | \
14863 *" getopt_long.$ac_objext "* ) ;;
14864 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14869 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14870 # We override the previous test that said fseeko/ftello didn't exist
14871 # OS tests are also done in include/c.h and port/fseeko.c
14872 case $host_os in bsdi*|netbsd*)
14873 ac_cv_func_fseeko=yes
14876 # Solaris has a very slow qsort in certain cases, so we replace it:
14877 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14878 # Supposedly it is fixed in Solaris, but not sure which version, and
14879 # no confirmed testing. 2005-12-16
14880 if test "$PORTNAME" = "solaris"; then
14882 "qsort.$ac_objext" | \
14883 *" qsort.$ac_objext" | \
14884 "qsort.$ac_objext "* | \
14885 *" qsort.$ac_objext "* ) ;;
14886 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14892 if test "$PORTNAME" = "win32"; then
14894 "gettimeofday.$ac_objext" | \
14895 *" gettimeofday.$ac_objext" | \
14896 "gettimeofday.$ac_objext "* | \
14897 *" gettimeofday.$ac_objext "* ) ;;
14898 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14902 "kill.$ac_objext" | \
14903 *" kill.$ac_objext" | \
14904 "kill.$ac_objext "* | \
14905 *" kill.$ac_objext "* ) ;;
14906 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14910 "open.$ac_objext" | \
14911 *" open.$ac_objext" | \
14912 "open.$ac_objext "* | \
14913 *" open.$ac_objext "* ) ;;
14914 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14918 "rand.$ac_objext" | \
14919 *" rand.$ac_objext" | \
14920 "rand.$ac_objext "* | \
14921 *" rand.$ac_objext "* ) ;;
14922 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_SYMLINK 1
14932 if test "$with_readline" = yes; then
14933 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14934 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14942 #ifdef HAVE_READLINE_READLINE_H
14943 # include <readline/readline.h>
14944 #elif defined(HAVE_READLINE_H)
14945 # include <readline.h>
14951 rl_completion_append_character = 'x';
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958 (eval $ac_link) 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag"
14966 || test ! -s conftest.err'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; } &&
14972 { ac_try='test -s conftest$ac_exeext'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978 echo "$as_me:$LINENO: result: yes" >&5
14979 echo "${ECHO_T}yes" >&6
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 echo "$as_me:$LINENO: result: no" >&5
14990 echo "${ECHO_T}no" >&6
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14996 for ac_func in rl_completion_matches rl_filename_completion_function
14998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14999 echo "$as_me:$LINENO: checking for $ac_func" >&5
15000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15001 if eval "test \"\${$as_ac_var+set}\" = set"; then
15002 echo $ECHO_N "(cached) $ECHO_C" >&6
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15012 #define $ac_func innocuous_$ac_func
15014 /* System header to define __stub macros and hopefully few prototypes,
15015 which can conflict with char $ac_func (); below.
15016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15017 <limits.h> exists even on freestanding compilers. */
15020 # include <limits.h>
15022 # include <assert.h>
15027 /* Override any gcc2 internal prototype to avoid an error. */
15032 /* We use char because int might match the return type of a gcc2
15033 builtin and then its argument prototype would still apply. */
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15041 char (*f) () = $ac_func;
15050 return f != $ac_func;
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag"
15065 || test ! -s conftest.err'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; } &&
15071 { ac_try='test -s conftest$ac_exeext'
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then
15077 eval "$as_ac_var=yes"
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15082 eval "$as_ac_var=no"
15084 rm -f conftest.err conftest.$ac_objext \
15085 conftest$ac_exeext conftest.$ac_ext
15087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15089 if test `eval echo '${'$as_ac_var'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15098 for ac_func in replace_history_entry
15100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15101 echo "$as_me:$LINENO: checking for $ac_func" >&5
15102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15103 if eval "test \"\${$as_ac_var+set}\" = set"; then
15104 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15114 #define $ac_func innocuous_$ac_func
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char $ac_func (); below.
15118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119 <limits.h> exists even on freestanding compilers. */
15122 # include <limits.h>
15124 # include <assert.h>
15129 /* Override any gcc2 internal prototype to avoid an error. */
15134 /* We use char because int might match the return type of a gcc2
15135 builtin and then its argument prototype would still apply. */
15137 /* The GNU C library defines this for functions which it implements
15138 to always fail with ENOSYS. Some functions are actually named
15139 something starting with __ and the normal name is an alias. */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15143 char (*f) () = $ac_func;
15152 return f != $ac_func;
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>conftest.er1
15161 grep -v '^ *+' conftest.er1 >conftest.err
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest$ac_exeext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 eval "$as_ac_var=yes"
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 eval "$as_ac_var=no"
15186 rm -f conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15191 if test `eval echo '${'$as_ac_var'}'` = yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15202 echo "$as_me:$LINENO: checking for finite" >&5
15203 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15212 double glob_double;
15217 return finite(glob_double) ? 0 : 1;
15222 rm -f conftest.$ac_objext conftest$ac_exeext
15223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15224 (eval $ac_link) 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } &&
15231 { ac_try='test -z "$ac_c_werror_flag"
15232 || test ! -s conftest.err'
15233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); }; } &&
15238 { ac_try='test -s conftest$ac_exeext'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15245 cat >>confdefs.h <<\_ACEOF
15246 #define HAVE_FINITE 1
15249 echo "$as_me:$LINENO: result: yes" >&5
15250 echo "${ECHO_T}yes" >&6
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 echo "$as_me:$LINENO: result: no" >&5
15256 echo "${ECHO_T}no" >&6
15258 rm -f conftest.err conftest.$ac_objext \
15259 conftest$ac_exeext conftest.$ac_ext
15261 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15262 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15263 cat >conftest.$ac_ext <<_ACEOF
15266 cat confdefs.h >>conftest.$ac_ext
15267 cat >>conftest.$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15269 #include <setjmp.h>
15273 sigjmp_buf x; sigsetjmp(x, 1);
15278 rm -f conftest.$ac_objext conftest$ac_exeext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15280 (eval $ac_link) 2>conftest.er1
15282 grep -v '^ *+' conftest.er1 >conftest.err
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest$ac_exeext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15301 cat >>confdefs.h <<\_ACEOF
15302 #define HAVE_SIGSETJMP 1
15305 echo "$as_me:$LINENO: result: yes" >&5
15306 echo "${ECHO_T}yes" >&6
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15311 echo "$as_me:$LINENO: result: no" >&5
15312 echo "${ECHO_T}no" >&6
15314 rm -f conftest.err conftest.$ac_objext \
15315 conftest$ac_exeext conftest.$ac_ext
15317 echo "$as_me:$LINENO: checking for syslog" >&5
15318 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15319 if test "${ac_cv_func_syslog+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 cat >conftest.$ac_ext <<_ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15330 #define syslog innocuous_syslog
15332 /* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char syslog (); below.
15334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15335 <limits.h> exists even on freestanding compilers. */
15338 # include <limits.h>
15340 # include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_syslog) || defined (__stub___syslog)
15359 char (*f) () = syslog;
15368 return f != syslog;
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>conftest.er1
15377 grep -v '^ *+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag"
15383 || test ! -s conftest.err'
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; } &&
15389 { ac_try='test -s conftest$ac_exeext'
15390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15391 (eval $ac_try) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); }; }; then
15395 ac_cv_func_syslog=yes
15397 echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 ac_cv_func_syslog=no
15402 rm -f conftest.err conftest.$ac_objext \
15403 conftest$ac_exeext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15406 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15407 if test $ac_cv_func_syslog = yes; then
15408 if test "${ac_cv_header_syslog_h+set}" = set; then
15409 echo "$as_me:$LINENO: checking for syslog.h" >&5
15410 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15411 if test "${ac_cv_header_syslog_h+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15415 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15417 # Is the header compilable?
15418 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15419 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <syslog.h>
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -z "$ac_c_werror_flag"
15439 || test ! -s conftest.err'
15440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441 (eval $ac_try) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); }; } &&
15445 { ac_try='test -s conftest.$ac_objext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15451 ac_header_compiler=yes
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15456 ac_header_compiler=no
15458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15459 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15460 echo "${ECHO_T}$ac_header_compiler" >&6
15462 # Is the header present?
15463 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15464 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <syslog.h>
15473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null; then
15481 if test -s conftest.err; then
15482 ac_cpp_err=$ac_c_preproc_warn_flag
15483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15490 if test -z "$ac_cpp_err"; then
15491 ac_header_preproc=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_header_preproc=no
15498 rm -f conftest.err conftest.$ac_ext
15499 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15500 echo "${ECHO_T}$ac_header_preproc" >&6
15502 # So? What about this header?
15503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15505 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15506 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15507 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15508 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15509 ac_header_preproc=yes
15512 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15513 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15514 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15515 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15517 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15518 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15519 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15520 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15522 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15523 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15526 ## ---------------------------------------- ##
15527 ## Report this to pgsql-bugs@postgresql.org ##
15528 ## ---------------------------------------- ##
15531 sed "s/^/$as_me: WARNING: /" >&2
15534 echo "$as_me:$LINENO: checking for syslog.h" >&5
15535 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15536 if test "${ac_cv_header_syslog_h+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15539 ac_cv_header_syslog_h=$ac_header_preproc
15541 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15542 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15545 if test $ac_cv_header_syslog_h = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_SYSLOG 1
15557 echo "$as_me:$LINENO: checking for optreset" >&5
15558 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15559 if test "${pgac_cv_var_int_optreset+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <unistd.h>
15572 extern int optreset; optreset = 1;
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 pgac_cv_var_int_optreset=yes
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 pgac_cv_var_int_optreset=no
15606 rm -f conftest.err conftest.$ac_objext \
15607 conftest$ac_exeext conftest.$ac_ext
15609 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15610 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15611 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15613 cat >>confdefs.h <<\_ACEOF
15614 #define HAVE_INT_OPTRESET 1
15621 for ac_func in strtoll strtoq
15623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15624 echo "$as_me:$LINENO: checking for $ac_func" >&5
15625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15626 if eval "test \"\${$as_ac_var+set}\" = set"; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15637 #define $ac_func innocuous_$ac_func
15639 /* System header to define __stub macros and hopefully few prototypes,
15640 which can conflict with char $ac_func (); below.
15641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642 <limits.h> exists even on freestanding compilers. */
15645 # include <limits.h>
15647 # include <assert.h>
15652 /* Override any gcc2 internal prototype to avoid an error. */
15657 /* We use char because int might match the return type of a gcc2
15658 builtin and then its argument prototype would still apply. */
15660 /* The GNU C library defines this for functions which it implements
15661 to always fail with ENOSYS. Some functions are actually named
15662 something starting with __ and the normal name is an alias. */
15663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15666 char (*f) () = $ac_func;
15675 return f != $ac_func;
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15682 (eval $ac_link) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest$ac_exeext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 eval "$as_ac_var=yes"
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 eval "$as_ac_var=no"
15709 rm -f conftest.err conftest.$ac_objext \
15710 conftest$ac_exeext conftest.$ac_ext
15712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15724 for ac_func in strtoull strtouq
15726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15727 echo "$as_me:$LINENO: checking for $ac_func" >&5
15728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15729 if eval "test \"\${$as_ac_var+set}\" = set"; then
15730 echo $ECHO_N "(cached) $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15740 #define $ac_func innocuous_$ac_func
15742 /* System header to define __stub macros and hopefully few prototypes,
15743 which can conflict with char $ac_func (); below.
15744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745 <limits.h> exists even on freestanding compilers. */
15748 # include <limits.h>
15750 # include <assert.h>
15755 /* Override any gcc2 internal prototype to avoid an error. */
15760 /* We use char because int might match the return type of a gcc2
15761 builtin and then its argument prototype would still apply. */
15763 /* The GNU C library defines this for functions which it implements
15764 to always fail with ENOSYS. Some functions are actually named
15765 something starting with __ and the normal name is an alias. */
15766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15769 char (*f) () = $ac_func;
15778 return f != $ac_func;
15783 rm -f conftest.$ac_objext conftest$ac_exeext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15785 (eval $ac_link) 2>conftest.er1
15787 grep -v '^ *+' conftest.er1 >conftest.err
15789 cat conftest.err >&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -z "$ac_c_werror_flag"
15793 || test ! -s conftest.err'
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; } &&
15799 { ac_try='test -s conftest$ac_exeext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 eval "$as_ac_var=yes"
15807 echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15810 eval "$as_ac_var=no"
15812 rm -f conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15817 if test `eval echo '${'$as_ac_var'}'` = yes; then
15818 cat >>confdefs.h <<_ACEOF
15819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15826 # Check for one of atexit() or on_exit()
15828 for ac_func in atexit
15830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15831 echo "$as_me:$LINENO: checking for $ac_func" >&5
15832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15833 if eval "test \"\${$as_ac_var+set}\" = set"; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 cat >conftest.$ac_ext <<_ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15844 #define $ac_func innocuous_$ac_func
15846 /* System header to define __stub macros and hopefully few prototypes,
15847 which can conflict with char $ac_func (); below.
15848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15849 <limits.h> exists even on freestanding compilers. */
15852 # include <limits.h>
15854 # include <assert.h>
15859 /* Override any gcc2 internal prototype to avoid an error. */
15864 /* We use char because int might match the return type of a gcc2
15865 builtin and then its argument prototype would still apply. */
15867 /* The GNU C library defines this for functions which it implements
15868 to always fail with ENOSYS. Some functions are actually named
15869 something starting with __ and the normal name is an alias. */
15870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15873 char (*f) () = $ac_func;
15882 return f != $ac_func;
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889 (eval $ac_link) 2>conftest.er1
15891 grep -v '^ *+' conftest.er1 >conftest.err
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest$ac_exeext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 eval "$as_ac_var=yes"
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15914 eval "$as_ac_var=no"
15916 rm -f conftest.err conftest.$ac_objext \
15917 conftest$ac_exeext conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15921 if test `eval echo '${'$as_ac_var'}'` = yes; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15928 for ac_func in on_exit
15930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15931 echo "$as_me:$LINENO: checking for $ac_func" >&5
15932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15933 if eval "test \"\${$as_ac_var+set}\" = set"; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15944 #define $ac_func innocuous_$ac_func
15946 /* System header to define __stub macros and hopefully few prototypes,
15947 which can conflict with char $ac_func (); below.
15948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15949 <limits.h> exists even on freestanding compilers. */
15952 # include <limits.h>
15954 # include <assert.h>
15959 /* Override any gcc2 internal prototype to avoid an error. */
15964 /* We use char because int might match the return type of a gcc2
15965 builtin and then its argument prototype would still apply. */
15967 /* The GNU C library defines this for functions which it implements
15968 to always fail with ENOSYS. Some functions are actually named
15969 something starting with __ and the normal name is an alias. */
15970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15973 char (*f) () = $ac_func;
15982 return f != $ac_func;
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989 (eval $ac_link) 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
15996 { ac_try='test -z "$ac_c_werror_flag"
15997 || test ! -s conftest.err'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest$ac_exeext'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 eval "$as_ac_var=yes"
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 eval "$as_ac_var=no"
16016 rm -f conftest.err conftest.$ac_objext \
16017 conftest$ac_exeext conftest.$ac_ext
16019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16021 if test `eval echo '${'$as_ac_var'}'` = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16027 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
16028 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
16029 { (exit 1); exit 1; }; }
16037 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16038 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
16039 if test "${ac_cv_sys_largefile_source+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 ac_cv_sys_largefile_source=no
16044 cat >conftest.$ac_ext <<_ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h. */
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>conftest.er1
16063 grep -v '^ *+' conftest.er1 >conftest.err
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } &&
16068 { ac_try='test -z "$ac_c_werror_flag"
16069 || test ! -s conftest.err'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; } &&
16075 { ac_try='test -s conftest.$ac_objext'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; }; then
16083 echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16088 cat >conftest.$ac_ext <<_ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16094 #define _LARGEFILE_SOURCE 1
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106 (eval $ac_compile) 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } &&
16113 { ac_try='test -z "$ac_c_werror_flag"
16114 || test ! -s conftest.err'
16115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116 (eval $ac_try) 2>&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_sys_largefile_source=1; break
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16137 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16138 if test "$ac_cv_sys_largefile_source" != no; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16147 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16148 # in glibc 2.1.3, but that breaks too many other things.
16149 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16150 echo "$as_me:$LINENO: checking for fseeko" >&5
16151 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16152 if test "${ac_cv_func_fseeko+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16165 return fseeko && fseeko (stdin, 0, 0);
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>conftest.er1
16174 grep -v '^ *+' conftest.er1 >conftest.err
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag"
16180 || test ! -s conftest.err'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest$ac_exeext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_func_fseeko=yes
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16197 ac_cv_func_fseeko=no
16199 rm -f conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16202 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16203 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16204 if test $ac_cv_func_fseeko = yes; then
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE_FSEEKO 1
16216 # For each platform, we need to know about any special compile and link
16217 # libraries, and whether the normal C function names are thread-safe.
16218 # See the comment at the top of src/port/thread.c for more information.
16220 if test "$enable_thread_safety" = yes; then
16226 ac_cpp='$CPP $CPPFLAGS'
16227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16233 # We used to check for pthread.h first, but this fails if pthread.h
16234 # requires special compiler flags (e.g. on True64 or Sequent).
16235 # It gets checked for in the link test anyway.
16237 # First of all, check if the user has set any of the PTHREAD_LIBS,
16238 # etcetera environment variables, and if threads linking works using
16240 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16241 save_CFLAGS="$CFLAGS"
16242 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16244 LIBS="$PTHREAD_LIBS $LIBS"
16245 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16246 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16254 /* Override any gcc2 internal prototype to avoid an error. */
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16260 char pthread_join ();
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16297 rm -f conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16299 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16300 echo "${ECHO_T}$acx_pthread_ok" >&6
16301 if test x"$acx_pthread_ok" = xno; then
16306 CFLAGS="$save_CFLAGS"
16309 # We must check for the threads library under a number of different
16310 # names; the ordering is very important because some systems
16311 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16312 # libraries is broken (non-POSIX).
16314 # Create a list of thread flags to try. Items starting with a "-" are
16315 # C compiler flags, and other items are library names, except for "none"
16316 # which indicates that we try without any flags at all, and "pthread-config"
16317 # which is a program returning the flags for the Pth emulation library.
16319 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16321 # The ordering *is* (sometimes) important. Some notes on the
16322 # individual items follow:
16324 # pthreads: AIX (must check this before -lpthread)
16325 # none: in case threads are in libc; should be tried before -Kthread and
16326 # other compiler flags to prevent continual compiler warnings
16327 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16328 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16329 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16330 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16331 # -pthreads: Solaris/gcc
16332 # -mthreads: Mingw32/gcc, Lynx/gcc
16333 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16334 # doesn't hurt to check since this sometimes defines pthreads too;
16335 # also defines -D_REENTRANT)
16336 # pthread: Linux, etcetera
16337 # --thread-safe: KAI C++
16338 # pthread-config: use pthread-config program (for GNU Pth library)
16340 case "${host_cpu}-${host_os}" in
16343 # On Solaris (at least, for some versions), libc contains stubbed
16344 # (non-functional) versions of the pthreads routines, so link-based
16345 # tests will erroneously succeed. (We need to link with -pthread or
16346 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16347 # a function called by this macro, so we could check for that, but
16348 # who knows whether they'll stub that too in a future libc.) So,
16349 # we'll just look for -pthreads and -lpthread first:
16351 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16355 if test x"$acx_pthread_ok" = xno; then
16356 for flag in $acx_pthread_flags; do
16358 tryPTHREAD_CFLAGS=""
16362 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16363 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16367 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16368 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16369 tryPTHREAD_CFLAGS="$flag"
16373 # skip this if we already have flags defined, for PostgreSQL
16374 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16375 # Extract the first word of "pthread-config", so it can be a program name with args.
16376 set dummy pthread-config; ac_word=$2
16377 echo "$as_me:$LINENO: checking for $ac_word" >&5
16378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16379 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 if test -n "$acx_pthread_config"; then
16383 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16386 for as_dir in $PATH
16389 test -z "$as_dir" && as_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16392 ac_cv_prog_acx_pthread_config="yes"
16393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16399 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16402 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16403 if test -n "$acx_pthread_config"; then
16404 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16405 echo "${ECHO_T}$acx_pthread_config" >&6
16407 echo "$as_me:$LINENO: result: no" >&5
16408 echo "${ECHO_T}no" >&6
16411 if test x"$acx_pthread_config" = xno; then continue; fi
16412 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16413 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16417 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16418 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16419 tryPTHREAD_LIBS="-l$flag"
16424 save_CFLAGS="$CFLAGS"
16425 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16426 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16428 # Check for various functions. We must include pthread.h,
16429 # since some functions may be macros. (On the Sequent, we
16430 # need a special flag -Kthread to make this header compile.)
16431 # We check for pthread_join because it is in -lpthread on IRIX
16432 # while pthread_create is in libc. We check for pthread_attr_init
16433 # due to DEC craziness with -lpthreads. We check for
16434 # pthread_cleanup_push because it is one of the few pthread
16435 # functions on Solaris that doesn't have a non-functional libc stub.
16436 # We try pthread_create on general principles.
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 #include <pthread.h>
16447 pthread_t th; pthread_join(th, 0);
16448 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16449 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16454 rm -f conftest.$ac_objext conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456 (eval $ac_link) 2>conftest.er1
16458 grep -v '^ *+' conftest.er1 >conftest.err
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -z "$ac_c_werror_flag"
16464 || test ! -s conftest.err'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest$ac_exeext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16483 rm -f conftest.err conftest.$ac_objext \
16484 conftest$ac_exeext conftest.$ac_ext
16486 if test "x$acx_pthread_ok" = xyes; then
16487 # Don't use options that are ignored by the compiler.
16488 # We find them by checking stderror.
16489 cat >conftest.$ac_ext <<_ACEOF
16491 main (int argc, char **argv)
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16500 # we continue with more flags because Linux needs -lpthread
16501 # for libpq builds on PostgreSQL. The test above only
16502 # tests for building binaries, not shared libraries.
16503 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16504 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16505 else acx_pthread_ok=no
16510 CFLAGS="$save_CFLAGS"
16512 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16513 echo "${ECHO_T}$acx_pthread_ok" >&6
16517 # Various other checks:
16518 if test "x$acx_pthread_ok" = xyes; then
16520 LIBS="$PTHREAD_LIBS $LIBS"
16521 save_CFLAGS="$CFLAGS"
16522 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16524 # Detect AIX lossage: threads are created detached by default
16525 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16526 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16527 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16528 cat >conftest.$ac_ext <<_ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 #include <pthread.h>
16538 int attr=PTHREAD_CREATE_JOINABLE;
16543 rm -f conftest.$ac_objext conftest$ac_exeext
16544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16545 (eval $ac_link) 2>conftest.er1
16547 grep -v '^ *+' conftest.er1 >conftest.err
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag"
16553 || test ! -s conftest.err'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; } &&
16559 { ac_try='test -s conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 ok=PTHREAD_CREATE_JOINABLE
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16572 rm -f conftest.err conftest.$ac_objext \
16573 conftest$ac_exeext conftest.$ac_ext
16574 if test x"$ok" = xunknown; then
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <pthread.h>
16585 int attr=PTHREAD_CREATE_UNDETACHED;
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16592 (eval $ac_link) 2>conftest.er1
16594 grep -v '^ *+' conftest.er1 >conftest.err
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest$ac_exeext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ok=PTHREAD_CREATE_UNDETACHED
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16619 rm -f conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16622 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16624 cat >>confdefs.h <<\_ACEOF
16625 #define PTHREAD_CREATE_JOINABLE $ok
16629 echo "$as_me:$LINENO: result: ${ok}" >&5
16630 echo "${ECHO_T}${ok}" >&6
16631 if test x"$ok" = xunknown; then
16632 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16633 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16636 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16637 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16639 # We always add these in PostgreSQL
16640 # case "${host_cpu}-${host_os}" in
16641 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16642 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16644 echo "$as_me:$LINENO: result: ${flag}" >&5
16645 echo "${ECHO_T}${flag}" >&6
16646 if test "x$flag" != xno; then
16647 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16651 CFLAGS="$save_CFLAGS"
16653 # Supporting cc_r would require a special CC in all places that
16654 # use libpq, and that is ugly, so we don't do it. Users can still
16655 # define their compiler as cc_r to do thread builds of everything.
16656 # More AIX lossage: must compile with cc_r
16657 # Extract the first word of "cc_r", so it can be a program name with args.
16658 set dummy cc_r; ac_word=$2
16659 echo "$as_me:$LINENO: checking for $ac_word" >&5
16660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16661 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 if test -n "$PTHREAD_CC"; then
16665 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $PATH
16671 test -z "$as_dir" && as_dir=.
16672 for ac_exec_ext in '' $ac_executable_extensions; do
16673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674 ac_cv_prog_PTHREAD_CC="cc_r"
16675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16681 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16684 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16685 if test -n "$PTHREAD_CC"; then
16686 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16687 echo "${ECHO_T}$PTHREAD_CC" >&6
16689 echo "$as_me:$LINENO: result: no" >&5
16690 echo "${ECHO_T}no" >&6
16701 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16702 if test x"$acx_pthread_ok" = xyes; then
16704 cat >>confdefs.h <<\_ACEOF
16705 #define HAVE_PTHREAD 1
16714 ac_cpp='$CPP $CPPFLAGS'
16715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16721 # Some platforms use these, so just defineed them. They can't hurt if they
16722 # are not supported.
16723 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16726 # At this point, we don't want to muck with the compiler name for threading.
16727 # Let's see who fails, perhaps AIX. 2004-04-23
16728 if test "$PTHREAD_CC" != "$CC"; then
16729 { { echo "$as_me:$LINENO: error:
16730 PostgreSQL does not support platforms that require a special
16731 compiler binary for thread-safety.
16733 echo "$as_me: error:
16734 PostgreSQL does not support platforms that require a special
16735 compiler binary for thread-safety.
16737 { (exit 1); exit 1; }; }
16740 if test "$THREAD_SUPPORT" = no; then
16741 { { echo "$as_me:$LINENO: error:
16742 Cannot enable threads on your platform.
16743 Your platform is known to not support thread-safe programs.
16744 For details, compile and run src/bin/pg_thread_test.
16746 echo "$as_me: error:
16747 Cannot enable threads on your platform.
16748 Your platform is known to not support thread-safe programs.
16749 For details, compile and run src/bin/pg_thread_test.
16751 { (exit 1); exit 1; }; }
16754 # Check for *_r functions
16757 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16758 LIBS="$LIBS $PTHREAD_LIBS"
16760 if test "${ac_cv_header_pthread_h+set}" = set; then
16761 echo "$as_me:$LINENO: checking for pthread.h" >&5
16762 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16763 if test "${ac_cv_header_pthread_h+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16767 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16769 # Is the header compilable?
16770 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16771 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16772 cat >conftest.$ac_ext <<_ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 $ac_includes_default
16779 #include <pthread.h>
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>conftest.er1
16785 grep -v '^ *+' conftest.er1 >conftest.err
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_header_compiler=yes
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16808 ac_header_compiler=no
16810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16812 echo "${ECHO_T}$ac_header_compiler" >&6
16814 # Is the header present?
16815 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16816 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 #include <pthread.h>
16825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } >/dev/null; then
16833 if test -s conftest.err; then
16834 ac_cpp_err=$ac_c_preproc_warn_flag
16835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16842 if test -z "$ac_cpp_err"; then
16843 ac_header_preproc=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_preproc=no
16850 rm -f conftest.err conftest.$ac_ext
16851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16852 echo "${ECHO_T}$ac_header_preproc" >&6
16854 # So? What about this header?
16855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16857 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16858 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16860 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16861 ac_header_preproc=yes
16864 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16865 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16866 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16867 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16869 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16871 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16873 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16875 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16878 ## ---------------------------------------- ##
16879 ## Report this to pgsql-bugs@postgresql.org ##
16880 ## ---------------------------------------- ##
16883 sed "s/^/$as_me: WARNING: /" >&2
16886 echo "$as_me:$LINENO: checking for pthread.h" >&5
16887 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16888 if test "${ac_cv_header_pthread_h+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_cv_header_pthread_h=$ac_header_preproc
16893 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16894 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16897 if test $ac_cv_header_pthread_h = yes; then
16900 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16901 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16902 { (exit 1); exit 1; }; }
16910 for ac_func in strerror_r getpwuid_r gethostbyname_r
16912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16913 echo "$as_me:$LINENO: checking for $ac_func" >&5
16914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16915 if eval "test \"\${$as_ac_var+set}\" = set"; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16926 #define $ac_func innocuous_$ac_func
16928 /* System header to define __stub macros and hopefully few prototypes,
16929 which can conflict with char $ac_func (); below.
16930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16931 <limits.h> exists even on freestanding compilers. */
16934 # include <limits.h>
16936 # include <assert.h>
16941 /* Override any gcc2 internal prototype to avoid an error. */
16946 /* We use char because int might match the return type of a gcc2
16947 builtin and then its argument prototype would still apply. */
16949 /* The GNU C library defines this for functions which it implements
16950 to always fail with ENOSYS. Some functions are actually named
16951 something starting with __ and the normal name is an alias. */
16952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16955 char (*f) () = $ac_func;
16964 return f != $ac_func;
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971 (eval $ac_link) 2>conftest.er1
16973 grep -v '^ *+' conftest.er1 >conftest.err
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); } &&
16978 { ac_try='test -z "$ac_c_werror_flag"
16979 || test ! -s conftest.err'
16980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16981 (eval $ac_try) 2>&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 eval "$as_ac_var=yes"
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 eval "$as_ac_var=no"
16998 rm -f conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext conftest.$ac_ext
17001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004 cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17012 # Do test here with the proper thread flags
17013 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
17014 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
17015 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 #include <sys/types.h>
17030 struct passwd *space;
17033 struct passwd **result;
17034 getpwuid_r(uid, space, buf, bufsize, result);
17039 rm -f conftest.$ac_objext
17040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17041 (eval $ac_compile) 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag"
17049 || test ! -s conftest.err'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest.$ac_objext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 pgac_func_getpwuid_r_5arg=yes
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 pgac_func_getpwuid_r_5arg=no
17068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17070 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17071 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17072 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17074 cat >>confdefs.h <<\_ACEOF
17075 #define GETPWUID_R_5ARG
17080 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17081 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17082 if test "${pgac_func_strerror_r_int+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 #include <string.h>
17096 int strerror_r(int, char *, size_t);
17098 /* Older AIX has 'int' for the third argument so we don't test the args. */
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17109 grep -v '^ *+' conftest.er1 >conftest.err
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 pgac_func_strerror_r_int=yes
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17132 pgac_func_strerror_r_int=no
17134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17136 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17137 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17138 if test x"$pgac_func_strerror_r_int" = xyes ; then
17140 cat >>confdefs.h <<\_ACEOF
17141 #define STRERROR_R_INT
17151 # do not use values from template file
17160 # This test makes sure that run tests work at all. Sometimes a shared
17161 # library is found by the linker, but the runtime linker can't find it.
17162 # This check should come after all modifications of compiler or linker
17163 # variables, and before any other run tests.
17164 echo "$as_me:$LINENO: checking test program" >&5
17165 echo $ECHO_N "checking test program... $ECHO_C" >&6
17166 if test "$cross_compiling" = yes; then
17167 echo "$as_me:$LINENO: result: cross-compiling" >&5
17168 echo "${ECHO_T}cross-compiling" >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17176 int main() { return 0; }
17178 rm -f conftest$ac_exeext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17189 echo "$as_me:$LINENO: result: ok" >&5
17190 echo "${ECHO_T}ok" >&6
17192 echo "$as_me: program exited with status $ac_status" >&5
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ( exit $ac_status )
17197 echo "$as_me:$LINENO: result: failed" >&5
17198 echo "${ECHO_T}failed" >&6
17199 { { echo "$as_me:$LINENO: error:
17200 *** Could not execute a simple test program. This may be a problem
17201 *** related to locating shared libraries. Check the file 'config.log'
17202 *** for the exact reason." >&5
17203 echo "$as_me: error:
17204 *** Could not execute a simple test program. This may be a problem
17205 *** related to locating shared libraries. Check the file 'config.log'
17206 *** for the exact reason." >&2;}
17207 { (exit 1); exit 1; }; }
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17212 # --------------------
17213 # Run tests below here
17214 # --------------------
17216 # Force use of our snprintf if system's doesn't do arg control
17217 # See comment above at snprintf test for details.
17218 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
17219 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17220 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17221 if test "${pgac_cv_printf_arg_control+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 if test "$cross_compiling" = yes; then
17225 pgac_cv_printf_arg_control=cross
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17234 #include <string.h>
17240 /* can it swap arguments? */
17241 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17242 if (strcmp(buf, "4 3") != 0)
17247 rm -f conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249 (eval $ac_link) 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 pgac_cv_printf_arg_control=yes
17260 echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 ( exit $ac_status )
17265 pgac_cv_printf_arg_control=no
17267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17271 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17272 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17274 if test $pgac_cv_printf_arg_control != yes ; then
17275 pgac_need_repl_snprintf=yes
17281 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17282 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17283 if test "${pgac_cv_type_long_int_64+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 if test "$cross_compiling" = yes; then
17287 # If cross-compiling, check the size reported by the compiler and
17288 # trust that the arithmetic works.
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17299 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag"
17316 || test ! -s conftest.err'
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 pgac_cv_type_long_int_64=yes
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 pgac_cv_type_long_int_64=no
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 typedef long int ac_int64;
17346 * These are globals to discourage the compiler from folding all the
17347 * arithmetic tests down to compile-time constants.
17349 ac_int64 a = 20000001;
17350 ac_int64 b = 40000005;
17352 int does_int64_work()
17356 if (sizeof(ac_int64) != 8)
17357 return 0; /* definitely not the right size */
17359 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17367 exit(! does_int64_work());
17370 rm -f conftest$ac_exeext
17371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17372 (eval $ac_link) 2>&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 pgac_cv_type_long_int_64=yes
17383 echo "$as_me: program exited with status $ac_status" >&5
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ( exit $ac_status )
17388 pgac_cv_type_long_int_64=no
17390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17393 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17394 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17396 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17397 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_LONG_INT_64
17406 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17407 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17408 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17409 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 if test "$cross_compiling" = yes; then
17413 # If cross-compiling, check the size reported by the compiler and
17414 # trust that the arithmetic works.
17415 cat >conftest.$ac_ext <<_ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17425 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17432 rm -f conftest.$ac_objext
17433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17434 (eval $ac_compile) 2>conftest.er1
17436 grep -v '^ *+' conftest.er1 >conftest.err
17438 cat conftest.err >&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } &&
17441 { ac_try='test -z "$ac_c_werror_flag"
17442 || test ! -s conftest.err'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest.$ac_objext'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; }; then
17454 pgac_cv_type_long_long_int_64=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 pgac_cv_type_long_long_int_64=no
17461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17463 cat >conftest.$ac_ext <<_ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 typedef long long int ac_int64;
17472 * These are globals to discourage the compiler from folding all the
17473 * arithmetic tests down to compile-time constants.
17475 ac_int64 a = 20000001;
17476 ac_int64 b = 40000005;
17478 int does_int64_work()
17482 if (sizeof(ac_int64) != 8)
17483 return 0; /* definitely not the right size */
17485 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17493 exit(! does_int64_work());
17496 rm -f conftest$ac_exeext
17497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17498 (eval $ac_link) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 pgac_cv_type_long_long_int_64=yes
17509 echo "$as_me: program exited with status $ac_status" >&5
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 ( exit $ac_status )
17514 pgac_cv_type_long_long_int_64=no
17516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17519 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17520 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17522 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17523 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17525 cat >>confdefs.h <<\_ACEOF
17526 #define HAVE_LONG_LONG_INT_64
17535 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17543 #define INT64CONST(x) x##LL
17544 long long int foo = INT64CONST(0x1234567890123456);
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17577 cat >>confdefs.h <<\_ACEOF
17578 #define HAVE_LL_CONSTANTS 1
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 # If we found "long int" is 64 bits, assume snprintf handles it. If
17591 # we found we need to use "long long int", better check. We cope with
17592 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17593 # work, fall back to our own snprintf emulation (which we know uses %lld).
17595 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17596 if test $pgac_need_repl_snprintf = no; then
17597 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17598 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17599 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 for pgac_format in '%lld' '%qd' '%I64d'; do
17603 if test "$cross_compiling" = yes; then
17604 pgac_cv_snprintf_long_long_int_format=cross; break
17606 cat >conftest.$ac_ext <<_ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h. */
17613 typedef long long int ac_int64;
17614 #define INT64_FORMAT "$pgac_format"
17616 ac_int64 a = 20000001;
17617 ac_int64 b = 40000005;
17619 int does_int64_snprintf_work()
17624 if (sizeof(ac_int64) != 8)
17625 return 0; /* doesn't look like the right size */
17628 snprintf(buf, 100, INT64_FORMAT, c);
17629 if (strcmp(buf, "800000140000005") != 0)
17630 return 0; /* either multiply or snprintf is busted */
17634 exit(! does_int64_snprintf_work());
17637 rm -f conftest$ac_exeext
17638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17650 echo "$as_me: program exited with status $ac_status" >&5
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17655 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17660 LONG_LONG_INT_FORMAT=''
17662 case $pgac_cv_snprintf_long_long_int_format in
17663 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17664 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17665 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17666 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17667 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17668 *) echo "$as_me:$LINENO: result: none" >&5
17669 echo "${ECHO_T}none" >&6;;
17671 if test "$LONG_LONG_INT_FORMAT" = ""; then
17672 # Force usage of our own snprintf, since system snprintf is broken
17673 pgac_need_repl_snprintf=yes
17674 LONG_LONG_INT_FORMAT='%lld'
17677 # Here if we previously decided we needed to use our own snprintf
17678 LONG_LONG_INT_FORMAT='%lld'
17680 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17681 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17682 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17684 # Here if we are not using 'long long int' at all
17685 INT64_FORMAT='"%ld"'
17686 UINT64_FORMAT='"%lu"'
17690 cat >>confdefs.h <<_ACEOF
17691 #define INT64_FORMAT $INT64_FORMAT
17696 cat >>confdefs.h <<_ACEOF
17697 #define UINT64_FORMAT $UINT64_FORMAT
17701 # Now we have checked all the reasons to replace snprintf
17702 if test $pgac_need_repl_snprintf = yes; then
17704 cat >>confdefs.h <<\_ACEOF
17705 #define USE_REPL_SNPRINTF 1
17709 "snprintf.$ac_objext" | \
17710 *" snprintf.$ac_objext" | \
17711 "snprintf.$ac_objext "* | \
17712 *" snprintf.$ac_objext "* ) ;;
17713 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17718 # Need a #define for the size of Datum (unsigned long)
17719 echo "$as_me:$LINENO: checking for unsigned long" >&5
17720 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17721 if test "${ac_cv_type_unsigned_long+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 cat >conftest.$ac_ext <<_ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 $ac_includes_default
17734 if ((unsigned long *) 0)
17736 if (sizeof (unsigned long))
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744 (eval $ac_compile) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_type_unsigned_long=yes
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17769 ac_cv_type_unsigned_long=no
17771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17773 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17774 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17776 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17777 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17778 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 if test "$ac_cv_type_unsigned_long" = yes; then
17782 # The cast to unsigned long works around a bug in the HP C Compiler
17783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17785 # This bug is HP SR number 8606223364.
17786 if test "$cross_compiling" = yes; then
17787 # Depending upon the size, compute the lo and hi bounds.
17788 cat >conftest.$ac_ext <<_ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 $ac_includes_default
17798 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag"
17815 || test ! -s conftest.err'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest.$ac_objext'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 $ac_includes_default
17839 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_hi=$ac_mid; break
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17873 ac_lo=`expr $ac_mid + 1`
17874 if test $ac_lo -le $ac_mid; then
17878 ac_mid=`expr 2 '*' $ac_mid + 1`
17880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 $ac_includes_default
17896 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17903 rm -f conftest.$ac_objext
17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17905 (eval $ac_compile) 2>conftest.er1
17907 grep -v '^ *+' conftest.er1 >conftest.err
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag"
17913 || test ! -s conftest.err'
17914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17915 (eval $ac_try) 2>&5
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; } &&
17919 { ac_try='test -s conftest.$ac_objext'
17920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921 (eval $ac_try) 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; }; then
17927 cat >conftest.$ac_ext <<_ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17933 $ac_includes_default
17937 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17944 rm -f conftest.$ac_objext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>conftest.er1
17948 grep -v '^ *+' conftest.er1 >conftest.err
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag"
17954 || test ! -s conftest.err'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
17961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962 (eval $ac_try) 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; }; then
17966 ac_lo=$ac_mid; break
17968 echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17971 ac_hi=`expr '(' $ac_mid ')' - 1`
17972 if test $ac_mid -le $ac_hi; then
17976 ac_mid=`expr 2 '*' $ac_mid`
17978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17989 # Binary search between lo and hi bounds.
17990 while test "x$ac_lo" != "x$ac_hi"; do
17991 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
18002 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
18009 rm -f conftest.$ac_objext
18010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011 (eval $ac_compile) 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try='test -z "$ac_c_werror_flag"
18019 || test ! -s conftest.err'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; } &&
18025 { ac_try='test -s conftest.$ac_objext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18033 echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18036 ac_lo=`expr '(' $ac_mid ')' + 1`
18038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18041 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
18042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18043 See \`config.log' for more details." >&5
18044 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18045 See \`config.log' for more details." >&2;}
18046 { (exit 1); exit 1; }; } ;;
18049 if test "$cross_compiling" = yes; then
18050 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18051 See \`config.log' for more details." >&5
18052 echo "$as_me: error: cannot run test program while cross compiling
18053 See \`config.log' for more details." >&2;}
18054 { (exit 1); exit 1; }; }
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 $ac_includes_default
18063 long longval () { return (long) (sizeof (unsigned long)); }
18064 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18066 #include <stdlib.h>
18071 FILE *f = fopen ("conftest.val", "w");
18074 if (((long) (sizeof (unsigned long))) < 0)
18076 long i = longval ();
18077 if (i != ((long) (sizeof (unsigned long))))
18079 fprintf (f, "%ld\n", i);
18083 unsigned long i = ulongval ();
18084 if (i != ((long) (sizeof (unsigned long))))
18086 fprintf (f, "%lu\n", i);
18088 exit (ferror (f) || fclose (f) != 0);
18094 rm -f conftest$ac_exeext
18095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18096 (eval $ac_link) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_unsigned_long=`cat conftest.val`
18107 echo "$as_me: program exited with status $ac_status" >&5
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ( exit $ac_status )
18112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18113 See \`config.log' for more details." >&5
18114 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18115 See \`config.log' for more details." >&2;}
18116 { (exit 1); exit 1; }; }
18118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18123 ac_cv_sizeof_unsigned_long=0
18126 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18127 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18128 cat >>confdefs.h <<_ACEOF
18129 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18134 # And one for the size of size_t (enables tweaks for > 32bit address space)
18135 echo "$as_me:$LINENO: checking for size_t" >&5
18136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18137 if test "${ac_cv_type_size_t+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18146 $ac_includes_default
18152 if (sizeof (size_t))
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18160 (eval $ac_compile) 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag"
18168 || test ! -s conftest.err'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest.$ac_objext'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_cv_type_size_t=yes
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_cv_type_size_t=no
18187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18189 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18190 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18192 echo "$as_me:$LINENO: checking size of size_t" >&5
18193 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18194 if test "${ac_cv_sizeof_size_t+set}" = set; then
18195 echo $ECHO_N "(cached) $ECHO_C" >&6
18197 if test "$ac_cv_type_size_t" = yes; then
18198 # The cast to unsigned long works around a bug in the HP C Compiler
18199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18201 # This bug is HP SR number 8606223364.
18202 if test "$cross_compiling" = yes; then
18203 # Depending upon the size, compute the lo and hi bounds.
18204 cat >conftest.$ac_ext <<_ACEOF
18207 cat confdefs.h >>conftest.$ac_ext
18208 cat >>conftest.$ac_ext <<_ACEOF
18209 /* end confdefs.h. */
18210 $ac_includes_default
18214 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest.$ac_objext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251 $ac_includes_default
18255 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18262 rm -f conftest.$ac_objext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264 (eval $ac_compile) 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag"
18272 || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_hi=$ac_mid; break
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_lo=`expr $ac_mid + 1`
18290 if test $ac_lo -le $ac_mid; then
18294 ac_mid=`expr 2 '*' $ac_mid + 1`
18296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 $ac_includes_default
18312 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18319 rm -f conftest.$ac_objext
18320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18321 (eval $ac_compile) 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_c_werror_flag"
18329 || test ! -s conftest.err'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest.$ac_objext'
18336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337 (eval $ac_try) 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; }; then
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 $ac_includes_default
18353 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18360 rm -f conftest.$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362 (eval $ac_compile) 2>conftest.er1
18364 grep -v '^ *+' conftest.er1 >conftest.err
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_lo=$ac_mid; break
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_hi=`expr '(' $ac_mid ')' - 1`
18388 if test $ac_mid -le $ac_hi; then
18392 ac_mid=`expr 2 '*' $ac_mid`
18394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18405 # Binary search between lo and hi bounds.
18406 while test "x$ac_lo" != "x$ac_hi"; do
18407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 $ac_includes_default
18418 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18425 rm -f conftest.$ac_objext
18426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18427 (eval $ac_compile) 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -z "$ac_c_werror_flag"
18435 || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_lo=`expr '(' $ac_mid ')' + 1`
18454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18457 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18458 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18459 See \`config.log' for more details." >&5
18460 echo "$as_me: error: cannot compute sizeof (size_t), 77
18461 See \`config.log' for more details." >&2;}
18462 { (exit 1); exit 1; }; } ;;
18465 if test "$cross_compiling" = yes; then
18466 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18467 See \`config.log' for more details." >&5
18468 echo "$as_me: error: cannot run test program while cross compiling
18469 See \`config.log' for more details." >&2;}
18470 { (exit 1); exit 1; }; }
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478 $ac_includes_default
18479 long longval () { return (long) (sizeof (size_t)); }
18480 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18482 #include <stdlib.h>
18487 FILE *f = fopen ("conftest.val", "w");
18490 if (((long) (sizeof (size_t))) < 0)
18492 long i = longval ();
18493 if (i != ((long) (sizeof (size_t))))
18495 fprintf (f, "%ld\n", i);
18499 unsigned long i = ulongval ();
18500 if (i != ((long) (sizeof (size_t))))
18502 fprintf (f, "%lu\n", i);
18504 exit (ferror (f) || fclose (f) != 0);
18510 rm -f conftest$ac_exeext
18511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18512 (eval $ac_link) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_sizeof_size_t=`cat conftest.val`
18523 echo "$as_me: program exited with status $ac_status" >&5
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ( exit $ac_status )
18528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18529 See \`config.log' for more details." >&5
18530 echo "$as_me: error: cannot compute sizeof (size_t), 77
18531 See \`config.log' for more details." >&2;}
18532 { (exit 1); exit 1; }; }
18534 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18539 ac_cv_sizeof_size_t=0
18542 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18543 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18544 cat >>confdefs.h <<_ACEOF
18545 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18550 # Determine memory alignment requirements for the basic C data types.
18552 echo "$as_me:$LINENO: checking for short" >&5
18553 echo $ECHO_N "checking for short... $ECHO_C" >&6
18554 if test "${ac_cv_type_short+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18563 $ac_includes_default
18569 if (sizeof (short))
18575 rm -f conftest.$ac_objext
18576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18577 (eval $ac_compile) 2>conftest.er1
18579 grep -v '^ *+' conftest.er1 >conftest.err
18581 cat conftest.err >&5
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } &&
18584 { ac_try='test -z "$ac_c_werror_flag"
18585 || test ! -s conftest.err'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest.$ac_objext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_type_short=yes
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18602 ac_cv_type_short=no
18604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18606 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18607 echo "${ECHO_T}$ac_cv_type_short" >&6
18609 echo "$as_me:$LINENO: checking alignment of short" >&5
18610 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18611 if test "${pgac_cv_alignof_short+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 if test "$ac_cv_type_short" = yes; then
18615 if test "$cross_compiling" = yes; then
18616 # Depending upon the size, compute the lo and hi bounds.
18617 cat >conftest.$ac_ext <<_ACEOF
18620 cat confdefs.h >>conftest.$ac_ext
18621 cat >>conftest.$ac_ext <<_ACEOF
18622 /* end confdefs.h. */
18623 $ac_includes_default
18624 struct { char filler; short field; } pgac_struct;
18628 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18635 rm -f conftest.$ac_objext
18636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18637 (eval $ac_compile) 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_c_werror_flag"
18645 || test ! -s conftest.err'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; } &&
18651 { ac_try='test -s conftest.$ac_objext'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 $ac_includes_default
18666 struct { char filler; short field; } pgac_struct;
18670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18681 grep -v '^ *+' conftest.er1 >conftest.err
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_hi=$ac_mid; break
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_lo=`expr $ac_mid + 1`
18705 if test $ac_lo -le $ac_mid; then
18709 ac_mid=`expr 2 '*' $ac_mid + 1`
18711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18714 echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 $ac_includes_default
18724 struct { char filler; short field; } pgac_struct;
18728 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18735 rm -f conftest.$ac_objext
18736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18737 (eval $ac_compile) 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -z "$ac_c_werror_flag"
18745 || test ! -s conftest.err'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; } &&
18751 { ac_try='test -s conftest.$ac_objext'
18752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18753 (eval $ac_try) 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; }; then
18759 cat >conftest.$ac_ext <<_ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18765 $ac_includes_default
18766 struct { char filler; short field; } pgac_struct;
18770 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18777 rm -f conftest.$ac_objext
18778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18779 (eval $ac_compile) 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
18786 { ac_try='test -z "$ac_c_werror_flag"
18787 || test ! -s conftest.err'
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try='test -s conftest.$ac_objext'
18794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
18799 ac_lo=$ac_mid; break
18801 echo "$as_me: failed program was:" >&5
18802 sed 's/^/| /' conftest.$ac_ext >&5
18804 ac_hi=`expr '(' $ac_mid ')' - 1`
18805 if test $ac_mid -le $ac_hi; then
18809 ac_mid=`expr 2 '*' $ac_mid`
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18822 # Binary search between lo and hi bounds.
18823 while test "x$ac_lo" != "x$ac_hi"; do
18824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 $ac_includes_default
18832 struct { char filler; short field; } pgac_struct;
18836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag"
18853 || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest.$ac_objext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 ac_lo=`expr '(' $ac_mid ')' + 1`
18872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18875 ?*) pgac_cv_alignof_short=$ac_lo;;
18876 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18877 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18878 { (exit 1); exit 1; }; } ;;
18881 if test "$cross_compiling" = yes; then
18882 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18883 See \`config.log' for more details." >&5
18884 echo "$as_me: error: cannot run test program while cross compiling
18885 See \`config.log' for more details." >&2;}
18886 { (exit 1); exit 1; }; }
18888 cat >conftest.$ac_ext <<_ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 $ac_includes_default
18895 struct { char filler; short field; } pgac_struct;
18896 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18897 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18899 #include <stdlib.h>
18904 FILE *f = fopen ("conftest.val", "w");
18907 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18909 long i = longval ();
18910 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18912 fprintf (f, "%ld\n", i);
18916 unsigned long i = ulongval ();
18917 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18919 fprintf (f, "%lu\n", i);
18921 exit (ferror (f) || fclose (f) != 0);
18927 rm -f conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929 (eval $ac_link) 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 pgac_cv_alignof_short=`cat conftest.val`
18940 echo "$as_me: program exited with status $ac_status" >&5
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ( exit $ac_status )
18945 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18946 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18947 { (exit 1); exit 1; }; }
18949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18954 pgac_cv_alignof_short=0
18957 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18958 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18959 cat >>confdefs.h <<_ACEOF
18960 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18964 echo "$as_me:$LINENO: checking for int" >&5
18965 echo $ECHO_N "checking for int... $ECHO_C" >&6
18966 if test "${ac_cv_type_int+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 $ac_includes_default
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag"
18997 || test ! -s conftest.err'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19018 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19019 echo "${ECHO_T}$ac_cv_type_int" >&6
19021 echo "$as_me:$LINENO: checking alignment of int" >&5
19022 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
19023 if test "${pgac_cv_alignof_int+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 if test "$ac_cv_type_int" = yes; then
19027 if test "$cross_compiling" = yes; then
19028 # Depending upon the size, compute the lo and hi bounds.
19029 cat >conftest.$ac_ext <<_ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 $ac_includes_default
19036 struct { char filler; int field; } pgac_struct;
19040 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 $ac_includes_default
19078 struct { char filler; int field; } pgac_struct;
19082 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19089 rm -f conftest.$ac_objext
19090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19091 (eval $ac_compile) 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } &&
19098 { ac_try='test -z "$ac_c_werror_flag"
19099 || test ! -s conftest.err'
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; } &&
19105 { ac_try='test -s conftest.$ac_objext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_hi=$ac_mid; break
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_lo=`expr $ac_mid + 1`
19117 if test $ac_lo -le $ac_mid; then
19121 ac_mid=`expr 2 '*' $ac_mid + 1`
19123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 $ac_includes_default
19136 struct { char filler; int field; } pgac_struct;
19140 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19147 rm -f conftest.$ac_objext
19148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19149 (eval $ac_compile) 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19153 cat conftest.err >&5
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } &&
19156 { ac_try='test -z "$ac_c_werror_flag"
19157 || test ! -s conftest.err'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; }; then
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 struct { char filler; int field; } pgac_struct;
19182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191 (eval $ac_compile) 2>conftest.er1
19193 grep -v '^ *+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } &&
19198 { ac_try='test -z "$ac_c_werror_flag"
19199 || test ! -s conftest.err'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 ac_lo=$ac_mid; break
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_hi=`expr '(' $ac_mid ')' - 1`
19217 if test $ac_mid -le $ac_hi; then
19221 ac_mid=`expr 2 '*' $ac_mid`
19223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19234 # Binary search between lo and hi bounds.
19235 while test "x$ac_lo" != "x$ac_hi"; do
19236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 $ac_includes_default
19244 struct { char filler; int field; } pgac_struct;
19248 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19255 rm -f conftest.$ac_objext
19256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19257 (eval $ac_compile) 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } &&
19264 { ac_try='test -z "$ac_c_werror_flag"
19265 || test ! -s conftest.err'
19266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19267 (eval $ac_try) 2>&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); }; } &&
19271 { ac_try='test -s conftest.$ac_objext'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_lo=`expr '(' $ac_mid ')' + 1`
19284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19287 ?*) pgac_cv_alignof_int=$ac_lo;;
19288 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19289 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19290 { (exit 1); exit 1; }; } ;;
19293 if test "$cross_compiling" = yes; then
19294 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19295 See \`config.log' for more details." >&5
19296 echo "$as_me: error: cannot run test program while cross compiling
19297 See \`config.log' for more details." >&2;}
19298 { (exit 1); exit 1; }; }
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 $ac_includes_default
19307 struct { char filler; int field; } pgac_struct;
19308 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19309 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19311 #include <stdlib.h>
19316 FILE *f = fopen ("conftest.val", "w");
19319 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19321 long i = longval ();
19322 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19324 fprintf (f, "%ld\n", i);
19328 unsigned long i = ulongval ();
19329 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19331 fprintf (f, "%lu\n", i);
19333 exit (ferror (f) || fclose (f) != 0);
19339 rm -f conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
19350 pgac_cv_alignof_int=`cat conftest.val`
19352 echo "$as_me: program exited with status $ac_status" >&5
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 ( exit $ac_status )
19357 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19358 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19359 { (exit 1); exit 1; }; }
19361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19366 pgac_cv_alignof_int=0
19369 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19370 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19371 cat >>confdefs.h <<_ACEOF
19372 #define ALIGNOF_INT $pgac_cv_alignof_int
19376 echo "$as_me:$LINENO: checking for long" >&5
19377 echo $ECHO_N "checking for long... $ECHO_C" >&6
19378 if test "${ac_cv_type_long+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 cat >conftest.$ac_ext <<_ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 $ac_includes_default
19399 rm -f conftest.$ac_objext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19401 (eval $ac_compile) 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag"
19409 || test ! -s conftest.err'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest.$ac_objext'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421 ac_cv_type_long=yes
19423 echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19430 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19431 echo "${ECHO_T}$ac_cv_type_long" >&6
19433 echo "$as_me:$LINENO: checking alignment of long" >&5
19434 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19435 if test "${pgac_cv_alignof_long+set}" = set; then
19436 echo $ECHO_N "(cached) $ECHO_C" >&6
19438 if test "$ac_cv_type_long" = yes; then
19439 if test "$cross_compiling" = yes; then
19440 # Depending upon the size, compute the lo and hi bounds.
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 $ac_includes_default
19448 struct { char filler; long field; } pgac_struct;
19452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19459 rm -f conftest.$ac_objext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19461 (eval $ac_compile) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest.$ac_objext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19483 cat >conftest.$ac_ext <<_ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19489 $ac_includes_default
19490 struct { char filler; long field; } pgac_struct;
19494 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19501 rm -f conftest.$ac_objext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503 (eval $ac_compile) 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_c_werror_flag"
19511 || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest.$ac_objext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_hi=$ac_mid; break
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 ac_lo=`expr $ac_mid + 1`
19529 if test $ac_lo -le $ac_mid; then
19533 ac_mid=`expr 2 '*' $ac_mid + 1`
19535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538 echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 cat >conftest.$ac_ext <<_ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 $ac_includes_default
19548 struct { char filler; long field; } pgac_struct;
19552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19559 rm -f conftest.$ac_objext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19563 grep -v '^ *+' conftest.er1 >conftest.err
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
19568 { ac_try='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 $ac_includes_default
19590 struct { char filler; long field; } pgac_struct;
19594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19601 rm -f conftest.$ac_objext
19602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19603 (eval $ac_compile) 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag"
19611 || test ! -s conftest.err'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; } &&
19617 { ac_try='test -s conftest.$ac_objext'
19618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619 (eval $ac_try) 2>&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; }; then
19623 ac_lo=$ac_mid; break
19625 echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 ac_hi=`expr '(' $ac_mid ')' - 1`
19629 if test $ac_mid -le $ac_hi; then
19633 ac_mid=`expr 2 '*' $ac_mid`
19635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19646 # Binary search between lo and hi bounds.
19647 while test "x$ac_lo" != "x$ac_hi"; do
19648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 $ac_includes_default
19656 struct { char filler; long field; } pgac_struct;
19660 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19667 rm -f conftest.$ac_objext
19668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19669 (eval $ac_compile) 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag"
19677 || test ! -s conftest.err'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; } &&
19683 { ac_try='test -s conftest.$ac_objext'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; }; then
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 ac_lo=`expr '(' $ac_mid ')' + 1`
19696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 ?*) pgac_cv_alignof_long=$ac_lo;;
19700 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19701 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19702 { (exit 1); exit 1; }; } ;;
19705 if test "$cross_compiling" = yes; then
19706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19707 See \`config.log' for more details." >&5
19708 echo "$as_me: error: cannot run test program while cross compiling
19709 See \`config.log' for more details." >&2;}
19710 { (exit 1); exit 1; }; }
19712 cat >conftest.$ac_ext <<_ACEOF
19715 cat confdefs.h >>conftest.$ac_ext
19716 cat >>conftest.$ac_ext <<_ACEOF
19717 /* end confdefs.h. */
19718 $ac_includes_default
19719 struct { char filler; long field; } pgac_struct;
19720 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19721 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19723 #include <stdlib.h>
19728 FILE *f = fopen ("conftest.val", "w");
19731 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19733 long i = longval ();
19734 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19736 fprintf (f, "%ld\n", i);
19740 unsigned long i = ulongval ();
19741 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19743 fprintf (f, "%lu\n", i);
19745 exit (ferror (f) || fclose (f) != 0);
19751 rm -f conftest$ac_exeext
19752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19753 (eval $ac_link) 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 pgac_cv_alignof_long=`cat conftest.val`
19764 echo "$as_me: program exited with status $ac_status" >&5
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19768 ( exit $ac_status )
19769 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19770 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19771 { (exit 1); exit 1; }; }
19773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19778 pgac_cv_alignof_long=0
19781 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19782 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19783 cat >>confdefs.h <<_ACEOF
19784 #define ALIGNOF_LONG $pgac_cv_alignof_long
19788 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19789 echo "$as_me:$LINENO: checking for long long int" >&5
19790 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19791 if test "${ac_cv_type_long_long_int+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19804 if ((long long int *) 0)
19806 if (sizeof (long long int))
19812 rm -f conftest.$ac_objext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814 (eval $ac_compile) 2>conftest.er1
19816 grep -v '^ *+' conftest.er1 >conftest.err
19818 cat conftest.err >&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
19821 { ac_try='test -z "$ac_c_werror_flag"
19822 || test ! -s conftest.err'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; } &&
19828 { ac_try='test -s conftest.$ac_objext'
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 ac_cv_type_long_long_int=yes
19836 echo "$as_me: failed program was:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_type_long_long_int=no
19841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19843 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19844 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19846 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19847 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19848 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 if test "$ac_cv_type_long_long_int" = yes; then
19852 if test "$cross_compiling" = yes; then
19853 # Depending upon the size, compute the lo and hi bounds.
19854 cat >conftest.$ac_ext <<_ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 $ac_includes_default
19861 struct { char filler; long long int field; } pgac_struct;
19865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19872 rm -f conftest.$ac_objext
19873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19874 (eval $ac_compile) 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
19881 { ac_try='test -z "$ac_c_werror_flag"
19882 || test ! -s conftest.err'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19902 $ac_includes_default
19903 struct { char filler; long long int field; } pgac_struct;
19907 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19914 rm -f conftest.$ac_objext
19915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19918 grep -v '^ *+' conftest.er1 >conftest.err
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -z "$ac_c_werror_flag"
19924 || test ! -s conftest.err'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; } &&
19930 { ac_try='test -s conftest.$ac_objext'
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; }; then
19936 ac_hi=$ac_mid; break
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19941 ac_lo=`expr $ac_mid + 1`
19942 if test $ac_lo -le $ac_mid; then
19946 ac_mid=`expr 2 '*' $ac_mid + 1`
19948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 cat >conftest.$ac_ext <<_ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19961 struct { char filler; long long int field; } pgac_struct;
19965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19972 rm -f conftest.$ac_objext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } &&
19981 { ac_try='test -z "$ac_c_werror_flag"
19982 || test ! -s conftest.err'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; } &&
19988 { ac_try='test -s conftest.$ac_objext'
19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990 (eval $ac_try) 2>&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); }; }; then
19996 cat >conftest.$ac_ext <<_ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 $ac_includes_default
20003 struct { char filler; long long int field; } pgac_struct;
20007 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016 (eval $ac_compile) 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag"
20024 || test ! -s conftest.err'
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); }; } &&
20030 { ac_try='test -s conftest.$ac_objext'
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_lo=$ac_mid; break
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_hi=`expr '(' $ac_mid ')' - 1`
20042 if test $ac_mid -le $ac_hi; then
20046 ac_mid=`expr 2 '*' $ac_mid`
20048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 # Binary search between lo and hi bounds.
20060 while test "x$ac_lo" != "x$ac_hi"; do
20061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20069 struct { char filler; long long int field; } pgac_struct;
20073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20080 rm -f conftest.$ac_objext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20082 (eval $ac_compile) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag"
20090 || test ! -s conftest.err'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest.$ac_objext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_lo=`expr '(' $ac_mid ')' + 1`
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20112 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20113 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20114 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20115 { (exit 1); exit 1; }; } ;;
20118 if test "$cross_compiling" = yes; then
20119 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20120 See \`config.log' for more details." >&5
20121 echo "$as_me: error: cannot run test program while cross compiling
20122 See \`config.log' for more details." >&2;}
20123 { (exit 1); exit 1; }; }
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 struct { char filler; long long int field; } pgac_struct;
20133 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20134 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20136 #include <stdlib.h>
20141 FILE *f = fopen ("conftest.val", "w");
20144 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20146 long i = longval ();
20147 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20149 fprintf (f, "%ld\n", i);
20153 unsigned long i = ulongval ();
20154 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20156 fprintf (f, "%lu\n", i);
20158 exit (ferror (f) || fclose (f) != 0);
20164 rm -f conftest$ac_exeext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20166 (eval $ac_link) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 pgac_cv_alignof_long_long_int=`cat conftest.val`
20177 echo "$as_me: program exited with status $ac_status" >&5
20178 echo "$as_me: failed program was:" >&5
20179 sed 's/^/| /' conftest.$ac_ext >&5
20181 ( exit $ac_status )
20182 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20183 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20184 { (exit 1); exit 1; }; }
20186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20191 pgac_cv_alignof_long_long_int=0
20194 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20195 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20196 cat >>confdefs.h <<_ACEOF
20197 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20202 echo "$as_me:$LINENO: checking for double" >&5
20203 echo $ECHO_N "checking for double... $ECHO_C" >&6
20204 if test "${ac_cv_type_double+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20219 if (sizeof (double))
20225 rm -f conftest.$ac_objext
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>conftest.er1
20229 grep -v '^ *+' conftest.er1 >conftest.err
20231 cat conftest.err >&5
20232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } &&
20234 { ac_try='test -z "$ac_c_werror_flag"
20235 || test ! -s conftest.err'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest.$ac_objext'
20242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243 (eval $ac_try) 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); }; }; then
20247 ac_cv_type_double=yes
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 ac_cv_type_double=no
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20257 echo "${ECHO_T}$ac_cv_type_double" >&6
20259 echo "$as_me:$LINENO: checking alignment of double" >&5
20260 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20261 if test "${pgac_cv_alignof_double+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20264 if test "$ac_cv_type_double" = yes; then
20265 if test "$cross_compiling" = yes; then
20266 # Depending upon the size, compute the lo and hi bounds.
20267 cat >conftest.$ac_ext <<_ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 struct { char filler; double field; } pgac_struct;
20278 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try='test -z "$ac_c_werror_flag"
20295 || test ! -s conftest.err'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20309 cat >conftest.$ac_ext <<_ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 $ac_includes_default
20316 struct { char filler; double field; } pgac_struct;
20320 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329 (eval $ac_compile) 2>conftest.er1
20331 grep -v '^ *+' conftest.er1 >conftest.err
20333 cat conftest.err >&5
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_hi=$ac_mid; break
20351 echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20354 ac_lo=`expr $ac_mid + 1`
20355 if test $ac_lo -le $ac_mid; then
20359 ac_mid=`expr 2 '*' $ac_mid + 1`
20361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 cat >conftest.$ac_ext <<_ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 $ac_includes_default
20374 struct { char filler; double field; } pgac_struct;
20378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20385 rm -f conftest.$ac_objext
20386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20387 (eval $ac_compile) 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); } &&
20394 { ac_try='test -z "$ac_c_werror_flag"
20395 || test ! -s conftest.err'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; } &&
20401 { ac_try='test -s conftest.$ac_objext'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 struct { char filler; double field; } pgac_struct;
20420 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20427 rm -f conftest.$ac_objext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20429 (eval $ac_compile) 2>conftest.er1
20431 grep -v '^ *+' conftest.er1 >conftest.err
20433 cat conftest.err >&5
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); } &&
20436 { ac_try='test -z "$ac_c_werror_flag"
20437 || test ! -s conftest.err'
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); }; } &&
20443 { ac_try='test -s conftest.$ac_objext'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; }; then
20449 ac_lo=$ac_mid; break
20451 echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20454 ac_hi=`expr '(' $ac_mid ')' - 1`
20455 if test $ac_mid -le $ac_hi; then
20459 ac_mid=`expr 2 '*' $ac_mid`
20461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20472 # Binary search between lo and hi bounds.
20473 while test "x$ac_lo" != "x$ac_hi"; do
20474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 $ac_includes_default
20482 struct { char filler; double field; } pgac_struct;
20486 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20493 rm -f conftest.$ac_objext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20495 (eval $ac_compile) 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } &&
20502 { ac_try='test -z "$ac_c_werror_flag"
20503 || test ! -s conftest.err'
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; } &&
20509 { ac_try='test -s conftest.$ac_objext'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; }; then
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_lo=`expr '(' $ac_mid ')' + 1`
20522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20525 ?*) pgac_cv_alignof_double=$ac_lo;;
20526 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20527 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20528 { (exit 1); exit 1; }; } ;;
20531 if test "$cross_compiling" = yes; then
20532 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20533 See \`config.log' for more details." >&5
20534 echo "$as_me: error: cannot run test program while cross compiling
20535 See \`config.log' for more details." >&2;}
20536 { (exit 1); exit 1; }; }
20538 cat >conftest.$ac_ext <<_ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h. */
20544 $ac_includes_default
20545 struct { char filler; double field; } pgac_struct;
20546 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20547 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20549 #include <stdlib.h>
20554 FILE *f = fopen ("conftest.val", "w");
20557 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20559 long i = longval ();
20560 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20562 fprintf (f, "%ld\n", i);
20566 unsigned long i = ulongval ();
20567 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20569 fprintf (f, "%lu\n", i);
20571 exit (ferror (f) || fclose (f) != 0);
20577 rm -f conftest$ac_exeext
20578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20579 (eval $ac_link) 2>&5
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 pgac_cv_alignof_double=`cat conftest.val`
20590 echo "$as_me: program exited with status $ac_status" >&5
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ( exit $ac_status )
20595 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20596 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20597 { (exit 1); exit 1; }; }
20599 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20604 pgac_cv_alignof_double=0
20607 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20608 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20609 cat >>confdefs.h <<_ACEOF
20610 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20615 # Compute maximum alignment of any basic type.
20616 # We assume long's alignment is at least as strong as char, short, or int;
20617 # but we must check long long (if it exists) and double.
20619 MAX_ALIGNOF=$pgac_cv_alignof_long
20620 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20621 MAX_ALIGNOF=$pgac_cv_alignof_double
20623 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20624 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20627 cat >>confdefs.h <<_ACEOF
20628 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20633 # Some platforms predefine the types int8, int16, etc. Only check
20634 # a (hopefully) representative subset.
20635 echo "$as_me:$LINENO: checking for int8" >&5
20636 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20637 if test "${ac_cv_type_int8+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20647 #ifdef HAVE_SUPPORTDEFS_H
20648 #include <SupportDefs.h>
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_c_werror_flag"
20672 || test ! -s conftest.err'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20684 ac_cv_type_int8=yes
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20694 echo "${ECHO_T}$ac_cv_type_int8" >&6
20695 if test $ac_cv_type_int8 = yes; then
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_INT8 1
20703 echo "$as_me:$LINENO: checking for uint8" >&5
20704 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20705 if test "${ac_cv_type_uint8+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 #ifdef HAVE_SUPPORTDEFS_H
20716 #include <SupportDefs.h>
20724 if (sizeof (uint8))
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_type_uint8=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_type_uint8=no
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20762 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20763 if test $ac_cv_type_uint8 = yes; then
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_UINT8 1
20771 echo "$as_me:$LINENO: checking for int64" >&5
20772 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20773 if test "${ac_cv_type_int64+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20783 #ifdef HAVE_SUPPORTDEFS_H
20784 #include <SupportDefs.h>
20792 if (sizeof (int64))
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_cv_type_int64=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_cv_type_int64=no
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20830 echo "${ECHO_T}$ac_cv_type_int64" >&6
20831 if test $ac_cv_type_int64 = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_INT64 1
20839 echo "$as_me:$LINENO: checking for uint64" >&5
20840 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20841 if test "${ac_cv_type_uint64+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 #ifdef HAVE_SUPPORTDEFS_H
20852 #include <SupportDefs.h>
20860 if (sizeof (uint64))
20866 rm -f conftest.$ac_objext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20868 (eval $ac_compile) 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_c_werror_flag"
20876 || test ! -s conftest.err'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest.$ac_objext'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 ac_cv_type_uint64=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_cv_type_uint64=no
20895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20897 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20898 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20899 if test $ac_cv_type_uint64 = yes; then
20901 cat >>confdefs.h <<_ACEOF
20902 #define HAVE_UINT64 1
20909 # We also check for sig_atomic_t, which *should* be defined per ANSI
20910 # C, but is missing on some old platforms.
20911 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20912 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20913 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20916 cat >conftest.$ac_ext <<_ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h. */
20922 #include <signal.h>
20927 if ((sig_atomic_t *) 0)
20929 if (sizeof (sig_atomic_t))
20935 rm -f conftest.$ac_objext
20936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20937 (eval $ac_compile) 2>conftest.er1
20939 grep -v '^ *+' conftest.er1 >conftest.err
20941 cat conftest.err >&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } &&
20944 { ac_try='test -z "$ac_c_werror_flag"
20945 || test ! -s conftest.err'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; } &&
20951 { ac_try='test -s conftest.$ac_objext'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 ac_cv_type_sig_atomic_t=yes
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 ac_cv_type_sig_atomic_t=no
20964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20967 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20968 if test $ac_cv_type_sig_atomic_t = yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_SIG_ATOMIC_T 1
20979 if test x"$template" != x"win32"
20981 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20982 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20983 if test "${pgac_cv_func_posix_signals+set}" = set; then
20984 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <signal.h>
20997 struct sigaction act, oact;
20998 sigemptyset(&act.sa_mask);
20999 act.sa_flags = SA_RESTART;
21000 sigaction(0, &act, &oact);
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21007 (eval $ac_link) 2>conftest.er1
21009 grep -v '^ *+' conftest.er1 >conftest.err
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } &&
21014 { ac_try='test -z "$ac_c_werror_flag"
21015 || test ! -s conftest.err'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; } &&
21021 { ac_try='test -s conftest$ac_exeext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 pgac_cv_func_posix_signals=yes
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 pgac_cv_func_posix_signals=no
21034 rm -f conftest.err conftest.$ac_objext \
21035 conftest$ac_exeext conftest.$ac_ext
21037 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
21038 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
21039 if test x"$pgac_cv_func_posix_signals" = xyes ; then
21041 cat >>confdefs.h <<\_ACEOF
21042 #define HAVE_POSIX_SIGNALS
21046 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
21048 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
21049 { { echo "$as_me:$LINENO: error:
21050 *** Thread-safety requires POSIX signals, which are not supported by your
21051 *** operating system.
21053 echo "$as_me: error:
21054 *** Thread-safety requires POSIX signals, which are not supported by your
21055 *** operating system.
21057 { (exit 1); exit 1; }; }
21061 if test $ac_cv_func_fseeko = yes; then
21062 # Check whether --enable-largefile or --disable-largefile was given.
21063 if test "${enable_largefile+set}" = set; then
21064 enableval="$enable_largefile"
21067 if test "$enable_largefile" != no; then
21069 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21070 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21071 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 ac_cv_sys_largefile_CC=no
21075 if test "$GCC" != yes; then
21078 # IRIX 6.2 and later do not support large files by default,
21079 # so use the C compiler's -n32 option if that helps.
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 #include <sys/types.h>
21087 /* Check that off_t can represent 2**63 - 1 correctly.
21088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21089 since some C++ compilers masquerading as C compilers
21090 incorrectly reject 9223372036854775807. */
21091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21093 && LARGE_OFF_T % 2147483647 == 1)
21103 rm -f conftest.$ac_objext
21104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21105 (eval $ac_compile) 2>conftest.er1
21107 grep -v '^ *+' conftest.er1 >conftest.err
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } &&
21112 { ac_try='test -z "$ac_c_werror_flag"
21113 || test ! -s conftest.err'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; } &&
21119 { ac_try='test -s conftest.$ac_objext'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; }; then
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21131 rm -f conftest.err conftest.$ac_objext
21133 rm -f conftest.$ac_objext
21134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21135 (eval $ac_compile) 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } &&
21142 { ac_try='test -z "$ac_c_werror_flag"
21143 || test ! -s conftest.err'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21155 ac_cv_sys_largefile_CC=' -n32'; break
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21161 rm -f conftest.err conftest.$ac_objext
21165 rm -f conftest.$ac_ext
21168 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21169 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21170 if test "$ac_cv_sys_largefile_CC" != no; then
21171 CC=$CC$ac_cv_sys_largefile_CC
21174 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21175 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21176 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 ac_cv_sys_file_offset_bits=no
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <sys/types.h>
21188 /* Check that off_t can represent 2**63 - 1 correctly.
21189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21190 since some C++ compilers masquerading as C compilers
21191 incorrectly reject 9223372036854775807. */
21192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21194 && LARGE_OFF_T % 2147483647 == 1)
21204 rm -f conftest.$ac_objext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21206 (eval $ac_compile) 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
21213 { ac_try='test -z "$ac_c_werror_flag"
21214 || test ! -s conftest.err'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest.$ac_objext'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 #define _FILE_OFFSET_BITS 64
21240 #include <sys/types.h>
21241 /* Check that off_t can represent 2**63 - 1 correctly.
21242 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21243 since some C++ compilers masquerading as C compilers
21244 incorrectly reject 9223372036854775807. */
21245 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21246 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21247 && LARGE_OFF_T % 2147483647 == 1)
21257 rm -f conftest.$ac_objext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21259 (eval $ac_compile) 2>conftest.er1
21261 grep -v '^ *+' conftest.er1 >conftest.err
21263 cat conftest.err >&5
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
21266 { ac_try='test -z "$ac_c_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
21274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
21279 ac_cv_sys_file_offset_bits=64; break
21281 echo "$as_me: failed program was:" >&5
21282 sed 's/^/| /' conftest.$ac_ext >&5
21285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21289 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21290 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21291 if test "$ac_cv_sys_file_offset_bits" != no; then
21293 cat >>confdefs.h <<_ACEOF
21294 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21299 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21300 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21301 if test "${ac_cv_sys_large_files+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21305 ac_cv_sys_large_files=no
21306 cat >conftest.$ac_ext <<_ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <sys/types.h>
21313 /* Check that off_t can represent 2**63 - 1 correctly.
21314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21315 since some C++ compilers masquerading as C compilers
21316 incorrectly reject 9223372036854775807. */
21317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21319 && LARGE_OFF_T % 2147483647 == 1)
21329 rm -f conftest.$ac_objext
21330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21331 (eval $ac_compile) 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } &&
21338 { ac_try='test -z "$ac_c_werror_flag"
21339 || test ! -s conftest.err'
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest.$ac_objext'
21346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21347 (eval $ac_try) 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; }; then
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21358 cat >conftest.$ac_ext <<_ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 #define _LARGE_FILES 1
21365 #include <sys/types.h>
21366 /* Check that off_t can represent 2**63 - 1 correctly.
21367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21368 since some C++ compilers masquerading as C compilers
21369 incorrectly reject 9223372036854775807. */
21370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21372 && LARGE_OFF_T % 2147483647 == 1)
21382 rm -f conftest.$ac_objext
21383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21384 (eval $ac_compile) 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -z "$ac_c_werror_flag"
21392 || test ! -s conftest.err'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_cv_sys_large_files=1; break
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21414 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21415 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21416 if test "$ac_cv_sys_large_files" != no; then
21418 cat >>confdefs.h <<_ACEOF
21419 #define _LARGE_FILES $ac_cv_sys_large_files
21428 # SunOS doesn't handle negative byte comparisons properly with +/- return
21429 echo "$as_me:$LINENO: checking for working memcmp" >&5
21430 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21431 if test "${ac_cv_func_memcmp_working+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 if test "$cross_compiling" = yes; then
21435 ac_cv_func_memcmp_working=no
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21448 /* Some versions of memcmp are not 8-bit clean. */
21449 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21450 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21453 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21454 or more and with at least one buffer not starting on a 4-byte boundary.
21455 William Lewis provided this test program. */
21460 for (i = 0; i < 4; i++)
21464 strcpy (a, "--------01111111");
21465 strcpy (b, "--------10000000");
21466 if (memcmp (a, b, 16) >= 0)
21476 rm -f conftest$ac_exeext
21477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21478 (eval $ac_link) 2>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_func_memcmp_working=yes
21489 echo "$as_me: program exited with status $ac_status" >&5
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21493 ( exit $ac_status )
21494 ac_cv_func_memcmp_working=no
21496 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21499 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21500 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21501 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21502 "memcmp.$ac_objext" | \
21503 *" memcmp.$ac_objext" | \
21504 "memcmp.$ac_objext "* | \
21505 *" memcmp.$ac_objext "* ) ;;
21506 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21512 # Select semaphore implementation type.
21513 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21515 cat >>confdefs.h <<\_ACEOF
21516 #define USE_NAMED_POSIX_SEMAPHORES 1
21519 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21521 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21523 cat >>confdefs.h <<\_ACEOF
21524 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21527 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21530 cat >>confdefs.h <<\_ACEOF
21531 #define USE_SYSV_SEMAPHORES 1
21534 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21539 # Select shared-memory implementation type.
21541 cat >>confdefs.h <<\_ACEOF
21542 #define USE_SYSV_SHARED_MEMORY 1
21545 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21548 # If not set in template file, set bytes to use libc memset()
21549 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21550 MEMSET_LOOP_LIMIT=1024
21553 cat >>confdefs.h <<_ACEOF
21554 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21559 if test "$enable_nls" = yes ; then
21561 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21562 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21563 if test "${ac_cv_search_gettext+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 ac_func_search_save_LIBS=$LIBS
21567 ac_cv_search_gettext=no
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21575 /* Override any gcc2 internal prototype to avoid an error. */
21579 /* We use char because int might match the return type of a gcc2
21580 builtin and then its argument prototype would still apply. */
21590 rm -f conftest.$ac_objext conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592 (eval $ac_link) 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } &&
21599 { ac_try='test -z "$ac_c_werror_flag"
21600 || test ! -s conftest.err'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest$ac_exeext'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ac_cv_search_gettext="none required"
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21618 rm -f conftest.err conftest.$ac_objext \
21619 conftest$ac_exeext conftest.$ac_ext
21620 if test "$ac_cv_search_gettext" = no; then
21621 for ac_lib in intl; do
21622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21630 /* Override any gcc2 internal prototype to avoid an error. */
21634 /* We use char because int might match the return type of a gcc2
21635 builtin and then its argument prototype would still apply. */
21645 rm -f conftest.$ac_objext conftest$ac_exeext
21646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21647 (eval $ac_link) 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } &&
21654 { ac_try='test -z "$ac_c_werror_flag"
21655 || test ! -s conftest.err'
21656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657 (eval $ac_try) 2>&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); }; } &&
21661 { ac_try='test -s conftest$ac_exeext'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_search_gettext="-l$ac_lib"
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21674 rm -f conftest.err conftest.$ac_objext \
21675 conftest$ac_exeext conftest.$ac_ext
21678 LIBS=$ac_func_search_save_LIBS
21680 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21681 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21682 if test "$ac_cv_search_gettext" != no; then
21683 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21686 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21687 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21688 { (exit 1); exit 1; }; }
21691 if test "${ac_cv_header_libintl_h+set}" = set; then
21692 echo "$as_me:$LINENO: checking for libintl.h" >&5
21693 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21694 if test "${ac_cv_header_libintl_h+set}" = set; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21697 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21698 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21700 # Is the header compilable?
21701 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21702 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21703 cat >conftest.$ac_ext <<_ACEOF
21706 cat confdefs.h >>conftest.$ac_ext
21707 cat >>conftest.$ac_ext <<_ACEOF
21708 /* end confdefs.h. */
21709 $ac_includes_default
21710 #include <libintl.h>
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21716 grep -v '^ *+' conftest.er1 >conftest.err
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ac_header_compiler=yes
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_header_compiler=no
21741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21743 echo "${ECHO_T}$ac_header_compiler" >&6
21745 # Is the header present?
21746 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21747 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21748 cat >conftest.$ac_ext <<_ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h. */
21754 #include <libintl.h>
21756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21759 grep -v '^ *+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } >/dev/null; then
21764 if test -s conftest.err; then
21765 ac_cpp_err=$ac_c_preproc_warn_flag
21766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21773 if test -z "$ac_cpp_err"; then
21774 ac_header_preproc=yes
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21779 ac_header_preproc=no
21781 rm -f conftest.err conftest.$ac_ext
21782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21783 echo "${ECHO_T}$ac_header_preproc" >&6
21785 # So? What about this header?
21786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21788 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21789 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21791 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21792 ac_header_preproc=yes
21795 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21796 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21798 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21799 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21800 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21802 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21804 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21806 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21809 ## ---------------------------------------- ##
21810 ## Report this to pgsql-bugs@postgresql.org ##
21811 ## ---------------------------------------- ##
21814 sed "s/^/$as_me: WARNING: /" >&2
21817 echo "$as_me:$LINENO: checking for libintl.h" >&5
21818 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21819 if test "${ac_cv_header_libintl_h+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 ac_cv_header_libintl_h=$ac_header_preproc
21824 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21825 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21828 if test $ac_cv_header_libintl_h = yes; then
21831 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21832 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21833 { (exit 1); exit 1; }; }
21837 for ac_prog in msgfmt
21839 # Extract the first word of "$ac_prog", so it can be a program name with args.
21840 set dummy $ac_prog; ac_word=$2
21841 echo "$as_me:$LINENO: checking for $ac_word" >&5
21842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21843 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21846 if test -n "$MSGFMT"; then
21847 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21850 for as_dir in $PATH
21853 test -z "$as_dir" && as_dir=.
21854 for ac_exec_ext in '' $ac_executable_extensions; do
21855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21856 ac_cv_prog_MSGFMT="$ac_prog"
21857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21865 MSGFMT=$ac_cv_prog_MSGFMT
21866 if test -n "$MSGFMT"; then
21867 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21868 echo "${ECHO_T}$MSGFMT" >&6
21870 echo "$as_me:$LINENO: result: no" >&5
21871 echo "${ECHO_T}no" >&6
21874 test -n "$MSGFMT" && break
21877 if test -z "$MSGFMT"; then
21878 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21879 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21880 { (exit 1); exit 1; }; }
21882 for ac_prog in msgmerge
21884 # Extract the first word of "$ac_prog", so it can be a program name with args.
21885 set dummy $ac_prog; ac_word=$2
21886 echo "$as_me:$LINENO: checking for $ac_word" >&5
21887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21888 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21889 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 if test -n "$MSGMERGE"; then
21892 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895 for as_dir in $PATH
21898 test -z "$as_dir" && as_dir=.
21899 for ac_exec_ext in '' $ac_executable_extensions; do
21900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21901 ac_cv_prog_MSGMERGE="$ac_prog"
21902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21910 MSGMERGE=$ac_cv_prog_MSGMERGE
21911 if test -n "$MSGMERGE"; then
21912 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21913 echo "${ECHO_T}$MSGMERGE" >&6
21915 echo "$as_me:$LINENO: result: no" >&5
21916 echo "${ECHO_T}no" >&6
21919 test -n "$MSGMERGE" && break
21922 for ac_prog in xgettext
21924 # Extract the first word of "$ac_prog", so it can be a program name with args.
21925 set dummy $ac_prog; ac_word=$2
21926 echo "$as_me:$LINENO: checking for $ac_word" >&5
21927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21928 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21929 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 if test -n "$XGETTEXT"; then
21932 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21935 for as_dir in $PATH
21938 test -z "$as_dir" && as_dir=.
21939 for ac_exec_ext in '' $ac_executable_extensions; do
21940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21941 ac_cv_prog_XGETTEXT="$ac_prog"
21942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21950 XGETTEXT=$ac_cv_prog_XGETTEXT
21951 if test -n "$XGETTEXT"; then
21952 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21953 echo "${ECHO_T}$XGETTEXT" >&6
21955 echo "$as_me:$LINENO: result: no" >&5
21956 echo "${ECHO_T}no" >&6
21959 test -n "$XGETTEXT" && break
21963 # Note: share/locale is always the default, independent of $datadir
21964 localedir='${prefix}/share/locale'
21965 if test x"$prefix" = x"NONE"; then
21966 exp_localedir="$ac_default_prefix/share/locale"
21968 exp_localedir="$prefix/share/locale"
21973 cat >>confdefs.h <<_ACEOF
21974 #define LOCALEDIR "$exp_localedir"
21980 # Check for Tcl configuration script tclConfig.sh
21981 if test "$with_tcl" = yes; then
21982 for ac_prog in tclsh tcl
21984 # Extract the first word of "$ac_prog", so it can be a program name with args.
21985 set dummy $ac_prog; ac_word=$2
21986 echo "$as_me:$LINENO: checking for $ac_word" >&5
21987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21988 if test "${ac_cv_path_TCLSH+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21993 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21997 for as_dir in $PATH
22000 test -z "$as_dir" && as_dir=.
22001 for ac_exec_ext in '' $ac_executable_extensions; do
22002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22003 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
22004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22013 TCLSH=$ac_cv_path_TCLSH
22015 if test -n "$TCLSH"; then
22016 echo "$as_me:$LINENO: result: $TCLSH" >&5
22017 echo "${ECHO_T}$TCLSH" >&6
22019 echo "$as_me:$LINENO: result: no" >&5
22020 echo "${ECHO_T}no" >&6
22023 test -n "$TCLSH" && break
22026 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
22027 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
22028 # Let user override test
22029 if test -z "$TCL_CONFIG_SH"; then
22030 pgac_test_dirs="$with_tclconfig"
22032 set X $pgac_test_dirs; shift
22033 if test $# -eq 0; then
22034 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
22035 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
22036 { (exit 1); exit 1; }; }
22037 set X `echo 'puts $auto_path' | $TCLSH`; shift
22041 if test -r "$pgac_dir/tclConfig.sh"; then
22042 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
22048 if test -z "$TCL_CONFIG_SH"; then
22049 echo "$as_me:$LINENO: result: no" >&5
22050 echo "${ECHO_T}no" >&6
22051 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
22052 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
22053 { (exit 1); exit 1; }; }
22055 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
22056 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
22062 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
22063 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
22064 eval TCL_LIBS=\"$TCL_LIBS\"
22065 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
22066 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22068 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22069 ac_save_CPPFLAGS=$CPPFLAGS
22070 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22071 if test "${ac_cv_header_tcl_h+set}" = set; then
22072 echo "$as_me:$LINENO: checking for tcl.h" >&5
22073 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22074 if test "${ac_cv_header_tcl_h+set}" = set; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22078 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22080 # Is the header compilable?
22081 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22082 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 $ac_includes_default
22092 rm -f conftest.$ac_objext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22094 (eval $ac_compile) 2>conftest.er1
22096 grep -v '^ *+' conftest.er1 >conftest.err
22098 cat conftest.err >&5
22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_c_werror_flag"
22102 || test ! -s conftest.err'
22103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104 (eval $ac_try) 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; } &&
22108 { ac_try='test -s conftest.$ac_objext'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; }; then
22114 ac_header_compiler=yes
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ac_header_compiler=no
22121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22123 echo "${ECHO_T}$ac_header_compiler" >&6
22125 # Is the header present?
22126 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22127 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22139 grep -v '^ *+' conftest.er1 >conftest.err
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); } >/dev/null; then
22144 if test -s conftest.err; then
22145 ac_cpp_err=$ac_c_preproc_warn_flag
22146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22153 if test -z "$ac_cpp_err"; then
22154 ac_header_preproc=yes
22156 echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 ac_header_preproc=no
22161 rm -f conftest.err conftest.$ac_ext
22162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22163 echo "${ECHO_T}$ac_header_preproc" >&6
22165 # So? What about this header?
22166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22168 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22169 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22170 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22171 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22172 ac_header_preproc=yes
22175 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22176 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22178 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22180 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22182 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22184 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22186 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22189 ## ---------------------------------------- ##
22190 ## Report this to pgsql-bugs@postgresql.org ##
22191 ## ---------------------------------------- ##
22194 sed "s/^/$as_me: WARNING: /" >&2
22197 echo "$as_me:$LINENO: checking for tcl.h" >&5
22198 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22199 if test "${ac_cv_header_tcl_h+set}" = set; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 ac_cv_header_tcl_h=$ac_header_preproc
22204 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22205 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22208 if test $ac_cv_header_tcl_h = yes; then
22211 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22212 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22213 { (exit 1); exit 1; }; }
22217 CPPFLAGS=$ac_save_CPPFLAGS
22221 # Check for DocBook and tools
22223 for ac_prog in onsgmls nsgmls
22225 # Extract the first word of "$ac_prog", so it can be a program name with args.
22226 set dummy $ac_prog; ac_word=$2
22227 echo "$as_me:$LINENO: checking for $ac_word" >&5
22228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22229 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22230 echo $ECHO_N "(cached) $ECHO_C" >&6
22232 if test -n "$NSGMLS"; then
22233 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22236 for as_dir in $PATH
22239 test -z "$as_dir" && as_dir=.
22240 for ac_exec_ext in '' $ac_executable_extensions; do
22241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22242 ac_cv_prog_NSGMLS="$ac_prog"
22243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22251 NSGMLS=$ac_cv_prog_NSGMLS
22252 if test -n "$NSGMLS"; then
22253 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22254 echo "${ECHO_T}$NSGMLS" >&6
22256 echo "$as_me:$LINENO: result: no" >&5
22257 echo "${ECHO_T}no" >&6
22260 test -n "$NSGMLS" && break
22263 for ac_prog in openjade jade
22265 # Extract the first word of "$ac_prog", so it can be a program name with args.
22266 set dummy $ac_prog; ac_word=$2
22267 echo "$as_me:$LINENO: checking for $ac_word" >&5
22268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22269 if test "${ac_cv_prog_JADE+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22272 if test -n "$JADE"; then
22273 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22276 for as_dir in $PATH
22279 test -z "$as_dir" && as_dir=.
22280 for ac_exec_ext in '' $ac_executable_extensions; do
22281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22282 ac_cv_prog_JADE="$ac_prog"
22283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22291 JADE=$ac_cv_prog_JADE
22292 if test -n "$JADE"; then
22293 echo "$as_me:$LINENO: result: $JADE" >&5
22294 echo "${ECHO_T}$JADE" >&6
22296 echo "$as_me:$LINENO: result: no" >&5
22297 echo "${ECHO_T}no" >&6
22300 test -n "$JADE" && break
22304 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22305 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22306 if test "${pgac_cv_check_docbook+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 cat >conftest.sgml <<EOF
22310 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22312 <title>test</title>
22314 <title>random</title>
22316 <title>testsect</title>
22323 pgac_cv_check_docbook=no
22325 if test -n "$NSGMLS"; then
22326 $NSGMLS -s conftest.sgml 1>&5 2>&1
22327 if test $? -eq 0; then
22328 pgac_cv_check_docbook=yes
22331 rm -f conftest.sgml
22333 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22334 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22336 have_docbook=$pgac_cv_check_docbook
22339 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22340 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22341 if test "${pgac_cv_path_stylesheets+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 if test -n "$DOCBOOKSTYLE"; then
22345 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22347 for pgac_prefix in /usr /usr/local /opt; do
22348 for pgac_infix in share lib; do
22349 for pgac_postfix in \
22350 sgml/stylesheets/nwalsh-modular \
22351 sgml/stylesheets/docbook \
22352 sgml/docbook-dsssl \
22353 sgml/docbook/dsssl/modular \
22354 sgml/docbook/stylesheet/dsssl/modular \
22355 sgml/docbook/dsssl-stylesheets
22357 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22358 if test -r "$pgac_candidate/html/docbook.dsl" \
22359 && test -r "$pgac_candidate/print/docbook.dsl"
22361 pgac_cv_path_stylesheets=$pgac_candidate
22370 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22372 if test -n "$DOCBOOKSTYLE"; then
22373 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22374 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22376 echo "$as_me:$LINENO: result: no" >&5
22377 echo "${ECHO_T}no" >&6
22379 if test -n "$DOCBOOKSTYLE"; then
22380 for ac_prog in collateindex.pl
22382 # Extract the first word of "$ac_prog", so it can be a program name with args.
22383 set dummy $ac_prog; ac_word=$2
22384 echo "$as_me:$LINENO: checking for $ac_word" >&5
22385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22386 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 case $COLLATEINDEX in
22391 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22395 for as_dir in $DOCBOOKSTYLE/bin $PATH
22398 test -z "$as_dir" && as_dir=.
22399 for ac_exec_ext in '' $ac_executable_extensions; do
22400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22401 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22411 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22413 if test -n "$COLLATEINDEX"; then
22414 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22415 echo "${ECHO_T}$COLLATEINDEX" >&6
22417 echo "$as_me:$LINENO: result: no" >&5
22418 echo "${ECHO_T}no" >&6
22421 test -n "$COLLATEINDEX" && break
22425 for ac_prog in collateindex.pl
22427 # Extract the first word of "$ac_prog", so it can be a program name with args.
22428 set dummy $ac_prog; ac_word=$2
22429 echo "$as_me:$LINENO: checking for $ac_word" >&5
22430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22431 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22434 case $COLLATEINDEX in
22436 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22440 for as_dir in $PATH
22443 test -z "$as_dir" && as_dir=.
22444 for ac_exec_ext in '' $ac_executable_extensions; do
22445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22446 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22456 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22458 if test -n "$COLLATEINDEX"; then
22459 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22460 echo "${ECHO_T}$COLLATEINDEX" >&6
22462 echo "$as_me:$LINENO: result: no" >&5
22463 echo "${ECHO_T}no" >&6
22466 test -n "$COLLATEINDEX" && break
22470 for ac_prog in sgmlspl
22472 # Extract the first word of "$ac_prog", so it can be a program name with args.
22473 set dummy $ac_prog; ac_word=$2
22474 echo "$as_me:$LINENO: checking for $ac_word" >&5
22475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22476 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 if test -n "$SGMLSPL"; then
22480 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22483 for as_dir in $PATH
22486 test -z "$as_dir" && as_dir=.
22487 for ac_exec_ext in '' $ac_executable_extensions; do
22488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22489 ac_cv_prog_SGMLSPL="$ac_prog"
22490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22498 SGMLSPL=$ac_cv_prog_SGMLSPL
22499 if test -n "$SGMLSPL"; then
22500 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22501 echo "${ECHO_T}$SGMLSPL" >&6
22503 echo "$as_me:$LINENO: result: no" >&5
22504 echo "${ECHO_T}no" >&6
22507 test -n "$SGMLSPL" && break
22513 # We have to run the thread test near the end so we have all our symbols
22514 # defined. Cross compiling throws a warning.
22516 if test "$enable_thread_safety_force" = yes; then
22517 if test x"$template" != x"win32"
22519 { echo "$as_me:$LINENO: WARNING:
22520 *** Skipping thread test program. --enable-thread-safety-force was used.
22521 *** Run the program in src/test/thread on the your machine and add
22522 proper locking function calls to your applications to guarantee thread
22525 echo "$as_me: WARNING:
22526 *** Skipping thread test program. --enable-thread-safety-force was used.
22527 *** Run the program in src/test/thread on the your machine and add
22528 proper locking function calls to your applications to guarantee thread
22532 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22533 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22535 elif test "$enable_thread_safety" = yes; then
22536 if test x"$template" != x"win32"
22538 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22539 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22544 LIBS="$LIBS $PTHREAD_LIBS"
22545 if test "$cross_compiling" = yes; then
22546 echo "$as_me:$LINENO: result: maybe" >&5
22547 echo "${ECHO_T}maybe" >&6
22548 { echo "$as_me:$LINENO: WARNING:
22549 *** Skipping thread test program because of cross-compile build.
22550 *** Run the program in src/test/thread on the target machine.
22552 echo "$as_me: WARNING:
22553 *** Skipping thread test program because of cross-compile build.
22554 *** Run the program in src/test/thread on the target machine.
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include "$srcdir/src/test/thread/thread_test.c"
22565 rm -f conftest$ac_exeext
22566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22567 (eval $ac_link) 2>&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572 (eval $ac_try) 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); }; }; then
22576 echo "$as_me:$LINENO: result: yes" >&5
22577 echo "${ECHO_T}yes" >&6
22579 echo "$as_me: program exited with status $ac_status" >&5
22580 echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 ( exit $ac_status )
22584 echo "$as_me:$LINENO: result: no" >&5
22585 echo "${ECHO_T}no" >&6
22586 { { echo "$as_me:$LINENO: error:
22587 *** Thread test program failed. Your platform is not thread-safe.
22588 *** Check the file 'config.log'for the exact reason.
22590 *** You can use the configure option --enable-thread-safety-force
22591 *** to force threads to be enabled. However, you must then run
22592 *** the program in src/test/thread and add locking function calls
22593 *** to your applications to guarantee thread safety.
22595 echo "$as_me: error:
22596 *** Thread test program failed. Your platform is not thread-safe.
22597 *** Check the file 'config.log'for the exact reason.
22599 *** You can use the configure option --enable-thread-safety-force
22600 *** to force threads to be enabled. However, you must then run
22601 *** the program in src/test/thread and add locking function calls
22602 *** to your applications to guarantee thread safety.
22604 { (exit 1); exit 1; }; }
22606 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22611 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22612 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22616 # prepare build tree if outside source tree
22617 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22618 # Note 2: /bin/pwd might be better than shell's built-in at getting
22619 # a symlink-free name.
22620 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22624 if test "$no_create" != yes; then
22625 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22626 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22627 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22628 || { { echo "$as_me:$LINENO: error: failed" >&5
22629 echo "$as_me: error: failed" >&2;}
22630 { (exit 1); exit 1; }; }
22631 echo "$as_me:$LINENO: result: done" >&5
22632 echo "${ECHO_T}done" >&6
22638 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22641 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}"
22644 if test "$PORTNAME" = "win32"; then
22645 ac_config_commands="$ac_config_commands check_win32_symlinks"
22649 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22652 cat >confcache <<\_ACEOF
22653 # This file is a shell script that caches the results of configure
22654 # tests run on this system so they can be shared between configure
22655 # scripts and configure runs, see configure's option --config-cache.
22656 # It is not useful on other systems. If it contains results you don't
22657 # want to keep, you may remove or edit it.
22659 # config.status only pays attention to the cache file if you give it
22660 # the --recheck option to rerun configure.
22662 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22663 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22664 # following values.
22668 # The following way of writing the cache mishandles newlines in values,
22669 # but we know of no workaround that is simple, portable, and efficient.
22670 # So, don't put newlines in cache variables' values.
22671 # Ultrix sh set writes to stderr and can't be redirected directly,
22672 # and sets the high bit in the cache file unless we assign to the vars.
22675 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22677 # `set' does not quote correctly, so add quotes (double-quote
22678 # substitution turns \\\\ into \\, and sed turns \\ into \).
22681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22684 # `set' quotes correctly as required by POSIX, so do not add quotes.
22686 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22695 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22697 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22698 if test -w $cache_file; then
22699 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22700 cat confcache >$cache_file
22702 echo "not updating unwritable cache $cache_file"
22707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22708 # Let make expand exec_prefix.
22709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22713 # trailing colons and then remove the whole line if VPATH becomes empty
22714 # (actually we leave an empty line to preserve line numbers).
22715 if test "x$srcdir" = x.; then
22716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22717 s/:*\$(srcdir):*/:/;
22718 s/:*\${srcdir}:*/:/;
22720 s/^\([^=]*=[ ]*\):*/\1/;
22726 DEFS=-DHAVE_CONFIG_H
22730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22731 # 1. Remove the extension, and $U if already installed.
22732 ac_i=`echo "$ac_i" |
22733 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22735 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22736 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22738 LIBOBJS=$ac_libobjs
22740 LTLIBOBJS=$ac_ltlibobjs
22744 : ${CONFIG_STATUS=./config.status}
22745 ac_clean_files_save=$ac_clean_files
22746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22747 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22748 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22749 cat >$CONFIG_STATUS <<_ACEOF
22751 # Generated by $as_me.
22752 # Run this file to recreate the current configuration.
22753 # Compiler output produced by configure, useful for debugging
22754 # configure, is in config.log if it exists.
22757 ac_cs_recheck=false
22759 SHELL=\${CONFIG_SHELL-$SHELL}
22762 cat >>$CONFIG_STATUS <<\_ACEOF
22763 ## --------------------- ##
22764 ## M4sh Initialization. ##
22765 ## --------------------- ##
22767 # Be Bourne compatible
22768 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22771 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22772 # is contrary to our usage. Disable this feature.
22773 alias -g '${1+"$@"}'='"$@"'
22774 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22777 DUALCASE=1; export DUALCASE # for MKS sh
22779 # Support unset when possible.
22780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22787 # Work around bugs in pre-3.0 UWIN ksh.
22788 $as_unset ENV MAIL MAILPATH
22795 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22796 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22797 LC_TELEPHONE LC_TIME
22799 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22800 eval $as_var=C; export $as_var
22806 # Required to use basename.
22807 if expr a : '\(a\)' >/dev/null 2>&1; then
22813 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22814 as_basename=basename
22820 # Name of the executable.
22821 as_me=`$as_basename "$0" ||
22822 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22823 X"$0" : 'X\(//\)$' \| \
22824 X"$0" : 'X\(/\)$' \| \
22825 . : '\(.\)' 2>/dev/null ||
22827 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22828 /^X\/\(\/\/\)$/{ s//\1/; q; }
22829 /^X\/\(\/\).*/{ s//\1/; q; }
22833 # PATH needs CR, and LINENO needs CR and PATH.
22834 # Avoid depending upon Character Ranges.
22835 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22836 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22837 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22838 as_cr_digits='0123456789'
22839 as_cr_alnum=$as_cr_Letters$as_cr_digits
22841 # The user is always right.
22842 if test "${PATH_SEPARATOR+set}" != set; then
22843 echo "#! /bin/sh" >conf$$.sh
22844 echo "exit 0" >>conf$$.sh
22846 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22855 as_lineno_1=$LINENO
22856 as_lineno_2=$LINENO
22857 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22858 test "x$as_lineno_1" != "x$as_lineno_2" &&
22859 test "x$as_lineno_3" = "x$as_lineno_2" || {
22860 # Find who we are. Look in the path if we contain no path at all
22863 *[\\/]* ) as_myself=$0 ;;
22864 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22865 for as_dir in $PATH
22868 test -z "$as_dir" && as_dir=.
22869 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22874 # We did not find ourselves, most probably we were run as `sh COMMAND'
22875 # in which case we are not to be found in the path.
22876 if test "x$as_myself" = x; then
22879 if test ! -f "$as_myself"; then
22880 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22881 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22882 { (exit 1); exit 1; }; }
22884 case $CONFIG_SHELL in
22886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22890 test -z "$as_dir" && as_dir=.
22891 for as_base in sh bash ksh sh5; do
22894 if ("$as_dir/$as_base" -c '
22895 as_lineno_1=$LINENO
22896 as_lineno_2=$LINENO
22897 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898 test "x$as_lineno_1" != "x$as_lineno_2" &&
22899 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22900 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22901 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22902 CONFIG_SHELL=$as_dir/$as_base
22903 export CONFIG_SHELL
22904 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22912 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22913 # uniformly replaced by the line number. The first 'sed' inserts a
22914 # line-number line before each line; the second 'sed' does the real
22915 # work. The second script uses 'N' to pair each line-number line
22916 # with the numbered line, and appends trailing '-' during
22917 # substitution so that $LINENO is not a special case at line end.
22918 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22919 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22920 sed '=' <$as_myself |
22925 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22928 s,^['$as_cr_digits']*\n,,
22929 ' >$as_me.lineno &&
22930 chmod +x $as_me.lineno ||
22931 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22932 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22933 { (exit 1); exit 1; }; }
22935 # Don't try to exec as it changes $[0], causing all sort of problems
22936 # (the dirname of $[0] is not the place where we might find the
22937 # original and so on. Autoconf is especially sensible to this).
22939 # Exit status is that of the last command.
22944 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22945 *c*,-n*) ECHO_N= ECHO_C='
22947 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22948 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22951 if expr a : '\(a\)' >/dev/null 2>&1; then
22957 rm -f conf$$ conf$$.exe conf$$.file
22959 if ln -s conf$$.file conf$$ 2>/dev/null; then
22960 # We could just check for DJGPP; but this test a) works b) is more generic
22961 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22962 if test -f conf$$.exe; then
22963 # Don't use ln at all; we don't have any links
22968 elif ln conf$$.file conf$$ 2>/dev/null; then
22973 rm -f conf$$ conf$$.exe conf$$.file
22975 if mkdir -p . 2>/dev/null; then
22978 test -d ./-p && rmdir ./-p
22982 as_executable_p="test -f"
22984 # Sed expression to map a string onto a valid CPP name.
22985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22987 # Sed expression to map a string onto a valid variable name.
22988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22992 # We need space, tab and new line, in precisely that order.
23002 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23003 # report actual input values of CONFIG_FILES etc. instead of their
23004 # values after options handling. Logging --version etc. is OK.
23008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23009 ## Running $as_me. ##
23014 This file was extended by PostgreSQL $as_me 8.2devel, which was
23015 generated by GNU Autoconf 2.59. Invocation command line was
23017 CONFIG_FILES = $CONFIG_FILES
23018 CONFIG_HEADERS = $CONFIG_HEADERS
23019 CONFIG_LINKS = $CONFIG_LINKS
23020 CONFIG_COMMANDS = $CONFIG_COMMANDS
23024 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23028 # Files that config.status was made for.
23029 if test -n "$ac_config_files"; then
23030 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23033 if test -n "$ac_config_headers"; then
23034 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23037 if test -n "$ac_config_links"; then
23038 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23041 if test -n "$ac_config_commands"; then
23042 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23045 cat >>$CONFIG_STATUS <<\_ACEOF
23048 \`$as_me' instantiates files from templates according to the
23049 current configuration.
23051 Usage: $0 [OPTIONS] [FILE]...
23053 -h, --help print this help, then exit
23054 -V, --version print version number, then exit
23055 -q, --quiet do not print progress messages
23056 -d, --debug don't remove temporary files
23057 --recheck update $as_me by reconfiguring in the same conditions
23058 --file=FILE[:TEMPLATE]
23059 instantiate the configuration file FILE
23060 --header=FILE[:TEMPLATE]
23061 instantiate the configuration header FILE
23063 Configuration files:
23066 Configuration headers:
23069 Configuration links:
23072 Configuration commands:
23075 Report bugs to <bug-autoconf@gnu.org>."
23078 cat >>$CONFIG_STATUS <<_ACEOF
23080 PostgreSQL config.status 8.2devel
23081 configured by $0, generated by GNU Autoconf 2.59,
23082 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23084 Copyright (C) 2003 Free Software Foundation, Inc.
23085 This config.status script is free software; the Free Software Foundation
23086 gives unlimited permission to copy, distribute and modify it."
23090 cat >>$CONFIG_STATUS <<\_ACEOF
23091 # If no file are specified by the user, then we need to provide default
23092 # value. By we need to know if files were specified by the user.
23098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23107 *) # This is not an option, so the user has probably given explicit
23110 ac_need_defaults=false;;
23114 # Handling of the options.
23116 cat >>$CONFIG_STATUS <<\_ACEOF
23117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23119 --version | --vers* | -V )
23120 echo "$ac_cs_version"; exit 0 ;;
23122 # Conflict between --help and --header
23123 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23124 Try \`$0 --help' for more information." >&5
23125 echo "$as_me: error: ambiguous option: $1
23126 Try \`$0 --help' for more information." >&2;}
23127 { (exit 1); exit 1; }; };;
23128 --help | --hel | -h )
23129 echo "$ac_cs_usage"; exit 0 ;;
23130 --debug | --d* | -d )
23132 --file | --fil | --fi | --f )
23134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23135 ac_need_defaults=false;;
23136 --header | --heade | --head | --hea )
23138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23139 ac_need_defaults=false;;
23140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23144 # This is an error.
23145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23146 Try \`$0 --help' for more information." >&5
23147 echo "$as_me: error: unrecognized option: $1
23148 Try \`$0 --help' for more information." >&2;}
23149 { (exit 1); exit 1; }; } ;;
23151 *) ac_config_targets="$ac_config_targets $1" ;;
23157 ac_configure_extra_args=
23159 if $ac_cs_silent; then
23161 ac_configure_extra_args="$ac_configure_extra_args --silent"
23165 cat >>$CONFIG_STATUS <<_ACEOF
23166 if \$ac_cs_recheck; then
23167 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23168 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23177 cat >>$CONFIG_STATUS <<\_ACEOF
23178 for ac_config_target in $ac_config_targets
23180 case "$ac_config_target" in
23181 # Handling of arguments.
23182 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23183 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23184 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23185 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23186 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23187 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23188 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23189 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23190 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23191 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23192 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23193 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23194 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23195 { (exit 1); exit 1; }; };;
23199 # If the user did not use the arguments to specify the items to instantiate,
23200 # then the envvar interface is used. Set only those that are not.
23201 # We use the long form for the default assignment because of an extremely
23202 # bizarre bug on SunOS 4.1.3.
23203 if $ac_need_defaults; then
23204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23205 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23206 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23207 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23210 # Have a temporary directory for convenience. Make it in the build tree
23211 # simply because there is no reason to put it here, and in addition,
23212 # creating and moving files from /tmp can sometimes cause problems.
23213 # Create a temporary directory, and hook for its removal unless debugging.
23216 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23217 trap '{ (exit 1); exit 1; }' 1 2 13 15
23220 # Create a (secure) tmp directory for tmp files.
23223 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23224 test -n "$tmp" && test -d "$tmp"
23227 tmp=./confstat$$-$RANDOM
23228 (umask 077 && mkdir $tmp)
23231 echo "$me: cannot create a temporary directory in ." >&2
23232 { (exit 1); exit 1; }
23237 cat >>$CONFIG_STATUS <<_ACEOF
23240 # CONFIG_FILES section.
23243 # No need to generate the scripts if there are no CONFIG_FILES.
23244 # This happens for instance when ./config.status config.h
23245 if test -n "\$CONFIG_FILES"; then
23246 # Protect against being on the right side of a sed subst in config.status.
23247 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23248 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23249 s,@SHELL@,$SHELL,;t t
23250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23256 s,@exec_prefix@,$exec_prefix,;t t
23257 s,@prefix@,$prefix,;t t
23258 s,@program_transform_name@,$program_transform_name,;t t
23259 s,@bindir@,$bindir,;t t
23260 s,@sbindir@,$sbindir,;t t
23261 s,@libexecdir@,$libexecdir,;t t
23262 s,@datadir@,$datadir,;t t
23263 s,@sysconfdir@,$sysconfdir,;t t
23264 s,@sharedstatedir@,$sharedstatedir,;t t
23265 s,@localstatedir@,$localstatedir,;t t
23266 s,@libdir@,$libdir,;t t
23267 s,@includedir@,$includedir,;t t
23268 s,@oldincludedir@,$oldincludedir,;t t
23269 s,@infodir@,$infodir,;t t
23270 s,@mandir@,$mandir,;t t
23271 s,@build_alias@,$build_alias,;t t
23272 s,@host_alias@,$host_alias,;t t
23273 s,@target_alias@,$target_alias,;t t
23274 s,@DEFS@,$DEFS,;t t
23275 s,@ECHO_C@,$ECHO_C,;t t
23276 s,@ECHO_N@,$ECHO_N,;t t
23277 s,@ECHO_T@,$ECHO_T,;t t
23278 s,@LIBS@,$LIBS,;t t
23279 s,@configure_args@,$configure_args,;t t
23280 s,@build@,$build,;t t
23281 s,@build_cpu@,$build_cpu,;t t
23282 s,@build_vendor@,$build_vendor,;t t
23283 s,@build_os@,$build_os,;t t
23284 s,@host@,$host,;t t
23285 s,@host_cpu@,$host_cpu,;t t
23286 s,@host_vendor@,$host_vendor,;t t
23287 s,@host_os@,$host_os,;t t
23288 s,@PORTNAME@,$PORTNAME,;t t
23289 s,@docdir@,$docdir,;t t
23290 s,@enable_nls@,$enable_nls,;t t
23291 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23292 s,@default_port@,$default_port,;t t
23293 s,@enable_shared@,$enable_shared,;t t
23294 s,@enable_rpath@,$enable_rpath,;t t
23295 s,@enable_debug@,$enable_debug,;t t
23297 s,@CFLAGS@,$CFLAGS,;t t
23298 s,@LDFLAGS@,$LDFLAGS,;t t
23299 s,@CPPFLAGS@,$CPPFLAGS,;t t
23300 s,@ac_ct_CC@,$ac_ct_CC,;t t
23301 s,@EXEEXT@,$EXEEXT,;t t
23302 s,@OBJEXT@,$OBJEXT,;t t
23306 s,@autodepend@,$autodepend,;t t
23307 s,@INCLUDES@,$INCLUDES,;t t
23308 s,@enable_thread_safety@,$enable_thread_safety,;t t
23309 s,@with_tcl@,$with_tcl,;t t
23310 s,@with_perl@,$with_perl,;t t
23311 s,@with_python@,$with_python,;t t
23312 s,@with_krb5@,$with_krb5,;t t
23313 s,@krb_srvtab@,$krb_srvtab,;t t
23314 s,@with_pam@,$with_pam,;t t
23315 s,@with_ldap@,$with_ldap,;t t
23316 s,@with_bonjour@,$with_bonjour,;t t
23317 s,@with_openssl@,$with_openssl,;t t
23318 s,@with_zlib@,$with_zlib,;t t
23319 s,@EGREP@,$EGREP,;t t
23320 s,@ELF_SYS@,$ELF_SYS,;t t
23321 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23323 s,@FLEX@,$FLEX,;t t
23324 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23325 s,@LN_S@,$LN_S,;t t
23327 s,@with_gnu_ld@,$with_gnu_ld,;t t
23328 s,@ld_R_works@,$ld_R_works,;t t
23329 s,@RANLIB@,$RANLIB,;t t
23330 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23332 s,@STRIP@,$STRIP,;t t
23333 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23334 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23335 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23336 s,@YACC@,$YACC,;t t
23337 s,@YFLAGS@,$YFLAGS,;t t
23338 s,@PERL@,$PERL,;t t
23339 s,@perl_archlibexp@,$perl_archlibexp,;t t
23340 s,@perl_privlibexp@,$perl_privlibexp,;t t
23341 s,@perl_useshrplib@,$perl_useshrplib,;t t
23342 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23343 s,@PYTHON@,$PYTHON,;t t
23344 s,@python_version@,$python_version,;t t
23345 s,@python_configdir@,$python_configdir,;t t
23346 s,@python_includespec@,$python_includespec,;t t
23347 s,@python_libdir@,$python_libdir,;t t
23348 s,@python_libspec@,$python_libspec,;t t
23349 s,@python_additional_libs@,$python_additional_libs,;t t
23350 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23351 s,@LIBOBJS@,$LIBOBJS,;t t
23352 s,@acx_pthread_config@,$acx_pthread_config,;t t
23353 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23354 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23355 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23356 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23357 s,@MSGFMT@,$MSGFMT,;t t
23358 s,@MSGMERGE@,$MSGMERGE,;t t
23359 s,@XGETTEXT@,$XGETTEXT,;t t
23360 s,@localedir@,$localedir,;t t
23361 s,@TCLSH@,$TCLSH,;t t
23362 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23363 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23364 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23365 s,@TCL_LIBS@,$TCL_LIBS,;t t
23366 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23367 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23368 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23369 s,@NSGMLS@,$NSGMLS,;t t
23370 s,@JADE@,$JADE,;t t
23371 s,@have_docbook@,$have_docbook,;t t
23372 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23373 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23374 s,@SGMLSPL@,$SGMLSPL,;t t
23375 s,@vpath_build@,$vpath_build,;t t
23376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23382 # Split the substitutions into bite-sized pieces for seds with
23383 # small command number limits, like on Digital OSF/1 and HP-UX.
23384 ac_max_sed_lines=48
23385 ac_sed_frag=1 # Number of current file.
23386 ac_beg=1 # First line for current file.
23387 ac_end=$ac_max_sed_lines # Line after last line for current file.
23390 while $ac_more_lines; do
23391 if test $ac_beg -gt 1; then
23392 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23394 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23396 if test ! -s $tmp/subs.frag; then
23397 ac_more_lines=false
23399 # The purpose of the label and of the branching condition is to
23400 # speed up the sed processing (if there are no `@' at all, there
23401 # is no need to browse any of the substitutions).
23402 # These are the two extra sed commands mentioned above.
23404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23405 if test -z "$ac_sed_cmds"; then
23406 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23408 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23410 ac_sed_frag=`expr $ac_sed_frag + 1`
23412 ac_end=`expr $ac_end + $ac_max_sed_lines`
23415 if test -z "$ac_sed_cmds"; then
23418 fi # test -n "$CONFIG_FILES"
23421 cat >>$CONFIG_STATUS <<\_ACEOF
23422 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23425 - | *:- | *:-:* ) # input from stdin
23427 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23428 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23429 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23431 * ) ac_file_in=$ac_file.in ;;
23434 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23435 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23436 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23437 X"$ac_file" : 'X\(//\)[^/]' \| \
23438 X"$ac_file" : 'X\(//\)$' \| \
23439 X"$ac_file" : 'X\(/\)' \| \
23440 . : '\(.\)' 2>/dev/null ||
23442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23444 /^X\(\/\/\)$/{ s//\1/; q; }
23445 /^X\(\/\).*/{ s//\1/; q; }
23447 { if $as_mkdir_p; then
23452 while test ! -d "$as_dir"; do
23453 as_dirs="$as_dir $as_dirs"
23454 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23456 X"$as_dir" : 'X\(//\)[^/]' \| \
23457 X"$as_dir" : 'X\(//\)$' \| \
23458 X"$as_dir" : 'X\(/\)' \| \
23459 . : '\(.\)' 2>/dev/null ||
23461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23463 /^X\(\/\/\)$/{ s//\1/; q; }
23464 /^X\(\/\).*/{ s//\1/; q; }
23467 test ! -n "$as_dirs" || mkdir $as_dirs
23468 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23469 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23470 { (exit 1); exit 1; }; }; }
23474 if test "$ac_dir" != .; then
23475 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23476 # A "../" for each directory in $ac_dir_suffix.
23477 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23479 ac_dir_suffix= ac_top_builddir=
23483 .) # No --srcdir option. We are building in place.
23485 if test -z "$ac_top_builddir"; then
23488 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23490 [\\/]* | ?:[\\/]* ) # Absolute path.
23491 ac_srcdir=$srcdir$ac_dir_suffix;
23492 ac_top_srcdir=$srcdir ;;
23493 *) # Relative path.
23494 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23495 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23498 # Do not use `cd foo && pwd` to compute absolute paths, because
23499 # the directories may not exist.
23501 .) ac_abs_builddir="$ac_dir";;
23504 .) ac_abs_builddir=`pwd`;;
23505 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23506 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23509 case $ac_abs_builddir in
23510 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23512 case ${ac_top_builddir}. in
23513 .) ac_abs_top_builddir=$ac_abs_builddir;;
23514 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23515 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23518 case $ac_abs_builddir in
23519 .) ac_abs_srcdir=$ac_srcdir;;
23522 .) ac_abs_srcdir=$ac_abs_builddir;;
23523 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23524 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23527 case $ac_abs_builddir in
23528 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23530 case $ac_top_srcdir in
23531 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23532 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23533 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23539 if test x"$ac_file" != x-; then
23540 { echo "$as_me:$LINENO: creating $ac_file" >&5
23541 echo "$as_me: creating $ac_file" >&6;}
23544 # Let's still pretend it is `configure' which instantiates (i.e., don't
23545 # use $as_me), people would be surprised to read:
23546 # /* config.h. Generated by config.status. */
23547 if test x"$ac_file" = x-; then
23550 configure_input="$ac_file. "
23552 configure_input=$configure_input"Generated from `echo $ac_file_in |
23553 sed 's,.*/,,'` by configure."
23555 # First look for the input files in the build tree, otherwise in the
23557 ac_file_inputs=`IFS=:
23558 for f in $ac_file_in; do
23560 -) echo $tmp/stdin ;;
23562 # Absolute (can't be DOS-style, as IFS=:)
23563 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23564 echo "$as_me: error: cannot find input file: $f" >&2;}
23565 { (exit 1); exit 1; }; }
23568 if test -f "$f"; then
23571 elif test -f "$srcdir/$f"; then
23576 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23577 echo "$as_me: error: cannot find input file: $f" >&2;}
23578 { (exit 1); exit 1; }; }
23581 done` || { (exit 1); exit 1; }
23583 cat >>$CONFIG_STATUS <<_ACEOF
23587 cat >>$CONFIG_STATUS <<\_ACEOF
23589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23590 s,@configure_input@,$configure_input,;t t
23591 s,@srcdir@,$ac_srcdir,;t t
23592 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23593 s,@top_srcdir@,$ac_top_srcdir,;t t
23594 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23595 s,@builddir@,$ac_builddir,;t t
23596 s,@abs_builddir@,$ac_abs_builddir,;t t
23597 s,@top_builddir@,$ac_top_builddir,;t t
23598 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23601 if test x"$ac_file" != x-; then
23602 mv $tmp/out $ac_file
23610 cat >>$CONFIG_STATUS <<\_ACEOF
23613 # CONFIG_HEADER section.
23616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23619 # ac_d sets the value in "#define NAME VALUE" lines.
23620 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23621 ac_dB='[ ].*$,\1#\2'
23624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23625 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23626 ac_uB='$,\1#\2define\3'
23630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23633 - | *:- | *:-:* ) # input from stdin
23635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23639 * ) ac_file_in=$ac_file.in ;;
23642 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23643 echo "$as_me: creating $ac_file" >&6;}
23645 # First look for the input files in the build tree, otherwise in the
23647 ac_file_inputs=`IFS=:
23648 for f in $ac_file_in; do
23650 -) echo $tmp/stdin ;;
23652 # Absolute (can't be DOS-style, as IFS=:)
23653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23654 echo "$as_me: error: cannot find input file: $f" >&2;}
23655 { (exit 1); exit 1; }; }
23656 # Do quote $f, to prevent DOS paths from being IFS'd.
23659 if test -f "$f"; then
23662 elif test -f "$srcdir/$f"; then
23667 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23668 echo "$as_me: error: cannot find input file: $f" >&2;}
23669 { (exit 1); exit 1; }; }
23672 done` || { (exit 1); exit 1; }
23673 # Remove the trailing spaces.
23674 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23679 # `conftest.undefs', that substitutes the proper values into
23680 # config.h.in to produce config.h. The first handles `#define'
23681 # templates, and the second `#undef' templates.
23682 # And first: Protect against being on the right side of a sed subst in
23683 # config.status. Protect against being in an unquoted here document
23684 # in config.status.
23685 rm -f conftest.defines conftest.undefs
23686 # Using a here document instead of a string reduces the quoting nightmare.
23687 # Putting comments in sed scripts is not portable.
23689 # `end' is used to avoid that the second main sed command (meant for
23690 # 0-ary CPP macros) applies to n-ary macro definitions.
23691 # See the Autoconf documentation for `clear'.
23692 cat >confdef2sed.sed <<\_ACEOF
23697 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23699 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23702 # If some macros were called several times there might be several times
23703 # the same #defines, which is useless. Nevertheless, we may not want to
23704 # sort them, since we want the *last* AC-DEFINE to be honored.
23705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23707 rm -f confdef2sed.sed
23709 # This sed command replaces #undef with comments. This is necessary, for
23710 # example, in the case of _POSIX_SOURCE, which is predefined and required
23711 # on some systems where configure will not decide to define it.
23712 cat >>conftest.undefs <<\_ACEOF
23713 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23716 # Break up conftest.defines because some shells have a limit on the size
23717 # of here documents, and old seds have small limits too (100 cmds).
23718 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23719 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23720 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23721 echo ' :' >>$CONFIG_STATUS
23722 rm -f conftest.tail
23723 while grep . conftest.defines >/dev/null
23725 # Write a limited-size here document to $tmp/defines.sed.
23726 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23727 # Speed up: don't consider the non `#define' lines.
23728 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23729 # Work around the forget-to-reset-the-flag bug.
23730 echo 't clr' >>$CONFIG_STATUS
23731 echo ': clr' >>$CONFIG_STATUS
23732 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23734 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23736 mv $tmp/out $tmp/in
23738 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23739 rm -f conftest.defines
23740 mv conftest.tail conftest.defines
23742 rm -f conftest.defines
23743 echo ' fi # grep' >>$CONFIG_STATUS
23744 echo >>$CONFIG_STATUS
23746 # Break up conftest.undefs because some shells have a limit on the size
23747 # of here documents, and old seds have small limits too (100 cmds).
23748 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23749 rm -f conftest.tail
23750 while grep . conftest.undefs >/dev/null
23752 # Write a limited-size here document to $tmp/undefs.sed.
23753 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23754 # Speed up: don't consider the non `#undef'
23755 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23756 # Work around the forget-to-reset-the-flag bug.
23757 echo 't clr' >>$CONFIG_STATUS
23758 echo ': clr' >>$CONFIG_STATUS
23759 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23761 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23763 mv $tmp/out $tmp/in
23765 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23766 rm -f conftest.undefs
23767 mv conftest.tail conftest.undefs
23769 rm -f conftest.undefs
23771 cat >>$CONFIG_STATUS <<\_ACEOF
23772 # Let's still pretend it is `configure' which instantiates (i.e., don't
23773 # use $as_me), people would be surprised to read:
23774 # /* config.h. Generated by config.status. */
23775 if test x"$ac_file" = x-; then
23776 echo "/* Generated by configure. */" >$tmp/config.h
23778 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23780 cat $tmp/in >>$tmp/config.h
23782 if test x"$ac_file" != x-; then
23783 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23784 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23785 echo "$as_me: $ac_file is unchanged" >&6;}
23787 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23789 X"$ac_file" : 'X\(//\)[^/]' \| \
23790 X"$ac_file" : 'X\(//\)$' \| \
23791 X"$ac_file" : 'X\(/\)' \| \
23792 . : '\(.\)' 2>/dev/null ||
23794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23796 /^X\(\/\/\)$/{ s//\1/; q; }
23797 /^X\(\/\).*/{ s//\1/; q; }
23799 { if $as_mkdir_p; then
23804 while test ! -d "$as_dir"; do
23805 as_dirs="$as_dir $as_dirs"
23806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23808 X"$as_dir" : 'X\(//\)[^/]' \| \
23809 X"$as_dir" : 'X\(//\)$' \| \
23810 X"$as_dir" : 'X\(/\)' \| \
23811 . : '\(.\)' 2>/dev/null ||
23813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23815 /^X\(\/\/\)$/{ s//\1/; q; }
23816 /^X\(\/\).*/{ s//\1/; q; }
23819 test ! -n "$as_dirs" || mkdir $as_dirs
23820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23822 { (exit 1); exit 1; }; }; }
23825 mv $tmp/config.h $ac_file
23829 rm -f $tmp/config.h
23831 # Run the commands associated with the file.
23833 src/include/pg_config.h )
23834 # Update timestamp for pg_config.h (see Makefile.global)
23835 echo >src/include/stamp-h
23840 cat >>$CONFIG_STATUS <<\_ACEOF
23843 # CONFIG_LINKS section.
23846 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23847 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23848 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23850 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23851 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23853 if test ! -r $srcdir/$ac_source; then
23854 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23855 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23856 { (exit 1); exit 1; }; }
23860 # Make relative symlinks.
23861 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23862 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23863 X"$ac_dest" : 'X\(//\)[^/]' \| \
23864 X"$ac_dest" : 'X\(//\)$' \| \
23865 X"$ac_dest" : 'X\(/\)' \| \
23866 . : '\(.\)' 2>/dev/null ||
23868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23870 /^X\(\/\/\)$/{ s//\1/; q; }
23871 /^X\(\/\).*/{ s//\1/; q; }
23873 { if $as_mkdir_p; then
23874 mkdir -p "$ac_dest_dir"
23876 as_dir="$ac_dest_dir"
23878 while test ! -d "$as_dir"; do
23879 as_dirs="$as_dir $as_dirs"
23880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23882 X"$as_dir" : 'X\(//\)[^/]' \| \
23883 X"$as_dir" : 'X\(//\)$' \| \
23884 X"$as_dir" : 'X\(/\)' \| \
23885 . : '\(.\)' 2>/dev/null ||
23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23889 /^X\(\/\/\)$/{ s//\1/; q; }
23890 /^X\(\/\).*/{ s//\1/; q; }
23893 test ! -n "$as_dirs" || mkdir $as_dirs
23894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23895 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23896 { (exit 1); exit 1; }; }; }
23900 if test "$ac_dest_dir" != .; then
23901 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23902 # A "../" for each directory in $ac_dir_suffix.
23903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23905 ac_dir_suffix= ac_top_builddir=
23909 .) # No --srcdir option. We are building in place.
23911 if test -z "$ac_top_builddir"; then
23914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23916 [\\/]* | ?:[\\/]* ) # Absolute path.
23917 ac_srcdir=$srcdir$ac_dir_suffix;
23918 ac_top_srcdir=$srcdir ;;
23919 *) # Relative path.
23920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23924 # Do not use `cd foo && pwd` to compute absolute paths, because
23925 # the directories may not exist.
23927 .) ac_abs_builddir="$ac_dest_dir";;
23929 case "$ac_dest_dir" in
23930 .) ac_abs_builddir=`pwd`;;
23931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23932 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23935 case $ac_abs_builddir in
23936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23938 case ${ac_top_builddir}. in
23939 .) ac_abs_top_builddir=$ac_abs_builddir;;
23940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23944 case $ac_abs_builddir in
23945 .) ac_abs_srcdir=$ac_srcdir;;
23948 .) ac_abs_srcdir=$ac_abs_builddir;;
23949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23953 case $ac_abs_builddir in
23954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23956 case $ac_top_srcdir in
23957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23965 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23966 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23969 # Try a symlink, then a hard link, then a copy.
23970 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23971 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23972 cp -p $srcdir/$ac_source $ac_dest ||
23973 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23974 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23975 { (exit 1); exit 1; }; }
23978 cat >>$CONFIG_STATUS <<\_ACEOF
23981 # CONFIG_COMMANDS section.
23983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23984 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23985 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23986 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23988 X"$ac_dest" : 'X\(//\)[^/]' \| \
23989 X"$ac_dest" : 'X\(//\)$' \| \
23990 X"$ac_dest" : 'X\(/\)' \| \
23991 . : '\(.\)' 2>/dev/null ||
23993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23995 /^X\(\/\/\)$/{ s//\1/; q; }
23996 /^X\(\/\).*/{ s//\1/; q; }
23998 { if $as_mkdir_p; then
24003 while test ! -d "$as_dir"; do
24004 as_dirs="$as_dir $as_dirs"
24005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24007 X"$as_dir" : 'X\(//\)[^/]' \| \
24008 X"$as_dir" : 'X\(//\)$' \| \
24009 X"$as_dir" : 'X\(/\)' \| \
24010 . : '\(.\)' 2>/dev/null ||
24012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24014 /^X\(\/\/\)$/{ s//\1/; q; }
24015 /^X\(\/\).*/{ s//\1/; q; }
24018 test ! -n "$as_dirs" || mkdir $as_dirs
24019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24021 { (exit 1); exit 1; }; }; }
24025 if test "$ac_dir" != .; then
24026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24027 # A "../" for each directory in $ac_dir_suffix.
24028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24030 ac_dir_suffix= ac_top_builddir=
24034 .) # No --srcdir option. We are building in place.
24036 if test -z "$ac_top_builddir"; then
24039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24041 [\\/]* | ?:[\\/]* ) # Absolute path.
24042 ac_srcdir=$srcdir$ac_dir_suffix;
24043 ac_top_srcdir=$srcdir ;;
24044 *) # Relative path.
24045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24049 # Do not use `cd foo && pwd` to compute absolute paths, because
24050 # the directories may not exist.
24052 .) ac_abs_builddir="$ac_dir";;
24055 .) ac_abs_builddir=`pwd`;;
24056 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24057 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24060 case $ac_abs_builddir in
24061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24063 case ${ac_top_builddir}. in
24064 .) ac_abs_top_builddir=$ac_abs_builddir;;
24065 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24066 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24069 case $ac_abs_builddir in
24070 .) ac_abs_srcdir=$ac_srcdir;;
24073 .) ac_abs_srcdir=$ac_abs_builddir;;
24074 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24075 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24078 case $ac_abs_builddir in
24079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24081 case $ac_top_srcdir in
24082 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24083 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24084 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24090 echo "$as_me: executing $ac_dest commands" >&6;}
24092 check_win32_symlinks )
24093 # Links sometimes fail undetected on Mingw -
24094 # so here we detect it and warn the user
24095 for FILE in $CONFIG_LINKS
24097 # test -e works for symlinks in the MinGW console
24098 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24099 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24106 cat >>$CONFIG_STATUS <<\_ACEOF
24108 { (exit 0); exit 0; }
24110 chmod +x $CONFIG_STATUS
24111 ac_clean_files=$ac_clean_files_save
24114 # configure is writing to config.log, and then calls config.status.
24115 # config.status does its own redirection, appending to config.log.
24116 # Unfortunately, on DOS this fails, as config.log is still kept open
24117 # by configure, so config.status won't be able to write to it; its
24118 # output is simply discarded. So we exec the FD to /dev/null,
24119 # effectively closing config.log, so it can be properly (re)opened and
24120 # appended to by config.status. When coming back to configure, we
24121 # need to make the FD available again.
24122 if test "$no_create" != yes; then
24124 ac_config_status_args=
24125 test "$silent" = yes &&
24126 ac_config_status_args="$ac_config_status_args --quiet"
24128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24131 # would make configure fail if this is the last instruction.
24132 $ac_cs_success || { (exit 1); exit 1; }