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-2005, 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_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 LORDER 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-bonjour build with Bonjour support
892 --with-openssl build with OpenSSL support
893 --with-libedit-preferred prefer BSD Libedit over GNU Readline
894 --without-readline do not use GNU Readline / BSD Libedit line editing
895 --without-zlib do not use Zlib
896 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
908 location of DocBook stylesheets
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
913 Report bugs to <pgsql-bugs@postgresql.org>.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1009 PostgreSQL configure 8.2devel
1010 generated by GNU Autoconf 2.59
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1016 Copyright (c) 1996-2005, PostgreSQL Global Development Group
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by PostgreSQL $as_me 8.2devel, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 for ac_dir in config $srcdir/config; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 configure_args=$ac_configure_args
1395 cat >>confdefs.h <<_ACEOF
1396 #define PG_VERSION "$PACKAGE_VERSION"
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456 echo "$as_me:$LINENO: checking which template to use" >&5
1457 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1462 # Check whether --with-template or --without-template was given.
1463 if test "${with_template+set}" = set; then
1464 withval="$with_template"
1468 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1469 echo "$as_me: error: argument required for --with-template option" >&2;}
1470 { (exit 1); exit 1; }; }
1473 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1474 echo "$as_me: error: argument required for --with-template option" >&2;}
1475 { (exit 1); exit 1; }; }
1480 list) echo; ls "$srcdir/src/template"; exit;;
1481 *) if test -f "$srcdir/src/template/$with_template" ; then
1484 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1485 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1486 { (exit 1); exit 1; }; }
1495 # --with-template not given
1498 aix*) template=aix ;;
1499 bsdi*) template=bsdi ;;
1500 cygwin*) template=cygwin ;;
1501 darwin*) template=darwin ;;
1502 dgux*) template=dgux ;;
1503 freebsd*) template=freebsd ;;
1504 hpux*) template=hpux ;;
1505 irix*) template=irix ;;
1506 linux*|gnu*|k*bsd*-gnu)
1508 mingw*) template=win32 ;;
1509 netbsd*) template=netbsd ;;
1510 nextstep*) template=nextstep ;;
1511 openbsd*) template=openbsd ;;
1512 osf*) template=osf ;;
1513 sco*) template=sco ;;
1514 solaris*) template=solaris ;;
1515 sunos*) template=sunos4 ;;
1517 case $host_vendor in
1518 univel) template=univel ;;
1520 sysv4*) template=svr4 ;;
1521 sysv5*) template=unixware ;;
1522 ultrix*) template=ultrix4 ;;
1525 if test x"$template" = x"" ; then
1526 { { echo "$as_me:$LINENO: error:
1527 *******************************************************************
1528 PostgreSQL has apparently not been ported to your platform yet.
1529 To try a manual configuration, look into the src/template directory
1530 for a similar platform and use the '--with-template=' option.
1532 Please also contact <pgsql-ports@postgresql.org> to see about
1533 rectifying this. Include the above 'checking host system type...'
1535 *******************************************************************
1537 echo "$as_me: error:
1538 *******************************************************************
1539 PostgreSQL has apparently not been ported to your platform yet.
1540 To try a manual configuration, look into the src/template directory
1541 for a similar platform and use the '--with-template=' option.
1543 Please also contact <pgsql-ports@postgresql.org> to see about
1544 rectifying this. Include the above 'checking host system type...'
1546 *******************************************************************
1548 { (exit 1); exit 1; }; }
1555 echo "$as_me:$LINENO: result: $template" >&5
1556 echo "${ECHO_T}$template" >&6
1561 # Initialize default assumption that we do not need separate assembly code
1562 # for TAS (test-and-set). This can be overridden by the template file
1563 # when it's executed.
1570 ## Command line options
1574 # Installation directory for documentation
1579 # Check whether --with-docdir or --without-docdir was given.
1580 if test "${with_docdir+set}" = set; then
1581 withval="$with_docdir"
1585 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1586 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1587 { (exit 1); exit 1; }; }
1598 docdir='${prefix}/doc'
1605 # Add non-standard directories to the include path
1610 # Check whether --with-includes or --without-includes was given.
1611 if test "${with_includes+set}" = set; then
1612 withval="$with_includes"
1616 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1617 echo "$as_me: error: argument required for --with-includes option" >&2;}
1618 { (exit 1); exit 1; }; }
1621 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1622 echo "$as_me: error: argument required for --with-includes option" >&2;}
1623 { (exit 1); exit 1; }; }
1635 # Add non-standard directories to the library search path
1640 # Check whether --with-libraries or --without-libraries was given.
1641 if test "${with_libraries+set}" = set; then
1642 withval="$with_libraries"
1646 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1647 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1648 { (exit 1); exit 1; }; }
1651 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1652 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1653 { (exit 1); exit 1; }; }
1656 LIBRARY_DIRS=$withval
1666 # Check whether --with-libs or --without-libs was given.
1667 if test "${with_libs+set}" = set; then
1668 withval="$with_libs"
1672 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1673 echo "$as_me: error: argument required for --with-libs option" >&2;}
1674 { (exit 1); exit 1; }; }
1677 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1678 echo "$as_me: error: argument required for --with-libs option" >&2;}
1679 { (exit 1); exit 1; }; }
1682 LIBRARY_DIRS=$withval
1691 # 64-bit integer date/time storage (--enable-integer-datetimes)
1693 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1694 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1697 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1698 if test "${enable_integer_datetimes+set}" = set; then
1699 enableval="$enable_integer_datetimes"
1704 cat >>confdefs.h <<\_ACEOF
1705 #define USE_INTEGER_DATETIMES 1
1713 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1714 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1715 { (exit 1); exit 1; }; }
1720 enable_integer_datetimes=no
1724 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1725 echo "${ECHO_T}$enable_integer_datetimes" >&6
1731 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1732 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1735 # Check whether --enable-nls or --disable-nls was given.
1736 if test "${enable_nls+set}" = set; then
1737 enableval="$enable_nls"
1748 WANTED_LANGUAGES=$enableval
1757 if test "$enable_nls" = yes; then
1759 cat >>confdefs.h <<\_ACEOF
1760 #define ENABLE_NLS 1
1765 echo "$as_me:$LINENO: result: $enable_nls" >&5
1766 echo "${ECHO_T}$enable_nls" >&6
1771 # Default port number (--with-pgport), default 5432
1773 echo "$as_me:$LINENO: checking for default port number" >&5
1774 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1778 # Check whether --with-pgport or --without-pgport was given.
1779 if test "${with_pgport+set}" = set; then
1780 withval="$with_pgport"
1784 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1785 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1786 { (exit 1); exit 1; }; }
1789 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1790 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1791 { (exit 1); exit 1; }; }
1794 default_port=$withval
1802 echo "$as_me:$LINENO: result: $default_port" >&5
1803 echo "${ECHO_T}$default_port" >&6
1804 # Need both of these because some places want an integer and some a string
1806 cat >>confdefs.h <<_ACEOF
1807 #define DEF_PGPORT ${default_port}
1811 cat >>confdefs.h <<_ACEOF
1812 #define DEF_PGPORT_STR "${default_port}"
1818 # Option to disable shared libraries
1822 # Check whether --enable-shared or --disable-shared was given.
1823 if test "${enable_shared+set}" = set; then
1824 enableval="$enable_shared"
1834 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1835 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1836 { (exit 1); exit 1; }; }
1848 # '-rpath'-like feature can be disabled
1852 # Check whether --enable-rpath or --disable-rpath was given.
1853 if test "${enable_rpath+set}" = set; then
1854 enableval="$enable_rpath"
1864 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1865 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1866 { (exit 1); exit 1; }; }
1882 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1883 if test "${enable_spinlocks+set}" = set; then
1884 enableval="$enable_spinlocks"
1894 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1895 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1896 { (exit 1); exit 1; }; }
1901 enable_spinlocks=yes
1907 # --enable-debug adds -g to compiler flags
1911 # Check whether --enable-debug or --disable-debug was given.
1912 if test "${enable_debug+set}" = set; then
1913 enableval="$enable_debug"
1923 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1924 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1925 { (exit 1); exit 1; }; }
1940 # For historical reasons you can also use --with-CC to specify the C compiler
1941 # to use, although the standard way to do this is to set the CC environment
1946 # Check whether --with-CC or --without-CC was given.
1947 if test "${with_CC+set}" = set; then
1952 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1953 echo "$as_me: error: argument required for --with-CC option" >&2;}
1954 { (exit 1); exit 1; }; }
1957 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1958 echo "$as_me: error: argument required for --with-CC option" >&2;}
1959 { (exit 1); exit 1; }; }
1970 aix) pgac_cc_list="gcc xlc";;
1971 irix) pgac_cc_list="cc";; # no gcc
1972 *) pgac_cc_list="gcc cc";;
1976 ac_cpp='$CPP $CPPFLAGS'
1977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in $pgac_cc_list
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2014 echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2018 test -n "$CC" && break
2021 if test -z "$CC"; then
2023 for ac_prog in $pgac_cc_list
2025 # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2032 if test -n "$ac_ct_CC"; then
2033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042 ac_cv_prog_ac_ct_CC="$ac_prog"
2043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2056 echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2060 test -n "$ac_ct_CC" && break
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO:" \
2075 "checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078 (eval $ac_compiler --version </dev/null >&5) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083 (eval $ac_compiler -v </dev/null >&5) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088 (eval $ac_compiler -V </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2093 cat >conftest.$ac_ext <<_ACEOF
2096 cat confdefs.h >>conftest.$ac_ext
2097 cat >>conftest.$ac_ext <<_ACEOF
2098 /* end confdefs.h. */
2108 ac_clean_files_save=$ac_clean_files
2109 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2110 # Try to create an executable without -o first, disregard a.out.
2111 # It will help us diagnose broken compilers, and finding out an intuition
2113 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2114 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2115 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2116 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2117 (eval $ac_link_default) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; then
2121 # Find the output, starting from the most likely. This scheme is
2122 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125 # Be careful to initialize this variable, since it used to be cached.
2126 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2128 # b.out is created by i960 compilers.
2129 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2131 test -f "$ac_file" || continue
2133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136 # This is the source file.
2139 # We found the default executable, but exeext='' is most
2143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2144 # FIXME: I believe we export ac_cv_exeext for Libtool,
2145 # but it would be cool to find out if it's true. Does anybody
2146 # maintain Libtool? --akim.
2154 echo "$as_me: failed program was:" >&5
2155 sed 's/^/| /' conftest.$ac_ext >&5
2157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2158 See \`config.log' for more details." >&5
2159 echo "$as_me: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&2;}
2161 { (exit 77); exit 77; }; }
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2168 # Check the compiler produces executables we can run. If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175 if { ac_try='./$ac_file'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 if test "$cross_compiling" = maybe; then
2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'.
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot run C compiled programs.
2190 If you meant to cross compile, use \`--host'.
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2196 echo "$as_me:$LINENO: result: yes" >&5
2197 echo "${ECHO_T}yes" >&6
2199 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2200 ac_clean_files=$ac_clean_files_save
2201 # Check the compiler produces executables we can run. If not, either
2202 # the compiler is broken, or we cross compile.
2203 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2204 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2205 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2206 echo "${ECHO_T}$cross_compiling" >&6
2208 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2209 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2211 (eval $ac_link) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2216 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2217 # work properly (i.e., refer to `conftest.exe'), while it won't with
2219 for ac_file in conftest.exe conftest conftest.*; do
2220 test -f "$ac_file" || continue
2222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2230 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&2;}
2234 { (exit 1); exit 1; }; }
2237 rm -f conftest$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2239 echo "${ECHO_T}$ac_cv_exeext" >&6
2241 rm -f conftest.$ac_ext
2242 EXEEXT=$ac_cv_exeext
2244 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2245 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2246 if test "${ac_cv_objext+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 cat >conftest.$ac_ext <<_ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2264 rm -f conftest.o conftest.obj
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&2;}
2285 { (exit 1); exit 1; }; }
2288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2290 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2291 echo "${ECHO_T}$ac_cv_objext" >&6
2292 OBJEXT=$ac_cv_objext
2294 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2295 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2317 rm -f conftest.$ac_objext
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2321 grep -v '^ *+' conftest.er1 >conftest.err
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2350 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2352 GCC=`test $ac_compiler_gnu = yes && echo yes`
2353 ac_test_CFLAGS=${CFLAGS+set}
2354 ac_save_CFLAGS=$CFLAGS
2356 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2357 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2358 if test "${ac_cv_prog_cc_g+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 cat >conftest.$ac_ext <<_ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2408 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2409 if test "$ac_test_CFLAGS" = set; then
2410 CFLAGS=$ac_save_CFLAGS
2411 elif test $ac_cv_prog_cc_g = yes; then
2412 if test "$GCC" = yes; then
2418 if test "$GCC" = yes; then
2424 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2425 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2426 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 ac_cv_prog_cc_stdc=no
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2439 #include <sys/types.h>
2440 #include <sys/stat.h>
2441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2442 struct buf { int x; };
2443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2444 static char *e (p, i)
2450 static char *f (char * (*g) (char **, int), char **p, ...)
2455 s = g (p, va_arg (v,int));
2460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2461 function prototypes and stuff, but not '\xHH' hex character constants.
2462 These don't provoke an error unfortunately, instead are silently treated
2463 as 'x'. The following induces an error, until -std1 is added to get
2464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2465 array size at least. It's necessary to write '\x00'==0 to get something
2466 that's true only with -std1. */
2467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2469 int test (int i, double x);
2470 struct s1 {int (*f) (int a);};
2471 struct s2 {int (*f) (double a);};
2472 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX 10.20 and later -Ae
2488 # HP-UX older versions -Aa -D_HPUX_SOURCE
2489 # SVR4 -Xc -D__EXTENSIONS__
2490 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2492 CC="$ac_save_CC $ac_arg"
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495 (eval $ac_compile) 2>conftest.er1
2497 grep -v '^ *+' conftest.er1 >conftest.err
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -z "$ac_c_werror_flag"
2503 || test ! -s conftest.err'
2504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; } &&
2509 { ac_try='test -s conftest.$ac_objext'
2510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; }; then
2515 ac_cv_prog_cc_stdc=$ac_arg
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 rm -f conftest.err conftest.$ac_objext
2524 rm -f conftest.$ac_ext conftest.$ac_objext
2529 case "x$ac_cv_prog_cc_stdc" in
2531 echo "$as_me:$LINENO: result: none needed" >&5
2532 echo "${ECHO_T}none needed" >&6 ;;
2534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2535 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2536 CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 # Some people use a C++ compiler to compile C. Since we use `exit',
2540 # in C++ we need to declare it. In case someone uses the same compiler
2541 # for both compiling C and C++ we need to have the C++ compiler decide
2542 # the declaration of exit, since it's the most demanding environment.
2543 cat >conftest.$ac_ext <<_ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2550 (eval $ac_compile) 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } &&
2557 { ac_try='test -z "$ac_c_werror_flag"
2558 || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 for ac_declaration in \
2572 'extern "C" void std::exit (int) throw (); using std::exit;' \
2573 'extern "C" void std::exit (int); using std::exit;' \
2574 'extern "C" void exit (int) throw ();' \
2575 'extern "C" void exit (int);' \
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag"
2604 || test ! -s conftest.err'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; } &&
2610 { ac_try='test -s conftest.$ac_objext'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; }; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2643 grep -v '^ *+' conftest.er1 >conftest.err
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 if test -n "$ac_declaration"; then
2671 echo '#ifdef __cplusplus' >>confdefs.h
2672 echo $ac_declaration >>confdefs.h
2673 echo '#endif' >>confdefs.h
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cpp='$CPP $CPPFLAGS'
2684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 . "$srcdir/src/template/$template" || exit
2696 # CFLAGS are selected so:
2697 # If the user specifies something in the environment, that is used.
2698 # else: If the template file set something, that is used.
2699 # else: If the compiler is GCC, then we use -O2.
2700 # else: If the compiler is something else, then we use -0.
2702 if test "$ac_env_CFLAGS_set" = set; then
2703 CFLAGS=$ac_env_CFLAGS_value
2704 elif test "${CFLAGS+set}" = set; then
2705 : # (keep what template set)
2706 elif test "$GCC" = yes; then
2709 # if the user selected debug mode, don't use -O
2710 if test "$enable_debug" != yes; then
2715 if test "$GCC" = yes; then
2716 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2718 # Some versions of GCC support some additional useful warning flags.
2719 # Check whether they are supported, and add them to CFLAGS if so.
2720 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2721 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2722 pgac_save_CFLAGS=$CFLAGS
2723 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>conftest.er1
2743 grep -v '^ *+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -z "$ac_c_werror_flag"
2749 || test ! -s conftest.err'
2750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; } &&
2755 { ac_try='test -s conftest.$ac_objext'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 echo "$as_me:$LINENO: result: yes" >&5
2762 echo "${ECHO_T}yes" >&6
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 CFLAGS="$pgac_save_CFLAGS"
2768 echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2774 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2775 pgac_save_CFLAGS=$CFLAGS
2776 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2777 cat >conftest.$ac_ext <<_ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>conftest.er1
2796 grep -v '^ *+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 { ac_try='test -z "$ac_c_werror_flag"
2802 || test ! -s conftest.err'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; } &&
2808 { ac_try='test -s conftest.$ac_objext'
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2814 echo "$as_me:$LINENO: result: yes" >&5
2815 echo "${ECHO_T}yes" >&6
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 CFLAGS="$pgac_save_CFLAGS"
2821 echo "$as_me:$LINENO: result: no" >&5
2822 echo "${ECHO_T}no" >&6
2824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 # Disable strict-aliasing rules; needed for gcc 3.3+
2828 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2829 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2830 pgac_save_CFLAGS=$CFLAGS
2831 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
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 # supply -g if --enable-debug
2884 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2888 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2889 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2891 # We already have this in Makefile.win32, but configure needs it too
2892 if test "$PORTNAME" = "win32"; then
2893 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2896 # Check if the compiler still works with the template settings
2897 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2898 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2915 rm -f conftest.$ac_objext conftest$ac_exeext
2916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2917 (eval $ac_link) 2>conftest.er1
2919 grep -v '^ *+' conftest.er1 >conftest.err
2921 cat conftest.err >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); } &&
2924 { ac_try='test -z "$ac_c_werror_flag"
2925 || test ! -s conftest.err'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; } &&
2931 { ac_try='test -s conftest$ac_exeext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938 echo "${ECHO_T}yes" >&6
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2943 echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6
2945 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2946 echo "$as_me: error: cannot proceed" >&2;}
2947 { (exit 1); exit 1; }; }
2949 rm -f conftest.err conftest.$ac_objext \
2950 conftest$ac_exeext conftest.$ac_ext
2952 # Defend against gcc -ffast-math
2953 if test "$GCC" = yes; then
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2964 #ifdef __FAST_MATH__
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973 (eval $ac_compile) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } &&
2980 { ac_try='test -z "$ac_c_werror_flag"
2981 || test ! -s conftest.err'
2982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2999 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3000 { (exit 1); exit 1; }; }
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3016 if test -z "$CPP"; then
3017 if test "${ac_cv_prog_CPP+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 # Double quotes because CPP needs to be expanded
3021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3128 echo "$as_me:$LINENO: result: $CPP" >&5
3129 echo "${ECHO_T}$CPP" >&6
3131 for ac_c_preproc_warn_flag in '' yes
3133 # Use a header file that comes with gcc, so configuring glibc
3134 # with a fresh cross-compiler works.
3135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3136 # <limits.h> exists even on freestanding compilers.
3137 # On the NeXT, cc -E runs the code through the compiler's parser,
3138 # not just through cpp. "Syntax error" is here to catch this case.
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3146 # include <limits.h>
3148 # include <assert.h>
3152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } >/dev/null; then
3160 if test -s conftest.err; then
3161 ac_cpp_err=$ac_c_preproc_warn_flag
3162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3169 if test -z "$ac_cpp_err"; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 # Broken: fails on valid input.
3178 rm -f conftest.err conftest.$ac_ext
3180 # OK, works on sane cases. Now check whether non-existent headers
3181 # can be detected and how.
3182 cat >conftest.$ac_ext <<_ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <ac_nonexistent.h>
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3207 if test -z "$ac_cpp_err"; then
3208 # Broken: success on invalid input.
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3214 # Passes both tests.
3218 rm -f conftest.err conftest.$ac_ext
3221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3222 rm -f conftest.err conftest.$ac_ext
3223 if $ac_preproc_ok; then
3226 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 # Create compiler version string
3242 if test x"$GCC" = x"yes" ; then
3243 cc_string="GCC `${CC} --version | sed q`"
3248 cat >>confdefs.h <<_ACEOF
3249 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3255 # Set up TAS assembly code if needed; the template file has now had its
3256 # chance to request this.
3258 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3261 if test "$need_tas" = yes ; then
3270 # Automatic dependency tracking
3274 # Check whether --enable-depend or --disable-depend was given.
3275 if test "${enable_depend+set}" = set; then
3276 enableval="$enable_depend"
3286 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3287 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3288 { (exit 1); exit 1; }; }
3301 # Enable assert checks
3305 # Check whether --enable-cassert or --disable-cassert was given.
3306 if test "${enable_cassert+set}" = set; then
3307 enableval="$enable_cassert"
3312 cat >>confdefs.h <<\_ACEOF
3313 #define USE_ASSERT_CHECKING 1
3321 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3322 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3323 { (exit 1); exit 1; }; }
3335 # Include directories
3338 IFS="${IFS}${PATH_SEPARATOR}"
3339 # SRCH_INC comes from the template file
3340 for dir in $with_includes $SRCH_INC; do
3341 if test -d "$dir"; then
3342 INCLUDES="$INCLUDES -I$dir"
3344 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3345 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3353 # Library directories
3356 IFS="${IFS}${PATH_SEPARATOR}"
3357 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3358 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3359 if test -d "$dir"; then
3360 LIBDIRS="$LIBDIRS -L$dir"
3362 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3363 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3369 # Enable thread-safe client libraries
3371 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3372 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3375 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3376 if test "${enable_thread_safety+set}" = set; then
3377 enableval="$enable_thread_safety"
3387 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3388 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3389 { (exit 1); exit 1; }; }
3394 enable_thread_safety=no
3400 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3401 if test "${enable_thread_safety_force+set}" = set; then
3402 enableval="$enable_thread_safety_force"
3412 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3413 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3414 { (exit 1); exit 1; }; }
3419 enable_thread_safety_force=no
3423 if test "$enable_thread_safety" = yes -o \
3424 "$enable_thread_safety_force" = yes; then
3425 enable_thread_safety="yes" # for 'force'
3427 cat >>confdefs.h <<\_ACEOF
3428 #define ENABLE_THREAD_SAFETY 1
3432 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3433 echo "${ECHO_T}$enable_thread_safety" >&6
3437 # Optionally build Tcl modules (PL/Tcl)
3439 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3440 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3444 # Check whether --with-tcl or --without-tcl was given.
3445 if test "${with_tcl+set}" = set; then
3456 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3457 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3458 { (exit 1); exit 1; }; }
3467 echo "$as_me:$LINENO: result: $with_tcl" >&5
3468 echo "${ECHO_T}$with_tcl" >&6
3471 # We see if the path to the Tcl/Tk configuration scripts is specified.
3472 # This will override the use of tclsh to find the paths to search.
3477 # Check whether --with-tclconfig or --without-tclconfig was given.
3478 if test "${with_tclconfig+set}" = set; then
3479 withval="$with_tclconfig"
3483 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3484 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3485 { (exit 1); exit 1; }; }
3488 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3489 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3490 { (exit 1); exit 1; }; }
3501 # Optionally build Perl modules (PL/Perl)
3503 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3504 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3508 # Check whether --with-perl or --without-perl was given.
3509 if test "${with_perl+set}" = set; then
3510 withval="$with_perl"
3520 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3521 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3522 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: result: $with_perl" >&5
3532 echo "${ECHO_T}$with_perl" >&6
3536 # Optionally build Python modules (PL/Python)
3538 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3539 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3543 # Check whether --with-python or --without-python was given.
3544 if test "${with_python+set}" = set; then
3545 withval="$with_python"
3555 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3556 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3557 { (exit 1); exit 1; }; }
3566 echo "$as_me:$LINENO: result: $with_python" >&5
3567 echo "${ECHO_T}$with_python" >&6
3573 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3574 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3578 # Check whether --with-krb5 or --without-krb5 was given.
3579 if test "${with_krb5+set}" = set; then
3580 withval="$with_krb5"
3586 cat >>confdefs.h <<\_ACEOF
3590 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3597 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3598 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3599 { (exit 1); exit 1; }; }
3608 echo "$as_me:$LINENO: result: $with_krb5" >&5
3609 echo "${ECHO_T}$with_krb5" >&6
3617 # Kerberos configuration parameters
3622 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3623 if test "${with_krb_srvnam+set}" = set; then
3624 withval="$with_krb_srvnam"
3628 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3629 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3630 { (exit 1); exit 1; }; }
3633 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3634 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3635 { (exit 1); exit 1; }; }
3643 with_krb_srvnam="postgres"
3647 cat >>confdefs.h <<_ACEOF
3648 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3656 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3657 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3661 # Check whether --with-pam or --without-pam was given.
3662 if test "${with_pam+set}" = set; then
3668 cat >>confdefs.h <<\_ACEOF
3677 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3678 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3679 { (exit 1); exit 1; }; }
3688 echo "$as_me:$LINENO: result: $with_pam" >&5
3689 echo "${ECHO_T}$with_pam" >&6
3696 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3697 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3701 # Check whether --with-bonjour or --without-bonjour was given.
3702 if test "${with_bonjour+set}" = set; then
3703 withval="$with_bonjour"
3708 cat >>confdefs.h <<\_ACEOF
3709 #define USE_BONJOUR 1
3717 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3718 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3719 { (exit 1); exit 1; }; }
3728 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3729 echo "${ECHO_T}$with_bonjour" >&6
3736 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3737 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3741 # Check whether --with-openssl or --without-openssl was given.
3742 if test "${with_openssl+set}" = set; then
3743 withval="$with_openssl"
3748 cat >>confdefs.h <<\_ACEOF
3757 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3758 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3759 { (exit 1); exit 1; }; }
3768 echo "$as_me:$LINENO: result: $with_openssl" >&5
3769 echo "${ECHO_T}$with_openssl" >&6
3779 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3780 if test "${with_libedit_preferred+set}" = set; then
3781 withval="$with_libedit_preferred"
3791 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3792 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3793 { (exit 1); exit 1; }; }
3798 with_libedit_preferred=no
3810 # Check whether --with-readline or --without-readline was given.
3811 if test "${with_readline+set}" = set; then
3812 withval="$with_readline"
3822 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3823 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3824 { (exit 1); exit 1; }; }
3833 # readline on MinGW has problems with backslashes in psql and other bugs.
3834 # This is particularly a problem with non-US code pages.
3835 # Therefore disable its use until we understand the cause. 2004-07-20
3836 if test "$PORTNAME" = "win32"; then
3837 if test "$with_readline" = yes; then
3838 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3839 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3851 # Check whether --with-zlib or --without-zlib was given.
3852 if test "${with_zlib+set}" = set; then
3853 withval="$with_zlib"
3863 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3864 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3865 { (exit 1); exit 1; }; }
3880 # Assume system is ELF if it predefines __ELF__ as 1,
3881 # otherwise believe host_os based default.
3883 freebsd1*|freebsd2*) elf=no;;
3884 freebsd3*|freebsd4*) elf=yes;;
3888 echo "$as_me:$LINENO: checking for egrep" >&5
3889 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3890 if test "${ac_cv_prog_egrep+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3894 then ac_cv_prog_egrep='grep -E'
3895 else ac_cv_prog_egrep='egrep'
3898 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3899 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3900 EGREP=$ac_cv_prog_egrep
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "yes" >/dev/null 2>&1; then
3918 if test "X$elf" = "Xyes" ; then
3932 CPPFLAGS="$CPPFLAGS $INCLUDES"
3933 LDFLAGS="$LDFLAGS $LIBDIRS"
3935 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3936 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3937 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3938 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3942 for ac_prog in gawk mawk nawk awk
3944 # Extract the first word of "$ac_prog", so it can be a program name with args.
3945 set dummy $ac_prog; ac_word=$2
3946 echo "$as_me:$LINENO: checking for $ac_word" >&5
3947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3948 if test "${ac_cv_prog_AWK+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test -n "$AWK"; then
3952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_AWK="$ac_prog"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 if test -n "$AWK"; then
3972 echo "$as_me:$LINENO: result: $AWK" >&5
3973 echo "${ECHO_T}$AWK" >&6
3975 echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6
3979 test -n "$AWK" && break
3982 echo "$as_me:$LINENO: checking for flex" >&5
3983 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3984 if test "${pgac_cv_path_flex+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 # Let the user override the test
3988 if test -n "$FLEX"; then
3989 pgac_cv_path_flex=$FLEX
3993 for pgac_dir in $PATH; do
3995 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3998 for pgac_prog in flex lex; do
3999 pgac_candidate="$pgac_dir/$pgac_prog"
4000 if test -f "$pgac_candidate" \
4001 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4003 echo '%%' > conftest.l
4004 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4005 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4006 pgac_broken_flex=$pgac_candidate
4010 pgac_cv_path_flex=$pgac_candidate
4016 rm -f conftest.l lex.yy.c
4017 : ${pgac_cv_path_flex=no}
4021 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4022 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4023 if test x"$pgac_cv_path_flex" = x"no"; then
4024 if test -n "$pgac_broken_flex"; then
4025 { echo "$as_me:$LINENO: WARNING:
4026 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4027 *** should get version 2.5.4 or later." >&5
4028 echo "$as_me: WARNING:
4029 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4030 *** should get version 2.5.4 or later." >&2;}
4033 { echo "$as_me:$LINENO: WARNING:
4034 *** Without Flex you will not be able to build PostgreSQL from CVS or
4035 *** change any of the scanner definition files. You can obtain Flex from
4036 *** a GNU mirror site. (If you are using the official distribution of
4037 *** PostgreSQL then you do not need to worry about this because the Flex
4038 *** output is pre-generated.)" >&5
4039 echo "$as_me: WARNING:
4040 *** Without Flex you will not be able to build PostgreSQL from CVS or
4041 *** change any of the scanner definition files. You can obtain Flex from
4042 *** a GNU mirror site. (If you are using the official distribution of
4043 *** PostgreSQL then you do not need to worry about this because the Flex
4044 *** output is pre-generated.)" >&2;}
4047 if test x"$pgac_cv_path_flex" = x"no"; then
4050 FLEX=$pgac_cv_path_flex
4056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4059 if test "$LN_S" = "ln -s"; then
4060 echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6
4063 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6
4068 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4069 if test "${with_gnu_ld+set}" = set; then
4070 withval="$with_gnu_ld"
4071 test "$withval" = no || with_gnu_ld=yes
4076 if test "$GCC" = yes; then
4077 # Check if gcc -print-prog-name=ld gives a path.
4078 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4079 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4082 # gcc leaves a trailing carriage return which upsets mingw
4083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4088 # Accept absolute paths.
4089 [\\/]* | [A-Za-z]:[\\/]*)
4090 re_direlt='/[^/][^/]*/\.\./'
4091 # Canonicalize the path of ld
4092 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4094 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4096 test -z "$LD" && LD="$ac_prog"
4099 # If it fails, then pretend we aren't using GCC.
4103 # If it is relative, then search for the first ld in PATH.
4107 elif test "$with_gnu_ld" = yes; then
4108 echo "$as_me:$LINENO: checking for GNU ld" >&5
4109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4111 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4114 if test "${ac_cv_path_LD+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -z "$LD"; then
4118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4119 for ac_dir in $PATH; do
4120 test -z "$ac_dir" && ac_dir=.
4121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4122 ac_cv_path_LD="$ac_dir/$ac_prog"
4123 # Check to see if the program is GNU ld. I'd rather use --version,
4124 # but apparently some GNU ld's only accept -v.
4125 # Break only if it was the GNU/non-GNU ld that we prefer.
4126 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4127 test "$with_gnu_ld" != no && break
4129 test "$with_gnu_ld" != yes && break
4135 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4140 if test -n "$LD"; then
4141 echo "$as_me:$LINENO: result: $LD" >&5
4142 echo "${ECHO_T}$LD" >&6
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4149 { (exit 1); exit 1; }; }
4150 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4152 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4156 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4157 ac_cv_prog_gnu_ld=yes
4159 ac_cv_prog_gnu_ld=no
4162 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4163 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4164 with_gnu_ld=$ac_cv_prog_gnu_ld
4169 case $host_os in sysv5*)
4170 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4171 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4172 if test "${pgac_cv_prog_ld_R+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag"
4202 || test ! -s conftest.err'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; } &&
4208 { ac_try='test -s conftest$ac_exeext'
4209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; }; then
4214 pgac_cv_prog_ld_R=yes
4216 echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4219 pgac_cv_prog_ld_R=no
4221 rm -f conftest.err conftest.$ac_objext \
4222 conftest$ac_exeext conftest.$ac_ext
4223 LDFLAGS=$pgac_save_LDFLAGS
4226 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4227 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4228 ld_R_works=$pgac_cv_prog_ld_R
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_RANLIB+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 RANLIB=$ac_cv_prog_RANLIB
4259 if test -n "$RANLIB"; then
4260 echo "$as_me:$LINENO: result: $RANLIB" >&5
4261 echo "${ECHO_T}$RANLIB" >&6
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4268 if test -z "$ac_cv_prog_RANLIB"; then
4269 ac_ct_RANLIB=$RANLIB
4270 # Extract the first word of "ranlib", so it can be a program name with args.
4271 set dummy ranlib; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$ac_ct_RANLIB"; then
4278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_ac_ct_RANLIB="ranlib"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4298 if test -n "$ac_ct_RANLIB"; then
4299 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4302 echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4306 RANLIB=$ac_ct_RANLIB
4308 RANLIB="$ac_cv_prog_RANLIB"
4311 for ac_prog in lorder
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4317 if test "${ac_cv_prog_LORDER+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 if test -n "$LORDER"; then
4321 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_LORDER="$ac_prog"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 LORDER=$ac_cv_prog_LORDER
4340 if test -n "$LORDER"; then
4341 echo "$as_me:$LINENO: result: $LORDER" >&5
4342 echo "${ECHO_T}$LORDER" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 test -n "$LORDER" && break
4351 # Extract the first word of "tar", so it can be a program name with args.
4352 set dummy tar; ac_word=$2
4353 echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_path_TAR+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$TAR"; then
4383 echo "$as_me:$LINENO: result: $TAR" >&5
4384 echo "${ECHO_T}$TAR" >&6
4386 echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4391 if test -n "$ac_tool_prefix"; then
4392 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4393 set dummy ${ac_tool_prefix}strip; ac_word=$2
4394 echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4396 if test "${ac_cv_prog_STRIP+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 if test -n "$STRIP"; then
4400 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 STRIP=$ac_cv_prog_STRIP
4419 if test -n "$STRIP"; then
4420 echo "$as_me:$LINENO: result: $STRIP" >&5
4421 echo "${ECHO_T}$STRIP" >&6
4423 echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4428 if test -z "$ac_cv_prog_STRIP"; then
4430 # Extract the first word of "strip", so it can be a program name with args.
4431 set dummy strip; ac_word=$2
4432 echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4434 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 if test -n "$ac_ct_STRIP"; then
4438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4447 ac_cv_prog_ac_ct_STRIP="strip"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4458 if test -n "$ac_ct_STRIP"; then
4459 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4460 echo "${ECHO_T}$ac_ct_STRIP" >&6
4462 echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4468 STRIP="$ac_cv_prog_STRIP"
4472 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4473 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4474 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4475 STRIP_STATIC_LIB="$STRIP -x"
4476 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4477 echo "$as_me:$LINENO: result: yes" >&5
4478 echo "${ECHO_T}yes" >&6
4482 echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4489 for ac_prog in 'bison -y'
4491 # Extract the first word of "$ac_prog", so it can be a program name with args.
4492 set dummy $ac_prog; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_YACC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 if test -n "$YACC"; then
4499 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_YACC="$ac_prog"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4517 YACC=$ac_cv_prog_YACC
4518 if test -n "$YACC"; then
4519 echo "$as_me:$LINENO: result: $YACC" >&5
4520 echo "${ECHO_T}$YACC" >&6
4522 echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4526 test -n "$YACC" && break
4530 if test "$YACC"; then
4531 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4532 { echo "$as_me:$LINENO: WARNING:
4533 *** If you are going to modify the grammar files or build from CVS, the installed
4534 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4535 echo "$as_me: WARNING:
4536 *** If you are going to modify the grammar files or build from CVS, the installed
4537 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4541 if test -z "$YACC"; then
4542 { echo "$as_me:$LINENO: WARNING:
4543 *** Without Bison you will not be able to build PostgreSQL from CVS or
4544 *** change any of the parser definition files. You can obtain Bison from
4545 *** a GNU mirror site. (If you are using the official distribution of
4546 *** PostgreSQL then you do not need to worry about this because the Bison
4547 *** output is pre-generated.) To use a different yacc program (possible,
4548 *** but not recommended), set the environment variable YACC before running
4549 *** 'configure'." >&5
4550 echo "$as_me: WARNING:
4551 *** Without Bison you will not be able to build PostgreSQL from CVS or
4552 *** change any of the parser definition files. You can obtain Bison from
4553 *** a GNU mirror site. (If you are using the official distribution of
4554 *** PostgreSQL then you do not need to worry about this because the Bison
4555 *** output is pre-generated.) To use a different yacc program (possible,
4556 *** but not recommended), set the environment variable YACC before running
4557 *** 'configure'." >&2;}
4561 # Extract the first word of "perl", so it can be a program name with args.
4562 set dummy perl; ac_word=$2
4563 echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565 if test "${ac_cv_path_PERL+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4570 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4580 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590 PERL=$ac_cv_path_PERL
4592 if test -n "$PERL"; then
4593 echo "$as_me:$LINENO: result: $PERL" >&5
4594 echo "${ECHO_T}$PERL" >&6
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4600 if test "$with_perl" = yes; then
4602 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4603 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4604 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4605 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4606 echo "${ECHO_T}$perl_archlibexp" >&6
4607 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4608 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4609 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4610 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4611 echo "${ECHO_T}$perl_privlibexp" >&6
4612 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4613 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4614 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4615 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4616 echo "${ECHO_T}$perl_useshrplib" >&6
4618 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4619 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4620 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4621 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4622 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4623 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4624 echo "${ECHO_T}$perl_embed_ldflags" >&6
4627 if test "$with_python" = yes; then
4628 # Extract the first word of "python", so it can be a program name with args.
4629 set dummy python; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_path_PYTHON+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4647 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 PYTHON=$ac_cv_path_PYTHON
4659 if test -n "$PYTHON"; then
4660 echo "$as_me:$LINENO: result: $PYTHON" >&5
4661 echo "${ECHO_T}$PYTHON" >&6
4663 echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6
4667 if test x"$PYTHON" = x""; then
4668 { { echo "$as_me:$LINENO: error: Python not found" >&5
4669 echo "$as_me: error: Python not found" >&2;}
4670 { (exit 1); exit 1; }; }
4674 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4675 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4676 if "${PYTHON}" 2>&- -c 'import distutils'
4678 echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6
4681 echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6
4683 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4684 echo "$as_me: error: distutils module not found" >&2;}
4685 { (exit 1); exit 1; }; }
4687 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4688 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4689 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4690 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')"`
4691 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4693 # This should be enough of a message.
4694 echo "$as_me:$LINENO: result: $python_configdir" >&5
4695 echo "${ECHO_T}$python_configdir" >&6
4698 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4699 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4701 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4702 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4703 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4704 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4706 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4708 # New way: use the official shared library
4709 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4710 python_libspec="-L${python_libdir} -l${ldlibrary}"
4712 # Old way: use libpython from python_configdir
4713 python_libdir="${python_configdir}"
4714 python_libspec="-L${python_libdir} -lpython${python_version}"
4717 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4719 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4720 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4723 # threaded python is not supported on bsd's
4724 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4725 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4726 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4727 if test "$pythreads" = "1"; then
4728 echo "$as_me:$LINENO: result: yes" >&5
4729 echo "${ECHO_T}yes" >&6
4732 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4733 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4734 { (exit 1); exit 1; }; }
4738 echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6
4750 echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
4751 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6
4752 if test "${ac_cv_search_setproctitle+set}" = set; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 ac_func_search_save_LIBS=$LIBS
4756 ac_cv_search_setproctitle=no
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4770 char setproctitle ();
4779 rm -f conftest.$ac_objext conftest$ac_exeext
4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4781 (eval $ac_link) 2>conftest.er1
4783 grep -v '^ *+' conftest.er1 >conftest.err
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -z "$ac_c_werror_flag"
4789 || test ! -s conftest.err'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; } &&
4795 { ac_try='test -s conftest$ac_exeext'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 ac_cv_search_setproctitle="none required"
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4807 rm -f conftest.err conftest.$ac_objext \
4808 conftest$ac_exeext conftest.$ac_ext
4809 if test "$ac_cv_search_setproctitle" = no; then
4810 for ac_lib in util; do
4811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4825 char setproctitle ();
4834 rm -f conftest.$ac_objext conftest$ac_exeext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4836 (eval $ac_link) 2>conftest.er1
4838 grep -v '^ *+' conftest.er1 >conftest.err
4840 cat conftest.err >&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } &&
4843 { ac_try='test -z "$ac_c_werror_flag"
4844 || test ! -s conftest.err'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; } &&
4850 { ac_try='test -s conftest$ac_exeext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_search_setproctitle="-l$ac_lib"
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f conftest.err conftest.$ac_objext \
4864 conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_func_search_save_LIBS
4869 echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
4870 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6
4871 if test "$ac_cv_search_setproctitle" != no; then
4872 test "$ac_cv_search_setproctitle" = "none required" || LIBS="$ac_cv_search_setproctitle $LIBS"
4876 echo "$as_me:$LINENO: checking for library containing pow" >&5
4877 echo $ECHO_N "checking for library containing pow... $ECHO_C" >&6
4878 if test "${ac_cv_search_pow+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_func_search_save_LIBS=$LIBS
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 /* Override any gcc2 internal prototype to avoid an error. */
4894 /* We use char because int might match the return type of a gcc2
4895 builtin and then its argument prototype would still apply. */
4905 rm -f conftest.$ac_objext conftest$ac_exeext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4907 (eval $ac_link) 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -z "$ac_c_werror_flag"
4915 || test ! -s conftest.err'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_search_pow="none required"
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4933 rm -f conftest.err conftest.$ac_objext \
4934 conftest$ac_exeext conftest.$ac_ext
4935 if test "$ac_cv_search_pow" = no; then
4937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest$ac_exeext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_search_pow="-l$ac_lib"
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4989 rm -f conftest.err conftest.$ac_objext \
4990 conftest$ac_exeext conftest.$ac_ext
4993 LIBS=$ac_func_search_save_LIBS
4995 echo "$as_me:$LINENO: result: $ac_cv_search_pow" >&5
4996 echo "${ECHO_T}$ac_cv_search_pow" >&6
4997 if test "$ac_cv_search_pow" != no; then
4998 test "$ac_cv_search_pow" = "none required" || LIBS="$ac_cv_search_pow $LIBS"
5002 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
5003 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
5004 if test "${ac_cv_search_dlopen+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_func_search_save_LIBS=$LIBS
5008 ac_cv_search_dlopen=no
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag"
5041 || test ! -s conftest.err'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; } &&
5047 { ac_try='test -s conftest$ac_exeext'
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5053 ac_cv_search_dlopen="none required"
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 if test "$ac_cv_search_dlopen" = no; then
5062 for ac_lib in dl; do
5063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5071 /* Override any gcc2 internal prototype to avoid an error. */
5075 /* We use char because int might match the return type of a gcc2
5076 builtin and then its argument prototype would still apply. */
5086 rm -f conftest.$ac_objext conftest$ac_exeext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5088 (eval $ac_link) 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_search_dlopen="-l$ac_lib"
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5115 rm -f conftest.err conftest.$ac_objext \
5116 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_func_search_save_LIBS
5121 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
5122 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
5123 if test "$ac_cv_search_dlopen" != no; then
5124 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
5128 echo "$as_me:$LINENO: checking for library containing socket" >&5
5129 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
5130 if test "${ac_cv_search_socket+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_func_search_save_LIBS=$LIBS
5134 ac_cv_search_socket=no
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5142 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_search_socket="none required"
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5185 rm -f conftest.err conftest.$ac_objext \
5186 conftest$ac_exeext conftest.$ac_ext
5187 if test "$ac_cv_search_socket" = no; then
5188 for ac_lib in socket wsock32; do
5189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5197 /* Override any gcc2 internal prototype to avoid an error. */
5201 /* We use char because int might match the return type of a gcc2
5202 builtin and then its argument prototype would still apply. */
5212 rm -f conftest.$ac_objext conftest$ac_exeext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5214 (eval $ac_link) 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } &&
5221 { ac_try='test -z "$ac_c_werror_flag"
5222 || test ! -s conftest.err'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest$ac_exeext'
5229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_search_socket="-l$ac_lib"
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f conftest.err conftest.$ac_objext \
5242 conftest$ac_exeext conftest.$ac_ext
5245 LIBS=$ac_func_search_save_LIBS
5247 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5248 echo "${ECHO_T}$ac_cv_search_socket" >&6
5249 if test "$ac_cv_search_socket" != no; then
5250 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
5254 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
5255 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
5256 if test "${ac_cv_search_shl_load+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_func_search_save_LIBS=$LIBS
5260 ac_cv_search_shl_load=no
5261 cat >conftest.$ac_ext <<_ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_c_werror_flag"
5293 || test ! -s conftest.err'
5294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); }; } &&
5299 { ac_try='test -s conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_search_shl_load="none required"
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5311 rm -f conftest.err conftest.$ac_objext \
5312 conftest$ac_exeext conftest.$ac_ext
5313 if test "$ac_cv_search_shl_load" = no; then
5314 for ac_lib in dld; do
5315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5338 rm -f conftest.$ac_objext conftest$ac_exeext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 (eval $ac_link) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1 >conftest.err
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_search_shl_load="-l$ac_lib"
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5367 rm -f conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5371 LIBS=$ac_func_search_save_LIBS
5373 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
5374 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
5375 if test "$ac_cv_search_shl_load" != no; then
5376 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
5380 echo "$as_me:$LINENO: checking for library containing ldopen" >&5
5381 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6
5382 if test "${ac_cv_search_ldopen+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 ac_func_search_save_LIBS=$LIBS
5386 ac_cv_search_ldopen=no
5387 cat >conftest.$ac_ext <<_ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5394 /* Override any gcc2 internal prototype to avoid an error. */
5398 /* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5409 rm -f conftest.$ac_objext conftest$ac_exeext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1 >conftest.err
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try='test -s conftest$ac_exeext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 ac_cv_search_ldopen="none required"
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5437 rm -f conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439 if test "$ac_cv_search_ldopen" = no; then
5440 for ac_lib in ld; do
5441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5449 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try='test -s conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_search_ldopen="-l$ac_lib"
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5493 rm -f conftest.err conftest.$ac_objext \
5494 conftest$ac_exeext conftest.$ac_ext
5497 LIBS=$ac_func_search_save_LIBS
5499 echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
5500 echo "${ECHO_T}$ac_cv_search_ldopen" >&6
5501 if test "$ac_cv_search_ldopen" != no; then
5502 test "$ac_cv_search_ldopen" = "none required" || LIBS="$ac_cv_search_ldopen $LIBS"
5506 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5507 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5508 if test "${ac_cv_search_getopt_long+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 ac_func_search_save_LIBS=$LIBS
5512 ac_cv_search_getopt_long=no
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char getopt_long ();
5535 rm -f conftest.$ac_objext conftest$ac_exeext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>conftest.er1
5539 grep -v '^ *+' conftest.er1 >conftest.err
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -z "$ac_c_werror_flag"
5545 || test ! -s conftest.err'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_search_getopt_long="none required"
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5563 rm -f conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565 if test "$ac_cv_search_getopt_long" = no; then
5566 for ac_lib in getopt gnugetopt; do
5567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5575 /* Override any gcc2 internal prototype to avoid an error. */
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5581 char getopt_long ();
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_search_getopt_long="-l$ac_lib"
5615 echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5619 rm -f conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5623 LIBS=$ac_func_search_save_LIBS
5625 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5626 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5627 if test "$ac_cv_search_getopt_long" != no; then
5628 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5632 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5633 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5634 if test "${ac_cv_search_crypt+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_func_search_save_LIBS=$LIBS
5638 ac_cv_search_crypt=no
5639 cat >conftest.$ac_ext <<_ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5646 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */
5661 rm -f conftest.$ac_objext conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663 (eval $ac_link) 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest$ac_exeext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_search_crypt="none required"
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
5691 if test "$ac_cv_search_crypt" = no; then
5692 for ac_lib in crypt; do
5693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5701 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
5725 { ac_try='test -z "$ac_c_werror_flag"
5726 || test ! -s conftest.err'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_search_crypt="-l$ac_lib"
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f conftest.err conftest.$ac_objext \
5746 conftest$ac_exeext conftest.$ac_ext
5749 LIBS=$ac_func_search_save_LIBS
5751 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5752 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5753 if test "$ac_cv_search_crypt" != no; then
5754 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5759 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5760 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5761 if test "${ac_cv_search_fdatasync+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 ac_func_search_save_LIBS=$LIBS
5765 ac_cv_search_fdatasync=no
5766 cat >conftest.$ac_ext <<_ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5777 /* We use char because int might match the return type of a gcc2
5778 builtin and then its argument prototype would still apply. */
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try='test -z "$ac_c_werror_flag"
5798 || test ! -s conftest.err'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; } &&
5804 { ac_try='test -s conftest$ac_exeext'
5805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_cv_search_fdatasync="none required"
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5816 rm -f conftest.err conftest.$ac_objext \
5817 conftest$ac_exeext conftest.$ac_ext
5818 if test "$ac_cv_search_fdatasync" = no; then
5819 for ac_lib in rt posix4; do
5820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5832 /* We use char because int might match the return type of a gcc2
5833 builtin and then its argument prototype would still apply. */
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 ac_cv_search_fdatasync="-l$ac_lib"
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5872 rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5876 LIBS=$ac_func_search_save_LIBS
5878 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5879 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5880 if test "$ac_cv_search_fdatasync" != no; then
5881 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5886 echo "$as_me:$LINENO: checking for library containing shmget" >&5
5887 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6
5888 if test "${ac_cv_search_shmget+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_func_search_save_LIBS=$LIBS
5892 ac_cv_search_shmget=no
5893 cat >conftest.$ac_ext <<_ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5900 /* Override any gcc2 internal prototype to avoid an error. */
5904 /* We use char because int might match the return type of a gcc2
5905 builtin and then its argument prototype would still apply. */
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 ac_cv_search_shmget="none required"
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5943 rm -f conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5945 if test "$ac_cv_search_shmget" = no; then
5946 for ac_lib in cygipc; do
5947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5970 rm -f conftest.$ac_objext conftest$ac_exeext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5972 (eval $ac_link) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try='test -z "$ac_c_werror_flag"
5980 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest$ac_exeext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_search_shmget="-l$ac_lib"
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5999 rm -f conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_func_search_save_LIBS
6005 echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
6006 echo "${ECHO_T}$ac_cv_search_shmget" >&6
6007 if test "$ac_cv_search_shmget" != no; then
6008 test "$ac_cv_search_shmget" = "none required" || LIBS="$ac_cv_search_shmget $LIBS"
6013 if test "$with_readline" = yes; then
6016 if test "${pgac_cv_check_readline+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 pgac_cv_check_readline=no
6020 pgac_save_LIBS=$LIBS
6021 if test x"$with_libedit_preferred" != x"yes"
6022 then READLINE_ORDER="-lreadline -ledit"
6023 else READLINE_ORDER="-ledit -lreadline"
6025 for pgac_rllib in $READLINE_ORDER ; do
6026 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6027 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6028 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6029 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6037 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6052 rm -f conftest.$ac_objext conftest$ac_exeext
6053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6054 (eval $ac_link) 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } &&
6061 { ac_try='test -z "$ac_c_werror_flag"
6062 || test ! -s conftest.err'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; } &&
6068 { ac_try='test -s conftest$ac_exeext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6075 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6076 # recognize dependent libraries; assume curses is needed if we didn't
6077 # find any dependency.
6079 netbsd* | openbsd* | irix*)
6080 if test x"$pgac_lib" = x"" ; then
6081 pgac_lib=" -lcurses"
6085 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f conftest.err conftest.$ac_objext \
6094 conftest$ac_exeext conftest.$ac_ext
6096 if test "$pgac_cv_check_readline" != no ; then
6097 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6098 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6101 echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6105 LIBS=$pgac_save_LIBS
6109 if test "$pgac_cv_check_readline" != no ; then
6110 LIBS="$pgac_cv_check_readline $LIBS"
6112 cat >>confdefs.h <<\_ACEOF
6113 #define HAVE_LIBREADLINE 1
6119 if test x"$pgac_cv_check_readline" = x"no"; then
6120 { { echo "$as_me:$LINENO: error: readline library not found
6121 If you have readline already installed, see config.log for details on the
6122 failure. It is possible the compiler isn't looking in the proper directory.
6123 Use --without-readline to disable readline support." >&5
6124 echo "$as_me: error: readline library not found
6125 If you have readline already installed, see config.log for details on the
6126 failure. It is possible the compiler isn't looking in the proper directory.
6127 Use --without-readline to disable readline support." >&2;}
6128 { (exit 1); exit 1; }; }
6132 if test "$with_zlib" = yes; then
6134 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6135 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6136 if test "${ac_cv_lib_z_inflate+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 ac_check_lib_save_LIBS=$LIBS
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6152 /* We use char because int might match the return type of a gcc2
6153 builtin and then its argument prototype would still apply. */
6163 rm -f conftest.$ac_objext conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165 (eval $ac_link) 2>conftest.er1
6167 grep -v '^ *+' conftest.er1 >conftest.err
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } &&
6172 { ac_try='test -z "$ac_c_werror_flag"
6173 || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try='test -s conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_lib_z_inflate=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_cv_lib_z_inflate=no
6192 rm -f conftest.err conftest.$ac_objext \
6193 conftest$ac_exeext conftest.$ac_ext
6194 LIBS=$ac_check_lib_save_LIBS
6196 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6197 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6198 if test $ac_cv_lib_z_inflate = yes; then
6199 cat >>confdefs.h <<_ACEOF
6206 { { echo "$as_me:$LINENO: error: zlib library not found
6207 If you have zlib already installed, see config.log for details on the
6208 failure. It is possible the compiler isn't looking in the proper directory.
6209 Use --without-zlib to disable zlib support." >&5
6210 echo "$as_me: error: zlib library not found
6211 If you have zlib already installed, see config.log for details on the
6212 failure. It is possible the compiler isn't looking in the proper directory.
6213 Use --without-zlib to disable zlib support." >&2;}
6214 { (exit 1); exit 1; }; }
6219 if test "$enable_spinlocks" = yes; then
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_SPINLOCKS 1
6226 { echo "$as_me:$LINENO: WARNING:
6227 *** Not using spinlocks will cause poor performance." >&5
6228 echo "$as_me: WARNING:
6229 *** Not using spinlocks will cause poor performance." >&2;}
6232 if test "$with_krb5" = yes ; then
6233 if test "$PORTNAME" != "win32"; then
6234 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6235 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6236 if test "${ac_cv_search_com_err+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_func_search_save_LIBS=$LIBS
6240 ac_cv_search_com_err=no
6241 cat >conftest.$ac_ext <<_ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6248 /* Override any gcc2 internal prototype to avoid an error. */
6252 /* We use char because int might match the return type of a gcc2
6253 builtin and then its argument prototype would still apply. */
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } &&
6272 { ac_try='test -z "$ac_c_werror_flag"
6273 || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest$ac_exeext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6285 ac_cv_search_com_err="none required"
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6291 rm -f conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6293 if test "$ac_cv_search_com_err" = no; then
6294 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6303 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1 >conftest.err
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_search_com_err="-l$ac_lib"
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.$ac_ext >&5
6347 rm -f conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6351 LIBS=$ac_func_search_save_LIBS
6353 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6354 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6355 if test "$ac_cv_search_com_err" != no; then
6356 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6359 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6360 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6361 { (exit 1); exit 1; }; }
6364 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6365 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6366 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_func_search_save_LIBS=$LIBS
6370 ac_cv_search_krb5_encrypt=no
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6378 /* Override any gcc2 internal prototype to avoid an error. */
6382 /* We use char because int might match the return type of a gcc2
6383 builtin and then its argument prototype would still apply. */
6384 char krb5_encrypt ();
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395 (eval $ac_link) 2>conftest.er1
6397 grep -v '^ *+' conftest.er1 >conftest.err
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } &&
6402 { ac_try='test -z "$ac_c_werror_flag"
6403 || test ! -s conftest.err'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; } &&
6409 { ac_try='test -s conftest$ac_exeext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6415 ac_cv_search_krb5_encrypt="none required"
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6421 rm -f conftest.err conftest.$ac_objext \
6422 conftest$ac_exeext conftest.$ac_ext
6423 if test "$ac_cv_search_krb5_encrypt" = no; then
6424 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6433 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6439 char krb5_encrypt ();
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6470 ac_cv_search_krb5_encrypt="-l$ac_lib"
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6477 rm -f conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_func_search_save_LIBS
6483 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6484 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6485 if test "$ac_cv_search_krb5_encrypt" != no; then
6486 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6489 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6490 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6491 { (exit 1); exit 1; }; }
6494 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6495 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 ac_func_search_save_LIBS=$LIBS
6500 ac_cv_search_krb5_sendauth=no
6501 cat >conftest.$ac_ext <<_ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6508 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6514 char krb5_sendauth ();
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -z "$ac_c_werror_flag"
6533 || test ! -s conftest.err'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; } &&
6539 { ac_try='test -s conftest$ac_exeext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 ac_cv_search_krb5_sendauth="none required"
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6551 rm -f conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553 if test "$ac_cv_search_krb5_sendauth" = no; then
6554 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6563 /* Override any gcc2 internal prototype to avoid an error. */
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char krb5_sendauth ();
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6580 (eval $ac_link) 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_search_krb5_sendauth="-l$ac_lib"
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6607 rm -f conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6611 LIBS=$ac_func_search_save_LIBS
6613 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6614 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6615 if test "$ac_cv_search_krb5_sendauth" != no; then
6616 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6619 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6620 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6621 { (exit 1); exit 1; }; }
6625 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6626 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6627 if test "${ac_cv_search_com_err+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_func_search_save_LIBS=$LIBS
6631 ac_cv_search_com_err=no
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6639 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6656 (eval $ac_link) 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -z "$ac_c_werror_flag"
6664 || test ! -s conftest.err'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_search_com_err="none required"
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6682 rm -f conftest.err conftest.$ac_objext \
6683 conftest$ac_exeext conftest.$ac_ext
6684 if test "$ac_cv_search_com_err" = no; then
6685 for ac_lib in 'comerr32 -lkrb5_32'; do
6686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6694 /* Override any gcc2 internal prototype to avoid an error. */
6698 /* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6709 rm -f conftest.$ac_objext conftest$ac_exeext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711 (eval $ac_link) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1 >conftest.err
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try='test -s conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_search_com_err="-l$ac_lib"
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6742 LIBS=$ac_func_search_save_LIBS
6744 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6745 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6746 if test "$ac_cv_search_com_err" != no; then
6747 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6750 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6751 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6752 { (exit 1); exit 1; }; }
6758 if test "$with_openssl" = yes ; then
6759 if test "$PORTNAME" != "win32"; then
6761 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6762 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6763 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_check_lib_save_LIBS=$LIBS
6767 LIBS="-lcrypto $LIBS"
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6775 /* Override any gcc2 internal prototype to avoid an error. */
6779 /* We use char because int might match the return type of a gcc2
6780 builtin and then its argument prototype would still apply. */
6781 char CRYPTO_new_ex_data ();
6785 CRYPTO_new_ex_data ();
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -z "$ac_c_werror_flag"
6800 || test ! -s conftest.err'
6801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest$ac_exeext'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6819 rm -f conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
6821 LIBS=$ac_check_lib_save_LIBS
6823 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6824 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6825 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_LIBCRYPTO 1
6830 LIBS="-lcrypto $LIBS"
6833 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6834 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6835 { (exit 1); exit 1; }; }
6839 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6840 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6841 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6844 ac_check_lib_save_LIBS=$LIBS
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6853 /* Override any gcc2 internal prototype to avoid an error. */
6857 /* We use char because int might match the return type of a gcc2
6858 builtin and then its argument prototype would still apply. */
6859 char SSL_library_init ();
6863 SSL_library_init ();
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } &&
6877 { ac_try='test -z "$ac_c_werror_flag"
6878 || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_lib_ssl_SSL_library_init=yes
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6895 ac_cv_lib_ssl_SSL_library_init=no
6897 rm -f conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 LIBS=$ac_check_lib_save_LIBS
6901 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6902 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6903 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6904 cat >>confdefs.h <<_ACEOF
6905 #define HAVE_LIBSSL 1
6911 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6912 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6913 { (exit 1); exit 1; }; }
6918 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6919 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6920 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_check_lib_save_LIBS=$LIBS
6924 LIBS="-leay32 $LIBS"
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6932 /* Override any gcc2 internal prototype to avoid an error. */
6936 /* We use char because int might match the return type of a gcc2
6937 builtin and then its argument prototype would still apply. */
6938 char CRYPTO_new_ex_data ();
6942 CRYPTO_new_ex_data ();
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6949 (eval $ac_link) 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } &&
6956 { ac_try='test -z "$ac_c_werror_flag"
6957 || test ! -s conftest.err'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; } &&
6963 { ac_try='test -s conftest$ac_exeext'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6969 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
6976 rm -f conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 LIBS=$ac_check_lib_save_LIBS
6980 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
6981 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
6982 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
6983 cat >>confdefs.h <<_ACEOF
6984 #define HAVE_LIBEAY32 1
6987 LIBS="-leay32 $LIBS"
6990 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
6991 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
6992 { (exit 1); exit 1; }; }
6996 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
6997 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
6998 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_check_lib_save_LIBS=$LIBS
7002 LIBS="-lssleay32 $LIBS"
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7010 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char SSL_library_init ();
7020 SSL_library_init ();
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_cv_lib_ssleay32_SSL_library_init=yes
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7052 ac_cv_lib_ssleay32_SSL_library_init=no
7054 rm -f conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 LIBS=$ac_check_lib_save_LIBS
7058 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7059 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7060 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7061 cat >>confdefs.h <<_ACEOF
7062 #define HAVE_LIBSSLEAY32 1
7065 LIBS="-lssleay32 $LIBS"
7068 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7069 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7070 { (exit 1); exit 1; }; }
7076 if test "$with_pam" = yes ; then
7078 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7079 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7080 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 ac_check_lib_save_LIBS=$LIBS
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7092 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_lib_pam_pam_start=yes
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 ac_cv_lib_pam_pam_start=no
7136 rm -f conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7140 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7141 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7142 if test $ac_cv_lib_pam_pam_start = yes; then
7143 cat >>confdefs.h <<_ACEOF
7144 #define HAVE_LIBPAM 1
7150 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7151 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7152 { (exit 1); exit 1; }; }
7162 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7163 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7164 if test "${ac_cv_header_stdc+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_header_stdc=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_header_stdc=no
7215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7217 if test $ac_cv_header_stdc = yes; then
7218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "memchr" >/dev/null 2>&1; then
7232 ac_cv_header_stdc=no
7238 if test $ac_cv_header_stdc = yes; then
7239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7240 cat >conftest.$ac_ext <<_ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7250 $EGREP "free" >/dev/null 2>&1; then
7253 ac_cv_header_stdc=no
7259 if test $ac_cv_header_stdc = yes; then
7260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7261 if test "$cross_compiling" = yes; then
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 #if ((' ' & 0x0FF) == 0x020)
7272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7275 # define ISLOWER(c) \
7276 (('a' <= (c) && (c) <= 'i') \
7277 || ('j' <= (c) && (c) <= 'r') \
7278 || ('s' <= (c) && (c) <= 'z'))
7279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7287 for (i = 0; i < 256; i++)
7288 if (XOR (islower (i), ISLOWER (i))
7289 || toupper (i) != TOUPPER (i))
7294 rm -f conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7307 echo "$as_me: program exited with status $ac_status" >&5
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_cv_header_stdc=no
7314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7320 if test $ac_cv_header_stdc = yes; then
7322 cat >>confdefs.h <<\_ACEOF
7323 #define STDC_HEADERS 1
7328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7338 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7339 inttypes.h stdint.h unistd.h
7341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7342 echo "$as_me:$LINENO: checking for $ac_header" >&5
7343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7347 cat >conftest.$ac_ext <<_ACEOF
7350 cat confdefs.h >>conftest.$ac_ext
7351 cat >>conftest.$ac_ext <<_ACEOF
7352 /* end confdefs.h. */
7353 $ac_includes_default
7355 #include <$ac_header>
7357 rm -f conftest.$ac_objext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try='test -z "$ac_c_werror_flag"
7367 || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 eval "$as_ac_Header=yes"
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 eval "$as_ac_Header=no"
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7391 cat >>confdefs.h <<_ACEOF
7392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425 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
7427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7429 echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7437 # Is the header compilable?
7438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7440 cat >conftest.$ac_ext <<_ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7447 #include <$ac_header>
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>conftest.er1
7453 grep -v '^ *+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } &&
7458 { ac_try='test -z "$ac_c_werror_flag"
7459 || test ! -s conftest.err'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; } &&
7465 { ac_try='test -s conftest.$ac_objext'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 ac_header_compiler=yes
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_header_compiler=no
7478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7479 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7480 echo "${ECHO_T}$ac_header_compiler" >&6
7482 # Is the header present?
7483 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 #include <$ac_header>
7493 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7494 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } >/dev/null; then
7501 if test -s conftest.err; then
7502 ac_cpp_err=$ac_c_preproc_warn_flag
7503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7510 if test -z "$ac_cpp_err"; then
7511 ac_header_preproc=yes
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ac_header_preproc=no
7518 rm -f conftest.err conftest.$ac_ext
7519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7520 echo "${ECHO_T}$ac_header_preproc" >&6
7522 # So? What about this header?
7523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7529 ac_header_preproc=yes
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7546 ## ---------------------------------------- ##
7547 ## Report this to pgsql-bugs@postgresql.org ##
7548 ## ---------------------------------------- ##
7551 sed "s/^/$as_me: WARNING: /" >&2
7554 echo "$as_me:$LINENO: checking for $ac_header" >&5
7555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 eval "$as_ac_Header=\$ac_header_preproc"
7561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7566 cat >>confdefs.h <<_ACEOF
7567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7575 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7576 # netinet/in.h is included first.
7578 for ac_header in netinet/in.h
7580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7582 echo "$as_me:$LINENO: checking for $ac_header" >&5
7583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 # Is the header compilable?
7591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7593 cat >conftest.$ac_ext <<_ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 #include <$ac_header>
7602 rm -f conftest.$ac_objext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604 (eval $ac_compile) 2>conftest.er1
7606 grep -v '^ *+' conftest.er1 >conftest.err
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_header_compiler=yes
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_header_compiler=no
7631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7633 echo "${ECHO_T}$ac_header_compiler" >&6
7635 # Is the header present?
7636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 #include <$ac_header>
7646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649 grep -v '^ *+' conftest.er1 >conftest.err
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } >/dev/null; then
7654 if test -s conftest.err; then
7655 ac_cpp_err=$ac_c_preproc_warn_flag
7656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7663 if test -z "$ac_cpp_err"; then
7664 ac_header_preproc=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 ac_header_preproc=no
7671 rm -f conftest.err conftest.$ac_ext
7672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7673 echo "${ECHO_T}$ac_header_preproc" >&6
7675 # So? What about this header?
7676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7682 ac_header_preproc=yes
7685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7699 ## ---------------------------------------- ##
7700 ## Report this to pgsql-bugs@postgresql.org ##
7701 ## ---------------------------------------- ##
7704 sed "s/^/$as_me: WARNING: /" >&2
7707 echo "$as_me:$LINENO: checking for $ac_header" >&5
7708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 eval "$as_ac_Header=\$ac_header_preproc"
7714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7728 for ac_header in netinet/tcp.h
7730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731 echo "$as_me:$LINENO: checking for $ac_header" >&5
7732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7736 cat >conftest.$ac_ext <<_ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 #ifdef HAVE_NETINET_IN_H
7744 #include <netinet/in.h>
7748 #include <$ac_header>
7750 rm -f conftest.$ac_objext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7752 (eval $ac_compile) 2>conftest.er1
7754 grep -v '^ *+' conftest.er1 >conftest.err
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -z "$ac_c_werror_flag"
7760 || test ! -s conftest.err'
7761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; } &&
7766 { ac_try='test -s conftest.$ac_objext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 eval "$as_ac_Header=yes"
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7777 eval "$as_ac_Header=no"
7779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7793 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7795 for ac_header in readline/readline.h
7797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7799 echo "$as_me:$LINENO: checking for $ac_header" >&5
7800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807 # Is the header compilable?
7808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 $ac_includes_default
7817 #include <$ac_header>
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1 >conftest.err
7825 cat conftest.err >&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest.$ac_objext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_header_compiler=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_header_compiler=no
7848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7849 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7850 echo "${ECHO_T}$ac_header_compiler" >&6
7852 # Is the header present?
7853 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #include <$ac_header>
7863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } >/dev/null; then
7871 if test -s conftest.err; then
7872 ac_cpp_err=$ac_c_preproc_warn_flag
7873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7880 if test -z "$ac_cpp_err"; then
7881 ac_header_preproc=yes
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 ac_header_preproc=no
7888 rm -f conftest.err conftest.$ac_ext
7889 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7890 echo "${ECHO_T}$ac_header_preproc" >&6
7892 # So? What about this header?
7893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7899 ac_header_preproc=yes
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7916 ## ---------------------------------------- ##
7917 ## Report this to pgsql-bugs@postgresql.org ##
7918 ## ---------------------------------------- ##
7921 sed "s/^/$as_me: WARNING: /" >&2
7924 echo "$as_me:$LINENO: checking for $ac_header" >&5
7925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 eval "$as_ac_Header=\$ac_header_preproc"
7931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7936 cat >>confdefs.h <<_ACEOF
7937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 for ac_header in readline.h
7944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7946 echo "$as_me:$LINENO: checking for $ac_header" >&5
7947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7954 # Is the header compilable?
7955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7964 #include <$ac_header>
7966 rm -f conftest.$ac_objext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>conftest.er1
7970 grep -v '^ *+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -z "$ac_c_werror_flag"
7976 || test ! -s conftest.err'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_header_compiler=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_header_compiler=no
7995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7997 echo "${ECHO_T}$ac_header_compiler" >&6
7999 # Is the header present?
8000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 #include <$ac_header>
8010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } >/dev/null; then
8018 if test -s conftest.err; then
8019 ac_cpp_err=$ac_c_preproc_warn_flag
8020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8027 if test -z "$ac_cpp_err"; then
8028 ac_header_preproc=yes
8030 echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_header_preproc=no
8035 rm -f conftest.err conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8037 echo "${ECHO_T}$ac_header_preproc" >&6
8039 # So? What about this header?
8040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8046 ac_header_preproc=yes
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8063 ## ---------------------------------------- ##
8064 ## Report this to pgsql-bugs@postgresql.org ##
8065 ## ---------------------------------------- ##
8068 sed "s/^/$as_me: WARNING: /" >&2
8071 echo "$as_me:$LINENO: checking for $ac_header" >&5
8072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8076 eval "$as_ac_Header=\$ac_header_preproc"
8078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8083 cat >>confdefs.h <<_ACEOF
8084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8088 { { echo "$as_me:$LINENO: error: readline header not found
8089 If you have readline already installed, see config.log for details on the
8090 failure. It is possible the compiler isn't looking in the proper directory.
8091 Use --without-readline to disable readline support." >&5
8092 echo "$as_me: error: readline header not found
8093 If you have readline already installed, see config.log for details on the
8094 failure. It is possible the compiler isn't looking in the proper directory.
8095 Use --without-readline to disable readline support." >&2;}
8096 { (exit 1); exit 1; }; }
8106 for ac_header in readline/history.h
8108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8110 echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8118 # Is the header compilable?
8119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #include <$ac_header>
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1 >conftest.err
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try='test -z "$ac_c_werror_flag"
8140 || test ! -s conftest.err'
8141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_header_compiler=no
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <$ac_header>
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } >/dev/null; then
8182 if test -s conftest.err; then
8183 ac_cpp_err=$ac_c_preproc_warn_flag
8184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8191 if test -z "$ac_cpp_err"; then
8192 ac_header_preproc=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_header_preproc=no
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8203 # So? What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8210 ac_header_preproc=yes
8213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8227 ## ---------------------------------------- ##
8228 ## Report this to pgsql-bugs@postgresql.org ##
8229 ## ---------------------------------------- ##
8232 sed "s/^/$as_me: WARNING: /" >&2
8235 echo "$as_me:$LINENO: checking for $ac_header" >&5
8236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 eval "$as_ac_Header=\$ac_header_preproc"
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247 cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8253 for ac_header in history.h
8255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8265 # Is the header compilable?
8266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8275 #include <$ac_header>
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_header_compiler=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_header_compiler=no
8306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6
8310 # Is the header present?
8311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <$ac_header>
8321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } >/dev/null; then
8329 if test -s conftest.err; then
8330 ac_cpp_err=$ac_c_preproc_warn_flag
8331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8338 if test -z "$ac_cpp_err"; then
8339 ac_header_preproc=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_header_preproc=no
8346 rm -f conftest.err conftest.$ac_ext
8347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8348 echo "${ECHO_T}$ac_header_preproc" >&6
8350 # So? What about this header?
8351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8357 ac_header_preproc=yes
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8374 ## ---------------------------------------- ##
8375 ## Report this to pgsql-bugs@postgresql.org ##
8376 ## ---------------------------------------- ##
8379 sed "s/^/$as_me: WARNING: /" >&2
8382 echo "$as_me:$LINENO: checking for $ac_header" >&5
8383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 eval "$as_ac_Header=\$ac_header_preproc"
8389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8399 { { echo "$as_me:$LINENO: error: history header not found
8400 If you have readline already installed, see config.log for details on the
8401 failure. It is possible the compiler isn't looking in the proper directory.
8402 Use --without-readline to disable readline support." >&5
8403 echo "$as_me: error: history header not found
8404 If you have readline already installed, see config.log for details on the
8405 failure. It is possible the compiler isn't looking in the proper directory.
8406 Use --without-readline to disable readline support." >&2;}
8407 { (exit 1); exit 1; }; }
8418 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8419 # Some installations of libedit usurp /usr/include/readline/, which seems
8420 # bad practice, since in combined installations readline will have its headers
8421 # there. We might have to resort to AC_EGREP checks to make sure we found
8422 # the proper header...
8424 for ac_header in editline/readline.h
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8436 # Is the header compilable?
8437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #include <$ac_header>
8448 rm -f conftest.$ac_objext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_header_compiler=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_compiler=no
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479 echo "${ECHO_T}$ac_header_compiler" >&6
8481 # Is the header present?
8482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #include <$ac_header>
8492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8495 grep -v '^ *+' conftest.er1 >conftest.err
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null; then
8500 if test -s conftest.err; then
8501 ac_cpp_err=$ac_c_preproc_warn_flag
8502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8509 if test -z "$ac_cpp_err"; then
8510 ac_header_preproc=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_preproc=no
8517 rm -f conftest.err conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519 echo "${ECHO_T}$ac_header_preproc" >&6
8521 # So? What about this header?
8522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8528 ac_header_preproc=yes
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8545 ## ---------------------------------------- ##
8546 ## Report this to pgsql-bugs@postgresql.org ##
8547 ## ---------------------------------------- ##
8550 sed "s/^/$as_me: WARNING: /" >&2
8553 echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 eval "$as_ac_Header=\$ac_header_preproc"
8560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571 for ac_header in readline.h
8573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8575 echo "$as_me:$LINENO: checking for $ac_header" >&5
8576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8583 # Is the header compilable?
8584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8586 cat >conftest.$ac_ext <<_ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 $ac_includes_default
8593 #include <$ac_header>
8595 rm -f conftest.$ac_objext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597 (eval $ac_compile) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_header_compiler=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_header_compiler=no
8624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8626 echo "${ECHO_T}$ac_header_compiler" >&6
8628 # Is the header present?
8629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 #include <$ac_header>
8639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } >/dev/null; then
8647 if test -s conftest.err; then
8648 ac_cpp_err=$ac_c_preproc_warn_flag
8649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8656 if test -z "$ac_cpp_err"; then
8657 ac_header_preproc=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_header_preproc=no
8664 rm -f conftest.err conftest.$ac_ext
8665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8666 echo "${ECHO_T}$ac_header_preproc" >&6
8668 # So? What about this header?
8669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8675 ac_header_preproc=yes
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8692 ## ---------------------------------------- ##
8693 ## Report this to pgsql-bugs@postgresql.org ##
8694 ## ---------------------------------------- ##
8697 sed "s/^/$as_me: WARNING: /" >&2
8700 echo "$as_me:$LINENO: checking for $ac_header" >&5
8701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 eval "$as_ac_Header=\$ac_header_preproc"
8707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8712 cat >>confdefs.h <<_ACEOF
8713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8718 for ac_header in readline/readline.h
8720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8722 echo "$as_me:$LINENO: checking for $ac_header" >&5
8723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8730 # Is the header compilable?
8731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 #include <$ac_header>
8742 rm -f conftest.$ac_objext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8744 (eval $ac_compile) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_header_compiler=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_header_compiler=no
8771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8773 echo "${ECHO_T}$ac_header_compiler" >&6
8775 # Is the header present?
8776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 #include <$ac_header>
8786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8789 grep -v '^ *+' conftest.er1 >conftest.err
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } >/dev/null; then
8794 if test -s conftest.err; then
8795 ac_cpp_err=$ac_c_preproc_warn_flag
8796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8803 if test -z "$ac_cpp_err"; then
8804 ac_header_preproc=yes
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 ac_header_preproc=no
8811 rm -f conftest.err conftest.$ac_ext
8812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8813 echo "${ECHO_T}$ac_header_preproc" >&6
8815 # So? What about this header?
8816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8822 ac_header_preproc=yes
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8839 ## ---------------------------------------- ##
8840 ## Report this to pgsql-bugs@postgresql.org ##
8841 ## ---------------------------------------- ##
8844 sed "s/^/$as_me: WARNING: /" >&2
8847 echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 eval "$as_ac_Header=\$ac_header_preproc"
8854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8859 cat >>confdefs.h <<_ACEOF
8860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8864 { { echo "$as_me:$LINENO: error: readline header not found
8865 If you have libedit already installed, see config.log for details on the
8866 failure. It is possible the compiler isn't looking in the proper directory.
8867 Use --without-readline to disable libedit support." >&5
8868 echo "$as_me: error: readline header not found
8869 If you have libedit already installed, see config.log for details on the
8870 failure. It is possible the compiler isn't looking in the proper directory.
8871 Use --without-readline to disable libedit support." >&2;}
8872 { (exit 1); exit 1; }; }
8886 for ac_header in editline/history.h
8888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8890 echo "$as_me:$LINENO: checking for $ac_header" >&5
8891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8898 # Is the header compilable?
8899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8907 $ac_includes_default
8908 #include <$ac_header>
8910 rm -f conftest.$ac_objext
8911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8912 (eval $ac_compile) 2>conftest.er1
8914 grep -v '^ *+' conftest.er1 >conftest.err
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } &&
8919 { ac_try='test -z "$ac_c_werror_flag"
8920 || test ! -s conftest.err'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_header_compiler=yes
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8937 ac_header_compiler=no
8939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8941 echo "${ECHO_T}$ac_header_compiler" >&6
8943 # Is the header present?
8944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8946 cat >conftest.$ac_ext <<_ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <$ac_header>
8954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8957 grep -v '^ *+' conftest.er1 >conftest.err
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } >/dev/null; then
8962 if test -s conftest.err; then
8963 ac_cpp_err=$ac_c_preproc_warn_flag
8964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8971 if test -z "$ac_cpp_err"; then
8972 ac_header_preproc=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_header_preproc=no
8979 rm -f conftest.err conftest.$ac_ext
8980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8981 echo "${ECHO_T}$ac_header_preproc" >&6
8983 # So? What about this header?
8984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8990 ac_header_preproc=yes
8993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9007 ## ---------------------------------------- ##
9008 ## Report this to pgsql-bugs@postgresql.org ##
9009 ## ---------------------------------------- ##
9012 sed "s/^/$as_me: WARNING: /" >&2
9015 echo "$as_me:$LINENO: checking for $ac_header" >&5
9016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9020 eval "$as_ac_Header=\$ac_header_preproc"
9022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9027 cat >>confdefs.h <<_ACEOF
9028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9033 for ac_header in history.h
9035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037 echo "$as_me:$LINENO: checking for $ac_header" >&5
9038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9045 # Is the header compilable?
9046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9055 #include <$ac_header>
9057 rm -f conftest.$ac_objext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9059 (eval $ac_compile) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag"
9067 || test ! -s conftest.err'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_header_compiler=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_header_compiler=no
9086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088 echo "${ECHO_T}$ac_header_compiler" >&6
9090 # Is the header present?
9091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 #include <$ac_header>
9101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9104 grep -v '^ *+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } >/dev/null; then
9109 if test -s conftest.err; then
9110 ac_cpp_err=$ac_c_preproc_warn_flag
9111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9118 if test -z "$ac_cpp_err"; then
9119 ac_header_preproc=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_preproc=no
9126 rm -f conftest.err conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128 echo "${ECHO_T}$ac_header_preproc" >&6
9130 # So? What about this header?
9131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9137 ac_header_preproc=yes
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9154 ## ---------------------------------------- ##
9155 ## Report this to pgsql-bugs@postgresql.org ##
9156 ## ---------------------------------------- ##
9159 sed "s/^/$as_me: WARNING: /" >&2
9162 echo "$as_me:$LINENO: checking for $ac_header" >&5
9163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 eval "$as_ac_Header=\$ac_header_preproc"
9169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9174 cat >>confdefs.h <<_ACEOF
9175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 for ac_header in readline/history.h
9182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo "$as_me:$LINENO: checking for $ac_header" >&5
9185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9192 # Is the header compilable?
9193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 $ac_includes_default
9202 #include <$ac_header>
9204 rm -f conftest.$ac_objext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9206 (eval $ac_compile) 2>conftest.er1
9208 grep -v '^ *+' conftest.er1 >conftest.err
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -z "$ac_c_werror_flag"
9214 || test ! -s conftest.err'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; } &&
9220 { ac_try='test -s conftest.$ac_objext'
9221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9226 ac_header_compiler=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_header_compiler=no
9233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9235 echo "${ECHO_T}$ac_header_compiler" >&6
9237 # Is the header present?
9238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9240 cat >conftest.$ac_ext <<_ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <$ac_header>
9248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } >/dev/null; then
9256 if test -s conftest.err; then
9257 ac_cpp_err=$ac_c_preproc_warn_flag
9258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9265 if test -z "$ac_cpp_err"; then
9266 ac_header_preproc=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_header_preproc=no
9273 rm -f conftest.err conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9275 echo "${ECHO_T}$ac_header_preproc" >&6
9277 # So? What about this header?
9278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9284 ac_header_preproc=yes
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9301 ## ---------------------------------------- ##
9302 ## Report this to pgsql-bugs@postgresql.org ##
9303 ## ---------------------------------------- ##
9306 sed "s/^/$as_me: WARNING: /" >&2
9309 echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 eval "$as_ac_Header=\$ac_header_preproc"
9316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9321 cat >>confdefs.h <<_ACEOF
9322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326 { { echo "$as_me:$LINENO: error: history header not found
9327 If you have libedit already installed, see config.log for details on the
9328 failure. It is possible the compiler isn't looking in the proper directory.
9329 Use --without-readline to disable libedit support." >&5
9330 echo "$as_me: error: history header not found
9331 If you have libedit already installed, see config.log for details on the
9332 failure. It is possible the compiler isn't looking in the proper directory.
9333 Use --without-readline to disable libedit support." >&2;}
9334 { (exit 1); exit 1; }; }
9349 if test "$with_zlib" = yes; then
9350 if test "${ac_cv_header_zlib_h+set}" = set; then
9351 echo "$as_me:$LINENO: checking for zlib.h" >&5
9352 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9353 if test "${ac_cv_header_zlib_h+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9357 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9359 # Is the header compilable?
9360 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9361 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9393 ac_header_compiler=yes
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9398 ac_header_compiler=no
9400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9402 echo "${ECHO_T}$ac_header_compiler" >&6
9404 # Is the header present?
9405 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9406 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9407 cat >conftest.$ac_ext <<_ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418 grep -v '^ *+' conftest.er1 >conftest.err
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } >/dev/null; then
9423 if test -s conftest.err; then
9424 ac_cpp_err=$ac_c_preproc_warn_flag
9425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9432 if test -z "$ac_cpp_err"; then
9433 ac_header_preproc=yes
9435 echo "$as_me: failed program was:" >&5
9436 sed 's/^/| /' conftest.$ac_ext >&5
9438 ac_header_preproc=no
9440 rm -f conftest.err conftest.$ac_ext
9441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9447 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9450 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9451 ac_header_preproc=yes
9454 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9455 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9457 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9459 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9461 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9463 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9465 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9468 ## ---------------------------------------- ##
9469 ## Report this to pgsql-bugs@postgresql.org ##
9470 ## ---------------------------------------- ##
9473 sed "s/^/$as_me: WARNING: /" >&2
9476 echo "$as_me:$LINENO: checking for zlib.h" >&5
9477 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9478 if test "${ac_cv_header_zlib_h+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 ac_cv_header_zlib_h=$ac_header_preproc
9483 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9484 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9487 if test $ac_cv_header_zlib_h = yes; then
9490 { { echo "$as_me:$LINENO: error: zlib header not found
9491 If you have zlib already installed, see config.log for details on the
9492 failure. It is possible the compiler isn't looking in the proper directory.
9493 Use --without-zlib to disable zlib support." >&5
9494 echo "$as_me: error: zlib header not found
9495 If you have zlib already installed, see config.log for details on the
9496 failure. It is possible the compiler isn't looking in the proper directory.
9497 Use --without-zlib to disable zlib support." >&2;}
9498 { (exit 1); exit 1; }; }
9504 if test "$with_krb5" = yes ; then
9505 if test "${ac_cv_header_krb5_h+set}" = set; then
9506 echo "$as_me:$LINENO: checking for krb5.h" >&5
9507 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9508 if test "${ac_cv_header_krb5_h+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9512 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9514 # Is the header compilable?
9515 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9516 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 $ac_includes_default
9526 rm -f conftest.$ac_objext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>conftest.er1
9530 grep -v '^ *+' conftest.er1 >conftest.err
9532 cat conftest.err >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -z "$ac_c_werror_flag"
9536 || test ! -s conftest.err'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_header_compiler=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9553 ac_header_compiler=no
9555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9557 echo "${ECHO_T}$ac_header_compiler" >&6
9559 # Is the header present?
9560 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9561 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } >/dev/null; then
9578 if test -s conftest.err; then
9579 ac_cpp_err=$ac_c_preproc_warn_flag
9580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9587 if test -z "$ac_cpp_err"; then
9588 ac_header_preproc=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 ac_header_preproc=no
9595 rm -f conftest.err conftest.$ac_ext
9596 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9597 echo "${ECHO_T}$ac_header_preproc" >&6
9599 # So? What about this header?
9600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9602 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9603 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9604 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
9605 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
9606 ac_header_preproc=yes
9609 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9610 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9611 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9612 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9613 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
9614 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
9615 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
9616 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
9617 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9618 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
9620 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
9623 ## ---------------------------------------- ##
9624 ## Report this to pgsql-bugs@postgresql.org ##
9625 ## ---------------------------------------- ##
9628 sed "s/^/$as_me: WARNING: /" >&2
9631 echo "$as_me:$LINENO: checking for krb5.h" >&5
9632 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9633 if test "${ac_cv_header_krb5_h+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 ac_cv_header_krb5_h=$ac_header_preproc
9638 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9639 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9642 if test $ac_cv_header_krb5_h = yes; then
9645 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9646 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9647 { (exit 1); exit 1; }; }
9653 if test "$with_openssl" = yes ; then
9654 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9655 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9656 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9657 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9661 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9663 # Is the header compilable?
9664 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9665 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 $ac_includes_default
9673 #include <openssl/ssl.h>
9675 rm -f conftest.$ac_objext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>conftest.er1
9679 grep -v '^ *+' conftest.er1 >conftest.err
9681 cat conftest.err >&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -z "$ac_c_werror_flag"
9685 || test ! -s conftest.err'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; } &&
9691 { ac_try='test -s conftest.$ac_objext'
9692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); }; }; then
9697 ac_header_compiler=yes
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_header_compiler=no
9704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9706 echo "${ECHO_T}$ac_header_compiler" >&6
9708 # Is the header present?
9709 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9710 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 #include <openssl/ssl.h>
9719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } >/dev/null; then
9727 if test -s conftest.err; then
9728 ac_cpp_err=$ac_c_preproc_warn_flag
9729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9736 if test -z "$ac_cpp_err"; then
9737 ac_header_preproc=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_header_preproc=no
9744 rm -f conftest.err conftest.$ac_ext
9745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9746 echo "${ECHO_T}$ac_header_preproc" >&6
9748 # So? What about this header?
9749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9751 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9752 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
9754 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
9755 ac_header_preproc=yes
9758 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9759 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9761 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
9763 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
9765 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9767 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
9769 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
9772 ## ---------------------------------------- ##
9773 ## Report this to pgsql-bugs@postgresql.org ##
9774 ## ---------------------------------------- ##
9777 sed "s/^/$as_me: WARNING: /" >&2
9780 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9781 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9782 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9787 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9788 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9791 if test $ac_cv_header_openssl_ssl_h = yes; then
9794 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9795 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9796 { (exit 1); exit 1; }; }
9800 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9801 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9802 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9803 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9807 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9809 # Is the header compilable?
9810 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9811 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9812 cat >conftest.$ac_ext <<_ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 #include <openssl/err.h>
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag"
9831 || test ! -s conftest.err'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; } &&
9837 { ac_try='test -s conftest.$ac_objext'
9838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; }; then
9843 ac_header_compiler=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_header_compiler=no
9850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6
9854 # Is the header present?
9855 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9856 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <openssl/err.h>
9865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } >/dev/null; then
9873 if test -s conftest.err; then
9874 ac_cpp_err=$ac_c_preproc_warn_flag
9875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9882 if test -z "$ac_cpp_err"; then
9883 ac_header_preproc=yes
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_header_preproc=no
9890 rm -f conftest.err conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9892 echo "${ECHO_T}$ac_header_preproc" >&6
9894 # So? What about this header?
9895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9897 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9898 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
9900 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
9901 ac_header_preproc=yes
9904 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9905 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9906 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9907 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
9909 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
9911 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9913 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
9915 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
9918 ## ---------------------------------------- ##
9919 ## Report this to pgsql-bugs@postgresql.org ##
9920 ## ---------------------------------------- ##
9923 sed "s/^/$as_me: WARNING: /" >&2
9926 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9927 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9928 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 ac_cv_header_openssl_err_h=$ac_header_preproc
9933 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9934 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9937 if test $ac_cv_header_openssl_err_h = yes; then
9940 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9941 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9942 { (exit 1); exit 1; }; }
9948 if test "$with_pam" = yes ; then
9950 for ac_header in security/pam_appl.h
9952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9954 echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9962 # Is the header compilable?
9963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 $ac_includes_default
9972 #include <$ac_header>
9974 rm -f conftest.$ac_objext
9975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>conftest.er1
9978 grep -v '^ *+' conftest.er1 >conftest.err
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } &&
9983 { ac_try='test -z "$ac_c_werror_flag"
9984 || test ! -s conftest.err'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; } &&
9990 { ac_try='test -s conftest.$ac_objext'
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9996 ac_header_compiler=yes
9998 echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10001 ac_header_compiler=no
10003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10005 echo "${ECHO_T}$ac_header_compiler" >&6
10007 # Is the header present?
10008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <$ac_header>
10018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } >/dev/null; then
10026 if test -s conftest.err; then
10027 ac_cpp_err=$ac_c_preproc_warn_flag
10028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10035 if test -z "$ac_cpp_err"; then
10036 ac_header_preproc=yes
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10041 ac_header_preproc=no
10043 rm -f conftest.err conftest.$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10045 echo "${ECHO_T}$ac_header_preproc" >&6
10047 # So? What about this header?
10048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10054 ac_header_preproc=yes
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10071 ## ---------------------------------------- ##
10072 ## Report this to pgsql-bugs@postgresql.org ##
10073 ## ---------------------------------------- ##
10076 sed "s/^/$as_me: WARNING: /" >&2
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 eval "$as_ac_Header=\$ac_header_preproc"
10086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10097 for ac_header in pam/pam_appl.h
10099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10101 echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10109 # Is the header compilable?
10110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 $ac_includes_default
10119 #include <$ac_header>
10121 rm -f conftest.$ac_objext
10122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10123 (eval $ac_compile) 2>conftest.er1
10125 grep -v '^ *+' conftest.er1 >conftest.err
10127 cat conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -z "$ac_c_werror_flag"
10131 || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_header_compiler=yes
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_header_compiler=no
10150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6
10154 # Is the header present?
10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #include <$ac_header>
10165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } >/dev/null; then
10173 if test -s conftest.err; then
10174 ac_cpp_err=$ac_c_preproc_warn_flag
10175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10182 if test -z "$ac_cpp_err"; then
10183 ac_header_preproc=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_preproc=no
10190 rm -f conftest.err conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6
10194 # So? What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218 ## ---------------------------------------- ##
10219 ## Report this to pgsql-bugs@postgresql.org ##
10220 ## ---------------------------------------- ##
10223 sed "s/^/$as_me: WARNING: /" >&2
10226 echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 eval "$as_ac_Header=\$ac_header_preproc"
10233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10243 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10244 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10245 { (exit 1); exit 1; }; }
10256 if test "$with_bonjour" = yes ; then
10257 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10258 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10259 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10260 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10264 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10266 # Is the header compilable?
10267 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10268 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10276 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10278 rm -f conftest.$ac_objext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280 (eval $ac_compile) 2>conftest.er1
10282 grep -v '^ *+' conftest.er1 >conftest.err
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag"
10288 || test ! -s conftest.err'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_header_compiler=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_header_compiler=no
10307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10309 echo "${ECHO_T}$ac_header_compiler" >&6
10311 # Is the header present?
10312 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10313 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10325 grep -v '^ *+' conftest.er1 >conftest.err
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } >/dev/null; then
10330 if test -s conftest.err; then
10331 ac_cpp_err=$ac_c_preproc_warn_flag
10332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10339 if test -z "$ac_cpp_err"; then
10340 ac_header_preproc=yes
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345 ac_header_preproc=no
10347 rm -f conftest.err conftest.$ac_ext
10348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10349 echo "${ECHO_T}$ac_header_preproc" >&6
10351 # So? What about this header?
10352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10354 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10355 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10357 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10358 ac_header_preproc=yes
10361 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10362 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10364 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10366 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10368 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10370 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10372 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10375 ## ---------------------------------------- ##
10376 ## Report this to pgsql-bugs@postgresql.org ##
10377 ## ---------------------------------------- ##
10380 sed "s/^/$as_me: WARNING: /" >&2
10383 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10384 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10385 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10390 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10391 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10394 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10397 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10398 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10399 { (exit 1); exit 1; }; }
10407 ## Types, structures, compiler characteristics
10410 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10411 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10412 if test "${ac_cv_c_const+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10425 /* FIXME: Include the comments suggested by Paul. */
10426 #ifndef __cplusplus
10427 /* Ultrix mips cc rejects this. */
10428 typedef int charset[2];
10430 /* SunOS 4.1.1 cc rejects this. */
10431 char const *const *ccp;
10433 /* NEC SVR4.0.2 mips cc rejects this. */
10434 struct point {int x, y;};
10435 static struct point const zero = {0,0};
10436 /* AIX XL C 1.02.0.0 rejects this.
10437 It does not let you subtract one const X* pointer from another in
10438 an arm of an if-expression whose if-part is not a constant
10440 const char *g = "string";
10441 ccp = &g + (g ? g-g : 0);
10442 /* HPUX 7.0 cc rejects these. */
10445 ccp = (char const *const *) p;
10446 { /* SCO 3.2v4 cc rejects this. */
10448 char const *s = 0 ? (char *) 0 : (char const *) 0;
10452 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10453 int x[] = {25, 17};
10454 const int *foo = &x[0];
10457 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10458 typedef const int *iptr;
10462 { /* AIX XL C 1.02.0.0 rejects this saying
10463 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10464 struct s { int j; const int *ap[3]; };
10465 struct s *b; b->j = 5;
10467 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10468 const int foo = 10;
10476 rm -f conftest.$ac_objext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10478 (eval $ac_compile) 2>conftest.er1
10480 grep -v '^ *+' conftest.er1 >conftest.err
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag"
10486 || test ! -s conftest.err'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; } &&
10492 { ac_try='test -s conftest.$ac_objext'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10507 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10508 echo "${ECHO_T}$ac_cv_c_const" >&6
10509 if test $ac_cv_c_const = no; then
10511 cat >>confdefs.h <<\_ACEOF
10518 echo "$as_me:$LINENO: checking for inline" >&5
10519 echo $ECHO_N "checking for inline... $ECHO_C" >&6
10520 if test "${ac_cv_c_inline+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 for ac_kw in inline __inline__ __inline; do
10525 cat >conftest.$ac_ext <<_ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h. */
10531 #ifndef __cplusplus
10533 static $ac_kw foo_t static_foo () {return 0; }
10534 $ac_kw int foo () {return 0; }
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540 (eval $ac_compile) 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } &&
10547 { ac_try='test -z "$ac_c_werror_flag"
10548 || test ! -s conftest.err'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest.$ac_objext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_c_inline=$ac_kw; break
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
10571 echo "${ECHO_T}$ac_cv_c_inline" >&6
10572 case $ac_cv_c_inline in
10575 cat >>confdefs.h <<\_ACEOF
10579 *) cat >>confdefs.h <<_ACEOF
10580 #define inline $ac_cv_c_inline
10585 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
10586 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
10587 if test "${ac_cv_c_stringize+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10598 char *s = x(teststring);
10600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10601 $EGREP "#teststring" >/dev/null 2>&1; then
10602 ac_cv_c_stringize=no
10604 ac_cv_c_stringize=yes
10609 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
10610 echo "${ECHO_T}$ac_cv_c_stringize" >&6
10611 if test $ac_cv_c_stringize = yes; then
10613 cat >>confdefs.h <<\_ACEOF
10614 #define HAVE_STRINGIZE 1
10619 echo "$as_me:$LINENO: checking for signed types" >&5
10620 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
10621 if test "${pgac_cv_c_signed+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10634 signed char c; signed short s; signed int i;
10639 rm -f conftest.$ac_objext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10641 (eval $ac_compile) 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -z "$ac_c_werror_flag"
10649 || test ! -s conftest.err'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try='test -s conftest.$ac_objext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 pgac_cv_c_signed=yes
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 pgac_cv_c_signed=no
10668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10670 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10671 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10672 if test x"$pgac_cv_c_signed" = xno ; then
10674 cat >>confdefs.h <<\_ACEOF
10679 echo "$as_me:$LINENO: checking for working volatile" >&5
10680 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10681 if test "${ac_cv_c_volatile+set}" = set; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10701 rm -f conftest.$ac_objext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10703 (eval $ac_compile) 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag"
10711 || test ! -s conftest.err'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; } &&
10717 { ac_try='test -s conftest.$ac_objext'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_cv_c_volatile=yes
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ac_cv_c_volatile=no
10730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10732 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10733 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10734 if test $ac_cv_c_volatile = no; then
10736 cat >>confdefs.h <<\_ACEOF
10742 echo "$as_me:$LINENO: checking for __func__" >&5
10743 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10744 if test "${pgac_cv_funcname_func_support+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10757 printf("%s\n", __func__);
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 pgac_cv_funcname_func_support=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 pgac_cv_funcname_func_support=no
10791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10793 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10794 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10795 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_FUNCNAME__FUNC 1
10802 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10803 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10804 if test "${pgac_cv_funcname_function_support+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10817 printf("%s\n", __FUNCTION__);
10822 rm -f conftest.$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>conftest.er1
10826 grep -v '^ *+' conftest.er1 >conftest.err
10828 cat conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try='test -s conftest.$ac_objext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 pgac_cv_funcname_function_support=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 pgac_cv_funcname_function_support=no
10851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10853 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10854 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10855 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10857 cat >>confdefs.h <<\_ACEOF
10858 #define HAVE_FUNCNAME__FUNCTION 1
10863 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10864 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10865 if test "${ac_cv_struct_tm+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 #include <sys/types.h>
10880 struct tm *tp; tp->tm_sec;
10885 rm -f conftest.$ac_objext
10886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10887 (eval $ac_compile) 2>conftest.er1
10889 grep -v '^ *+' conftest.er1 >conftest.err
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -z "$ac_c_werror_flag"
10895 || test ! -s conftest.err'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_struct_tm=time.h
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_cv_struct_tm=sys/time.h
10914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10916 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10917 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10918 if test $ac_cv_struct_tm = sys/time.h; then
10920 cat >>confdefs.h <<\_ACEOF
10921 #define TM_IN_SYS_TIME 1
10926 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10927 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10928 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 #include <sys/types.h>
10938 #include <$ac_cv_struct_tm>
10944 static struct tm ac_aggr;
10945 if (ac_aggr.tm_zone)
10951 rm -f conftest.$ac_objext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10953 (eval $ac_compile) 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag"
10961 || test ! -s conftest.err'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; }; then
10973 ac_cv_member_struct_tm_tm_zone=yes
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <sys/types.h>
10985 #include <$ac_cv_struct_tm>
10991 static struct tm ac_aggr;
10992 if (sizeof ac_aggr.tm_zone)
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_cv_member_struct_tm_tm_zone=yes
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 ac_cv_member_struct_tm_tm_zone=no
11027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11031 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11032 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11033 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define HAVE_STRUCT_TM_TM_ZONE 1
11042 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11044 cat >>confdefs.h <<\_ACEOF
11045 #define HAVE_TM_ZONE 1
11049 echo "$as_me:$LINENO: checking for tzname" >&5
11050 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11051 if test "${ac_cv_var_tzname+set}" = set; then
11052 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11061 #ifndef tzname /* For SGI. */
11062 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_var_tzname=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_var_tzname=no
11102 rm -f conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11105 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11106 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11107 if test $ac_cv_var_tzname = yes; then
11109 cat >>confdefs.h <<\_ACEOF
11110 #define HAVE_TZNAME 1
11115 echo "$as_me:$LINENO: checking for union semun" >&5
11116 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11117 if test "${ac_cv_type_union_semun+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <sys/types.h>
11127 #include <sys/ipc.h>
11128 #include <sys/sem.h>
11133 if ((union semun *) 0)
11135 if (sizeof (union semun))
11141 rm -f conftest.$ac_objext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -z "$ac_c_werror_flag"
11151 || test ! -s conftest.err'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; } &&
11157 { ac_try='test -s conftest.$ac_objext'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_type_union_semun=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_type_union_semun=no
11170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11172 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11173 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11174 if test $ac_cv_type_union_semun = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define HAVE_UNION_SEMUN 1
11183 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11184 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11185 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <sys/types.h>
11195 #ifdef HAVE_SYS_UN_H
11196 #include <sys/un.h>
11203 if ((struct sockaddr_un *) 0)
11205 if (sizeof (struct sockaddr_un))
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>conftest.er1
11215 grep -v '^ *+' conftest.er1 >conftest.err
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag"
11221 || test ! -s conftest.err'
11222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_type_struct_sockaddr_un=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_cv_type_struct_sockaddr_un=no
11240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11243 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11244 if test $ac_cv_type_struct_sockaddr_un = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define HAVE_STRUCT_SOCKADDR_UN 1
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_UNIX_SOCKETS 1
11257 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11258 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11259 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 #include <sys/types.h>
11269 #ifdef HAVE_SYS_SOCKET_H
11270 #include <sys/socket.h>
11277 if ((struct sockaddr_storage *) 0)
11279 if (sizeof (struct sockaddr_storage))
11285 rm -f conftest.$ac_objext
11286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11287 (eval $ac_compile) 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -z "$ac_c_werror_flag"
11295 || test ! -s conftest.err'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; } &&
11301 { ac_try='test -s conftest.$ac_objext'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; }; then
11307 ac_cv_type_struct_sockaddr_storage=yes
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_cv_type_struct_sockaddr_storage=no
11314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11316 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11317 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11318 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11320 cat >>confdefs.h <<_ACEOF
11321 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11327 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11328 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11329 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 cat >conftest.$ac_ext <<_ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338 #include <sys/types.h>
11339 #ifdef HAVE_SYS_SOCKET_H
11340 #include <sys/socket.h>
11347 static struct sockaddr_storage ac_aggr;
11348 if (ac_aggr.ss_family)
11354 rm -f conftest.$ac_objext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356 (eval $ac_compile) 2>conftest.er1
11358 grep -v '^ *+' conftest.er1 >conftest.err
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest.$ac_objext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 cat >conftest.$ac_ext <<_ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 #include <sys/types.h>
11388 #ifdef HAVE_SYS_SOCKET_H
11389 #include <sys/socket.h>
11396 static struct sockaddr_storage ac_aggr;
11397 if (sizeof ac_aggr.ss_family)
11403 rm -f conftest.$ac_objext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11405 (eval $ac_compile) 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } &&
11412 { ac_try='test -z "$ac_c_werror_flag"
11413 || test ! -s conftest.err'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_member_struct_sockaddr_storage_ss_family=no
11432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11437 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11438 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11440 cat >>confdefs.h <<_ACEOF
11441 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11446 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11447 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11448 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #include <sys/types.h>
11458 #ifdef HAVE_SYS_SOCKET_H
11459 #include <sys/socket.h>
11466 static struct sockaddr_storage ac_aggr;
11467 if (ac_aggr.__ss_family)
11473 rm -f conftest.$ac_objext
11474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11475 (eval $ac_compile) 2>conftest.er1
11477 grep -v '^ *+' conftest.er1 >conftest.err
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); } &&
11482 { ac_try='test -z "$ac_c_werror_flag"
11483 || test ! -s conftest.err'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; } &&
11489 { ac_try='test -s conftest.$ac_objext'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }; then
11495 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11497 echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 #ifdef HAVE_SYS_SOCKET_H
11508 #include <sys/socket.h>
11515 static struct sockaddr_storage ac_aggr;
11516 if (sizeof ac_aggr.__ss_family)
11522 rm -f conftest.$ac_objext
11523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
11526 grep -v '^ *+' conftest.er1 >conftest.err
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
11531 { ac_try='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11544 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_cv_member_struct_sockaddr_storage___ss_family=no
11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
11556 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
11557 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11565 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
11566 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
11567 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 #include <sys/types.h>
11577 #ifdef HAVE_SYS_SOCKET_H
11578 #include <sys/socket.h>
11585 static struct sockaddr_storage ac_aggr;
11586 if (ac_aggr.ss_len)
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11596 grep -v '^ *+' conftest.er1 >conftest.err
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try='test -s conftest.$ac_objext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 #include <sys/types.h>
11626 #ifdef HAVE_SYS_SOCKET_H
11627 #include <sys/socket.h>
11634 static struct sockaddr_storage ac_aggr;
11635 if (sizeof ac_aggr.ss_len)
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_member_struct_sockaddr_storage_ss_len=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_member_struct_sockaddr_storage_ss_len=no
11670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
11675 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
11676 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11684 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
11685 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
11686 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <sys/types.h>
11696 #ifdef HAVE_SYS_SOCKET_H
11697 #include <sys/socket.h>
11704 static struct sockaddr_storage ac_aggr;
11705 if (ac_aggr.__ss_len)
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>conftest.er1
11715 grep -v '^ *+' conftest.er1 >conftest.err
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -z "$ac_c_werror_flag"
11721 || test ! -s conftest.err'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest.$ac_objext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11735 echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <sys/types.h>
11745 #ifdef HAVE_SYS_SOCKET_H
11746 #include <sys/socket.h>
11753 static struct sockaddr_storage ac_aggr;
11754 if (sizeof ac_aggr.__ss_len)
11760 rm -f conftest.$ac_objext
11761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11762 (eval $ac_compile) 2>conftest.er1
11764 grep -v '^ *+' conftest.er1 >conftest.err
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag"
11770 || test ! -s conftest.err'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_cv_member_struct_sockaddr_storage___ss_len=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 ac_cv_member_struct_sockaddr_storage___ss_len=no
11789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
11794 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
11795 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11803 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
11804 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
11805 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <sys/types.h>
11815 #ifdef HAVE_SYS_SOCKET_H
11816 #include <sys/socket.h>
11823 static struct sockaddr ac_aggr;
11824 if (ac_aggr.sa_len)
11830 rm -f conftest.$ac_objext
11831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11832 (eval $ac_compile) 2>conftest.er1
11834 grep -v '^ *+' conftest.er1 >conftest.err
11836 cat conftest.err >&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -z "$ac_c_werror_flag"
11840 || test ! -s conftest.err'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 ac_cv_member_struct_sockaddr_sa_len=yes
11854 echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 #include <sys/types.h>
11864 #ifdef HAVE_SYS_SOCKET_H
11865 #include <sys/socket.h>
11872 static struct sockaddr ac_aggr;
11873 if (sizeof ac_aggr.sa_len)
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>conftest.er1
11883 grep -v '^ *+' conftest.er1 >conftest.err
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag"
11889 || test ! -s conftest.err'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; } &&
11895 { ac_try='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11901 ac_cv_member_struct_sockaddr_sa_len=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_member_struct_sockaddr_sa_len=no
11908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
11913 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
11914 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11923 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11924 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
11925 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 #include <sys/types.h>
11935 #include <sys/socket.h>
11942 if ((struct addrinfo *) 0)
11944 if (sizeof (struct addrinfo))
11950 rm -f conftest.$ac_objext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag"
11960 || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_type_struct_addrinfo=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_cv_type_struct_addrinfo=no
11979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11981 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11982 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
11983 if test $ac_cv_type_struct_addrinfo = yes; then
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_STRUCT_ADDRINFO 1
11993 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
11994 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
11995 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <sys/param.h>
12005 #include <sys/types.h>
12006 #include <sys/socket.h>
12007 #include <sys/ucred.h>
12012 if ((struct cmsgcred *) 0)
12014 if (sizeof (struct cmsgcred))
12020 rm -f conftest.$ac_objext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12022 (eval $ac_compile) 2>conftest.er1
12024 grep -v '^ *+' conftest.er1 >conftest.err
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_cv_type_struct_cmsgcred=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_type_struct_cmsgcred=no
12049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12052 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12053 if test $ac_cv_type_struct_cmsgcred = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define HAVE_STRUCT_CMSGCRED 1
12061 echo "$as_me:$LINENO: checking for struct fcred" >&5
12062 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12063 if test "${ac_cv_type_struct_fcred+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 #include <sys/param.h>
12073 #include <sys/types.h>
12074 #include <sys/socket.h>
12075 #include <sys/ucred.h>
12080 if ((struct fcred *) 0)
12082 if (sizeof (struct fcred))
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_type_struct_fcred=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_cv_type_struct_fcred=no
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12119 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12120 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12121 if test $ac_cv_type_struct_fcred = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_STRUCT_FCRED 1
12129 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12130 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12131 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <sys/param.h>
12141 #include <sys/types.h>
12142 #include <sys/socket.h>
12143 #include <sys/ucred.h>
12148 if ((struct sockcred *) 0)
12150 if (sizeof (struct sockcred))
12156 rm -f conftest.$ac_objext
12157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12158 (eval $ac_compile) 2>conftest.er1
12160 grep -v '^ *+' conftest.er1 >conftest.err
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 ac_cv_type_struct_sockcred=yes
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_type_struct_sockcred=no
12185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12188 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12189 if test $ac_cv_type_struct_sockcred = yes; then
12191 cat >>confdefs.h <<_ACEOF
12192 #define HAVE_STRUCT_SOCKCRED 1
12199 echo "$as_me:$LINENO: checking for struct option" >&5
12200 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12201 if test "${ac_cv_type_struct_option+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 cat >conftest.$ac_ext <<_ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210 #ifdef HAVE_GETOPT_H
12211 #include <getopt.h>
12217 if ((struct option *) 0)
12219 if (sizeof (struct option))
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12227 (eval $ac_compile) 2>conftest.er1
12229 grep -v '^ *+' conftest.er1 >conftest.err
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -z "$ac_c_werror_flag"
12235 || test ! -s conftest.err'
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); }; } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_type_struct_option=yes
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_cv_type_struct_option=no
12254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12257 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12258 if test $ac_cv_type_struct_option = yes; then
12260 cat >>confdefs.h <<_ACEOF
12261 #define HAVE_STRUCT_OPTION 1
12268 if test "$with_zlib" = yes; then
12269 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12270 # did not). While we could work around the lack of z_streamp, it
12271 # seems unwise to encourage people to use such old zlib versions...
12272 echo "$as_me:$LINENO: checking for z_streamp" >&5
12273 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12274 if test "${ac_cv_type_z_streamp+set}" = set; then
12275 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12288 if ((z_streamp *) 0)
12290 if (sizeof (z_streamp))
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_cv_type_z_streamp=yes
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_type_z_streamp=no
12325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12328 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12329 if test $ac_cv_type_z_streamp = yes; then
12332 { { echo "$as_me:$LINENO: error: zlib version is too old
12333 Use --without-zlib to disable zlib support." >&5
12334 echo "$as_me: error: zlib version is too old
12335 Use --without-zlib to disable zlib support." >&2;}
12336 { (exit 1); exit 1; }; }
12341 if test "$with_krb5" = yes; then
12342 # Check for differences between MIT and Heimdal (KTH) releases
12343 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12344 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12345 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12359 static krb5_ticket ac_aggr;
12360 if (ac_aggr.enc_part2)
12366 rm -f conftest.$ac_objext
12367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12368 (eval $ac_compile) 2>conftest.er1
12370 grep -v '^ *+' conftest.er1 >conftest.err
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
12375 { ac_try='test -z "$ac_c_werror_flag"
12376 || test ! -s conftest.err'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; } &&
12382 { ac_try='test -s conftest.$ac_objext'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
12388 ac_cv_member_krb5_ticket_enc_part2=yes
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12404 static krb5_ticket ac_aggr;
12405 if (sizeof ac_aggr.enc_part2)
12411 rm -f conftest.$ac_objext
12412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413 (eval $ac_compile) 2>conftest.er1
12415 grep -v '^ *+' conftest.er1 >conftest.err
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag"
12421 || test ! -s conftest.err'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; } &&
12427 { ac_try='test -s conftest.$ac_objext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 ac_cv_member_krb5_ticket_enc_part2=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12438 ac_cv_member_krb5_ticket_enc_part2=no
12440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12445 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12446 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12448 cat >>confdefs.h <<_ACEOF
12449 #define HAVE_KRB5_TICKET_ENC_PART2 1
12454 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12455 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12456 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12470 static krb5_ticket ac_aggr;
12471 if (ac_aggr.client)
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12481 grep -v '^ *+' conftest.er1 >conftest.err
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -z "$ac_c_werror_flag"
12487 || test ! -s conftest.err'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; } &&
12493 { ac_try='test -s conftest.$ac_objext'
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; }; then
12499 ac_cv_member_krb5_ticket_client=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12515 static krb5_ticket ac_aggr;
12516 if (sizeof ac_aggr.client)
12522 rm -f conftest.$ac_objext
12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12526 grep -v '^ *+' conftest.er1 >conftest.err
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try='test -z "$ac_c_werror_flag"
12532 || test ! -s conftest.err'
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 ac_cv_member_krb5_ticket_client=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_cv_member_krb5_ticket_client=no
12551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
12556 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
12557 if test $ac_cv_member_krb5_ticket_client = yes; then
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_KRB5_TICKET_CLIENT 1
12565 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
12566 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
12567 { (exit 1); exit 1; }; }
12572 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
12573 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
12574 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12588 static krb5_error ac_aggr;
12589 if (ac_aggr.text.data)
12595 rm -f conftest.$ac_objext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12597 (eval $ac_compile) 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_cv_member_krb5_error_text_data=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12633 static krb5_error ac_aggr;
12634 if (sizeof ac_aggr.text.data)
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag"
12650 || test ! -s conftest.err'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; } &&
12656 { ac_try='test -s conftest.$ac_objext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 ac_cv_member_krb5_error_text_data=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_member_krb5_error_text_data=no
12669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
12674 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
12675 if test $ac_cv_member_krb5_error_text_data = yes; then
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_KRB5_ERROR_TEXT_DATA 1
12683 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
12684 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
12685 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 cat >conftest.$ac_ext <<_ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12699 static krb5_error ac_aggr;
12700 if (ac_aggr.e_data)
12706 rm -f conftest.$ac_objext
12707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -z "$ac_c_werror_flag"
12716 || test ! -s conftest.err'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest.$ac_objext'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; }; then
12728 ac_cv_member_krb5_error_e_data=yes
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 cat >conftest.$ac_ext <<_ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12744 static krb5_error ac_aggr;
12745 if (sizeof ac_aggr.e_data)
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ac_cv_member_krb5_error_e_data=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 ac_cv_member_krb5_error_e_data=no
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
12785 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
12786 if test $ac_cv_member_krb5_error_e_data = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_KRB5_ERROR_E_DATA 1
12794 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
12795 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
12796 { (exit 1); exit 1; }; }
12803 # This is probably only present on Darwin, but may as well check always
12804 echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
12805 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6
12806 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 cat >conftest.$ac_ext <<_ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12820 #ifndef F_FULLFSYNC
12821 char *p = (char *) F_FULLFSYNC;
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830 (eval $ac_compile) 2>conftest.er1
12832 grep -v '^ *+' conftest.er1 >conftest.err
12834 cat conftest.err >&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); } &&
12837 { ac_try='test -z "$ac_c_werror_flag"
12838 || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_cv_have_decl_F_FULLFSYNC=yes
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_cv_have_decl_F_FULLFSYNC=no
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859 echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
12860 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6
12861 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_DECL_F_FULLFSYNC 1
12869 cat >>confdefs.h <<_ACEOF
12870 #define HAVE_DECL_F_FULLFSYNC 0
12879 ## Functions, global variables
12882 echo "$as_me:$LINENO: checking for int timezone" >&5
12883 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
12884 if test "${pgac_cv_var_int_timezone+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 cat >conftest.$ac_ext <<_ACEOF
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12899 res = timezone / 60;
12901 res = _timezone / 60;
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909 (eval $ac_link) 2>conftest.er1
12911 grep -v '^ *+' conftest.er1 >conftest.err
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_c_werror_flag"
12917 || test ! -s conftest.err'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; } &&
12923 { ac_try='test -s conftest$ac_exeext'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; }; then
12929 pgac_cv_var_int_timezone=yes
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 pgac_cv_var_int_timezone=no
12936 rm -f conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12939 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
12940 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
12941 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_INT_TIMEZONE
12948 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
12949 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
12950 if test "${ac_cv_func_accept_return+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12953 if test "${ac_cv_func_accept_arg1+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 if test "${ac_cv_func_accept_arg2+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 if test "${ac_cv_func_accept_arg3+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
12963 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
12964 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12965 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 #ifdef HAVE_SYS_TYPES_H
12973 #include <sys/types.h>
12975 #ifdef HAVE_SYS_SOCKET_H
12976 #include <sys/socket.h>
12978 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
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); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_not_found=no; break 4
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13021 if test "$ac_not_found" = yes; then
13022 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13023 echo "$as_me: error: could not determine argument types" >&2;}
13024 { (exit 1); exit 1; }; }
13026 if test "$ac_cv_func_accept_arg3" = "void"; then
13027 ac_cv_func_accept_arg3=int
13037 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
13038 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13040 cat >>confdefs.h <<_ACEOF
13041 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13045 cat >>confdefs.h <<_ACEOF
13046 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13050 cat >>confdefs.h <<_ACEOF
13051 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13055 cat >>confdefs.h <<_ACEOF
13056 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13060 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13061 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13062 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <sys/time.h>
13075 struct timeval *tp;
13076 struct timezone *tzp;
13077 gettimeofday(tp,tzp);
13082 rm -f conftest.$ac_objext
13083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13084 (eval $ac_compile) 2>conftest.er1
13086 grep -v '^ *+' conftest.er1 >conftest.err
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -z "$ac_c_werror_flag"
13092 || test ! -s conftest.err'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 pgac_cv_func_gettimeofday_1arg=no
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 pgac_cv_func_gettimeofday_1arg=yes
13111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13114 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13115 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13117 cat >>confdefs.h <<\_ACEOF
13118 #define GETTIMEOFDAY_1ARG
13144 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 echo "$as_me:$LINENO: checking for $ac_func" >&5
13148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_var+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13160 #define $ac_func innocuous_$ac_func
13162 /* System header to define __stub macros and hopefully few prototypes,
13163 which can conflict with char $ac_func (); below.
13164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13165 <limits.h> exists even on freestanding compilers. */
13168 # include <limits.h>
13170 # include <assert.h>
13175 /* Override any gcc2 internal prototype to avoid an error. */
13180 /* We use char because int might match the return type of a gcc2
13181 builtin and then its argument prototype would still apply. */
13183 /* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13189 char (*f) () = $ac_func;
13198 return f != $ac_func;
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag"
13213 || test ! -s conftest.err'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; }; then
13225 eval "$as_ac_var=yes"
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 eval "$as_ac_var=no"
13232 rm -f conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13237 if test `eval echo '${'$as_ac_var'}'` = yes; then
13238 cat >>confdefs.h <<_ACEOF
13239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13246 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13247 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13248 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <unistd.h>
13263 char *p = (char *) fdatasync;
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272 (eval $ac_compile) 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag"
13280 || test ! -s conftest.err'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest.$ac_objext'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_have_decl_fdatasync=yes
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_cv_have_decl_fdatasync=no
13299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13301 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13302 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13303 if test $ac_cv_have_decl_fdatasync = yes; then
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_DECL_FDATASYNC 1
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_DECL_FDATASYNC 0
13321 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13322 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13323 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 $ac_includes_default
13333 #include <netinet/in.h>
13338 if ((struct sockaddr_in6 *) 0)
13340 if (sizeof (struct sockaddr_in6))
13346 rm -f conftest.$ac_objext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>conftest.er1
13350 grep -v '^ *+' conftest.er1 >conftest.err
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
13355 { ac_try='test -z "$ac_c_werror_flag"
13356 || test ! -s conftest.err'
13357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358 (eval $ac_try) 2>&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); }; } &&
13362 { ac_try='test -s conftest.$ac_objext'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
13368 ac_cv_type_struct_sockaddr_in6=yes
13370 echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13373 ac_cv_type_struct_sockaddr_in6=no
13375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13377 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13378 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13379 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13381 cat >>confdefs.h <<\_ACEOF
13382 #define HAVE_IPV6 1
13390 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13391 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13392 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13393 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 cat >conftest.$ac_ext <<_ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401 #include <machine/vmparam.h>
13402 #include <sys/exec.h>
13407 PS_STRINGS->ps_nargvstr = 1;
13408 PS_STRINGS->ps_argvstr = "foo";
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13415 (eval $ac_link) 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag"
13423 || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 pgac_cv_var_PS_STRINGS=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 pgac_cv_var_PS_STRINGS=no
13442 rm -f conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13445 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13446 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13447 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13449 cat >>confdefs.h <<\_ACEOF
13450 #define HAVE_PS_STRINGS
13456 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13457 # is missing. Yes, there are machines that have only one. We may
13458 # also decide to use snprintf.c if snprintf() is present but does not
13459 # have all the features we need --- see below.
13461 if test "$PORTNAME" = "win32"; then
13462 # Win32 gets snprintf.c built unconditionally.
13464 # To properly translate all NLS languages strings, we must support the
13465 # *printf() %$ format, which allows *printf() arguments to be selected
13466 # by position in the translated string.
13468 # libintl versions < 0.13 use the native *printf() functions, and Win32
13469 # *printf() doesn't understand %$, so we must use our /port versions,
13470 # which do understand %$. libintl versions >= 0.13 include their own
13471 # *printf versions on Win32. The libintl 0.13 release note text is:
13473 # C format strings with positions, as they arise when a translator
13474 # needs to reorder a sentence, are now supported on all platforms.
13475 # On those few platforms (NetBSD and Woe32) for which the native
13476 # printf()/fprintf()/... functions don't support such format
13477 # strings, replacements are provided through <libintl.h>.
13479 # We could use libintl >= 0.13's *printf() if we were sure that we had
13480 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13481 # to guarantee that, it is best to just use our own, so we are sure to
13482 # get %$ support. In include/port.h we disable the *printf() macros
13483 # that might have been defined by libintl.
13485 # We do this unconditionally whether NLS is used or not so we are sure
13486 # that all Win32 libraries and binaries behave the same.
13487 pgac_need_repl_snprintf=yes
13489 pgac_need_repl_snprintf=no
13491 for ac_func in snprintf
13493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13494 echo "$as_me:$LINENO: checking for $ac_func" >&5
13495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13496 if eval "test \"\${$as_ac_var+set}\" = set"; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 cat >conftest.$ac_ext <<_ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13507 #define $ac_func innocuous_$ac_func
13509 /* System header to define __stub macros and hopefully few prototypes,
13510 which can conflict with char $ac_func (); below.
13511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13512 <limits.h> exists even on freestanding compilers. */
13515 # include <limits.h>
13517 # include <assert.h>
13522 /* Override any gcc2 internal prototype to avoid an error. */
13527 /* We use char because int might match the return type of a gcc2
13528 builtin and then its argument prototype would still apply. */
13530 /* The GNU C library defines this for functions which it implements
13531 to always fail with ENOSYS. Some functions are actually named
13532 something starting with __ and the normal name is an alias. */
13533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13536 char (*f) () = $ac_func;
13545 return f != $ac_func;
13550 rm -f conftest.$ac_objext conftest$ac_exeext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13552 (eval $ac_link) 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest$ac_exeext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 eval "$as_ac_var=yes"
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 eval "$as_ac_var=no"
13579 rm -f conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13584 if test `eval echo '${'$as_ac_var'}'` = yes; then
13585 cat >>confdefs.h <<_ACEOF
13586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13590 pgac_need_repl_snprintf=yes
13595 for ac_func in vsnprintf
13597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13598 echo "$as_me:$LINENO: checking for $ac_func" >&5
13599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13600 if eval "test \"\${$as_ac_var+set}\" = set"; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 cat >conftest.$ac_ext <<_ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13611 #define $ac_func innocuous_$ac_func
13613 /* System header to define __stub macros and hopefully few prototypes,
13614 which can conflict with char $ac_func (); below.
13615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13616 <limits.h> exists even on freestanding compilers. */
13619 # include <limits.h>
13621 # include <assert.h>
13626 /* Override any gcc2 internal prototype to avoid an error. */
13631 /* We use char because int might match the return type of a gcc2
13632 builtin and then its argument prototype would still apply. */
13634 /* The GNU C library defines this for functions which it implements
13635 to always fail with ENOSYS. Some functions are actually named
13636 something starting with __ and the normal name is an alias. */
13637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13640 char (*f) () = $ac_func;
13649 return f != $ac_func;
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13656 (eval $ac_link) 2>conftest.er1
13658 grep -v '^ *+' conftest.er1 >conftest.err
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try='test -z "$ac_c_werror_flag"
13664 || test ! -s conftest.err'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 eval "$as_ac_var=yes"
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 eval "$as_ac_var=no"
13683 rm -f conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13688 if test `eval echo '${'$as_ac_var'}'` = yes; then
13689 cat >>confdefs.h <<_ACEOF
13690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13694 pgac_need_repl_snprintf=yes
13701 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13702 # include/c.h will provide declarations. Note this is a separate test
13703 # from whether the functions exist in the C library --- there are
13704 # systems that have the functions but don't bother to declare them :-(
13706 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13707 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13708 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 cat >conftest.$ac_ext <<_ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13722 char *p = (char *) snprintf;
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_snprintf=yes
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 ac_cv_have_decl_snprintf=no
13758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13761 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13762 if test $ac_cv_have_decl_snprintf = yes; then
13764 cat >>confdefs.h <<_ACEOF
13765 #define HAVE_DECL_SNPRINTF 1
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_DECL_SNPRINTF 0
13776 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13777 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13778 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13792 char *p = (char *) vsnprintf;
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801 (eval $ac_compile) 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13821 ac_cv_have_decl_vsnprintf=yes
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_cv_have_decl_vsnprintf=no
13828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13831 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13832 if test $ac_cv_have_decl_vsnprintf = yes; then
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_DECL_VSNPRINTF 1
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_DECL_VSNPRINTF 0
13850 echo "$as_me:$LINENO: checking for isinf" >&5
13851 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13852 if test "${ac_cv_func_isinf+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13855 cat >conftest.$ac_ext <<_ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13863 double glob_double;
13868 return isinf(glob_double) ? 0 : 1;
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag"
13883 || test ! -s conftest.err'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; } &&
13889 { ac_try='test -s conftest$ac_exeext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13895 ac_cv_func_isinf=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_cv_func_isinf=no
13902 rm -f conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13905 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
13906 echo "${ECHO_T}$ac_cv_func_isinf" >&6
13908 if test $ac_cv_func_isinf = yes ; then
13910 cat >>confdefs.h <<\_ACEOF
13911 #define HAVE_ISINF 1
13916 "isinf.$ac_objext" | \
13917 *" isinf.$ac_objext" | \
13918 "isinf.$ac_objext "* | \
13919 *" isinf.$ac_objext "* ) ;;
13920 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
13923 # Look for a way to implement a substitute for isinf()
13928 for ac_func in fpclass fp_class fp_class_d class
13930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13931 echo "$as_me:$LINENO: checking for $ac_func" >&5
13932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13933 if eval "test \"\${$as_ac_var+set}\" = set"; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 cat >conftest.$ac_ext <<_ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13944 #define $ac_func innocuous_$ac_func
13946 /* System header to define __stub macros and hopefully few prototypes,
13947 which can conflict with char $ac_func (); below.
13948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13949 <limits.h> exists even on freestanding compilers. */
13952 # include <limits.h>
13954 # include <assert.h>
13959 /* Override any gcc2 internal prototype to avoid an error. */
13964 /* We use char because int might match the return type of a gcc2
13965 builtin and then its argument prototype would still apply. */
13967 /* The GNU C library defines this for functions which it implements
13968 to always fail with ENOSYS. Some functions are actually named
13969 something starting with __ and the normal name is an alias. */
13970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13973 char (*f) () = $ac_func;
13982 return f != $ac_func;
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>conftest.er1
13991 grep -v '^ *+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -z "$ac_c_werror_flag"
13997 || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 eval "$as_ac_var=yes"
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 eval "$as_ac_var=no"
14016 rm -f conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14021 if test `eval echo '${'$as_ac_var'}'` = yes; then
14022 cat >>confdefs.h <<_ACEOF
14023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14044 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14047 echo "$as_me:$LINENO: checking for $ac_func" >&5
14048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14049 if eval "test \"\${$as_ac_var+set}\" = set"; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14060 #define $ac_func innocuous_$ac_func
14062 /* System header to define __stub macros and hopefully few prototypes,
14063 which can conflict with char $ac_func (); below.
14064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14065 <limits.h> exists even on freestanding compilers. */
14068 # include <limits.h>
14070 # include <assert.h>
14075 /* Override any gcc2 internal prototype to avoid an error. */
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14083 /* The GNU C library defines this for functions which it implements
14084 to always fail with ENOSYS. Some functions are actually named
14085 something starting with __ and the normal name is an alias. */
14086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14089 char (*f) () = $ac_func;
14098 return f != $ac_func;
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
14112 { ac_try='test -z "$ac_c_werror_flag"
14113 || test ! -s conftest.err'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; } &&
14119 { ac_try='test -s conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 eval "$as_ac_var=yes"
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 eval "$as_ac_var=no"
14132 rm -f conftest.err conftest.$ac_objext \
14133 conftest$ac_exeext conftest.$ac_ext
14135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14137 if test `eval echo '${'$as_ac_var'}'` = yes; then
14138 cat >>confdefs.h <<_ACEOF
14139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14144 "$ac_func.$ac_objext" | \
14145 *" $ac_func.$ac_objext" | \
14146 "$ac_func.$ac_objext "* | \
14147 *" $ac_func.$ac_objext "* ) ;;
14148 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14156 # System's version of getaddrinfo(), if any, may be used only if we found
14157 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14158 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14159 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14160 # because we want to use our own getaddrinfo.c on Windows anyway.)
14161 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14163 for ac_func in getaddrinfo
14165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14166 echo "$as_me:$LINENO: checking for $ac_func" >&5
14167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14168 if eval "test \"\${$as_ac_var+set}\" = set"; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14179 #define $ac_func innocuous_$ac_func
14181 /* System header to define __stub macros and hopefully few prototypes,
14182 which can conflict with char $ac_func (); below.
14183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14184 <limits.h> exists even on freestanding compilers. */
14187 # include <limits.h>
14189 # include <assert.h>
14194 /* Override any gcc2 internal prototype to avoid an error. */
14199 /* We use char because int might match the return type of a gcc2
14200 builtin and then its argument prototype would still apply. */
14202 /* The GNU C library defines this for functions which it implements
14203 to always fail with ENOSYS. Some functions are actually named
14204 something starting with __ and the normal name is an alias. */
14205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14208 char (*f) () = $ac_func;
14217 return f != $ac_func;
14222 rm -f conftest.$ac_objext conftest$ac_exeext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14224 (eval $ac_link) 2>conftest.er1
14226 grep -v '^ *+' conftest.er1 >conftest.err
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -z "$ac_c_werror_flag"
14232 || test ! -s conftest.err'
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest$ac_exeext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 eval "$as_ac_var=yes"
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 eval "$as_ac_var=no"
14251 rm -f conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14256 if test `eval echo '${'$as_ac_var'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14263 "$ac_func.$ac_objext" | \
14264 *" $ac_func.$ac_objext" | \
14265 "$ac_func.$ac_objext "* | \
14266 *" $ac_func.$ac_objext "* ) ;;
14267 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14276 "getaddrinfo.$ac_objext" | \
14277 *" getaddrinfo.$ac_objext" | \
14278 "getaddrinfo.$ac_objext "* | \
14279 *" getaddrinfo.$ac_objext "* ) ;;
14280 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14285 # similarly, use system's getopt_long() only if system provides struct option.
14286 if test x"$ac_cv_type_struct_option" = xyes ; then
14288 for ac_func in getopt_long
14290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14291 echo "$as_me:$LINENO: checking for $ac_func" >&5
14292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14293 if eval "test \"\${$as_ac_var+set}\" = set"; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14304 #define $ac_func innocuous_$ac_func
14306 /* System header to define __stub macros and hopefully few prototypes,
14307 which can conflict with char $ac_func (); below.
14308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14309 <limits.h> exists even on freestanding compilers. */
14312 # include <limits.h>
14314 # include <assert.h>
14319 /* Override any gcc2 internal prototype to avoid an error. */
14324 /* We use char because int might match the return type of a gcc2
14325 builtin and then its argument prototype would still apply. */
14327 /* The GNU C library defines this for functions which it implements
14328 to always fail with ENOSYS. Some functions are actually named
14329 something starting with __ and the normal name is an alias. */
14330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14333 char (*f) () = $ac_func;
14342 return f != $ac_func;
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14349 (eval $ac_link) 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag"
14357 || test ! -s conftest.err'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; } &&
14363 { ac_try='test -s conftest$ac_exeext'
14364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365 (eval $ac_try) 2>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); }; }; then
14369 eval "$as_ac_var=yes"
14371 echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.$ac_ext >&5
14374 eval "$as_ac_var=no"
14376 rm -f conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14381 if test `eval echo '${'$as_ac_var'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14388 "$ac_func.$ac_objext" | \
14389 *" $ac_func.$ac_objext" | \
14390 "$ac_func.$ac_objext "* | \
14391 *" $ac_func.$ac_objext "* ) ;;
14392 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14401 "getopt_long.$ac_objext" | \
14402 *" getopt_long.$ac_objext" | \
14403 "getopt_long.$ac_objext "* | \
14404 *" getopt_long.$ac_objext "* ) ;;
14405 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14410 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14411 # We override the previous test that said fseeko/ftello didn't exist
14412 # OS tests are also done in include/c.h and port/fseeko.c
14413 case $host_os in bsdi*|netbsd*)
14414 ac_cv_func_fseeko=yes
14417 # Solaris has a very slow qsort in certain cases, so we replace it:
14418 # http://forum.sun.com/thread.jspa?forumID=4&threadID=7231
14419 # Supposedly it is fixed in Solaris, but not sure which version, and
14420 # no confirmed testing. 2005-12-16
14421 if test "$PORTNAME" = "solaris"; then
14423 "qsort.$ac_objext" | \
14424 *" qsort.$ac_objext" | \
14425 "qsort.$ac_objext "* | \
14426 *" qsort.$ac_objext "* ) ;;
14427 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14433 if test "$PORTNAME" = "win32"; then
14435 "gettimeofday.$ac_objext" | \
14436 *" gettimeofday.$ac_objext" | \
14437 "gettimeofday.$ac_objext "* | \
14438 *" gettimeofday.$ac_objext "* ) ;;
14439 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14443 "kill.$ac_objext" | \
14444 *" kill.$ac_objext" | \
14445 "kill.$ac_objext "* | \
14446 *" kill.$ac_objext "* ) ;;
14447 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14451 "open.$ac_objext" | \
14452 *" open.$ac_objext" | \
14453 "open.$ac_objext "* | \
14454 *" open.$ac_objext "* ) ;;
14455 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14459 "rand.$ac_objext" | \
14460 *" rand.$ac_objext" | \
14461 "rand.$ac_objext "* | \
14462 *" rand.$ac_objext "* ) ;;
14463 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14467 cat >>confdefs.h <<\_ACEOF
14468 #define HAVE_SYMLINK 1
14473 if test "$with_readline" = yes; then
14474 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14475 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14476 cat >conftest.$ac_ext <<_ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14483 #ifdef HAVE_READLINE_READLINE_H
14484 # include <readline/readline.h>
14485 #elif defined(HAVE_READLINE_H)
14486 # include <readline.h>
14492 rl_completion_append_character = 'x';
14497 rm -f conftest.$ac_objext conftest$ac_exeext
14498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14499 (eval $ac_link) 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } &&
14506 { ac_try='test -z "$ac_c_werror_flag"
14507 || test ! -s conftest.err'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest$ac_exeext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
14519 echo "$as_me:$LINENO: result: yes" >&5
14520 echo "${ECHO_T}yes" >&6
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 echo "$as_me:$LINENO: result: no" >&5
14531 echo "${ECHO_T}no" >&6
14533 rm -f conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
14537 for ac_func in rl_completion_matches rl_filename_completion_function
14539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14540 echo "$as_me:$LINENO: checking for $ac_func" >&5
14541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14542 if eval "test \"\${$as_ac_var+set}\" = set"; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14553 #define $ac_func innocuous_$ac_func
14555 /* System header to define __stub macros and hopefully few prototypes,
14556 which can conflict with char $ac_func (); below.
14557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14558 <limits.h> exists even on freestanding compilers. */
14561 # include <limits.h>
14563 # include <assert.h>
14568 /* Override any gcc2 internal prototype to avoid an error. */
14573 /* We use char because int might match the return type of a gcc2
14574 builtin and then its argument prototype would still apply. */
14576 /* The GNU C library defines this for functions which it implements
14577 to always fail with ENOSYS. Some functions are actually named
14578 something starting with __ and the normal name is an alias. */
14579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14582 char (*f) () = $ac_func;
14591 return f != $ac_func;
14596 rm -f conftest.$ac_objext conftest$ac_exeext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14598 (eval $ac_link) 2>conftest.er1
14600 grep -v '^ *+' conftest.er1 >conftest.err
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 eval "$as_ac_var=yes"
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14623 eval "$as_ac_var=no"
14625 rm -f conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14630 if test `eval echo '${'$as_ac_var'}'` = yes; then
14631 cat >>confdefs.h <<_ACEOF
14632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14639 for ac_func in replace_history_entry
14641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14642 echo "$as_me:$LINENO: checking for $ac_func" >&5
14643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14644 if eval "test \"\${$as_ac_var+set}\" = set"; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14647 cat >conftest.$ac_ext <<_ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14655 #define $ac_func innocuous_$ac_func
14657 /* System header to define __stub macros and hopefully few prototypes,
14658 which can conflict with char $ac_func (); below.
14659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14660 <limits.h> exists even on freestanding compilers. */
14663 # include <limits.h>
14665 # include <assert.h>
14670 /* Override any gcc2 internal prototype to avoid an error. */
14675 /* We use char because int might match the return type of a gcc2
14676 builtin and then its argument prototype would still apply. */
14678 /* The GNU C library defines this for functions which it implements
14679 to always fail with ENOSYS. Some functions are actually named
14680 something starting with __ and the normal name is an alias. */
14681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14684 char (*f) () = $ac_func;
14693 return f != $ac_func;
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>conftest.er1
14702 grep -v '^ *+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag"
14708 || test ! -s conftest.err'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; } &&
14714 { ac_try='test -s conftest$ac_exeext'
14715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716 (eval $ac_try) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); }; }; then
14720 eval "$as_ac_var=yes"
14722 echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14725 eval "$as_ac_var=no"
14727 rm -f conftest.err conftest.$ac_objext \
14728 conftest$ac_exeext conftest.$ac_ext
14730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14732 if test `eval echo '${'$as_ac_var'}'` = yes; then
14733 cat >>confdefs.h <<_ACEOF
14734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14743 echo "$as_me:$LINENO: checking for finite" >&5
14744 echo $ECHO_N "checking for finite... $ECHO_C" >&6
14745 cat >conftest.$ac_ext <<_ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14753 double glob_double;
14758 return finite(glob_double) ? 0 : 1;
14763 rm -f conftest.$ac_objext conftest$ac_exeext
14764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14765 (eval $ac_link) 2>conftest.er1
14767 grep -v '^ *+' conftest.er1 >conftest.err
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
14772 { ac_try='test -z "$ac_c_werror_flag"
14773 || test ! -s conftest.err'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; } &&
14779 { ac_try='test -s conftest$ac_exeext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14786 cat >>confdefs.h <<\_ACEOF
14787 #define HAVE_FINITE 1
14790 echo "$as_me:$LINENO: result: yes" >&5
14791 echo "${ECHO_T}yes" >&6
14793 echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14796 echo "$as_me:$LINENO: result: no" >&5
14797 echo "${ECHO_T}no" >&6
14799 rm -f conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14802 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
14803 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 #include <setjmp.h>
14814 sigjmp_buf x; sigsetjmp(x, 1);
14819 rm -f conftest.$ac_objext conftest$ac_exeext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821 (eval $ac_link) 2>conftest.er1
14823 grep -v '^ *+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag"
14829 || test ! -s conftest.err'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest$ac_exeext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14842 cat >>confdefs.h <<\_ACEOF
14843 #define HAVE_SIGSETJMP 1
14846 echo "$as_me:$LINENO: result: yes" >&5
14847 echo "${ECHO_T}yes" >&6
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 echo "$as_me:$LINENO: result: no" >&5
14853 echo "${ECHO_T}no" >&6
14855 rm -f conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14858 echo "$as_me:$LINENO: checking for syslog" >&5
14859 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
14860 if test "${ac_cv_func_syslog+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
14870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14871 #define syslog innocuous_syslog
14873 /* System header to define __stub macros and hopefully few prototypes,
14874 which can conflict with char syslog (); below.
14875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14876 <limits.h> exists even on freestanding compilers. */
14879 # include <limits.h>
14881 # include <assert.h>
14886 /* Override any gcc2 internal prototype to avoid an error. */
14891 /* We use char because int might match the return type of a gcc2
14892 builtin and then its argument prototype would still apply. */
14894 /* The GNU C library defines this for functions which it implements
14895 to always fail with ENOSYS. Some functions are actually named
14896 something starting with __ and the normal name is an alias. */
14897 #if defined (__stub_syslog) || defined (__stub___syslog)
14900 char (*f) () = syslog;
14909 return f != syslog;
14914 rm -f conftest.$ac_objext conftest$ac_exeext
14915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14916 (eval $ac_link) 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag"
14924 || test ! -s conftest.err'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; } &&
14930 { ac_try='test -s conftest$ac_exeext'
14931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932 (eval $ac_try) 2>&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); }; }; then
14936 ac_cv_func_syslog=yes
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 ac_cv_func_syslog=no
14943 rm -f conftest.err conftest.$ac_objext \
14944 conftest$ac_exeext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
14947 echo "${ECHO_T}$ac_cv_func_syslog" >&6
14948 if test $ac_cv_func_syslog = yes; then
14949 if test "${ac_cv_header_syslog_h+set}" = set; then
14950 echo "$as_me:$LINENO: checking for syslog.h" >&5
14951 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
14952 if test "${ac_cv_header_syslog_h+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
14956 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
14958 # Is the header compilable?
14959 echo "$as_me:$LINENO: checking syslog.h usability" >&5
14960 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967 $ac_includes_default
14968 #include <syslog.h>
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_header_compiler=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_header_compiler=no
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6
15003 # Is the header present?
15004 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15005 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <syslog.h>
15014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } >/dev/null; then
15022 if test -s conftest.err; then
15023 ac_cpp_err=$ac_c_preproc_warn_flag
15024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15031 if test -z "$ac_cpp_err"; then
15032 ac_header_preproc=yes
15034 echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15037 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15053 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15067 ## ---------------------------------------- ##
15068 ## Report this to pgsql-bugs@postgresql.org ##
15069 ## ---------------------------------------- ##
15072 sed "s/^/$as_me: WARNING: /" >&2
15075 echo "$as_me:$LINENO: checking for syslog.h" >&5
15076 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15077 if test "${ac_cv_header_syslog_h+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 ac_cv_header_syslog_h=$ac_header_preproc
15082 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15083 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15086 if test $ac_cv_header_syslog_h = yes; then
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_SYSLOG 1
15098 echo "$as_me:$LINENO: checking for optreset" >&5
15099 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15100 if test "${pgac_cv_var_int_optreset+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 cat >conftest.$ac_ext <<_ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15109 #include <unistd.h>
15113 extern int optreset; optreset = 1;
15118 rm -f conftest.$ac_objext conftest$ac_exeext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15120 (eval $ac_link) 2>conftest.er1
15122 grep -v '^ *+' conftest.er1 >conftest.err
15124 cat conftest.err >&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); } &&
15127 { ac_try='test -z "$ac_c_werror_flag"
15128 || test ! -s conftest.err'
15129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15130 (eval $ac_try) 2>&5
15132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133 (exit $ac_status); }; } &&
15134 { ac_try='test -s conftest$ac_exeext'
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15140 pgac_cv_var_int_optreset=yes
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 pgac_cv_var_int_optreset=no
15147 rm -f conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15150 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15151 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15152 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15154 cat >>confdefs.h <<\_ACEOF
15155 #define HAVE_INT_OPTRESET 1
15162 for ac_func in strtoll strtoq
15164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15165 echo "$as_me:$LINENO: checking for $ac_func" >&5
15166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15167 if eval "test \"\${$as_ac_var+set}\" = set"; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15178 #define $ac_func innocuous_$ac_func
15180 /* System header to define __stub macros and hopefully few prototypes,
15181 which can conflict with char $ac_func (); below.
15182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15183 <limits.h> exists even on freestanding compilers. */
15186 # include <limits.h>
15188 # include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error. */
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15201 /* The GNU C library defines this for functions which it implements
15202 to always fail with ENOSYS. Some functions are actually named
15203 something starting with __ and the normal name is an alias. */
15204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15207 char (*f) () = $ac_func;
15216 return f != $ac_func;
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest$ac_exeext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 eval "$as_ac_var=yes"
15245 echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15248 eval "$as_ac_var=no"
15250 rm -f conftest.err conftest.$ac_objext \
15251 conftest$ac_exeext conftest.$ac_ext
15253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15255 if test `eval echo '${'$as_ac_var'}'` = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15265 for ac_func in strtoull strtouq
15267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15268 echo "$as_me:$LINENO: checking for $ac_func" >&5
15269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15270 if eval "test \"\${$as_ac_var+set}\" = set"; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15281 #define $ac_func innocuous_$ac_func
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func (); below.
15285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286 <limits.h> exists even on freestanding compilers. */
15289 # include <limits.h>
15291 # include <assert.h>
15296 /* Override any gcc2 internal prototype to avoid an error. */
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15304 /* The GNU C library defines this for functions which it implements
15305 to always fail with ENOSYS. Some functions are actually named
15306 something starting with __ and the normal name is an alias. */
15307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15310 char (*f) () = $ac_func;
15319 return f != $ac_func;
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>conftest.er1
15328 grep -v '^ *+' conftest.er1 >conftest.err
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag"
15334 || test ! -s conftest.err'
15335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336 (eval $ac_try) 2>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); }; } &&
15340 { ac_try='test -s conftest$ac_exeext'
15341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15342 (eval $ac_try) 2>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); }; }; then
15346 eval "$as_ac_var=yes"
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15351 eval "$as_ac_var=no"
15353 rm -f conftest.err conftest.$ac_objext \
15354 conftest$ac_exeext conftest.$ac_ext
15356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15367 # Check for one of atexit() or on_exit()
15369 for ac_func in atexit
15371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 echo "$as_me:$LINENO: checking for $ac_func" >&5
15373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15374 if eval "test \"\${$as_ac_var+set}\" = set"; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15385 #define $ac_func innocuous_$ac_func
15387 /* System header to define __stub macros and hopefully few prototypes,
15388 which can conflict with char $ac_func (); below.
15389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15390 <limits.h> exists even on freestanding compilers. */
15393 # include <limits.h>
15395 # include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15405 /* We use char because int might match the return type of a gcc2
15406 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15414 char (*f) () = $ac_func;
15423 return f != $ac_func;
15428 rm -f conftest.$ac_objext conftest$ac_exeext
15429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15430 (eval $ac_link) 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -z "$ac_c_werror_flag"
15438 || test ! -s conftest.err'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; } &&
15444 { ac_try='test -s conftest$ac_exeext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 eval "$as_ac_var=yes"
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 eval "$as_ac_var=no"
15457 rm -f conftest.err conftest.$ac_objext \
15458 conftest$ac_exeext conftest.$ac_ext
15460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15462 if test `eval echo '${'$as_ac_var'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15469 for ac_func in on_exit
15471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 echo "$as_me:$LINENO: checking for $ac_func" >&5
15473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15474 if eval "test \"\${$as_ac_var+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 cat >conftest.$ac_ext <<_ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15485 #define $ac_func innocuous_$ac_func
15487 /* System header to define __stub macros and hopefully few prototypes,
15488 which can conflict with char $ac_func (); below.
15489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15490 <limits.h> exists even on freestanding compilers. */
15493 # include <limits.h>
15495 # include <assert.h>
15500 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15508 /* The GNU C library defines this for functions which it implements
15509 to always fail with ENOSYS. Some functions are actually named
15510 something starting with __ and the normal name is an alias. */
15511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 char (*f) () = $ac_func;
15523 return f != $ac_func;
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -z "$ac_c_werror_flag"
15538 || test ! -s conftest.err'
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest$ac_exeext'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 eval "$as_ac_var=yes"
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 eval "$as_ac_var=no"
15557 rm -f conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15562 if test `eval echo '${'$as_ac_var'}'` = yes; then
15563 cat >>confdefs.h <<_ACEOF
15564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15569 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15570 { (exit 1); exit 1; }; }
15578 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15579 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15580 if test "${ac_cv_sys_largefile_source+set}" = set; then
15581 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 ac_cv_sys_largefile_source=no
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15600 rm -f conftest.$ac_objext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602 (eval $ac_compile) 2>conftest.er1
15604 grep -v '^ *+' conftest.er1 >conftest.err
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag"
15610 || test ! -s conftest.err'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } &&
15616 { ac_try='test -s conftest.$ac_objext'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15624 echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 _LARGEFILE_SOURCE 1
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647 (eval $ac_compile) 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest.$ac_objext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_cv_sys_largefile_source=1; break
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
15678 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
15679 if test "$ac_cv_sys_largefile_source" != no; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15688 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15689 # in glibc 2.1.3, but that breaks too many other things.
15690 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15691 echo "$as_me:$LINENO: checking for fseeko" >&5
15692 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
15693 if test "${ac_cv_func_fseeko+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15706 return fseeko && fseeko (stdin, 0, 0);
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713 (eval $ac_link) 2>conftest.er1
15715 grep -v '^ *+' conftest.er1 >conftest.err
15717 cat conftest.err >&5
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } &&
15720 { ac_try='test -z "$ac_c_werror_flag"
15721 || test ! -s conftest.err'
15722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723 (eval $ac_try) 2>&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 ac_cv_func_fseeko=yes
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15738 ac_cv_func_fseeko=no
15740 rm -f conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15743 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
15744 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
15745 if test $ac_cv_func_fseeko = yes; then
15747 cat >>confdefs.h <<\_ACEOF
15748 #define HAVE_FSEEKO 1
15757 # For each platform, we need to know about any special compile and link
15758 # libraries, and whether the normal C function names are thread-safe.
15759 # See the comment at the top of src/port/thread.c for more information.
15761 if test "$enable_thread_safety" = yes; then
15767 ac_cpp='$CPP $CPPFLAGS'
15768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15774 # We used to check for pthread.h first, but this fails if pthread.h
15775 # requires special compiler flags (e.g. on True64 or Sequent).
15776 # It gets checked for in the link test anyway.
15778 # First of all, check if the user has set any of the PTHREAD_LIBS,
15779 # etcetera environment variables, and if threads linking works using
15781 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15782 save_CFLAGS="$CFLAGS"
15783 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15785 LIBS="$PTHREAD_LIBS $LIBS"
15786 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15787 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 /* Override any gcc2 internal prototype to avoid an error. */
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15801 char pthread_join ();
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -z "$ac_c_werror_flag"
15820 || test ! -s conftest.err'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest$ac_exeext'
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15834 echo "$as_me: failed program was:" >&5
15835 sed 's/^/| /' conftest.$ac_ext >&5
15838 rm -f conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15841 echo "${ECHO_T}$acx_pthread_ok" >&6
15842 if test x"$acx_pthread_ok" = xno; then
15847 CFLAGS="$save_CFLAGS"
15850 # We must check for the threads library under a number of different
15851 # names; the ordering is very important because some systems
15852 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15853 # libraries is broken (non-POSIX).
15855 # Create a list of thread flags to try. Items starting with a "-" are
15856 # C compiler flags, and other items are library names, except for "none"
15857 # which indicates that we try without any flags at all, and "pthread-config"
15858 # which is a program returning the flags for the Pth emulation library.
15860 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
15862 # The ordering *is* (sometimes) important. Some notes on the
15863 # individual items follow:
15865 # pthreads: AIX (must check this before -lpthread)
15866 # none: in case threads are in libc; should be tried before -Kthread and
15867 # other compiler flags to prevent continual compiler warnings
15868 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15869 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15870 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15871 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15872 # -pthreads: Solaris/gcc
15873 # -mthreads: Mingw32/gcc, Lynx/gcc
15874 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15875 # doesn't hurt to check since this sometimes defines pthreads too;
15876 # also defines -D_REENTRANT)
15877 # pthread: Linux, etcetera
15878 # --thread-safe: KAI C++
15879 # pthread-config: use pthread-config program (for GNU Pth library)
15881 case "${host_cpu}-${host_os}" in
15884 # On Solaris (at least, for some versions), libc contains stubbed
15885 # (non-functional) versions of the pthreads routines, so link-based
15886 # tests will erroneously succeed. (We need to link with -pthread or
15887 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15888 # a function called by this macro, so we could check for that, but
15889 # who knows whether they'll stub that too in a future libc.) So,
15890 # we'll just look for -pthreads and -lpthread first:
15892 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
15896 if test x"$acx_pthread_ok" = xno; then
15897 for flag in $acx_pthread_flags; do
15899 tryPTHREAD_CFLAGS=""
15903 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
15904 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
15908 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
15909 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
15910 tryPTHREAD_CFLAGS="$flag"
15914 # skip this if we already have flags defined, for PostgreSQL
15915 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
15916 # Extract the first word of "pthread-config", so it can be a program name with args.
15917 set dummy pthread-config; ac_word=$2
15918 echo "$as_me:$LINENO: checking for $ac_word" >&5
15919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15920 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
15921 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 if test -n "$acx_pthread_config"; then
15924 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15927 for as_dir in $PATH
15930 test -z "$as_dir" && as_dir=.
15931 for ac_exec_ext in '' $ac_executable_extensions; do
15932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15933 ac_cv_prog_acx_pthread_config="yes"
15934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15940 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15943 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15944 if test -n "$acx_pthread_config"; then
15945 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
15946 echo "${ECHO_T}$acx_pthread_config" >&6
15948 echo "$as_me:$LINENO: result: no" >&5
15949 echo "${ECHO_T}no" >&6
15952 if test x"$acx_pthread_config" = xno; then continue; fi
15953 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
15954 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15958 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15959 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
15960 tryPTHREAD_LIBS="-l$flag"
15965 save_CFLAGS="$CFLAGS"
15966 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
15967 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
15969 # Check for various functions. We must include pthread.h,
15970 # since some functions may be macros. (On the Sequent, we
15971 # need a special flag -Kthread to make this header compile.)
15972 # We check for pthread_join because it is in -lpthread on IRIX
15973 # while pthread_create is in libc. We check for pthread_attr_init
15974 # due to DEC craziness with -lpthreads. We check for
15975 # pthread_cleanup_push because it is one of the few pthread
15976 # functions on Solaris that doesn't have a non-functional libc stub.
15977 # We try pthread_create on general principles.
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <pthread.h>
15988 pthread_t th; pthread_join(th, 0);
15989 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15990 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997 (eval $ac_link) 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag"
16005 || test ! -s conftest.err'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } &&
16011 { ac_try='test -s conftest$ac_exeext'
16012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); }; }; then
16019 echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16024 rm -f conftest.err conftest.$ac_objext \
16025 conftest$ac_exeext conftest.$ac_ext
16027 if test "x$acx_pthread_ok" = xyes; then
16028 # Don't use options that are ignored by the compiler.
16029 # We find them by checking stderror.
16030 cat >conftest.$ac_ext <<_ACEOF
16032 main (int argc, char **argv)
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16041 # we continue with more flags because Linux needs -lpthread
16042 # for libpq builds on PostgreSQL. The test above only
16043 # tests for building binaries, not shared libraries.
16044 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16045 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16046 else acx_pthread_ok=no
16051 CFLAGS="$save_CFLAGS"
16053 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16054 echo "${ECHO_T}$acx_pthread_ok" >&6
16058 # Various other checks:
16059 if test "x$acx_pthread_ok" = xyes; then
16061 LIBS="$PTHREAD_LIBS $LIBS"
16062 save_CFLAGS="$CFLAGS"
16063 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16065 # Detect AIX lossage: threads are created detached by default
16066 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16067 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16068 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #include <pthread.h>
16079 int attr=PTHREAD_CREATE_JOINABLE;
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086 (eval $ac_link) 2>conftest.er1
16088 grep -v '^ *+' conftest.er1 >conftest.err
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
16093 { ac_try='test -z "$ac_c_werror_flag"
16094 || test ! -s conftest.err'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ok=PTHREAD_CREATE_JOINABLE
16108 echo "$as_me: failed program was:" >&5
16109 sed 's/^/| /' conftest.$ac_ext >&5
16113 rm -f conftest.err conftest.$ac_objext \
16114 conftest$ac_exeext conftest.$ac_ext
16115 if test x"$ok" = xunknown; then
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 #include <pthread.h>
16126 int attr=PTHREAD_CREATE_UNDETACHED;
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16133 (eval $ac_link) 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
16140 { ac_try='test -z "$ac_c_werror_flag"
16141 || test ! -s conftest.err'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest$ac_exeext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ok=PTHREAD_CREATE_UNDETACHED
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16160 rm -f conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
16163 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16165 cat >>confdefs.h <<\_ACEOF
16166 #define PTHREAD_CREATE_JOINABLE $ok
16170 echo "$as_me:$LINENO: result: ${ok}" >&5
16171 echo "${ECHO_T}${ok}" >&6
16172 if test x"$ok" = xunknown; then
16173 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16174 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16177 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16178 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16180 # We always add these in PostgreSQL
16181 # case "${host_cpu}-${host_os}" in
16182 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16183 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16185 echo "$as_me:$LINENO: result: ${flag}" >&5
16186 echo "${ECHO_T}${flag}" >&6
16187 if test "x$flag" != xno; then
16188 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16192 CFLAGS="$save_CFLAGS"
16194 # Supporting cc_r would require a special CC in all places that
16195 # use libpq, and that is ugly, so we don't do it. Users can still
16196 # define their compiler as cc_r to do thread builds of everything.
16197 # More AIX lossage: must compile with cc_r
16198 # Extract the first word of "cc_r", so it can be a program name with args.
16199 set dummy cc_r; ac_word=$2
16200 echo "$as_me:$LINENO: checking for $ac_word" >&5
16201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16202 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 if test -n "$PTHREAD_CC"; then
16206 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209 for as_dir in $PATH
16212 test -z "$as_dir" && as_dir=.
16213 for ac_exec_ext in '' $ac_executable_extensions; do
16214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16215 ac_cv_prog_PTHREAD_CC="cc_r"
16216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16222 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16225 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16226 if test -n "$PTHREAD_CC"; then
16227 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16228 echo "${ECHO_T}$PTHREAD_CC" >&6
16230 echo "$as_me:$LINENO: result: no" >&5
16231 echo "${ECHO_T}no" >&6
16242 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16243 if test x"$acx_pthread_ok" = xyes; then
16245 cat >>confdefs.h <<\_ACEOF
16246 #define HAVE_PTHREAD 1
16255 ac_cpp='$CPP $CPPFLAGS'
16256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16262 # Some platforms use these, so just defineed them. They can't hurt if they
16263 # are not supported.
16264 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16267 # At this point, we don't want to muck with the compiler name for threading.
16268 # Let's see who fails, perhaps AIX. 2004-04-23
16269 if test "$PTHREAD_CC" != "$CC"; then
16270 { { echo "$as_me:$LINENO: error:
16271 PostgreSQL does not support platforms that require a special
16272 compiler binary for thread-safety.
16274 echo "$as_me: error:
16275 PostgreSQL does not support platforms that require a special
16276 compiler binary for thread-safety.
16278 { (exit 1); exit 1; }; }
16281 if test "$THREAD_SUPPORT" = no; then
16282 { { echo "$as_me:$LINENO: error:
16283 Cannot enable threads on your platform.
16284 Your platform is known to not support thread-safe programs.
16285 For details, compile and run src/bin/pg_thread_test.
16287 echo "$as_me: error:
16288 Cannot enable threads on your platform.
16289 Your platform is known to not support thread-safe programs.
16290 For details, compile and run src/bin/pg_thread_test.
16292 { (exit 1); exit 1; }; }
16295 # Check for *_r functions
16298 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16299 LIBS="$LIBS $PTHREAD_LIBS"
16301 if test "${ac_cv_header_pthread_h+set}" = set; then
16302 echo "$as_me:$LINENO: checking for pthread.h" >&5
16303 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16304 if test "${ac_cv_header_pthread_h+set}" = set; then
16305 echo $ECHO_N "(cached) $ECHO_C" >&6
16307 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16308 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16310 # Is the header compilable?
16311 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16312 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16313 cat >conftest.$ac_ext <<_ACEOF
16316 cat confdefs.h >>conftest.$ac_ext
16317 cat >>conftest.$ac_ext <<_ACEOF
16318 /* end confdefs.h. */
16319 $ac_includes_default
16320 #include <pthread.h>
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16326 grep -v '^ *+' conftest.er1 >conftest.err
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_header_compiler=yes
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 ac_header_compiler=no
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16353 echo "${ECHO_T}$ac_header_compiler" >&6
16355 # Is the header present?
16356 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16357 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 #include <pthread.h>
16366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } >/dev/null; then
16374 if test -s conftest.err; then
16375 ac_cpp_err=$ac_c_preproc_warn_flag
16376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16383 if test -z "$ac_cpp_err"; then
16384 ac_header_preproc=yes
16386 echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16389 ac_header_preproc=no
16391 rm -f conftest.err conftest.$ac_ext
16392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16393 echo "${ECHO_T}$ac_header_preproc" >&6
16395 # So? What about this header?
16396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16398 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16399 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16401 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16402 ac_header_preproc=yes
16405 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16406 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16408 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16409 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16410 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16411 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16412 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16413 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16414 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16415 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16416 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16419 ## ---------------------------------------- ##
16420 ## Report this to pgsql-bugs@postgresql.org ##
16421 ## ---------------------------------------- ##
16424 sed "s/^/$as_me: WARNING: /" >&2
16427 echo "$as_me:$LINENO: checking for pthread.h" >&5
16428 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16429 if test "${ac_cv_header_pthread_h+set}" = set; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 ac_cv_header_pthread_h=$ac_header_preproc
16434 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16435 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16438 if test $ac_cv_header_pthread_h = yes; then
16441 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16442 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16443 { (exit 1); exit 1; }; }
16451 for ac_func in strerror_r getpwuid_r gethostbyname_r
16453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16454 echo "$as_me:$LINENO: checking for $ac_func" >&5
16455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16456 if eval "test \"\${$as_ac_var+set}\" = set"; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16459 cat >conftest.$ac_ext <<_ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16467 #define $ac_func innocuous_$ac_func
16469 /* System header to define __stub macros and hopefully few prototypes,
16470 which can conflict with char $ac_func (); below.
16471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16472 <limits.h> exists even on freestanding compilers. */
16475 # include <limits.h>
16477 # include <assert.h>
16482 /* Override any gcc2 internal prototype to avoid an error. */
16487 /* We use char because int might match the return type of a gcc2
16488 builtin and then its argument prototype would still apply. */
16490 /* The GNU C library defines this for functions which it implements
16491 to always fail with ENOSYS. Some functions are actually named
16492 something starting with __ and the normal name is an alias. */
16493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16496 char (*f) () = $ac_func;
16505 return f != $ac_func;
16510 rm -f conftest.$ac_objext conftest$ac_exeext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512 (eval $ac_link) 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag"
16520 || test ! -s conftest.err'
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 eval "$as_ac_var=yes"
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 eval "$as_ac_var=no"
16539 rm -f conftest.err conftest.$ac_objext \
16540 conftest$ac_exeext conftest.$ac_ext
16542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16544 if test `eval echo '${'$as_ac_var'}'` = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16553 # Do test here with the proper thread flags
16554 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16555 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16556 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 #include <sys/types.h>
16571 struct passwd *space;
16574 struct passwd **result;
16575 getpwuid_r(uid, space, buf, bufsize, result);
16580 rm -f conftest.$ac_objext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582 (eval $ac_compile) 2>conftest.er1
16584 grep -v '^ *+' conftest.er1 >conftest.err
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
16589 { ac_try='test -z "$ac_c_werror_flag"
16590 || test ! -s conftest.err'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; } &&
16596 { ac_try='test -s conftest.$ac_objext'
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 pgac_func_getpwuid_r_5arg=yes
16604 echo "$as_me: failed program was:" >&5
16605 sed 's/^/| /' conftest.$ac_ext >&5
16607 pgac_func_getpwuid_r_5arg=no
16609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16611 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
16612 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
16613 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define GETPWUID_R_5ARG
16621 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
16622 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
16623 if test "${pgac_func_strerror_r_int+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 #include <string.h>
16637 int strerror_r(int, char *, size_t);
16639 /* Older AIX has 'int' for the third argument so we don't test the args. */
16646 rm -f conftest.$ac_objext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -z "$ac_c_werror_flag"
16656 || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 pgac_func_strerror_r_int=yes
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 pgac_func_strerror_r_int=no
16675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16677 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
16678 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
16679 if test x"$pgac_func_strerror_r_int" = xyes ; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define STRERROR_R_INT
16692 # do not use values from template file
16701 # This test makes sure that run tests work at all. Sometimes a shared
16702 # library is found by the linker, but the runtime linker can't find it.
16703 # This check should come after all modifications of compiler or linker
16704 # variables, and before any other run tests.
16705 echo "$as_me:$LINENO: checking test program" >&5
16706 echo $ECHO_N "checking test program... $ECHO_C" >&6
16707 if test "$cross_compiling" = yes; then
16708 echo "$as_me:$LINENO: result: cross-compiling" >&5
16709 echo "${ECHO_T}cross-compiling" >&6
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 int main() { return 0; }
16719 rm -f conftest$ac_exeext
16720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721 (eval $ac_link) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16730 echo "$as_me:$LINENO: result: ok" >&5
16731 echo "${ECHO_T}ok" >&6
16733 echo "$as_me: program exited with status $ac_status" >&5
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ( exit $ac_status )
16738 echo "$as_me:$LINENO: result: failed" >&5
16739 echo "${ECHO_T}failed" >&6
16740 { { echo "$as_me:$LINENO: error:
16741 *** Could not execute a simple test program. This may be a problem
16742 *** related to locating shared libraries. Check the file 'config.log'
16743 *** for the exact reason." >&5
16744 echo "$as_me: error:
16745 *** Could not execute a simple test program. This may be a problem
16746 *** related to locating shared libraries. Check the file 'config.log'
16747 *** for the exact reason." >&2;}
16748 { (exit 1); exit 1; }; }
16750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16753 # --------------------
16754 # Run tests below here
16755 # --------------------
16757 # Force use of our snprintf if system's doesn't do arg control
16758 # See comment above at snprintf test for details.
16759 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
16760 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
16761 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
16762 if test "${pgac_cv_printf_arg_control+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16765 if test "$cross_compiling" = yes; then
16766 pgac_cv_printf_arg_control=cross
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16775 #include <string.h>
16781 /* can it swap arguments? */
16782 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
16783 if (strcmp(buf, "4 3") != 0)
16788 rm -f conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790 (eval $ac_link) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 pgac_cv_printf_arg_control=yes
16801 echo "$as_me: program exited with status $ac_status" >&5
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ( exit $ac_status )
16806 pgac_cv_printf_arg_control=no
16808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16812 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
16813 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
16815 if test $pgac_cv_printf_arg_control != yes ; then
16816 pgac_need_repl_snprintf=yes
16822 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
16823 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
16824 if test "${pgac_cv_type_long_int_64+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 if test "$cross_compiling" = yes; then
16828 # If cross-compiling, check the size reported by the compiler and
16829 # trust that the arithmetic works.
16830 cat >conftest.$ac_ext <<_ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16840 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16847 rm -f conftest.$ac_objext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16849 (eval $ac_compile) 2>conftest.er1
16851 grep -v '^ *+' conftest.er1 >conftest.err
16853 cat conftest.err >&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); } &&
16856 { ac_try='test -z "$ac_c_werror_flag"
16857 || test ! -s conftest.err'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; } &&
16863 { ac_try='test -s conftest.$ac_objext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 pgac_cv_type_long_int_64=yes
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 pgac_cv_type_long_int_64=no
16876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 typedef long int ac_int64;
16887 * These are globals to discourage the compiler from folding all the
16888 * arithmetic tests down to compile-time constants.
16890 ac_int64 a = 20000001;
16891 ac_int64 b = 40000005;
16893 int does_int64_work()
16897 if (sizeof(ac_int64) != 8)
16898 return 0; /* definitely not the right size */
16900 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16908 exit(! does_int64_work());
16911 rm -f conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 pgac_cv_type_long_int_64=yes
16924 echo "$as_me: program exited with status $ac_status" >&5
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ( exit $ac_status )
16929 pgac_cv_type_long_int_64=no
16931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16934 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
16935 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
16937 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16938 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_LONG_INT_64
16947 if test x"$HAVE_LONG_INT_64" = x"no" ; then
16948 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
16949 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
16950 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 if test "$cross_compiling" = yes; then
16954 # If cross-compiling, check the size reported by the compiler and
16955 # trust that the arithmetic works.
16956 cat >conftest.$ac_ext <<_ACEOF
16959 cat confdefs.h >>conftest.$ac_ext
16960 cat >>conftest.$ac_ext <<_ACEOF
16961 /* end confdefs.h. */
16966 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16973 rm -f conftest.$ac_objext
16974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16975 (eval $ac_compile) 2>conftest.er1
16977 grep -v '^ *+' conftest.er1 >conftest.err
16979 cat conftest.err >&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -z "$ac_c_werror_flag"
16983 || test ! -s conftest.err'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; } &&
16989 { ac_try='test -s conftest.$ac_objext'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
16995 pgac_cv_type_long_long_int_64=yes
16997 echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 pgac_cv_type_long_long_int_64=no
17002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17004 cat >conftest.$ac_ext <<_ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 typedef long long int ac_int64;
17013 * These are globals to discourage the compiler from folding all the
17014 * arithmetic tests down to compile-time constants.
17016 ac_int64 a = 20000001;
17017 ac_int64 b = 40000005;
17019 int does_int64_work()
17023 if (sizeof(ac_int64) != 8)
17024 return 0; /* definitely not the right size */
17026 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17034 exit(! does_int64_work());
17037 rm -f conftest$ac_exeext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17039 (eval $ac_link) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 pgac_cv_type_long_long_int_64=yes
17050 echo "$as_me: program exited with status $ac_status" >&5
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ( exit $ac_status )
17055 pgac_cv_type_long_long_int_64=no
17057 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17060 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17061 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17063 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17064 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17066 cat >>confdefs.h <<\_ACEOF
17067 #define HAVE_LONG_LONG_INT_64
17076 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17077 cat >conftest.$ac_ext <<_ACEOF
17080 cat confdefs.h >>conftest.$ac_ext
17081 cat >>conftest.$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17084 #define INT64CONST(x) x##LL
17085 long long int foo = INT64CONST(0x1234567890123456);
17095 rm -f conftest.$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097 (eval $ac_compile) 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17118 cat >>confdefs.h <<\_ACEOF
17119 #define HAVE_LL_CONSTANTS 1
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17131 # If we found "long int" is 64 bits, assume snprintf handles it. If
17132 # we found we need to use "long long int", better check. We cope with
17133 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17134 # work, fall back to our own snprintf emulation (which we know uses %lld).
17136 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17137 if test $pgac_need_repl_snprintf = no; then
17138 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17139 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17140 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 for pgac_format in '%lld' '%qd' '%I64d'; do
17144 if test "$cross_compiling" = yes; then
17145 pgac_cv_snprintf_long_long_int_format=cross; break
17147 cat >conftest.$ac_ext <<_ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17154 typedef long long int ac_int64;
17155 #define INT64_FORMAT "$pgac_format"
17157 ac_int64 a = 20000001;
17158 ac_int64 b = 40000005;
17160 int does_int64_snprintf_work()
17165 if (sizeof(ac_int64) != 8)
17166 return 0; /* doesn't look like the right size */
17169 snprintf(buf, 100, INT64_FORMAT, c);
17170 if (strcmp(buf, "800000140000005") != 0)
17171 return 0; /* either multiply or snprintf is busted */
17175 exit(! does_int64_snprintf_work());
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 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17191 echo "$as_me: program exited with status $ac_status" >&5
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17201 LONG_LONG_INT_FORMAT=''
17203 case $pgac_cv_snprintf_long_long_int_format in
17204 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17205 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17206 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17207 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17208 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17209 *) echo "$as_me:$LINENO: result: none" >&5
17210 echo "${ECHO_T}none" >&6;;
17212 if test "$LONG_LONG_INT_FORMAT" = ""; then
17213 # Force usage of our own snprintf, since system snprintf is broken
17214 pgac_need_repl_snprintf=yes
17215 LONG_LONG_INT_FORMAT='%lld'
17218 # Here if we previously decided we needed to use our own snprintf
17219 LONG_LONG_INT_FORMAT='%lld'
17221 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17222 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17223 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17225 # Here if we are not using 'long long int' at all
17226 INT64_FORMAT='"%ld"'
17227 UINT64_FORMAT='"%lu"'
17231 cat >>confdefs.h <<_ACEOF
17232 #define INT64_FORMAT $INT64_FORMAT
17237 cat >>confdefs.h <<_ACEOF
17238 #define UINT64_FORMAT $UINT64_FORMAT
17242 # Now we have checked all the reasons to replace snprintf
17243 if test $pgac_need_repl_snprintf = yes; then
17245 cat >>confdefs.h <<\_ACEOF
17246 #define USE_REPL_SNPRINTF 1
17250 "snprintf.$ac_objext" | \
17251 *" snprintf.$ac_objext" | \
17252 "snprintf.$ac_objext "* | \
17253 *" snprintf.$ac_objext "* ) ;;
17254 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17259 # Need a #define for the size of Datum (unsigned long)
17260 echo "$as_me:$LINENO: checking for unsigned long" >&5
17261 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17262 if test "${ac_cv_type_unsigned_long+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 $ac_includes_default
17275 if ((unsigned long *) 0)
17277 if (sizeof (unsigned long))
17283 rm -f conftest.$ac_objext
17284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>conftest.er1
17287 grep -v '^ *+' conftest.er1 >conftest.err
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); } &&
17292 { ac_try='test -z "$ac_c_werror_flag"
17293 || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 ac_cv_type_unsigned_long=yes
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_cv_type_unsigned_long=no
17312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17315 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17317 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17318 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17319 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 if test "$ac_cv_type_unsigned_long" = yes; then
17323 # The cast to unsigned long works around a bug in the HP C Compiler
17324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17326 # This bug is HP SR number 8606223364.
17327 if test "$cross_compiling" = yes; then
17328 # Depending upon the size, compute the lo and hi bounds.
17329 cat >conftest.$ac_ext <<_ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h. */
17335 $ac_includes_default
17339 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17346 rm -f conftest.$ac_objext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17348 (eval $ac_compile) 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 $ac_includes_default
17380 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17387 rm -f conftest.$ac_objext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17389 (eval $ac_compile) 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag"
17397 || test ! -s conftest.err'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 ac_hi=$ac_mid; break
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_lo=`expr $ac_mid + 1`
17415 if test $ac_lo -le $ac_mid; then
17419 ac_mid=`expr 2 '*' $ac_mid + 1`
17421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 $ac_includes_default
17437 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17444 rm -f conftest.$ac_objext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17446 (eval $ac_compile) 2>conftest.er1
17448 grep -v '^ *+' conftest.er1 >conftest.err
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest.$ac_objext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17474 $ac_includes_default
17478 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17485 rm -f conftest.$ac_objext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487 (eval $ac_compile) 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest.$ac_objext'
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 ac_lo=$ac_mid; break
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17512 ac_hi=`expr '(' $ac_mid ')' - 1`
17513 if test $ac_mid -le $ac_hi; then
17517 ac_mid=`expr 2 '*' $ac_mid`
17519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530 # Binary search between lo and hi bounds.
17531 while test "x$ac_lo" != "x$ac_hi"; do
17532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17533 cat >conftest.$ac_ext <<_ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 $ac_includes_default
17543 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552 (eval $ac_compile) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag"
17560 || test ! -s conftest.err'
17561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17562 (eval $ac_try) 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; } &&
17566 { ac_try='test -s conftest.$ac_objext'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17577 ac_lo=`expr '(' $ac_mid ')' + 1`
17579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17583 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17584 See \`config.log' for more details." >&5
17585 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17586 See \`config.log' for more details." >&2;}
17587 { (exit 1); exit 1; }; } ;;
17590 if test "$cross_compiling" = yes; then
17591 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17592 See \`config.log' for more details." >&5
17593 echo "$as_me: error: cannot run test program while cross compiling
17594 See \`config.log' for more details." >&2;}
17595 { (exit 1); exit 1; }; }
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 $ac_includes_default
17604 long longval () { return (long) (sizeof (unsigned long)); }
17605 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17607 #include <stdlib.h>
17612 FILE *f = fopen ("conftest.val", "w");
17615 if (((long) (sizeof (unsigned long))) < 0)
17617 long i = longval ();
17618 if (i != ((long) (sizeof (unsigned long))))
17620 fprintf (f, "%ld\n", i);
17624 unsigned long i = ulongval ();
17625 if (i != ((long) (sizeof (unsigned long))))
17627 fprintf (f, "%lu\n", i);
17629 exit (ferror (f) || fclose (f) != 0);
17635 rm -f conftest$ac_exeext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637 (eval $ac_link) 2>&5
17639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 ac_cv_sizeof_unsigned_long=`cat conftest.val`
17648 echo "$as_me: program exited with status $ac_status" >&5
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 ( exit $ac_status )
17653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17654 See \`config.log' for more details." >&5
17655 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17656 See \`config.log' for more details." >&2;}
17657 { (exit 1); exit 1; }; }
17659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17664 ac_cv_sizeof_unsigned_long=0
17667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17668 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
17669 cat >>confdefs.h <<_ACEOF
17670 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17675 # And one for the size of size_t (enables tweaks for > 32bit address space)
17676 echo "$as_me:$LINENO: checking for size_t" >&5
17677 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17678 if test "${ac_cv_type_size_t+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17693 if (sizeof (size_t))
17699 rm -f conftest.$ac_objext
17700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17701 (eval $ac_compile) 2>conftest.er1
17703 grep -v '^ *+' conftest.er1 >conftest.err
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } &&
17708 { ac_try='test -z "$ac_c_werror_flag"
17709 || test ! -s conftest.err'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }; } &&
17715 { ac_try='test -s conftest.$ac_objext'
17716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717 (eval $ac_try) 2>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); }; }; then
17721 ac_cv_type_size_t=yes
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_type_size_t=no
17728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17730 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17731 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17733 echo "$as_me:$LINENO: checking size of size_t" >&5
17734 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17735 if test "${ac_cv_sizeof_size_t+set}" = set; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 if test "$ac_cv_type_size_t" = yes; then
17739 # The cast to unsigned long works around a bug in the HP C Compiler
17740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17742 # This bug is HP SR number 8606223364.
17743 if test "$cross_compiling" = yes; then
17744 # Depending upon the size, compute the lo and hi bounds.
17745 cat >conftest.$ac_ext <<_ACEOF
17748 cat confdefs.h >>conftest.$ac_ext
17749 cat >>conftest.$ac_ext <<_ACEOF
17750 /* end confdefs.h. */
17751 $ac_includes_default
17755 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764 (eval $ac_compile) 2>conftest.er1
17766 grep -v '^ *+' conftest.er1 >conftest.err
17768 cat conftest.err >&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); } &&
17771 { ac_try='test -z "$ac_c_werror_flag"
17772 || test ! -s conftest.err'
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; } &&
17778 { ac_try='test -s conftest.$ac_objext'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17786 cat >conftest.$ac_ext <<_ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h. */
17792 $ac_includes_default
17796 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17803 rm -f conftest.$ac_objext
17804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17805 (eval $ac_compile) 2>conftest.er1
17807 grep -v '^ *+' conftest.er1 >conftest.err
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } &&
17812 { ac_try='test -z "$ac_c_werror_flag"
17813 || test ! -s conftest.err'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; } &&
17819 { ac_try='test -s conftest.$ac_objext'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; }; then
17825 ac_hi=$ac_mid; break
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_lo=`expr $ac_mid + 1`
17831 if test $ac_lo -le $ac_mid; then
17835 ac_mid=`expr 2 '*' $ac_mid + 1`
17837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17853 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17860 rm -f conftest.$ac_objext
17861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17862 (eval $ac_compile) 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } &&
17869 { ac_try='test -z "$ac_c_werror_flag"
17870 || test ! -s conftest.err'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest.$ac_objext'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 $ac_includes_default
17894 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17901 rm -f conftest.$ac_objext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17903 (eval $ac_compile) 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag"
17911 || test ! -s conftest.err'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; } &&
17917 { ac_try='test -s conftest.$ac_objext'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17923 ac_lo=$ac_mid; break
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_hi=`expr '(' $ac_mid ')' - 1`
17929 if test $ac_mid -le $ac_hi; then
17933 ac_mid=`expr 2 '*' $ac_mid`
17935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17946 # Binary search between lo and hi bounds.
17947 while test "x$ac_lo" != "x$ac_hi"; do
17948 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 $ac_includes_default
17959 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17966 rm -f conftest.$ac_objext
17967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17968 (eval $ac_compile) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
17975 { ac_try='test -z "$ac_c_werror_flag"
17976 || test ! -s conftest.err'
17977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; } &&
17982 { ac_try='test -s conftest.$ac_objext'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; }; then
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_lo=`expr '(' $ac_mid ')' + 1`
17995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17998 ?*) ac_cv_sizeof_size_t=$ac_lo;;
17999 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18000 See \`config.log' for more details." >&5
18001 echo "$as_me: error: cannot compute sizeof (size_t), 77
18002 See \`config.log' for more details." >&2;}
18003 { (exit 1); exit 1; }; } ;;
18006 if test "$cross_compiling" = yes; then
18007 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18008 See \`config.log' for more details." >&5
18009 echo "$as_me: error: cannot run test program while cross compiling
18010 See \`config.log' for more details." >&2;}
18011 { (exit 1); exit 1; }; }
18013 cat >conftest.$ac_ext <<_ACEOF
18016 cat confdefs.h >>conftest.$ac_ext
18017 cat >>conftest.$ac_ext <<_ACEOF
18018 /* end confdefs.h. */
18019 $ac_includes_default
18020 long longval () { return (long) (sizeof (size_t)); }
18021 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18023 #include <stdlib.h>
18028 FILE *f = fopen ("conftest.val", "w");
18031 if (((long) (sizeof (size_t))) < 0)
18033 long i = longval ();
18034 if (i != ((long) (sizeof (size_t))))
18036 fprintf (f, "%ld\n", i);
18040 unsigned long i = ulongval ();
18041 if (i != ((long) (sizeof (size_t))))
18043 fprintf (f, "%lu\n", i);
18045 exit (ferror (f) || fclose (f) != 0);
18051 rm -f conftest$ac_exeext
18052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18053 (eval $ac_link) 2>&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062 ac_cv_sizeof_size_t=`cat conftest.val`
18064 echo "$as_me: program exited with status $ac_status" >&5
18065 echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ( exit $ac_status )
18069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18070 See \`config.log' for more details." >&5
18071 echo "$as_me: error: cannot compute sizeof (size_t), 77
18072 See \`config.log' for more details." >&2;}
18073 { (exit 1); exit 1; }; }
18075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18080 ac_cv_sizeof_size_t=0
18083 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18084 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18085 cat >>confdefs.h <<_ACEOF
18086 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18091 # Determine memory alignment requirements for the basic C data types.
18093 echo "$as_me:$LINENO: checking for short" >&5
18094 echo $ECHO_N "checking for short... $ECHO_C" >&6
18095 if test "${ac_cv_type_short+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 $ac_includes_default
18110 if (sizeof (short))
18116 rm -f conftest.$ac_objext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18118 (eval $ac_compile) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest.$ac_objext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_type_short=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_cv_type_short=no
18145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18147 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18148 echo "${ECHO_T}$ac_cv_type_short" >&6
18150 echo "$as_me:$LINENO: checking alignment of short" >&5
18151 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18152 if test "${pgac_cv_alignof_short+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18155 if test "$ac_cv_type_short" = yes; then
18156 if test "$cross_compiling" = yes; then
18157 # Depending upon the size, compute the lo and hi bounds.
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 $ac_includes_default
18165 struct { char filler; short field; } pgac_struct;
18169 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18176 rm -f conftest.$ac_objext
18177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18178 (eval $ac_compile) 2>conftest.er1
18180 grep -v '^ *+' conftest.er1 >conftest.err
18182 cat conftest.err >&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } &&
18185 { ac_try='test -z "$ac_c_werror_flag"
18186 || test ! -s conftest.err'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest.$ac_objext'
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; }; then
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 $ac_includes_default
18207 struct { char filler; short field; } pgac_struct;
18211 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18218 rm -f conftest.$ac_objext
18219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18220 (eval $ac_compile) 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag"
18228 || test ! -s conftest.err'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; } &&
18234 { ac_try='test -s conftest.$ac_objext'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; }; then
18240 ac_hi=$ac_mid; break
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 ac_lo=`expr $ac_mid + 1`
18246 if test $ac_lo -le $ac_mid; then
18250 ac_mid=`expr 2 '*' $ac_mid + 1`
18252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 $ac_includes_default
18265 struct { char filler; short field; } pgac_struct;
18269 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18276 rm -f conftest.$ac_objext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278 (eval $ac_compile) 2>conftest.er1
18280 grep -v '^ *+' conftest.er1 >conftest.err
18282 cat conftest.err >&5
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } &&
18285 { ac_try='test -z "$ac_c_werror_flag"
18286 || test ! -s conftest.err'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest.$ac_objext'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18300 cat >conftest.$ac_ext <<_ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18306 $ac_includes_default
18307 struct { char filler; short field; } pgac_struct;
18311 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18318 rm -f conftest.$ac_objext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18320 (eval $ac_compile) 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest.$ac_objext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_lo=$ac_mid; break
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_hi=`expr '(' $ac_mid ')' - 1`
18346 if test $ac_mid -le $ac_hi; then
18350 ac_mid=`expr 2 '*' $ac_mid`
18352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18363 # Binary search between lo and hi bounds.
18364 while test "x$ac_lo" != "x$ac_hi"; do
18365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 struct { char filler; short field; } pgac_struct;
18377 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18384 rm -f conftest.$ac_objext
18385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18386 (eval $ac_compile) 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } &&
18393 { ac_try='test -z "$ac_c_werror_flag"
18394 || test ! -s conftest.err'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; } &&
18400 { ac_try='test -s conftest.$ac_objext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18408 echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18411 ac_lo=`expr '(' $ac_mid ')' + 1`
18413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416 ?*) pgac_cv_alignof_short=$ac_lo;;
18417 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18418 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18419 { (exit 1); exit 1; }; } ;;
18422 if test "$cross_compiling" = yes; then
18423 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18424 See \`config.log' for more details." >&5
18425 echo "$as_me: error: cannot run test program while cross compiling
18426 See \`config.log' for more details." >&2;}
18427 { (exit 1); exit 1; }; }
18429 cat >conftest.$ac_ext <<_ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 $ac_includes_default
18436 struct { char filler; short field; } pgac_struct;
18437 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18438 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18440 #include <stdlib.h>
18445 FILE *f = fopen ("conftest.val", "w");
18448 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18450 long i = longval ();
18451 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18453 fprintf (f, "%ld\n", i);
18457 unsigned long i = ulongval ();
18458 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18460 fprintf (f, "%lu\n", i);
18462 exit (ferror (f) || fclose (f) != 0);
18468 rm -f conftest$ac_exeext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470 (eval $ac_link) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 pgac_cv_alignof_short=`cat conftest.val`
18481 echo "$as_me: program exited with status $ac_status" >&5
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ( exit $ac_status )
18486 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18487 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18488 { (exit 1); exit 1; }; }
18490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18495 pgac_cv_alignof_short=0
18498 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18499 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18500 cat >>confdefs.h <<_ACEOF
18501 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18505 echo "$as_me:$LINENO: checking for int" >&5
18506 echo $ECHO_N "checking for int... $ECHO_C" >&6
18507 if test "${ac_cv_type_int+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 $ac_includes_default
18528 rm -f conftest.$ac_objext
18529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530 (eval $ac_compile) 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_c_werror_flag"
18538 || test ! -s conftest.err'
18539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; } &&
18544 { ac_try='test -s conftest.$ac_objext'
18545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18546 (eval $ac_try) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); }; }; then
18552 echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.$ac_ext >&5
18557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18559 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18560 echo "${ECHO_T}$ac_cv_type_int" >&6
18562 echo "$as_me:$LINENO: checking alignment of int" >&5
18563 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18564 if test "${pgac_cv_alignof_int+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 if test "$ac_cv_type_int" = yes; then
18568 if test "$cross_compiling" = yes; then
18569 # Depending upon the size, compute the lo and hi bounds.
18570 cat >conftest.$ac_ext <<_ACEOF
18573 cat confdefs.h >>conftest.$ac_ext
18574 cat >>conftest.$ac_ext <<_ACEOF
18575 /* end confdefs.h. */
18576 $ac_includes_default
18577 struct { char filler; int field; } pgac_struct;
18581 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18588 rm -f conftest.$ac_objext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18590 (eval $ac_compile) 2>conftest.er1
18592 grep -v '^ *+' conftest.er1 >conftest.err
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag"
18598 || test ! -s conftest.err'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18612 cat >conftest.$ac_ext <<_ACEOF
18615 cat confdefs.h >>conftest.$ac_ext
18616 cat >>conftest.$ac_ext <<_ACEOF
18617 /* end confdefs.h. */
18618 $ac_includes_default
18619 struct { char filler; int field; } pgac_struct;
18623 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632 (eval $ac_compile) 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_c_werror_flag"
18640 || test ! -s conftest.err'
18641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642 (eval $ac_try) 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest.$ac_objext'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18652 ac_hi=$ac_mid; break
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_lo=`expr $ac_mid + 1`
18658 if test $ac_lo -le $ac_mid; then
18662 ac_mid=`expr 2 '*' $ac_mid + 1`
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18667 echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 $ac_includes_default
18677 struct { char filler; int field; } pgac_struct;
18681 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18688 rm -f conftest.$ac_objext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18690 (eval $ac_compile) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18712 cat >conftest.$ac_ext <<_ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 $ac_includes_default
18719 struct { char filler; int field; } pgac_struct;
18723 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18730 rm -f conftest.$ac_objext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732 (eval $ac_compile) 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag"
18740 || test ! -s conftest.err'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; } &&
18746 { ac_try='test -s conftest.$ac_objext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_lo=$ac_mid; break
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 ac_hi=`expr '(' $ac_mid ')' - 1`
18758 if test $ac_mid -le $ac_hi; then
18762 ac_mid=`expr 2 '*' $ac_mid`
18764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18775 # Binary search between lo and hi bounds.
18776 while test "x$ac_lo" != "x$ac_hi"; do
18777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 $ac_includes_default
18785 struct { char filler; int field; } pgac_struct;
18789 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18796 rm -f conftest.$ac_objext
18797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18800 grep -v '^ *+' conftest.er1 >conftest.err
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag"
18806 || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18823 ac_lo=`expr '(' $ac_mid ')' + 1`
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18828 ?*) pgac_cv_alignof_int=$ac_lo;;
18829 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18830 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18831 { (exit 1); exit 1; }; } ;;
18834 if test "$cross_compiling" = yes; then
18835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18836 See \`config.log' for more details." >&5
18837 echo "$as_me: error: cannot run test program while cross compiling
18838 See \`config.log' for more details." >&2;}
18839 { (exit 1); exit 1; }; }
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 $ac_includes_default
18848 struct { char filler; int field; } pgac_struct;
18849 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18850 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18852 #include <stdlib.h>
18857 FILE *f = fopen ("conftest.val", "w");
18860 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18862 long i = longval ();
18863 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18865 fprintf (f, "%ld\n", i);
18869 unsigned long i = ulongval ();
18870 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18872 fprintf (f, "%lu\n", i);
18874 exit (ferror (f) || fclose (f) != 0);
18880 rm -f conftest$ac_exeext
18881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18882 (eval $ac_link) 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 pgac_cv_alignof_int=`cat conftest.val`
18893 echo "$as_me: program exited with status $ac_status" >&5
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 ( exit $ac_status )
18898 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
18899 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
18900 { (exit 1); exit 1; }; }
18902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18907 pgac_cv_alignof_int=0
18910 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
18911 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
18912 cat >>confdefs.h <<_ACEOF
18913 #define ALIGNOF_INT $pgac_cv_alignof_int
18917 echo "$as_me:$LINENO: checking for long" >&5
18918 echo $ECHO_N "checking for long... $ECHO_C" >&6
18919 if test "${ac_cv_type_long+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942 (eval $ac_compile) 2>conftest.er1
18944 grep -v '^ *+' conftest.er1 >conftest.err
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } &&
18949 { ac_try='test -z "$ac_c_werror_flag"
18950 || test ! -s conftest.err'
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_cv_type_long=yes
18964 echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18971 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18972 echo "${ECHO_T}$ac_cv_type_long" >&6
18974 echo "$as_me:$LINENO: checking alignment of long" >&5
18975 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
18976 if test "${pgac_cv_alignof_long+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 if test "$ac_cv_type_long" = yes; then
18980 if test "$cross_compiling" = yes; then
18981 # Depending upon the size, compute the lo and hi bounds.
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18988 $ac_includes_default
18989 struct { char filler; long field; } pgac_struct;
18993 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19000 rm -f conftest.$ac_objext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19002 (eval $ac_compile) 2>conftest.er1
19004 grep -v '^ *+' conftest.er1 >conftest.err
19006 cat conftest.err >&5
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); } &&
19009 { ac_try='test -z "$ac_c_werror_flag"
19010 || test ! -s conftest.err'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; } &&
19016 { ac_try='test -s conftest.$ac_objext'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 $ac_includes_default
19031 struct { char filler; long field; } pgac_struct;
19035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19042 rm -f conftest.$ac_objext
19043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19044 (eval $ac_compile) 2>conftest.er1
19046 grep -v '^ *+' conftest.er1 >conftest.err
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); } &&
19051 { ac_try='test -z "$ac_c_werror_flag"
19052 || test ! -s conftest.err'
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; } &&
19058 { ac_try='test -s conftest.$ac_objext'
19059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060 (eval $ac_try) 2>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); }; }; then
19064 ac_hi=$ac_mid; break
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_lo=`expr $ac_mid + 1`
19070 if test $ac_lo -le $ac_mid; then
19074 ac_mid=`expr 2 '*' $ac_mid + 1`
19076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19082 cat >conftest.$ac_ext <<_ACEOF
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19088 $ac_includes_default
19089 struct { char filler; long field; } pgac_struct;
19093 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19100 rm -f conftest.$ac_objext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>conftest.er1
19104 grep -v '^ *+' conftest.er1 >conftest.err
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_c_werror_flag"
19110 || test ! -s conftest.err'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19124 cat >conftest.$ac_ext <<_ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 $ac_includes_default
19131 struct { char filler; long field; } pgac_struct;
19135 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19142 rm -f conftest.$ac_objext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19144 (eval $ac_compile) 2>conftest.er1
19146 grep -v '^ *+' conftest.er1 >conftest.err
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest.$ac_objext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_lo=$ac_mid; break
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_hi=`expr '(' $ac_mid ')' - 1`
19170 if test $ac_mid -le $ac_hi; then
19174 ac_mid=`expr 2 '*' $ac_mid`
19176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19187 # Binary search between lo and hi bounds.
19188 while test "x$ac_lo" != "x$ac_hi"; do
19189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19196 $ac_includes_default
19197 struct { char filler; long field; } pgac_struct;
19201 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19208 rm -f conftest.$ac_objext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19212 grep -v '^ *+' conftest.er1 >conftest.err
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag"
19218 || test ! -s conftest.err'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; } &&
19224 { ac_try='test -s conftest.$ac_objext'
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; }; then
19232 echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_lo=`expr '(' $ac_mid ')' + 1`
19237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19240 ?*) pgac_cv_alignof_long=$ac_lo;;
19241 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19242 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19243 { (exit 1); exit 1; }; } ;;
19246 if test "$cross_compiling" = yes; then
19247 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19248 See \`config.log' for more details." >&5
19249 echo "$as_me: error: cannot run test program while cross compiling
19250 See \`config.log' for more details." >&2;}
19251 { (exit 1); exit 1; }; }
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 $ac_includes_default
19260 struct { char filler; long field; } pgac_struct;
19261 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19262 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19264 #include <stdlib.h>
19269 FILE *f = fopen ("conftest.val", "w");
19272 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19274 long i = longval ();
19275 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19277 fprintf (f, "%ld\n", i);
19281 unsigned long i = ulongval ();
19282 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19284 fprintf (f, "%lu\n", i);
19286 exit (ferror (f) || fclose (f) != 0);
19292 rm -f conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294 (eval $ac_link) 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 pgac_cv_alignof_long=`cat conftest.val`
19305 echo "$as_me: program exited with status $ac_status" >&5
19306 echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19309 ( exit $ac_status )
19310 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19311 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19312 { (exit 1); exit 1; }; }
19314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19319 pgac_cv_alignof_long=0
19322 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19323 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19324 cat >>confdefs.h <<_ACEOF
19325 #define ALIGNOF_LONG $pgac_cv_alignof_long
19329 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19330 echo "$as_me:$LINENO: checking for long long int" >&5
19331 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19332 if test "${ac_cv_type_long_long_int+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19341 $ac_includes_default
19345 if ((long long int *) 0)
19347 if (sizeof (long long int))
19353 rm -f conftest.$ac_objext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19355 (eval $ac_compile) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest.$ac_objext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_type_long_long_int=yes
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19380 ac_cv_type_long_long_int=no
19382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19385 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19387 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19388 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19389 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19392 if test "$ac_cv_type_long_long_int" = yes; then
19393 if test "$cross_compiling" = yes; then
19394 # Depending upon the size, compute the lo and hi bounds.
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 $ac_includes_default
19402 struct { char filler; long long int field; } pgac_struct;
19406 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19413 rm -f conftest.$ac_objext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19415 (eval $ac_compile) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest.$ac_objext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19443 $ac_includes_default
19444 struct { char filler; long long int field; } pgac_struct;
19448 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_c_werror_flag"
19465 || test ! -s conftest.err'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); }; } &&
19471 { ac_try='test -s conftest.$ac_objext'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; }; then
19477 ac_hi=$ac_mid; break
19479 echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_lo=`expr $ac_mid + 1`
19483 if test $ac_lo -le $ac_mid; then
19487 ac_mid=`expr 2 '*' $ac_mid + 1`
19489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19492 echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19495 cat >conftest.$ac_ext <<_ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501 $ac_includes_default
19502 struct { char filler; long long int field; } pgac_struct;
19506 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19513 rm -f conftest.$ac_objext
19514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19515 (eval $ac_compile) 2>conftest.er1
19517 grep -v '^ *+' conftest.er1 >conftest.err
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -z "$ac_c_werror_flag"
19523 || test ! -s conftest.err'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543 $ac_includes_default
19544 struct { char filler; long long int field; } pgac_struct;
19548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19555 rm -f conftest.$ac_objext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19557 (eval $ac_compile) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag"
19565 || test ! -s conftest.err'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; } &&
19571 { ac_try='test -s conftest.$ac_objext'
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; }; then
19577 ac_lo=$ac_mid; break
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_hi=`expr '(' $ac_mid ')' - 1`
19583 if test $ac_mid -le $ac_hi; then
19587 ac_mid=`expr 2 '*' $ac_mid`
19589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19600 # Binary search between lo and hi bounds.
19601 while test "x$ac_lo" != "x$ac_hi"; do
19602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 $ac_includes_default
19610 struct { char filler; long long int field; } pgac_struct;
19614 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19621 rm -f conftest.$ac_objext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623 (eval $ac_compile) 2>conftest.er1
19625 grep -v '^ *+' conftest.er1 >conftest.err
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag"
19631 || test ! -s conftest.err'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest.$ac_objext'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_lo=`expr '(' $ac_mid ')' + 1`
19650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19653 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
19654 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19655 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19656 { (exit 1); exit 1; }; } ;;
19659 if test "$cross_compiling" = yes; then
19660 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19661 See \`config.log' for more details." >&5
19662 echo "$as_me: error: cannot run test program while cross compiling
19663 See \`config.log' for more details." >&2;}
19664 { (exit 1); exit 1; }; }
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 $ac_includes_default
19673 struct { char filler; long long int field; } pgac_struct;
19674 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19675 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19677 #include <stdlib.h>
19682 FILE *f = fopen ("conftest.val", "w");
19685 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19687 long i = longval ();
19688 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19690 fprintf (f, "%ld\n", i);
19694 unsigned long i = ulongval ();
19695 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19697 fprintf (f, "%lu\n", i);
19699 exit (ferror (f) || fclose (f) != 0);
19705 rm -f conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19712 (eval $ac_try) 2>&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }; }; then
19716 pgac_cv_alignof_long_long_int=`cat conftest.val`
19718 echo "$as_me: program exited with status $ac_status" >&5
19719 echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ( exit $ac_status )
19723 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
19724 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
19725 { (exit 1); exit 1; }; }
19727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19732 pgac_cv_alignof_long_long_int=0
19735 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
19736 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
19737 cat >>confdefs.h <<_ACEOF
19738 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
19743 echo "$as_me:$LINENO: checking for double" >&5
19744 echo $ECHO_N "checking for double... $ECHO_C" >&6
19745 if test "${ac_cv_type_double+set}" = set; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19760 if (sizeof (double))
19766 rm -f conftest.$ac_objext
19767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19768 (eval $ac_compile) 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
19775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_type_double=yes
19790 echo "$as_me: failed program was:" >&5
19791 sed 's/^/| /' conftest.$ac_ext >&5
19793 ac_cv_type_double=no
19795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19797 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19798 echo "${ECHO_T}$ac_cv_type_double" >&6
19800 echo "$as_me:$LINENO: checking alignment of double" >&5
19801 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
19802 if test "${pgac_cv_alignof_double+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19805 if test "$ac_cv_type_double" = yes; then
19806 if test "$cross_compiling" = yes; then
19807 # Depending upon the size, compute the lo and hi bounds.
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 $ac_includes_default
19815 struct { char filler; double field; } pgac_struct;
19819 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19826 rm -f conftest.$ac_objext
19827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19828 (eval $ac_compile) 2>conftest.er1
19830 grep -v '^ *+' conftest.er1 >conftest.err
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_c_werror_flag"
19836 || test ! -s conftest.err'
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 $ac_includes_default
19857 struct { char filler; double field; } pgac_struct;
19861 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19868 rm -f conftest.$ac_objext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19870 (eval $ac_compile) 2>conftest.er1
19872 grep -v '^ *+' conftest.er1 >conftest.err
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } &&
19877 { ac_try='test -z "$ac_c_werror_flag"
19878 || test ! -s conftest.err'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; } &&
19884 { ac_try='test -s conftest.$ac_objext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_hi=$ac_mid; break
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_lo=`expr $ac_mid + 1`
19896 if test $ac_lo -le $ac_mid; then
19900 ac_mid=`expr 2 '*' $ac_mid + 1`
19902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19908 cat >conftest.$ac_ext <<_ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h. */
19914 $ac_includes_default
19915 struct { char filler; double field; } pgac_struct;
19919 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19926 rm -f conftest.$ac_objext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19928 (eval $ac_compile) 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest.$ac_objext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 $ac_includes_default
19957 struct { char filler; double field; } pgac_struct;
19961 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19968 rm -f conftest.$ac_objext
19969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19970 (eval $ac_compile) 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag"
19978 || test ! -s conftest.err'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 ac_lo=$ac_mid; break
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 ac_hi=`expr '(' $ac_mid ')' - 1`
19996 if test $ac_mid -le $ac_hi; then
20000 ac_mid=`expr 2 '*' $ac_mid`
20002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20005 echo "$as_me: failed program was:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20013 # Binary search between lo and hi bounds.
20014 while test "x$ac_lo" != "x$ac_hi"; do
20015 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 struct { char filler; double field; } pgac_struct;
20027 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20034 rm -f conftest.$ac_objext
20035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20036 (eval $ac_compile) 2>conftest.er1
20038 grep -v '^ *+' conftest.er1 >conftest.err
20040 cat conftest.err >&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); } &&
20043 { ac_try='test -z "$ac_c_werror_flag"
20044 || test ! -s conftest.err'
20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20046 (eval $ac_try) 2>&5
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
20051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20052 (eval $ac_try) 2>&5
20054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055 (exit $ac_status); }; }; then
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20061 ac_lo=`expr '(' $ac_mid ')' + 1`
20063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20066 ?*) pgac_cv_alignof_double=$ac_lo;;
20067 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20068 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20069 { (exit 1); exit 1; }; } ;;
20072 if test "$cross_compiling" = yes; then
20073 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20074 See \`config.log' for more details." >&5
20075 echo "$as_me: error: cannot run test program while cross compiling
20076 See \`config.log' for more details." >&2;}
20077 { (exit 1); exit 1; }; }
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 $ac_includes_default
20086 struct { char filler; double field; } pgac_struct;
20087 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20088 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20090 #include <stdlib.h>
20095 FILE *f = fopen ("conftest.val", "w");
20098 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20100 long i = longval ();
20101 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20103 fprintf (f, "%ld\n", i);
20107 unsigned long i = ulongval ();
20108 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20110 fprintf (f, "%lu\n", i);
20112 exit (ferror (f) || fclose (f) != 0);
20118 rm -f conftest$ac_exeext
20119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20120 (eval $ac_link) 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20125 (eval $ac_try) 2>&5
20127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20128 (exit $ac_status); }; }; then
20129 pgac_cv_alignof_double=`cat conftest.val`
20131 echo "$as_me: program exited with status $ac_status" >&5
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20135 ( exit $ac_status )
20136 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20137 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20138 { (exit 1); exit 1; }; }
20140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20145 pgac_cv_alignof_double=0
20148 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20149 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20150 cat >>confdefs.h <<_ACEOF
20151 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20156 # Compute maximum alignment of any basic type.
20157 # We assume long's alignment is at least as strong as char, short, or int;
20158 # but we must check long long (if it exists) and double.
20160 MAX_ALIGNOF=$pgac_cv_alignof_long
20161 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20162 MAX_ALIGNOF=$pgac_cv_alignof_double
20164 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20165 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20168 cat >>confdefs.h <<_ACEOF
20169 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20174 # Some platforms predefine the types int8, int16, etc. Only check
20175 # a (hopefully) representative subset.
20176 echo "$as_me:$LINENO: checking for int8" >&5
20177 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20178 if test "${ac_cv_type_int8+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20188 #ifdef HAVE_SUPPORTDEFS_H
20189 #include <SupportDefs.h>
20203 rm -f conftest.$ac_objext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20205 (eval $ac_compile) 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } &&
20212 { ac_try='test -z "$ac_c_werror_flag"
20213 || test ! -s conftest.err'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; } &&
20219 { ac_try='test -s conftest.$ac_objext'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_cv_type_int8=yes
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20234 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20235 echo "${ECHO_T}$ac_cv_type_int8" >&6
20236 if test $ac_cv_type_int8 = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_INT8 1
20244 echo "$as_me:$LINENO: checking for uint8" >&5
20245 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20246 if test "${ac_cv_type_uint8+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20256 #ifdef HAVE_SUPPORTDEFS_H
20257 #include <SupportDefs.h>
20265 if (sizeof (uint8))
20271 rm -f conftest.$ac_objext
20272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20273 (eval $ac_compile) 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } &&
20280 { ac_try='test -z "$ac_c_werror_flag"
20281 || test ! -s conftest.err'
20282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283 (eval $ac_try) 2>&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); }; } &&
20287 { ac_try='test -s conftest.$ac_objext'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; }; then
20293 ac_cv_type_uint8=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20298 ac_cv_type_uint8=no
20300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20302 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20303 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20304 if test $ac_cv_type_uint8 = yes; then
20306 cat >>confdefs.h <<_ACEOF
20307 #define HAVE_UINT8 1
20312 echo "$as_me:$LINENO: checking for int64" >&5
20313 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20314 if test "${ac_cv_type_int64+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 cat >conftest.$ac_ext <<_ACEOF
20320 cat confdefs.h >>conftest.$ac_ext
20321 cat >>conftest.$ac_ext <<_ACEOF
20322 /* end confdefs.h. */
20324 #ifdef HAVE_SUPPORTDEFS_H
20325 #include <SupportDefs.h>
20333 if (sizeof (int64))
20339 rm -f conftest.$ac_objext
20340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341 (eval $ac_compile) 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } &&
20348 { ac_try='test -z "$ac_c_werror_flag"
20349 || test ! -s conftest.err'
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; } &&
20355 { ac_try='test -s conftest.$ac_objext'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; }; then
20361 ac_cv_type_int64=yes
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_cv_type_int64=no
20368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20370 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20371 echo "${ECHO_T}$ac_cv_type_int64" >&6
20372 if test $ac_cv_type_int64 = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define HAVE_INT64 1
20380 echo "$as_me:$LINENO: checking for uint64" >&5
20381 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20382 if test "${ac_cv_type_uint64+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 #ifdef HAVE_SUPPORTDEFS_H
20393 #include <SupportDefs.h>
20401 if (sizeof (uint64))
20407 rm -f conftest.$ac_objext
20408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20409 (eval $ac_compile) 2>conftest.er1
20411 grep -v '^ *+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); } &&
20416 { ac_try='test -z "$ac_c_werror_flag"
20417 || test ! -s conftest.err'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest.$ac_objext'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
20429 ac_cv_type_uint64=yes
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ac_cv_type_uint64=no
20436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20439 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20440 if test $ac_cv_type_uint64 = yes; then
20442 cat >>confdefs.h <<_ACEOF
20443 #define HAVE_UINT64 1
20450 # We also check for sig_atomic_t, which *should* be defined per ANSI
20451 # C, but is missing on some old platforms.
20452 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20453 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20454 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20455 echo $ECHO_N "(cached) $ECHO_C" >&6
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463 #include <signal.h>
20468 if ((sig_atomic_t *) 0)
20470 if (sizeof (sig_atomic_t))
20476 rm -f conftest.$ac_objext
20477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20478 (eval $ac_compile) 2>conftest.er1
20480 grep -v '^ *+' conftest.er1 >conftest.err
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } &&
20485 { ac_try='test -z "$ac_c_werror_flag"
20486 || test ! -s conftest.err'
20487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488 (eval $ac_try) 2>&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); }; } &&
20492 { ac_try='test -s conftest.$ac_objext'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 ac_cv_type_sig_atomic_t=yes
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20503 ac_cv_type_sig_atomic_t=no
20505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20508 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20509 if test $ac_cv_type_sig_atomic_t = yes; then
20511 cat >>confdefs.h <<_ACEOF
20512 #define HAVE_SIG_ATOMIC_T 1
20520 if test x"$template" != x"win32"
20522 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20523 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20524 if test "${pgac_cv_func_posix_signals+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20527 cat >conftest.$ac_ext <<_ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 #include <signal.h>
20538 struct sigaction act, oact;
20539 sigemptyset(&act.sa_mask);
20540 act.sa_flags = SA_RESTART;
20541 sigaction(0, &act, &oact);
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20548 (eval $ac_link) 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest$ac_exeext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 pgac_cv_func_posix_signals=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 pgac_cv_func_posix_signals=no
20575 rm -f conftest.err conftest.$ac_objext \
20576 conftest$ac_exeext conftest.$ac_ext
20578 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20579 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20580 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20582 cat >>confdefs.h <<\_ACEOF
20583 #define HAVE_POSIX_SIGNALS
20587 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20589 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20590 { { echo "$as_me:$LINENO: error:
20591 *** Thread-safety requires POSIX signals, which are not supported by your
20592 *** operating system.
20594 echo "$as_me: error:
20595 *** Thread-safety requires POSIX signals, which are not supported by your
20596 *** operating system.
20598 { (exit 1); exit 1; }; }
20602 if test $ac_cv_func_fseeko = yes; then
20603 # Check whether --enable-largefile or --disable-largefile was given.
20604 if test "${enable_largefile+set}" = set; then
20605 enableval="$enable_largefile"
20608 if test "$enable_largefile" != no; then
20610 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20611 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
20612 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20613 echo $ECHO_N "(cached) $ECHO_C" >&6
20615 ac_cv_sys_largefile_CC=no
20616 if test "$GCC" != yes; then
20619 # IRIX 6.2 and later do not support large files by default,
20620 # so use the C compiler's -n32 option if that helps.
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <sys/types.h>
20628 /* Check that off_t can represent 2**63 - 1 correctly.
20629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20630 since some C++ compilers masquerading as C compilers
20631 incorrectly reject 9223372036854775807. */
20632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20634 && LARGE_OFF_T % 2147483647 == 1)
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
20653 { ac_try='test -z "$ac_c_werror_flag"
20654 || test ! -s conftest.err'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; } &&
20660 { ac_try='test -s conftest.$ac_objext'
20661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662 (eval $ac_try) 2>&5
20664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665 (exit $ac_status); }; }; then
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20672 rm -f conftest.err conftest.$ac_objext
20674 rm -f conftest.$ac_objext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag"
20684 || test ! -s conftest.err'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_cv_sys_largefile_CC=' -n32'; break
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20702 rm -f conftest.err conftest.$ac_objext
20706 rm -f conftest.$ac_ext
20709 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20710 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
20711 if test "$ac_cv_sys_largefile_CC" != no; then
20712 CC=$CC$ac_cv_sys_largefile_CC
20715 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20716 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20721 ac_cv_sys_file_offset_bits=no
20722 cat >conftest.$ac_ext <<_ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20728 #include <sys/types.h>
20729 /* Check that off_t can represent 2**63 - 1 correctly.
20730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20731 since some C++ compilers masquerading as C compilers
20732 incorrectly reject 9223372036854775807. */
20733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20735 && LARGE_OFF_T % 2147483647 == 1)
20745 rm -f conftest.$ac_objext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20747 (eval $ac_compile) 2>conftest.er1
20749 grep -v '^ *+' conftest.er1 >conftest.err
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
20754 { ac_try='test -z "$ac_c_werror_flag"
20755 || test ! -s conftest.err'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #define _FILE_OFFSET_BITS 64
20781 #include <sys/types.h>
20782 /* Check that off_t can represent 2**63 - 1 correctly.
20783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20784 since some C++ compilers masquerading as C compilers
20785 incorrectly reject 9223372036854775807. */
20786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20788 && LARGE_OFF_T % 2147483647 == 1)
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_sys_file_offset_bits=64; break
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20831 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20832 if test "$ac_cv_sys_file_offset_bits" != no; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20840 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20841 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20842 if test "${ac_cv_sys_large_files+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 ac_cv_sys_large_files=no
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 #include <sys/types.h>
20854 /* Check that off_t can represent 2**63 - 1 correctly.
20855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20856 since some C++ compilers masquerading as C compilers
20857 incorrectly reject 9223372036854775807. */
20858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20860 && LARGE_OFF_T % 2147483647 == 1)
20870 rm -f conftest.$ac_objext
20871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20872 (eval $ac_compile) 2>conftest.er1
20874 grep -v '^ *+' conftest.er1 >conftest.err
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
20879 { ac_try='test -z "$ac_c_werror_flag"
20880 || test ! -s conftest.err'
20881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20882 (eval $ac_try) 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; } &&
20886 { ac_try='test -s conftest.$ac_objext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 #define _LARGE_FILES 1
20906 #include <sys/types.h>
20907 /* Check that off_t can represent 2**63 - 1 correctly.
20908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20909 since some C++ compilers masquerading as C compilers
20910 incorrectly reject 9223372036854775807. */
20911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20913 && LARGE_OFF_T % 2147483647 == 1)
20923 rm -f conftest.$ac_objext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20925 (eval $ac_compile) 2>conftest.er1
20927 grep -v '^ *+' conftest.er1 >conftest.err
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
20932 { ac_try='test -z "$ac_c_werror_flag"
20933 || test ! -s conftest.err'
20934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; } &&
20939 { ac_try='test -s conftest.$ac_objext'
20940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941 (eval $ac_try) 2>&5
20943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); }; }; then
20945 ac_cv_sys_large_files=1; break
20947 echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20955 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20956 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20957 if test "$ac_cv_sys_large_files" != no; then
20959 cat >>confdefs.h <<_ACEOF
20960 #define _LARGE_FILES $ac_cv_sys_large_files
20969 # SunOS doesn't handle negative byte comparisons properly with +/- return
20970 echo "$as_me:$LINENO: checking for working memcmp" >&5
20971 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20972 if test "${ac_cv_func_memcmp_working+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 if test "$cross_compiling" = yes; then
20976 ac_cv_func_memcmp_working=no
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20984 $ac_includes_default
20989 /* Some versions of memcmp are not 8-bit clean. */
20990 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20991 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20994 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20995 or more and with at least one buffer not starting on a 4-byte boundary.
20996 William Lewis provided this test program. */
21001 for (i = 0; i < 4; i++)
21005 strcpy (a, "--------01111111");
21006 strcpy (b, "--------10000000");
21007 if (memcmp (a, b, 16) >= 0)
21017 rm -f conftest$ac_exeext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21019 (eval $ac_link) 2>&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 ac_cv_func_memcmp_working=yes
21030 echo "$as_me: program exited with status $ac_status" >&5
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ( exit $ac_status )
21035 ac_cv_func_memcmp_working=no
21037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21041 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21042 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21043 "memcmp.$ac_objext" | \
21044 *" memcmp.$ac_objext" | \
21045 "memcmp.$ac_objext "* | \
21046 *" memcmp.$ac_objext "* ) ;;
21047 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21053 # Select semaphore implementation type.
21054 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define USE_NAMED_POSIX_SEMAPHORES 1
21060 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21062 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21064 cat >>confdefs.h <<\_ACEOF
21065 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21068 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21071 cat >>confdefs.h <<\_ACEOF
21072 #define USE_SYSV_SEMAPHORES 1
21075 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21080 # Select shared-memory implementation type.
21082 cat >>confdefs.h <<\_ACEOF
21083 #define USE_SYSV_SHARED_MEMORY 1
21086 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21089 # If not set in template file, set bytes to use libc memset()
21090 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
21091 MEMSET_LOOP_LIMIT=1024
21094 cat >>confdefs.h <<_ACEOF
21095 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
21100 if test "$enable_nls" = yes ; then
21102 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21103 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21104 if test "${ac_cv_search_gettext+set}" = set; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 ac_func_search_save_LIBS=$LIBS
21108 ac_cv_search_gettext=no
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21116 /* Override any gcc2 internal prototype to avoid an error. */
21120 /* We use char because int might match the return type of a gcc2
21121 builtin and then its argument prototype would still apply. */
21131 rm -f conftest.$ac_objext conftest$ac_exeext
21132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21133 (eval $ac_link) 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } &&
21140 { ac_try='test -z "$ac_c_werror_flag"
21141 || test ! -s conftest.err'
21142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21143 (eval $ac_try) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_search_gettext="none required"
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21159 rm -f conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21161 if test "$ac_cv_search_gettext" = no; then
21162 for ac_lib in intl; do
21163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21164 cat >conftest.$ac_ext <<_ACEOF
21167 cat confdefs.h >>conftest.$ac_ext
21168 cat >>conftest.$ac_ext <<_ACEOF
21169 /* end confdefs.h. */
21171 /* Override any gcc2 internal prototype to avoid an error. */
21175 /* We use char because int might match the return type of a gcc2
21176 builtin and then its argument prototype would still apply. */
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21188 (eval $ac_link) 2>conftest.er1
21190 grep -v '^ *+' conftest.er1 >conftest.err
21192 cat conftest.err >&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } &&
21195 { ac_try='test -z "$ac_c_werror_flag"
21196 || test ! -s conftest.err'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; } &&
21202 { ac_try='test -s conftest$ac_exeext'
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; }; then
21208 ac_cv_search_gettext="-l$ac_lib"
21211 echo "$as_me: failed program was:" >&5
21212 sed 's/^/| /' conftest.$ac_ext >&5
21215 rm -f conftest.err conftest.$ac_objext \
21216 conftest$ac_exeext conftest.$ac_ext
21219 LIBS=$ac_func_search_save_LIBS
21221 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21222 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21223 if test "$ac_cv_search_gettext" != no; then
21224 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21227 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21228 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21229 { (exit 1); exit 1; }; }
21232 if test "${ac_cv_header_libintl_h+set}" = set; then
21233 echo "$as_me:$LINENO: checking for libintl.h" >&5
21234 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21235 if test "${ac_cv_header_libintl_h+set}" = set; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21238 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21239 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21241 # Is the header compilable?
21242 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21243 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21244 cat >conftest.$ac_ext <<_ACEOF
21247 cat confdefs.h >>conftest.$ac_ext
21248 cat >>conftest.$ac_ext <<_ACEOF
21249 /* end confdefs.h. */
21250 $ac_includes_default
21251 #include <libintl.h>
21253 rm -f conftest.$ac_objext
21254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21255 (eval $ac_compile) 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } &&
21262 { ac_try='test -z "$ac_c_werror_flag"
21263 || test ! -s conftest.err'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; } &&
21269 { ac_try='test -s conftest.$ac_objext'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 ac_header_compiler=yes
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_header_compiler=no
21282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21284 echo "${ECHO_T}$ac_header_compiler" >&6
21286 # Is the header present?
21287 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21288 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21289 cat >conftest.$ac_ext <<_ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 #include <libintl.h>
21297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } >/dev/null; then
21305 if test -s conftest.err; then
21306 ac_cpp_err=$ac_c_preproc_warn_flag
21307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21314 if test -z "$ac_cpp_err"; then
21315 ac_header_preproc=yes
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21322 rm -f conftest.err conftest.$ac_ext
21323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21324 echo "${ECHO_T}$ac_header_preproc" >&6
21326 # So? What about this header?
21327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21329 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21330 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21332 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21333 ac_header_preproc=yes
21336 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21337 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21339 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21340 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21341 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21343 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21345 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21347 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21350 ## ---------------------------------------- ##
21351 ## Report this to pgsql-bugs@postgresql.org ##
21352 ## ---------------------------------------- ##
21355 sed "s/^/$as_me: WARNING: /" >&2
21358 echo "$as_me:$LINENO: checking for libintl.h" >&5
21359 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21360 if test "${ac_cv_header_libintl_h+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 ac_cv_header_libintl_h=$ac_header_preproc
21365 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21366 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21369 if test $ac_cv_header_libintl_h = yes; then
21372 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21373 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21374 { (exit 1); exit 1; }; }
21378 for ac_prog in msgfmt
21380 # Extract the first word of "$ac_prog", so it can be a program name with args.
21381 set dummy $ac_prog; ac_word=$2
21382 echo "$as_me:$LINENO: checking for $ac_word" >&5
21383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21384 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21387 if test -n "$MSGFMT"; then
21388 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21391 for as_dir in $PATH
21394 test -z "$as_dir" && as_dir=.
21395 for ac_exec_ext in '' $ac_executable_extensions; do
21396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21397 ac_cv_prog_MSGFMT="$ac_prog"
21398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21406 MSGFMT=$ac_cv_prog_MSGFMT
21407 if test -n "$MSGFMT"; then
21408 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21409 echo "${ECHO_T}$MSGFMT" >&6
21411 echo "$as_me:$LINENO: result: no" >&5
21412 echo "${ECHO_T}no" >&6
21415 test -n "$MSGFMT" && break
21418 if test -z "$MSGFMT"; then
21419 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21420 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21421 { (exit 1); exit 1; }; }
21423 for ac_prog in msgmerge
21425 # Extract the first word of "$ac_prog", so it can be a program name with args.
21426 set dummy $ac_prog; ac_word=$2
21427 echo "$as_me:$LINENO: checking for $ac_word" >&5
21428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21429 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21432 if test -n "$MSGMERGE"; then
21433 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21436 for as_dir in $PATH
21439 test -z "$as_dir" && as_dir=.
21440 for ac_exec_ext in '' $ac_executable_extensions; do
21441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21442 ac_cv_prog_MSGMERGE="$ac_prog"
21443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21451 MSGMERGE=$ac_cv_prog_MSGMERGE
21452 if test -n "$MSGMERGE"; then
21453 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21454 echo "${ECHO_T}$MSGMERGE" >&6
21456 echo "$as_me:$LINENO: result: no" >&5
21457 echo "${ECHO_T}no" >&6
21460 test -n "$MSGMERGE" && break
21463 for ac_prog in xgettext
21465 # Extract the first word of "$ac_prog", so it can be a program name with args.
21466 set dummy $ac_prog; ac_word=$2
21467 echo "$as_me:$LINENO: checking for $ac_word" >&5
21468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21469 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 if test -n "$XGETTEXT"; then
21473 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21476 for as_dir in $PATH
21479 test -z "$as_dir" && as_dir=.
21480 for ac_exec_ext in '' $ac_executable_extensions; do
21481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21482 ac_cv_prog_XGETTEXT="$ac_prog"
21483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21491 XGETTEXT=$ac_cv_prog_XGETTEXT
21492 if test -n "$XGETTEXT"; then
21493 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21494 echo "${ECHO_T}$XGETTEXT" >&6
21496 echo "$as_me:$LINENO: result: no" >&5
21497 echo "${ECHO_T}no" >&6
21500 test -n "$XGETTEXT" && break
21504 # Note: share/locale is always the default, independent of $datadir
21505 localedir='${prefix}/share/locale'
21506 if test x"$prefix" = x"NONE"; then
21507 exp_localedir="$ac_default_prefix/share/locale"
21509 exp_localedir="$prefix/share/locale"
21514 cat >>confdefs.h <<_ACEOF
21515 #define LOCALEDIR "$exp_localedir"
21521 # Check for Tcl configuration script tclConfig.sh
21522 if test "$with_tcl" = yes; then
21523 for ac_prog in tclsh tcl
21525 # Extract the first word of "$ac_prog", so it can be a program name with args.
21526 set dummy $ac_prog; ac_word=$2
21527 echo "$as_me:$LINENO: checking for $ac_word" >&5
21528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21529 if test "${ac_cv_path_TCLSH+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21538 for as_dir in $PATH
21541 test -z "$as_dir" && as_dir=.
21542 for ac_exec_ext in '' $ac_executable_extensions; do
21543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21544 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21554 TCLSH=$ac_cv_path_TCLSH
21556 if test -n "$TCLSH"; then
21557 echo "$as_me:$LINENO: result: $TCLSH" >&5
21558 echo "${ECHO_T}$TCLSH" >&6
21560 echo "$as_me:$LINENO: result: no" >&5
21561 echo "${ECHO_T}no" >&6
21564 test -n "$TCLSH" && break
21567 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21568 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21569 # Let user override test
21570 if test -z "$TCL_CONFIG_SH"; then
21571 pgac_test_dirs="$with_tclconfig"
21573 set X $pgac_test_dirs; shift
21574 if test $# -eq 0; then
21575 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21576 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21577 { (exit 1); exit 1; }; }
21578 set X `echo 'puts $auto_path' | $TCLSH`; shift
21582 if test -r "$pgac_dir/tclConfig.sh"; then
21583 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21589 if test -z "$TCL_CONFIG_SH"; then
21590 echo "$as_me:$LINENO: result: no" >&5
21591 echo "${ECHO_T}no" >&6
21592 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21593 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21594 { (exit 1); exit 1; }; }
21596 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21597 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21603 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21604 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21605 eval TCL_LIBS=\"$TCL_LIBS\"
21606 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21607 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21609 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21610 ac_save_CPPFLAGS=$CPPFLAGS
21611 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21612 if test "${ac_cv_header_tcl_h+set}" = set; then
21613 echo "$as_me:$LINENO: checking for tcl.h" >&5
21614 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21615 if test "${ac_cv_header_tcl_h+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21619 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21621 # Is the header compilable?
21622 echo "$as_me:$LINENO: checking tcl.h usability" >&5
21623 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
21624 cat >conftest.$ac_ext <<_ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h. */
21630 $ac_includes_default
21633 rm -f conftest.$ac_objext
21634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21635 (eval $ac_compile) 2>conftest.er1
21637 grep -v '^ *+' conftest.er1 >conftest.err
21639 cat conftest.err >&5
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
21642 { ac_try='test -z "$ac_c_werror_flag"
21643 || test ! -s conftest.err'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; } &&
21649 { ac_try='test -s conftest.$ac_objext'
21650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651 (eval $ac_try) 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); }; }; then
21655 ac_header_compiler=yes
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_header_compiler=no
21662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21664 echo "${ECHO_T}$ac_header_compiler" >&6
21666 # Is the header present?
21667 echo "$as_me:$LINENO: checking tcl.h presence" >&5
21668 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
21669 cat >conftest.$ac_ext <<_ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h. */
21677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } >/dev/null; then
21685 if test -s conftest.err; then
21686 ac_cpp_err=$ac_c_preproc_warn_flag
21687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21694 if test -z "$ac_cpp_err"; then
21695 ac_header_preproc=yes
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21700 ac_header_preproc=no
21702 rm -f conftest.err conftest.$ac_ext
21703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21704 echo "${ECHO_T}$ac_header_preproc" >&6
21706 # So? What about this header?
21707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21709 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21710 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
21712 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
21713 ac_header_preproc=yes
21716 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
21717 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
21719 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
21721 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
21723 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
21725 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
21727 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
21730 ## ---------------------------------------- ##
21731 ## Report this to pgsql-bugs@postgresql.org ##
21732 ## ---------------------------------------- ##
21735 sed "s/^/$as_me: WARNING: /" >&2
21738 echo "$as_me:$LINENO: checking for tcl.h" >&5
21739 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21740 if test "${ac_cv_header_tcl_h+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_cv_header_tcl_h=$ac_header_preproc
21745 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21746 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
21749 if test $ac_cv_header_tcl_h = yes; then
21752 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
21753 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
21754 { (exit 1); exit 1; }; }
21758 CPPFLAGS=$ac_save_CPPFLAGS
21762 # Check for DocBook and tools
21764 for ac_prog in onsgmls nsgmls
21766 # Extract the first word of "$ac_prog", so it can be a program name with args.
21767 set dummy $ac_prog; ac_word=$2
21768 echo "$as_me:$LINENO: checking for $ac_word" >&5
21769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21770 if test "${ac_cv_prog_NSGMLS+set}" = set; then
21771 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 if test -n "$NSGMLS"; then
21774 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
21776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21777 for as_dir in $PATH
21780 test -z "$as_dir" && as_dir=.
21781 for ac_exec_ext in '' $ac_executable_extensions; do
21782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21783 ac_cv_prog_NSGMLS="$ac_prog"
21784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21792 NSGMLS=$ac_cv_prog_NSGMLS
21793 if test -n "$NSGMLS"; then
21794 echo "$as_me:$LINENO: result: $NSGMLS" >&5
21795 echo "${ECHO_T}$NSGMLS" >&6
21797 echo "$as_me:$LINENO: result: no" >&5
21798 echo "${ECHO_T}no" >&6
21801 test -n "$NSGMLS" && break
21804 for ac_prog in openjade jade
21806 # Extract the first word of "$ac_prog", so it can be a program name with args.
21807 set dummy $ac_prog; ac_word=$2
21808 echo "$as_me:$LINENO: checking for $ac_word" >&5
21809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21810 if test "${ac_cv_prog_JADE+set}" = set; then
21811 echo $ECHO_N "(cached) $ECHO_C" >&6
21813 if test -n "$JADE"; then
21814 ac_cv_prog_JADE="$JADE" # Let the user override the test.
21816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21817 for as_dir in $PATH
21820 test -z "$as_dir" && as_dir=.
21821 for ac_exec_ext in '' $ac_executable_extensions; do
21822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21823 ac_cv_prog_JADE="$ac_prog"
21824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21832 JADE=$ac_cv_prog_JADE
21833 if test -n "$JADE"; then
21834 echo "$as_me:$LINENO: result: $JADE" >&5
21835 echo "${ECHO_T}$JADE" >&6
21837 echo "$as_me:$LINENO: result: no" >&5
21838 echo "${ECHO_T}no" >&6
21841 test -n "$JADE" && break
21845 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
21846 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
21847 if test "${pgac_cv_check_docbook+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21850 cat >conftest.sgml <<EOF
21851 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
21853 <title>test</title>
21855 <title>random</title>
21857 <title>testsect</title>
21864 pgac_cv_check_docbook=no
21866 if test -n "$NSGMLS"; then
21867 $NSGMLS -s conftest.sgml 1>&5 2>&1
21868 if test $? -eq 0; then
21869 pgac_cv_check_docbook=yes
21872 rm -f conftest.sgml
21874 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
21875 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
21877 have_docbook=$pgac_cv_check_docbook
21880 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
21881 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
21882 if test "${pgac_cv_path_stylesheets+set}" = set; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 if test -n "$DOCBOOKSTYLE"; then
21886 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
21888 for pgac_prefix in /usr /usr/local /opt; do
21889 for pgac_infix in share lib; do
21890 for pgac_postfix in \
21891 sgml/stylesheets/nwalsh-modular \
21892 sgml/stylesheets/docbook \
21893 sgml/docbook-dsssl \
21894 sgml/docbook/dsssl/modular \
21895 sgml/docbook/stylesheet/dsssl/modular \
21896 sgml/docbook/dsssl-stylesheets
21898 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
21899 if test -r "$pgac_candidate/html/docbook.dsl" \
21900 && test -r "$pgac_candidate/print/docbook.dsl"
21902 pgac_cv_path_stylesheets=$pgac_candidate
21911 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
21913 if test -n "$DOCBOOKSTYLE"; then
21914 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
21915 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
21917 echo "$as_me:$LINENO: result: no" >&5
21918 echo "${ECHO_T}no" >&6
21920 if test -n "$DOCBOOKSTYLE"; then
21921 for ac_prog in collateindex.pl
21923 # Extract the first word of "$ac_prog", so it can be a program name with args.
21924 set dummy $ac_prog; ac_word=$2
21925 echo "$as_me:$LINENO: checking for $ac_word" >&5
21926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21927 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 case $COLLATEINDEX in
21932 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21936 for as_dir in $DOCBOOKSTYLE/bin $PATH
21939 test -z "$as_dir" && as_dir=.
21940 for ac_exec_ext in '' $ac_executable_extensions; do
21941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21942 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21952 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21954 if test -n "$COLLATEINDEX"; then
21955 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
21956 echo "${ECHO_T}$COLLATEINDEX" >&6
21958 echo "$as_me:$LINENO: result: no" >&5
21959 echo "${ECHO_T}no" >&6
21962 test -n "$COLLATEINDEX" && break
21966 for ac_prog in collateindex.pl
21968 # Extract the first word of "$ac_prog", so it can be a program name with args.
21969 set dummy $ac_prog; ac_word=$2
21970 echo "$as_me:$LINENO: checking for $ac_word" >&5
21971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21972 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21975 case $COLLATEINDEX in
21977 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
21980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21981 for as_dir in $PATH
21984 test -z "$as_dir" && as_dir=.
21985 for ac_exec_ext in '' $ac_executable_extensions; do
21986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21987 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
21988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21997 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
21999 if test -n "$COLLATEINDEX"; then
22000 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22001 echo "${ECHO_T}$COLLATEINDEX" >&6
22003 echo "$as_me:$LINENO: result: no" >&5
22004 echo "${ECHO_T}no" >&6
22007 test -n "$COLLATEINDEX" && break
22011 for ac_prog in sgmlspl
22013 # Extract the first word of "$ac_prog", so it can be a program name with args.
22014 set dummy $ac_prog; ac_word=$2
22015 echo "$as_me:$LINENO: checking for $ac_word" >&5
22016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22017 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 if test -n "$SGMLSPL"; then
22021 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22024 for as_dir in $PATH
22027 test -z "$as_dir" && as_dir=.
22028 for ac_exec_ext in '' $ac_executable_extensions; do
22029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22030 ac_cv_prog_SGMLSPL="$ac_prog"
22031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22039 SGMLSPL=$ac_cv_prog_SGMLSPL
22040 if test -n "$SGMLSPL"; then
22041 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22042 echo "${ECHO_T}$SGMLSPL" >&6
22044 echo "$as_me:$LINENO: result: no" >&5
22045 echo "${ECHO_T}no" >&6
22048 test -n "$SGMLSPL" && break
22054 # We have to run the thread test near the end so we have all our symbols
22055 # defined. Cross compiling throws a warning.
22057 if test "$enable_thread_safety_force" = yes; then
22058 if test x"$template" != x"win32"
22060 { echo "$as_me:$LINENO: WARNING:
22061 *** Skipping thread test program. --enable-thread-safety-force was used.
22062 *** Run the program in src/test/thread on the your machine and add
22063 proper locking function calls to your applications to guarantee thread
22066 echo "$as_me: WARNING:
22067 *** Skipping thread test program. --enable-thread-safety-force was used.
22068 *** Run the program in src/test/thread on the your machine and add
22069 proper locking function calls to your applications to guarantee thread
22073 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22074 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22076 elif test "$enable_thread_safety" = yes; then
22077 if test x"$template" != x"win32"
22079 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22080 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22084 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22085 LIBS="$LIBS $PTHREAD_LIBS"
22086 if test "$cross_compiling" = yes; then
22087 echo "$as_me:$LINENO: result: maybe" >&5
22088 echo "${ECHO_T}maybe" >&6
22089 { echo "$as_me:$LINENO: WARNING:
22090 *** Skipping thread test program because of cross-compile build.
22091 *** Run the program in src/test/thread on the target machine.
22093 echo "$as_me: WARNING:
22094 *** Skipping thread test program because of cross-compile build.
22095 *** Run the program in src/test/thread on the target machine.
22098 cat >conftest.$ac_ext <<_ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22104 #include "$srcdir/src/test/thread/thread_test.c"
22106 rm -f conftest$ac_exeext
22107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22108 (eval $ac_link) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; }; then
22117 echo "$as_me:$LINENO: result: yes" >&5
22118 echo "${ECHO_T}yes" >&6
22120 echo "$as_me: program exited with status $ac_status" >&5
22121 echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ( exit $ac_status )
22125 echo "$as_me:$LINENO: result: no" >&5
22126 echo "${ECHO_T}no" >&6
22127 { { echo "$as_me:$LINENO: error:
22128 *** Thread test program failed. Your platform is not thread-safe.
22129 *** Check the file 'config.log'for the exact reason.
22131 *** You can use the configure option --enable-thread-safety-force
22132 *** to force threads to be enabled. However, you must then run
22133 *** the program in src/test/thread and add locking function calls
22134 *** to your applications to guarantee thread safety.
22136 echo "$as_me: error:
22137 *** Thread test program failed. Your platform is not thread-safe.
22138 *** Check the file 'config.log'for the exact reason.
22140 *** You can use the configure option --enable-thread-safety-force
22141 *** to force threads to be enabled. However, you must then run
22142 *** the program in src/test/thread and add locking function calls
22143 *** to your applications to guarantee thread safety.
22145 { (exit 1); exit 1; }; }
22147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22153 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22157 # prepare build tree if outside source tree
22158 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22159 # Note 2: /bin/pwd might be better than shell's built-in at getting
22160 # a symlink-free name.
22161 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22165 if test "$no_create" != yes; then
22166 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22167 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22168 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22169 || { { echo "$as_me:$LINENO: error: failed" >&5
22170 echo "$as_me: error: failed" >&2;}
22171 { (exit 1); exit 1; }; }
22172 echo "$as_me:$LINENO: result: done" >&5
22173 echo "${ECHO_T}done" >&6
22179 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22182 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}"
22185 if test "$PORTNAME" = "win32"; then
22186 ac_config_commands="$ac_config_commands check_win32_symlinks"
22190 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22193 cat >confcache <<\_ACEOF
22194 # This file is a shell script that caches the results of configure
22195 # tests run on this system so they can be shared between configure
22196 # scripts and configure runs, see configure's option --config-cache.
22197 # It is not useful on other systems. If it contains results you don't
22198 # want to keep, you may remove or edit it.
22200 # config.status only pays attention to the cache file if you give it
22201 # the --recheck option to rerun configure.
22203 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22204 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22205 # following values.
22209 # The following way of writing the cache mishandles newlines in values,
22210 # but we know of no workaround that is simple, portable, and efficient.
22211 # So, don't put newlines in cache variables' values.
22212 # Ultrix sh set writes to stderr and can't be redirected directly,
22213 # and sets the high bit in the cache file unless we assign to the vars.
22216 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22218 # `set' does not quote correctly, so add quotes (double-quote
22219 # substitution turns \\\\ into \\, and sed turns \\ into \).
22222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22225 # `set' quotes correctly as required by POSIX, so do not add quotes.
22227 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22236 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22238 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22239 if test -w $cache_file; then
22240 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22241 cat confcache >$cache_file
22243 echo "not updating unwritable cache $cache_file"
22248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22249 # Let make expand exec_prefix.
22250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22254 # trailing colons and then remove the whole line if VPATH becomes empty
22255 # (actually we leave an empty line to preserve line numbers).
22256 if test "x$srcdir" = x.; then
22257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22258 s/:*\$(srcdir):*/:/;
22259 s/:*\${srcdir}:*/:/;
22261 s/^\([^=]*=[ ]*\):*/\1/;
22267 DEFS=-DHAVE_CONFIG_H
22271 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22272 # 1. Remove the extension, and $U if already installed.
22273 ac_i=`echo "$ac_i" |
22274 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22276 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22277 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22279 LIBOBJS=$ac_libobjs
22281 LTLIBOBJS=$ac_ltlibobjs
22285 : ${CONFIG_STATUS=./config.status}
22286 ac_clean_files_save=$ac_clean_files
22287 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22288 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22289 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22290 cat >$CONFIG_STATUS <<_ACEOF
22292 # Generated by $as_me.
22293 # Run this file to recreate the current configuration.
22294 # Compiler output produced by configure, useful for debugging
22295 # configure, is in config.log if it exists.
22298 ac_cs_recheck=false
22300 SHELL=\${CONFIG_SHELL-$SHELL}
22303 cat >>$CONFIG_STATUS <<\_ACEOF
22304 ## --------------------- ##
22305 ## M4sh Initialization. ##
22306 ## --------------------- ##
22308 # Be Bourne compatible
22309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22312 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22313 # is contrary to our usage. Disable this feature.
22314 alias -g '${1+"$@"}'='"$@"'
22315 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22318 DUALCASE=1; export DUALCASE # for MKS sh
22320 # Support unset when possible.
22321 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22328 # Work around bugs in pre-3.0 UWIN ksh.
22329 $as_unset ENV MAIL MAILPATH
22336 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22337 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22338 LC_TELEPHONE LC_TIME
22340 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22341 eval $as_var=C; export $as_var
22347 # Required to use basename.
22348 if expr a : '\(a\)' >/dev/null 2>&1; then
22354 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22355 as_basename=basename
22361 # Name of the executable.
22362 as_me=`$as_basename "$0" ||
22363 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22364 X"$0" : 'X\(//\)$' \| \
22365 X"$0" : 'X\(/\)$' \| \
22366 . : '\(.\)' 2>/dev/null ||
22368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22369 /^X\/\(\/\/\)$/{ s//\1/; q; }
22370 /^X\/\(\/\).*/{ s//\1/; q; }
22374 # PATH needs CR, and LINENO needs CR and PATH.
22375 # Avoid depending upon Character Ranges.
22376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22379 as_cr_digits='0123456789'
22380 as_cr_alnum=$as_cr_Letters$as_cr_digits
22382 # The user is always right.
22383 if test "${PATH_SEPARATOR+set}" != set; then
22384 echo "#! /bin/sh" >conf$$.sh
22385 echo "exit 0" >>conf$$.sh
22387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22396 as_lineno_1=$LINENO
22397 as_lineno_2=$LINENO
22398 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22399 test "x$as_lineno_1" != "x$as_lineno_2" &&
22400 test "x$as_lineno_3" = "x$as_lineno_2" || {
22401 # Find who we are. Look in the path if we contain no path at all
22404 *[\\/]* ) as_myself=$0 ;;
22405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22406 for as_dir in $PATH
22409 test -z "$as_dir" && as_dir=.
22410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22415 # We did not find ourselves, most probably we were run as `sh COMMAND'
22416 # in which case we are not to be found in the path.
22417 if test "x$as_myself" = x; then
22420 if test ! -f "$as_myself"; then
22421 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22422 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22423 { (exit 1); exit 1; }; }
22425 case $CONFIG_SHELL in
22427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22428 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22431 test -z "$as_dir" && as_dir=.
22432 for as_base in sh bash ksh sh5; do
22435 if ("$as_dir/$as_base" -c '
22436 as_lineno_1=$LINENO
22437 as_lineno_2=$LINENO
22438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22439 test "x$as_lineno_1" != "x$as_lineno_2" &&
22440 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22441 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22442 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22443 CONFIG_SHELL=$as_dir/$as_base
22444 export CONFIG_SHELL
22445 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22454 # uniformly replaced by the line number. The first 'sed' inserts a
22455 # line-number line before each line; the second 'sed' does the real
22456 # work. The second script uses 'N' to pair each line-number line
22457 # with the numbered line, and appends trailing '-' during
22458 # substitution so that $LINENO is not a special case at line end.
22459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22460 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22461 sed '=' <$as_myself |
22466 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22469 s,^['$as_cr_digits']*\n,,
22470 ' >$as_me.lineno &&
22471 chmod +x $as_me.lineno ||
22472 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22473 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22474 { (exit 1); exit 1; }; }
22476 # Don't try to exec as it changes $[0], causing all sort of problems
22477 # (the dirname of $[0] is not the place where we might find the
22478 # original and so on. Autoconf is especially sensible to this).
22480 # Exit status is that of the last command.
22485 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22486 *c*,-n*) ECHO_N= ECHO_C='
22488 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22489 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22492 if expr a : '\(a\)' >/dev/null 2>&1; then
22498 rm -f conf$$ conf$$.exe conf$$.file
22500 if ln -s conf$$.file conf$$ 2>/dev/null; then
22501 # We could just check for DJGPP; but this test a) works b) is more generic
22502 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22503 if test -f conf$$.exe; then
22504 # Don't use ln at all; we don't have any links
22509 elif ln conf$$.file conf$$ 2>/dev/null; then
22514 rm -f conf$$ conf$$.exe conf$$.file
22516 if mkdir -p . 2>/dev/null; then
22519 test -d ./-p && rmdir ./-p
22523 as_executable_p="test -f"
22525 # Sed expression to map a string onto a valid CPP name.
22526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22528 # Sed expression to map a string onto a valid variable name.
22529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22533 # We need space, tab and new line, in precisely that order.
22543 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22544 # report actual input values of CONFIG_FILES etc. instead of their
22545 # values after options handling. Logging --version etc. is OK.
22549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22550 ## Running $as_me. ##
22555 This file was extended by PostgreSQL $as_me 8.2devel, which was
22556 generated by GNU Autoconf 2.59. Invocation command line was
22558 CONFIG_FILES = $CONFIG_FILES
22559 CONFIG_HEADERS = $CONFIG_HEADERS
22560 CONFIG_LINKS = $CONFIG_LINKS
22561 CONFIG_COMMANDS = $CONFIG_COMMANDS
22565 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22569 # Files that config.status was made for.
22570 if test -n "$ac_config_files"; then
22571 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22574 if test -n "$ac_config_headers"; then
22575 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22578 if test -n "$ac_config_links"; then
22579 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22582 if test -n "$ac_config_commands"; then
22583 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22586 cat >>$CONFIG_STATUS <<\_ACEOF
22589 \`$as_me' instantiates files from templates according to the
22590 current configuration.
22592 Usage: $0 [OPTIONS] [FILE]...
22594 -h, --help print this help, then exit
22595 -V, --version print version number, then exit
22596 -q, --quiet do not print progress messages
22597 -d, --debug don't remove temporary files
22598 --recheck update $as_me by reconfiguring in the same conditions
22599 --file=FILE[:TEMPLATE]
22600 instantiate the configuration file FILE
22601 --header=FILE[:TEMPLATE]
22602 instantiate the configuration header FILE
22604 Configuration files:
22607 Configuration headers:
22610 Configuration links:
22613 Configuration commands:
22616 Report bugs to <bug-autoconf@gnu.org>."
22619 cat >>$CONFIG_STATUS <<_ACEOF
22621 PostgreSQL config.status 8.2devel
22622 configured by $0, generated by GNU Autoconf 2.59,
22623 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22625 Copyright (C) 2003 Free Software Foundation, Inc.
22626 This config.status script is free software; the Free Software Foundation
22627 gives unlimited permission to copy, distribute and modify it."
22631 cat >>$CONFIG_STATUS <<\_ACEOF
22632 # If no file are specified by the user, then we need to provide default
22633 # value. By we need to know if files were specified by the user.
22639 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22640 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22648 *) # This is not an option, so the user has probably given explicit
22651 ac_need_defaults=false;;
22655 # Handling of the options.
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22660 --version | --vers* | -V )
22661 echo "$ac_cs_version"; exit 0 ;;
22663 # Conflict between --help and --header
22664 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22665 Try \`$0 --help' for more information." >&5
22666 echo "$as_me: error: ambiguous option: $1
22667 Try \`$0 --help' for more information." >&2;}
22668 { (exit 1); exit 1; }; };;
22669 --help | --hel | -h )
22670 echo "$ac_cs_usage"; exit 0 ;;
22671 --debug | --d* | -d )
22673 --file | --fil | --fi | --f )
22675 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22676 ac_need_defaults=false;;
22677 --header | --heade | --head | --hea )
22679 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22680 ac_need_defaults=false;;
22681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22685 # This is an error.
22686 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22687 Try \`$0 --help' for more information." >&5
22688 echo "$as_me: error: unrecognized option: $1
22689 Try \`$0 --help' for more information." >&2;}
22690 { (exit 1); exit 1; }; } ;;
22692 *) ac_config_targets="$ac_config_targets $1" ;;
22698 ac_configure_extra_args=
22700 if $ac_cs_silent; then
22702 ac_configure_extra_args="$ac_configure_extra_args --silent"
22706 cat >>$CONFIG_STATUS <<_ACEOF
22707 if \$ac_cs_recheck; then
22708 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22709 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22718 cat >>$CONFIG_STATUS <<\_ACEOF
22719 for ac_config_target in $ac_config_targets
22721 case "$ac_config_target" in
22722 # Handling of arguments.
22723 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
22724 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
22725 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
22726 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
22727 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
22728 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
22729 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
22730 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
22731 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
22732 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
22733 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
22734 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22736 { (exit 1); exit 1; }; };;
22740 # If the user did not use the arguments to specify the items to instantiate,
22741 # then the envvar interface is used. Set only those that are not.
22742 # We use the long form for the default assignment because of an extremely
22743 # bizarre bug on SunOS 4.1.3.
22744 if $ac_need_defaults; then
22745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22747 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22751 # Have a temporary directory for convenience. Make it in the build tree
22752 # simply because there is no reason to put it here, and in addition,
22753 # creating and moving files from /tmp can sometimes cause problems.
22754 # Create a temporary directory, and hook for its removal unless debugging.
22757 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22758 trap '{ (exit 1); exit 1; }' 1 2 13 15
22761 # Create a (secure) tmp directory for tmp files.
22764 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22765 test -n "$tmp" && test -d "$tmp"
22768 tmp=./confstat$$-$RANDOM
22769 (umask 077 && mkdir $tmp)
22772 echo "$me: cannot create a temporary directory in ." >&2
22773 { (exit 1); exit 1; }
22778 cat >>$CONFIG_STATUS <<_ACEOF
22781 # CONFIG_FILES section.
22784 # No need to generate the scripts if there are no CONFIG_FILES.
22785 # This happens for instance when ./config.status config.h
22786 if test -n "\$CONFIG_FILES"; then
22787 # Protect against being on the right side of a sed subst in config.status.
22788 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22789 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22790 s,@SHELL@,$SHELL,;t t
22791 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22792 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22793 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22794 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22795 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22796 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22797 s,@exec_prefix@,$exec_prefix,;t t
22798 s,@prefix@,$prefix,;t t
22799 s,@program_transform_name@,$program_transform_name,;t t
22800 s,@bindir@,$bindir,;t t
22801 s,@sbindir@,$sbindir,;t t
22802 s,@libexecdir@,$libexecdir,;t t
22803 s,@datadir@,$datadir,;t t
22804 s,@sysconfdir@,$sysconfdir,;t t
22805 s,@sharedstatedir@,$sharedstatedir,;t t
22806 s,@localstatedir@,$localstatedir,;t t
22807 s,@libdir@,$libdir,;t t
22808 s,@includedir@,$includedir,;t t
22809 s,@oldincludedir@,$oldincludedir,;t t
22810 s,@infodir@,$infodir,;t t
22811 s,@mandir@,$mandir,;t t
22812 s,@build_alias@,$build_alias,;t t
22813 s,@host_alias@,$host_alias,;t t
22814 s,@target_alias@,$target_alias,;t t
22815 s,@DEFS@,$DEFS,;t t
22816 s,@ECHO_C@,$ECHO_C,;t t
22817 s,@ECHO_N@,$ECHO_N,;t t
22818 s,@ECHO_T@,$ECHO_T,;t t
22819 s,@LIBS@,$LIBS,;t t
22820 s,@configure_args@,$configure_args,;t t
22821 s,@build@,$build,;t t
22822 s,@build_cpu@,$build_cpu,;t t
22823 s,@build_vendor@,$build_vendor,;t t
22824 s,@build_os@,$build_os,;t t
22825 s,@host@,$host,;t t
22826 s,@host_cpu@,$host_cpu,;t t
22827 s,@host_vendor@,$host_vendor,;t t
22828 s,@host_os@,$host_os,;t t
22829 s,@PORTNAME@,$PORTNAME,;t t
22830 s,@docdir@,$docdir,;t t
22831 s,@enable_nls@,$enable_nls,;t t
22832 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
22833 s,@default_port@,$default_port,;t t
22834 s,@enable_shared@,$enable_shared,;t t
22835 s,@enable_rpath@,$enable_rpath,;t t
22836 s,@enable_debug@,$enable_debug,;t t
22838 s,@CFLAGS@,$CFLAGS,;t t
22839 s,@LDFLAGS@,$LDFLAGS,;t t
22840 s,@CPPFLAGS@,$CPPFLAGS,;t t
22841 s,@ac_ct_CC@,$ac_ct_CC,;t t
22842 s,@EXEEXT@,$EXEEXT,;t t
22843 s,@OBJEXT@,$OBJEXT,;t t
22847 s,@autodepend@,$autodepend,;t t
22848 s,@INCLUDES@,$INCLUDES,;t t
22849 s,@enable_thread_safety@,$enable_thread_safety,;t t
22850 s,@with_tcl@,$with_tcl,;t t
22851 s,@with_perl@,$with_perl,;t t
22852 s,@with_python@,$with_python,;t t
22853 s,@with_krb5@,$with_krb5,;t t
22854 s,@krb_srvtab@,$krb_srvtab,;t t
22855 s,@with_pam@,$with_pam,;t t
22856 s,@with_bonjour@,$with_bonjour,;t t
22857 s,@with_openssl@,$with_openssl,;t t
22858 s,@with_zlib@,$with_zlib,;t t
22859 s,@EGREP@,$EGREP,;t t
22860 s,@ELF_SYS@,$ELF_SYS,;t t
22861 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
22863 s,@FLEX@,$FLEX,;t t
22864 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
22865 s,@LN_S@,$LN_S,;t t
22867 s,@with_gnu_ld@,$with_gnu_ld,;t t
22868 s,@ld_R_works@,$ld_R_works,;t t
22869 s,@RANLIB@,$RANLIB,;t t
22870 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22871 s,@LORDER@,$LORDER,;t t
22873 s,@STRIP@,$STRIP,;t t
22874 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22875 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
22876 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
22877 s,@YACC@,$YACC,;t t
22878 s,@YFLAGS@,$YFLAGS,;t t
22879 s,@PERL@,$PERL,;t t
22880 s,@perl_archlibexp@,$perl_archlibexp,;t t
22881 s,@perl_privlibexp@,$perl_privlibexp,;t t
22882 s,@perl_useshrplib@,$perl_useshrplib,;t t
22883 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
22884 s,@PYTHON@,$PYTHON,;t t
22885 s,@python_version@,$python_version,;t t
22886 s,@python_configdir@,$python_configdir,;t t
22887 s,@python_includespec@,$python_includespec,;t t
22888 s,@python_libdir@,$python_libdir,;t t
22889 s,@python_libspec@,$python_libspec,;t t
22890 s,@python_additional_libs@,$python_additional_libs,;t t
22891 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
22892 s,@LIBOBJS@,$LIBOBJS,;t t
22893 s,@acx_pthread_config@,$acx_pthread_config,;t t
22894 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
22895 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
22896 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
22897 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
22898 s,@MSGFMT@,$MSGFMT,;t t
22899 s,@MSGMERGE@,$MSGMERGE,;t t
22900 s,@XGETTEXT@,$XGETTEXT,;t t
22901 s,@localedir@,$localedir,;t t
22902 s,@TCLSH@,$TCLSH,;t t
22903 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
22904 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
22905 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22906 s,@TCL_LIBS@,$TCL_LIBS,;t t
22907 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22908 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
22909 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22910 s,@NSGMLS@,$NSGMLS,;t t
22911 s,@JADE@,$JADE,;t t
22912 s,@have_docbook@,$have_docbook,;t t
22913 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
22914 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
22915 s,@SGMLSPL@,$SGMLSPL,;t t
22916 s,@vpath_build@,$vpath_build,;t t
22917 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22922 cat >>$CONFIG_STATUS <<\_ACEOF
22923 # Split the substitutions into bite-sized pieces for seds with
22924 # small command number limits, like on Digital OSF/1 and HP-UX.
22925 ac_max_sed_lines=48
22926 ac_sed_frag=1 # Number of current file.
22927 ac_beg=1 # First line for current file.
22928 ac_end=$ac_max_sed_lines # Line after last line for current file.
22931 while $ac_more_lines; do
22932 if test $ac_beg -gt 1; then
22933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22937 if test ! -s $tmp/subs.frag; then
22938 ac_more_lines=false
22940 # The purpose of the label and of the branching condition is to
22941 # speed up the sed processing (if there are no `@' at all, there
22942 # is no need to browse any of the substitutions).
22943 # These are the two extra sed commands mentioned above.
22945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22946 if test -z "$ac_sed_cmds"; then
22947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22951 ac_sed_frag=`expr $ac_sed_frag + 1`
22953 ac_end=`expr $ac_end + $ac_max_sed_lines`
22956 if test -z "$ac_sed_cmds"; then
22959 fi # test -n "$CONFIG_FILES"
22962 cat >>$CONFIG_STATUS <<\_ACEOF
22963 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22966 - | *:- | *:-:* ) # input from stdin
22968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22972 * ) ac_file_in=$ac_file.in ;;
22975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22978 X"$ac_file" : 'X\(//\)[^/]' \| \
22979 X"$ac_file" : 'X\(//\)$' \| \
22980 X"$ac_file" : 'X\(/\)' \| \
22981 . : '\(.\)' 2>/dev/null ||
22983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22985 /^X\(\/\/\)$/{ s//\1/; q; }
22986 /^X\(\/\).*/{ s//\1/; q; }
22988 { if $as_mkdir_p; then
22993 while test ! -d "$as_dir"; do
22994 as_dirs="$as_dir $as_dirs"
22995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22997 X"$as_dir" : 'X\(//\)[^/]' \| \
22998 X"$as_dir" : 'X\(//\)$' \| \
22999 X"$as_dir" : 'X\(/\)' \| \
23000 . : '\(.\)' 2>/dev/null ||
23002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23004 /^X\(\/\/\)$/{ s//\1/; q; }
23005 /^X\(\/\).*/{ s//\1/; q; }
23008 test ! -n "$as_dirs" || mkdir $as_dirs
23009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23011 { (exit 1); exit 1; }; }; }
23015 if test "$ac_dir" != .; then
23016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23017 # A "../" for each directory in $ac_dir_suffix.
23018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23020 ac_dir_suffix= ac_top_builddir=
23024 .) # No --srcdir option. We are building in place.
23026 if test -z "$ac_top_builddir"; then
23029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23031 [\\/]* | ?:[\\/]* ) # Absolute path.
23032 ac_srcdir=$srcdir$ac_dir_suffix;
23033 ac_top_srcdir=$srcdir ;;
23034 *) # Relative path.
23035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23039 # Do not use `cd foo && pwd` to compute absolute paths, because
23040 # the directories may not exist.
23042 .) ac_abs_builddir="$ac_dir";;
23045 .) ac_abs_builddir=`pwd`;;
23046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23047 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23050 case $ac_abs_builddir in
23051 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23053 case ${ac_top_builddir}. in
23054 .) ac_abs_top_builddir=$ac_abs_builddir;;
23055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23059 case $ac_abs_builddir in
23060 .) ac_abs_srcdir=$ac_srcdir;;
23063 .) ac_abs_srcdir=$ac_abs_builddir;;
23064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23068 case $ac_abs_builddir in
23069 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23071 case $ac_top_srcdir in
23072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23080 if test x"$ac_file" != x-; then
23081 { echo "$as_me:$LINENO: creating $ac_file" >&5
23082 echo "$as_me: creating $ac_file" >&6;}
23085 # Let's still pretend it is `configure' which instantiates (i.e., don't
23086 # use $as_me), people would be surprised to read:
23087 # /* config.h. Generated by config.status. */
23088 if test x"$ac_file" = x-; then
23091 configure_input="$ac_file. "
23093 configure_input=$configure_input"Generated from `echo $ac_file_in |
23094 sed 's,.*/,,'` by configure."
23096 # First look for the input files in the build tree, otherwise in the
23098 ac_file_inputs=`IFS=:
23099 for f in $ac_file_in; do
23101 -) echo $tmp/stdin ;;
23103 # Absolute (can't be DOS-style, as IFS=:)
23104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23105 echo "$as_me: error: cannot find input file: $f" >&2;}
23106 { (exit 1); exit 1; }; }
23109 if test -f "$f"; then
23112 elif test -f "$srcdir/$f"; then
23117 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23118 echo "$as_me: error: cannot find input file: $f" >&2;}
23119 { (exit 1); exit 1; }; }
23122 done` || { (exit 1); exit 1; }
23124 cat >>$CONFIG_STATUS <<_ACEOF
23128 cat >>$CONFIG_STATUS <<\_ACEOF
23130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23131 s,@configure_input@,$configure_input,;t t
23132 s,@srcdir@,$ac_srcdir,;t t
23133 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23134 s,@top_srcdir@,$ac_top_srcdir,;t t
23135 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23136 s,@builddir@,$ac_builddir,;t t
23137 s,@abs_builddir@,$ac_abs_builddir,;t t
23138 s,@top_builddir@,$ac_top_builddir,;t t
23139 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23140 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23142 if test x"$ac_file" != x-; then
23143 mv $tmp/out $ac_file
23151 cat >>$CONFIG_STATUS <<\_ACEOF
23154 # CONFIG_HEADER section.
23157 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23158 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23160 # ac_d sets the value in "#define NAME VALUE" lines.
23161 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23162 ac_dB='[ ].*$,\1#\2'
23165 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23166 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23167 ac_uB='$,\1#\2define\3'
23171 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23172 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23174 - | *:- | *:-:* ) # input from stdin
23176 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23178 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23180 * ) ac_file_in=$ac_file.in ;;
23183 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23184 echo "$as_me: creating $ac_file" >&6;}
23186 # First look for the input files in the build tree, otherwise in the
23188 ac_file_inputs=`IFS=:
23189 for f in $ac_file_in; do
23191 -) echo $tmp/stdin ;;
23193 # Absolute (can't be DOS-style, as IFS=:)
23194 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23195 echo "$as_me: error: cannot find input file: $f" >&2;}
23196 { (exit 1); exit 1; }; }
23197 # Do quote $f, to prevent DOS paths from being IFS'd.
23200 if test -f "$f"; then
23203 elif test -f "$srcdir/$f"; then
23208 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23209 echo "$as_me: error: cannot find input file: $f" >&2;}
23210 { (exit 1); exit 1; }; }
23213 done` || { (exit 1); exit 1; }
23214 # Remove the trailing spaces.
23215 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23219 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23220 # `conftest.undefs', that substitutes the proper values into
23221 # config.h.in to produce config.h. The first handles `#define'
23222 # templates, and the second `#undef' templates.
23223 # And first: Protect against being on the right side of a sed subst in
23224 # config.status. Protect against being in an unquoted here document
23225 # in config.status.
23226 rm -f conftest.defines conftest.undefs
23227 # Using a here document instead of a string reduces the quoting nightmare.
23228 # Putting comments in sed scripts is not portable.
23230 # `end' is used to avoid that the second main sed command (meant for
23231 # 0-ary CPP macros) applies to n-ary macro definitions.
23232 # See the Autoconf documentation for `clear'.
23233 cat >confdef2sed.sed <<\_ACEOF
23238 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23240 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23243 # If some macros were called several times there might be several times
23244 # the same #defines, which is useless. Nevertheless, we may not want to
23245 # sort them, since we want the *last* AC-DEFINE to be honored.
23246 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23247 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23248 rm -f confdef2sed.sed
23250 # This sed command replaces #undef with comments. This is necessary, for
23251 # example, in the case of _POSIX_SOURCE, which is predefined and required
23252 # on some systems where configure will not decide to define it.
23253 cat >>conftest.undefs <<\_ACEOF
23254 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23257 # Break up conftest.defines because some shells have a limit on the size
23258 # of here documents, and old seds have small limits too (100 cmds).
23259 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23260 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23261 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23262 echo ' :' >>$CONFIG_STATUS
23263 rm -f conftest.tail
23264 while grep . conftest.defines >/dev/null
23266 # Write a limited-size here document to $tmp/defines.sed.
23267 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23268 # Speed up: don't consider the non `#define' lines.
23269 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23270 # Work around the forget-to-reset-the-flag bug.
23271 echo 't clr' >>$CONFIG_STATUS
23272 echo ': clr' >>$CONFIG_STATUS
23273 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23275 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23277 mv $tmp/out $tmp/in
23279 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23280 rm -f conftest.defines
23281 mv conftest.tail conftest.defines
23283 rm -f conftest.defines
23284 echo ' fi # grep' >>$CONFIG_STATUS
23285 echo >>$CONFIG_STATUS
23287 # Break up conftest.undefs because some shells have a limit on the size
23288 # of here documents, and old seds have small limits too (100 cmds).
23289 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23290 rm -f conftest.tail
23291 while grep . conftest.undefs >/dev/null
23293 # Write a limited-size here document to $tmp/undefs.sed.
23294 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23295 # Speed up: don't consider the non `#undef'
23296 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23297 # Work around the forget-to-reset-the-flag bug.
23298 echo 't clr' >>$CONFIG_STATUS
23299 echo ': clr' >>$CONFIG_STATUS
23300 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23302 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23304 mv $tmp/out $tmp/in
23306 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23307 rm -f conftest.undefs
23308 mv conftest.tail conftest.undefs
23310 rm -f conftest.undefs
23312 cat >>$CONFIG_STATUS <<\_ACEOF
23313 # Let's still pretend it is `configure' which instantiates (i.e., don't
23314 # use $as_me), people would be surprised to read:
23315 # /* config.h. Generated by config.status. */
23316 if test x"$ac_file" = x-; then
23317 echo "/* Generated by configure. */" >$tmp/config.h
23319 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23321 cat $tmp/in >>$tmp/config.h
23323 if test x"$ac_file" != x-; then
23324 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23325 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23326 echo "$as_me: $ac_file is unchanged" >&6;}
23328 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23330 X"$ac_file" : 'X\(//\)[^/]' \| \
23331 X"$ac_file" : 'X\(//\)$' \| \
23332 X"$ac_file" : 'X\(/\)' \| \
23333 . : '\(.\)' 2>/dev/null ||
23335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23337 /^X\(\/\/\)$/{ s//\1/; q; }
23338 /^X\(\/\).*/{ s//\1/; q; }
23340 { if $as_mkdir_p; then
23345 while test ! -d "$as_dir"; do
23346 as_dirs="$as_dir $as_dirs"
23347 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23349 X"$as_dir" : 'X\(//\)[^/]' \| \
23350 X"$as_dir" : 'X\(//\)$' \| \
23351 X"$as_dir" : 'X\(/\)' \| \
23352 . : '\(.\)' 2>/dev/null ||
23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23356 /^X\(\/\/\)$/{ s//\1/; q; }
23357 /^X\(\/\).*/{ s//\1/; q; }
23360 test ! -n "$as_dirs" || mkdir $as_dirs
23361 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23363 { (exit 1); exit 1; }; }; }
23366 mv $tmp/config.h $ac_file
23370 rm -f $tmp/config.h
23372 # Run the commands associated with the file.
23374 src/include/pg_config.h )
23375 # Update timestamp for pg_config.h (see Makefile.global)
23376 echo >src/include/stamp-h
23381 cat >>$CONFIG_STATUS <<\_ACEOF
23384 # CONFIG_LINKS section.
23387 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23388 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23389 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23391 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23392 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23394 if test ! -r $srcdir/$ac_source; then
23395 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23396 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23397 { (exit 1); exit 1; }; }
23401 # Make relative symlinks.
23402 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23403 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23404 X"$ac_dest" : 'X\(//\)[^/]' \| \
23405 X"$ac_dest" : 'X\(//\)$' \| \
23406 X"$ac_dest" : 'X\(/\)' \| \
23407 . : '\(.\)' 2>/dev/null ||
23409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23410 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23411 /^X\(\/\/\)$/{ s//\1/; q; }
23412 /^X\(\/\).*/{ s//\1/; q; }
23414 { if $as_mkdir_p; then
23415 mkdir -p "$ac_dest_dir"
23417 as_dir="$ac_dest_dir"
23419 while test ! -d "$as_dir"; do
23420 as_dirs="$as_dir $as_dirs"
23421 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423 X"$as_dir" : 'X\(//\)[^/]' \| \
23424 X"$as_dir" : 'X\(//\)$' \| \
23425 X"$as_dir" : 'X\(/\)' \| \
23426 . : '\(.\)' 2>/dev/null ||
23428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23430 /^X\(\/\/\)$/{ s//\1/; q; }
23431 /^X\(\/\).*/{ s//\1/; q; }
23434 test ! -n "$as_dirs" || mkdir $as_dirs
23435 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23436 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23437 { (exit 1); exit 1; }; }; }
23441 if test "$ac_dest_dir" != .; then
23442 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23443 # A "../" for each directory in $ac_dir_suffix.
23444 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23446 ac_dir_suffix= ac_top_builddir=
23450 .) # No --srcdir option. We are building in place.
23452 if test -z "$ac_top_builddir"; then
23455 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23457 [\\/]* | ?:[\\/]* ) # Absolute path.
23458 ac_srcdir=$srcdir$ac_dir_suffix;
23459 ac_top_srcdir=$srcdir ;;
23460 *) # Relative path.
23461 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23462 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23465 # Do not use `cd foo && pwd` to compute absolute paths, because
23466 # the directories may not exist.
23468 .) ac_abs_builddir="$ac_dest_dir";;
23470 case "$ac_dest_dir" in
23471 .) ac_abs_builddir=`pwd`;;
23472 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23473 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23476 case $ac_abs_builddir in
23477 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23479 case ${ac_top_builddir}. in
23480 .) ac_abs_top_builddir=$ac_abs_builddir;;
23481 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23482 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23485 case $ac_abs_builddir in
23486 .) ac_abs_srcdir=$ac_srcdir;;
23489 .) ac_abs_srcdir=$ac_abs_builddir;;
23490 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23491 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23494 case $ac_abs_builddir in
23495 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23497 case $ac_top_srcdir in
23498 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23499 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23500 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23506 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23507 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23510 # Try a symlink, then a hard link, then a copy.
23511 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23512 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23513 cp -p $srcdir/$ac_source $ac_dest ||
23514 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23515 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23516 { (exit 1); exit 1; }; }
23519 cat >>$CONFIG_STATUS <<\_ACEOF
23522 # CONFIG_COMMANDS section.
23524 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23525 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23526 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23527 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23528 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23529 X"$ac_dest" : 'X\(//\)[^/]' \| \
23530 X"$ac_dest" : 'X\(//\)$' \| \
23531 X"$ac_dest" : 'X\(/\)' \| \
23532 . : '\(.\)' 2>/dev/null ||
23534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23536 /^X\(\/\/\)$/{ s//\1/; q; }
23537 /^X\(\/\).*/{ s//\1/; q; }
23539 { if $as_mkdir_p; then
23544 while test ! -d "$as_dir"; do
23545 as_dirs="$as_dir $as_dirs"
23546 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23548 X"$as_dir" : 'X\(//\)[^/]' \| \
23549 X"$as_dir" : 'X\(//\)$' \| \
23550 X"$as_dir" : 'X\(/\)' \| \
23551 . : '\(.\)' 2>/dev/null ||
23553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23554 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23555 /^X\(\/\/\)$/{ s//\1/; q; }
23556 /^X\(\/\).*/{ s//\1/; q; }
23559 test ! -n "$as_dirs" || mkdir $as_dirs
23560 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23561 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23562 { (exit 1); exit 1; }; }; }
23566 if test "$ac_dir" != .; then
23567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23568 # A "../" for each directory in $ac_dir_suffix.
23569 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23571 ac_dir_suffix= ac_top_builddir=
23575 .) # No --srcdir option. We are building in place.
23577 if test -z "$ac_top_builddir"; then
23580 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23582 [\\/]* | ?:[\\/]* ) # Absolute path.
23583 ac_srcdir=$srcdir$ac_dir_suffix;
23584 ac_top_srcdir=$srcdir ;;
23585 *) # Relative path.
23586 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23587 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23590 # Do not use `cd foo && pwd` to compute absolute paths, because
23591 # the directories may not exist.
23593 .) ac_abs_builddir="$ac_dir";;
23596 .) ac_abs_builddir=`pwd`;;
23597 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23598 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23601 case $ac_abs_builddir in
23602 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23604 case ${ac_top_builddir}. in
23605 .) ac_abs_top_builddir=$ac_abs_builddir;;
23606 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23607 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23610 case $ac_abs_builddir in
23611 .) ac_abs_srcdir=$ac_srcdir;;
23614 .) ac_abs_srcdir=$ac_abs_builddir;;
23615 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23616 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23619 case $ac_abs_builddir in
23620 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23622 case $ac_top_srcdir in
23623 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23624 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23625 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23630 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23631 echo "$as_me: executing $ac_dest commands" >&6;}
23633 check_win32_symlinks )
23634 # Links sometimes fail undetected on Mingw -
23635 # so here we detect it and warn the user
23636 for FILE in $CONFIG_LINKS
23638 # test -e works for symlinks in the MinGW console
23639 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
23640 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
23647 cat >>$CONFIG_STATUS <<\_ACEOF
23649 { (exit 0); exit 0; }
23651 chmod +x $CONFIG_STATUS
23652 ac_clean_files=$ac_clean_files_save
23655 # configure is writing to config.log, and then calls config.status.
23656 # config.status does its own redirection, appending to config.log.
23657 # Unfortunately, on DOS this fails, as config.log is still kept open
23658 # by configure, so config.status won't be able to write to it; its
23659 # output is simply discarded. So we exec the FD to /dev/null,
23660 # effectively closing config.log, so it can be properly (re)opened and
23661 # appended to by config.status. When coming back to configure, we
23662 # need to make the FD available again.
23663 if test "$no_create" != yes; then
23665 ac_config_status_args=
23666 test "$silent" = yes &&
23667 ac_config_status_args="$ac_config_status_args --quiet"
23669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23672 # would make configure fail if this is the last instruction.
23673 $ac_cs_success || { (exit 1); exit 1; }