2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.1beta1.
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.1beta1'
275 PACKAGE_STRING='PostgreSQL 8.1beta1'
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.1beta1 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.1beta1:";;
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 --without-readline do not use Readline
894 --without-zlib do not use Zlib
895 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
897 Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
907 location of DocBook stylesheets
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
912 Report bugs to <pgsql-bugs@postgresql.org>.
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 ac_dir_suffix= ac_top_builddir=
932 .) # No --srcdir option. We are building in place.
934 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 # Do not use `cd foo && pwd` to compute absolute paths, because
948 # the directories may not exist.
950 .) ac_abs_builddir="$ac_dir";;
953 .) ac_abs_builddir=`pwd`;;
954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
955 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 case $ac_abs_builddir in
959 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 case ${ac_top_builddir}. in
962 .) ac_abs_top_builddir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 case $ac_abs_builddir in
968 .) ac_abs_srcdir=$ac_srcdir;;
971 .) ac_abs_srcdir=$ac_abs_builddir;;
972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 case $ac_abs_builddir in
977 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 case $ac_top_srcdir in
980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 # Check for guested configure; otherwise get Cygnus style configure.
988 if test -f $ac_srcdir/configure.gnu; then
990 $SHELL $ac_srcdir/configure.gnu --help=recursive
991 elif test -f $ac_srcdir/configure; then
993 $SHELL $ac_srcdir/configure --help=recursive
994 elif test -f $ac_srcdir/configure.ac ||
995 test -f $ac_srcdir/configure.in; then
999 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 test -n "$ac_init_help" && exit 0
1006 if $ac_init_version; then
1008 PostgreSQL configure 8.1beta1
1009 generated by GNU Autoconf 2.59
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1015 Copyright (c) 1996-2005, PostgreSQL Global Development Group
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by PostgreSQL $as_me 8.1beta1, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365 for ac_dir in config $srcdir/config; do
1366 if test -f $ac_dir/install-sh; then
1368 ac_install_sh="$ac_aux_dir/install-sh -c"
1370 elif test -f $ac_dir/install.sh; then
1372 ac_install_sh="$ac_aux_dir/install.sh -c"
1374 elif test -f $ac_dir/shtool; then
1376 ac_install_sh="$ac_aux_dir/shtool install -c"
1380 if test -z "$ac_aux_dir"; then
1381 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1382 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1383 { (exit 1); exit 1; }; }
1385 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1386 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1387 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 configure_args=$ac_configure_args
1394 cat >>confdefs.h <<_ACEOF
1395 #define PG_VERSION "$PACKAGE_VERSION"
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455 echo "$as_me:$LINENO: checking which template to use" >&5
1456 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1461 # Check whether --with-template or --without-template was given.
1462 if test "${with_template+set}" = set; then
1463 withval="$with_template"
1467 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1468 echo "$as_me: error: argument required for --with-template option" >&2;}
1469 { (exit 1); exit 1; }; }
1472 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1473 echo "$as_me: error: argument required for --with-template option" >&2;}
1474 { (exit 1); exit 1; }; }
1479 list) echo; ls "$srcdir/src/template"; exit;;
1480 *) if test -f "$srcdir/src/template/$with_template" ; then
1483 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1484 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1485 { (exit 1); exit 1; }; }
1494 # --with-template not given
1497 aix*) template=aix ;;
1498 beos*) template=beos ;;
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 qnx*) template=qnx4 ;;
1514 sco*) template=sco ;;
1515 solaris*) template=solaris ;;
1516 sunos*) template=sunos4 ;;
1518 case $host_vendor in
1519 univel) template=univel ;;
1521 sysv4*) template=svr4 ;;
1522 sysv5*) template=unixware ;;
1523 ultrix*) template=ultrix4 ;;
1526 if test x"$template" = x"" ; then
1527 { { echo "$as_me:$LINENO: error:
1528 *******************************************************************
1529 PostgreSQL has apparently not been ported to your platform yet.
1530 To try a manual configuration, look into the src/template directory
1531 for a similar platform and use the '--with-template=' option.
1533 Please also contact <pgsql-ports@postgresql.org> to see about
1534 rectifying this. Include the above 'checking host system type...'
1536 *******************************************************************
1538 echo "$as_me: error:
1539 *******************************************************************
1540 PostgreSQL has apparently not been ported to your platform yet.
1541 To try a manual configuration, look into the src/template directory
1542 for a similar platform and use the '--with-template=' option.
1544 Please also contact <pgsql-ports@postgresql.org> to see about
1545 rectifying this. Include the above 'checking host system type...'
1547 *******************************************************************
1549 { (exit 1); exit 1; }; }
1556 echo "$as_me:$LINENO: result: $template" >&5
1557 echo "${ECHO_T}$template" >&6
1562 # Initialize default assumption that we do not need separate assembly code
1563 # for TAS (test-and-set). This can be overridden by the template file
1564 # when it's executed.
1571 ## Command line options
1575 # Installation directory for documentation
1580 # Check whether --with-docdir or --without-docdir was given.
1581 if test "${with_docdir+set}" = set; then
1582 withval="$with_docdir"
1586 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1587 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1588 { (exit 1); exit 1; }; }
1599 docdir='${prefix}/doc'
1606 # Add non-standard directories to the include path
1611 # Check whether --with-includes or --without-includes was given.
1612 if test "${with_includes+set}" = set; then
1613 withval="$with_includes"
1617 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1618 echo "$as_me: error: argument required for --with-includes option" >&2;}
1619 { (exit 1); exit 1; }; }
1622 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1623 echo "$as_me: error: argument required for --with-includes option" >&2;}
1624 { (exit 1); exit 1; }; }
1636 # Add non-standard directories to the library search path
1641 # Check whether --with-libraries or --without-libraries was given.
1642 if test "${with_libraries+set}" = set; then
1643 withval="$with_libraries"
1647 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1648 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1649 { (exit 1); exit 1; }; }
1652 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1653 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1654 { (exit 1); exit 1; }; }
1657 LIBRARY_DIRS=$withval
1667 # Check whether --with-libs or --without-libs was given.
1668 if test "${with_libs+set}" = set; then
1669 withval="$with_libs"
1673 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1674 echo "$as_me: error: argument required for --with-libs option" >&2;}
1675 { (exit 1); exit 1; }; }
1678 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1679 echo "$as_me: error: argument required for --with-libs option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 LIBRARY_DIRS=$withval
1692 # 64-bit integer date/time storage (--enable-integer-datetimes)
1694 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1695 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1698 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1699 if test "${enable_integer_datetimes+set}" = set; then
1700 enableval="$enable_integer_datetimes"
1705 cat >>confdefs.h <<\_ACEOF
1706 #define USE_INTEGER_DATETIMES 1
1714 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1715 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1716 { (exit 1); exit 1; }; }
1721 enable_integer_datetimes=no
1725 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1726 echo "${ECHO_T}$enable_integer_datetimes" >&6
1732 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1733 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1736 # Check whether --enable-nls or --disable-nls was given.
1737 if test "${enable_nls+set}" = set; then
1738 enableval="$enable_nls"
1749 WANTED_LANGUAGES=$enableval
1758 if test "$enable_nls" = yes; then
1760 cat >>confdefs.h <<\_ACEOF
1761 #define ENABLE_NLS 1
1766 echo "$as_me:$LINENO: result: $enable_nls" >&5
1767 echo "${ECHO_T}$enable_nls" >&6
1772 # Default port number (--with-pgport), default 5432
1774 echo "$as_me:$LINENO: checking for default port number" >&5
1775 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1779 # Check whether --with-pgport or --without-pgport was given.
1780 if test "${with_pgport+set}" = set; then
1781 withval="$with_pgport"
1785 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1786 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1787 { (exit 1); exit 1; }; }
1790 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1791 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1792 { (exit 1); exit 1; }; }
1795 default_port=$withval
1803 echo "$as_me:$LINENO: result: $default_port" >&5
1804 echo "${ECHO_T}$default_port" >&6
1805 # Need both of these because some places want an integer and some a string
1807 cat >>confdefs.h <<_ACEOF
1808 #define DEF_PGPORT ${default_port}
1812 cat >>confdefs.h <<_ACEOF
1813 #define DEF_PGPORT_STR "${default_port}"
1819 # Option to disable shared libraries
1823 # Check whether --enable-shared or --disable-shared was given.
1824 if test "${enable_shared+set}" = set; then
1825 enableval="$enable_shared"
1835 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1836 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1837 { (exit 1); exit 1; }; }
1849 # '-rpath'-like feature can be disabled
1853 # Check whether --enable-rpath or --disable-rpath was given.
1854 if test "${enable_rpath+set}" = set; then
1855 enableval="$enable_rpath"
1865 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1866 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1867 { (exit 1); exit 1; }; }
1883 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1884 if test "${enable_spinlocks+set}" = set; then
1885 enableval="$enable_spinlocks"
1895 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1896 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1897 { (exit 1); exit 1; }; }
1902 enable_spinlocks=yes
1908 # --enable-debug adds -g to compiler flags
1912 # Check whether --enable-debug or --disable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914 enableval="$enable_debug"
1924 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1925 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1926 { (exit 1); exit 1; }; }
1941 # For historical reasons you can also use --with-CC to specify the C compiler
1942 # to use, although the standard way to do this is to set the CC environment
1947 # Check whether --with-CC or --without-CC was given.
1948 if test "${with_CC+set}" = set; then
1953 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1954 echo "$as_me: error: argument required for --with-CC option" >&2;}
1955 { (exit 1); exit 1; }; }
1958 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1959 echo "$as_me: error: argument required for --with-CC option" >&2;}
1960 { (exit 1); exit 1; }; }
1971 aix) pgac_cc_list="gcc xlc";;
1972 irix) pgac_cc_list="cc";; # no gcc
1973 *) pgac_cc_list="gcc cc";;
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 for ac_prog in $pgac_cc_list
1984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2019 test -n "$CC" && break
2022 if test -z "$CC"; then
2024 for ac_prog in $pgac_cc_list
2026 # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 if test -n "$ac_ct_CC"; then
2034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043 ac_cv_prog_ac_ct_CC="$ac_prog"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2053 if test -n "$ac_ct_CC"; then
2054 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2055 echo "${ECHO_T}$ac_ct_CC" >&6
2057 echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6
2061 test -n "$ac_ct_CC" && break
2068 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2069 See \`config.log' for more details." >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2074 # Provide some information about the compiler.
2075 echo "$as_me:$LINENO:" \
2076 "checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2079 (eval $ac_compiler --version </dev/null >&5) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2084 (eval $ac_compiler -v </dev/null >&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2089 (eval $ac_compiler -V </dev/null >&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2094 cat >conftest.$ac_ext <<_ACEOF
2097 cat confdefs.h >>conftest.$ac_ext
2098 cat >>conftest.$ac_ext <<_ACEOF
2099 /* end confdefs.h. */
2109 ac_clean_files_save=$ac_clean_files
2110 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2111 # Try to create an executable without -o first, disregard a.out.
2112 # It will help us diagnose broken compilers, and finding out an intuition
2114 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2115 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2116 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2118 (eval $ac_link_default) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 # Find the output, starting from the most likely. This scheme is
2123 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # Be careful to initialize this variable, since it used to be cached.
2127 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129 # b.out is created by i960 compilers.
2130 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132 test -f "$ac_file" || continue
2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137 # This is the source file.
2140 # We found the default executable, but exeext='' is most
2144 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2145 # FIXME: I believe we export ac_cv_exeext for Libtool,
2146 # but it would be cool to find out if it's true. Does anybody
2147 # maintain Libtool? --akim.
2155 echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2159 See \`config.log' for more details." >&5
2160 echo "$as_me: error: C compiler cannot create executables
2161 See \`config.log' for more details." >&2;}
2162 { (exit 77); exit 77; }; }
2165 ac_exeext=$ac_cv_exeext
2166 echo "$as_me:$LINENO: result: $ac_file" >&5
2167 echo "${ECHO_T}$ac_file" >&6
2169 # Check the compiler produces executables we can run. If not, either
2170 # the compiler is broken, or we cross compile.
2171 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2172 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2173 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2174 # If not cross compiling, check that we can run a simple program.
2175 if test "$cross_compiling" != yes; then
2176 if { ac_try='./$ac_file'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2184 if test "$cross_compiling" = maybe; then
2187 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2188 If you meant to cross compile, use \`--host'.
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&2;}
2193 { (exit 1); exit 1; }; }
2197 echo "$as_me:$LINENO: result: yes" >&5
2198 echo "${ECHO_T}yes" >&6
2200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2201 ac_clean_files=$ac_clean_files_save
2202 # Check the compiler produces executables we can run. If not, either
2203 # the compiler is broken, or we cross compile.
2204 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2206 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2207 echo "${ECHO_T}$cross_compiling" >&6
2209 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2212 (eval $ac_link) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; then
2216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2217 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2218 # work properly (i.e., refer to `conftest.exe'), while it won't with
2220 for ac_file in conftest.exe conftest conftest.*; do
2221 test -f "$ac_file" || continue
2223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2238 rm -f conftest$ac_cv_exeext
2239 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2240 echo "${ECHO_T}$ac_cv_exeext" >&6
2242 rm -f conftest.$ac_ext
2243 EXEEXT=$ac_cv_exeext
2245 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2246 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2247 if test "${ac_cv_objext+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 cat >conftest.$ac_ext <<_ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2265 rm -f conftest.o conftest.obj
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2292 echo "${ECHO_T}$ac_cv_objext" >&6
2293 OBJEXT=$ac_cv_objext
2295 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2296 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2297 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 cat >conftest.$ac_ext <<_ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h. */
2318 rm -f conftest.$ac_objext
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>conftest.er1
2322 grep -v '^ *+' conftest.er1 >conftest.err
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -z "$ac_c_werror_flag"
2328 || test ! -s conftest.err'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2352 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2353 GCC=`test $ac_compiler_gnu = yes && echo yes`
2354 ac_test_CFLAGS=${CFLAGS+set}
2355 ac_save_CFLAGS=$CFLAGS
2357 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2358 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_g+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2381 grep -v '^ *+' conftest.er1 >conftest.err
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag"
2387 || test ! -s conftest.err'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; } &&
2393 { ac_try='test -s conftest.$ac_objext'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; }; then
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2409 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2410 if test "$ac_test_CFLAGS" = set; then
2411 CFLAGS=$ac_save_CFLAGS
2412 elif test $ac_cv_prog_cc_g = yes; then
2413 if test "$GCC" = yes; then
2419 if test "$GCC" = yes; then
2425 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2426 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_cv_prog_cc_stdc=no
2432 cat >conftest.$ac_ext <<_ACEOF
2435 cat confdefs.h >>conftest.$ac_ext
2436 cat >>conftest.$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2440 #include <sys/types.h>
2441 #include <sys/stat.h>
2442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2443 struct buf { int x; };
2444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2445 static char *e (p, i)
2451 static char *f (char * (*g) (char **, int), char **p, ...)
2456 s = g (p, va_arg (v,int));
2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2462 function prototypes and stuff, but not '\xHH' hex character constants.
2463 These don't provoke an error unfortunately, instead are silently treated
2464 as 'x'. The following induces an error, until -std1 is added to get
2465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2466 array size at least. It's necessary to write '\x00'==0 to get something
2467 that's true only with -std1. */
2468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX -qlanglvl=ansi
2487 # Ultrix and OSF/1 -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions -Aa -D_HPUX_SOURCE
2490 # SVR4 -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 CC="$ac_save_CC $ac_arg"
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_stdc=$ac_arg
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2530 case "x$ac_cv_prog_cc_stdc" in
2532 echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 # Some people use a C++ compiler to compile C. Since we use `exit',
2541 # in C++ we need to declare it. In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 for ac_declaration in \
2573 'extern "C" void std::exit (int) throw (); using std::exit;' \
2574 'extern "C" void std::exit (int); using std::exit;' \
2575 'extern "C" void exit (int) throw ();' \
2576 'extern "C" void exit (int);' \
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 cat >conftest.$ac_ext <<_ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642 (eval $ac_compile) 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } &&
2649 { ac_try='test -z "$ac_c_werror_flag"
2650 || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 if test -n "$ac_declaration"; then
2672 echo '#ifdef __cplusplus' >>confdefs.h
2673 echo $ac_declaration >>confdefs.h
2674 echo '#endif' >>confdefs.h
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 . "$srcdir/src/template/$template" || exit
2697 # CFLAGS are selected so:
2698 # If the user specifies something in the environment, that is used.
2699 # else: If the template file set something, that is used.
2700 # else: If the compiler is GCC, then we use -O2.
2701 # else: If the compiler is something else, then we use -0.
2703 if test "$ac_env_CFLAGS_set" = set; then
2704 CFLAGS=$ac_env_CFLAGS_value
2705 elif test "${CFLAGS+set}" = set; then
2706 : # (keep what template set)
2707 elif test "$GCC" = yes; then
2710 # if the user selected debug mode, don't use -O
2711 if test "$enable_debug" != yes; then
2716 if test "$GCC" = yes; then
2717 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2719 # Some versions of GCC support some additional useful warning flags.
2720 # Check whether they are supported, and add them to CFLAGS if so.
2721 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2722 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2723 pgac_save_CFLAGS=$CFLAGS
2724 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 echo "$as_me:$LINENO: result: yes" >&5
2763 echo "${ECHO_T}yes" >&6
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 CFLAGS="$pgac_save_CFLAGS"
2769 echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2775 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2776 pgac_save_CFLAGS=$CFLAGS
2777 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795 (eval $ac_compile) 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 echo "$as_me:$LINENO: result: yes" >&5
2816 echo "${ECHO_T}yes" >&6
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 CFLAGS="$pgac_save_CFLAGS"
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2828 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2829 pgac_save_CFLAGS=$CFLAGS
2830 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2846 rm -f conftest.$ac_objext
2847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848 (eval $ac_compile) 2>conftest.er1
2850 grep -v '^ *+' conftest.er1 >conftest.err
2852 cat conftest.err >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); } &&
2855 { ac_try='test -z "$ac_c_werror_flag"
2856 || test ! -s conftest.err'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; } &&
2862 { ac_try='test -s conftest.$ac_objext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2874 CFLAGS="$pgac_save_CFLAGS"
2875 echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881 # Disable strict-aliasing rules; needed for gcc 3.3+
2882 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2883 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2884 pgac_save_CFLAGS=$CFLAGS
2885 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest.$ac_objext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2903 (eval $ac_compile) 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924 echo "${ECHO_T}yes" >&6
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2929 CFLAGS="$pgac_save_CFLAGS"
2930 echo "$as_me:$LINENO: result: no" >&5
2931 echo "${ECHO_T}no" >&6
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 # supply -g if --enable-debug
2938 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2942 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2943 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2945 # We already have this in Makefile.win32, but configure needs it too
2946 if test "$PORTNAME" = "win32"; then
2947 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2950 # Check if the compiler still works with the template settings
2951 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2952 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2954 cat >conftest.$ac_ext <<_ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2969 rm -f conftest.$ac_objext conftest$ac_exeext
2970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2971 (eval $ac_link) 2>conftest.er1
2973 grep -v '^ *+' conftest.er1 >conftest.err
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag"
2979 || test ! -s conftest.err'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; } &&
2985 { ac_try='test -s conftest$ac_exeext'
2986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 echo "$as_me:$LINENO: result: yes" >&5
2992 echo "${ECHO_T}yes" >&6
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
2999 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
3000 echo "$as_me: error: cannot proceed" >&2;}
3001 { (exit 1); exit 1; }; }
3003 rm -f conftest.err conftest.$ac_objext \
3004 conftest$ac_exeext conftest.$ac_ext
3006 # Defend against gcc -ffast-math
3007 if test "$GCC" = yes; then
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3018 #ifdef __FAST_MATH__
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3052 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3053 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3054 { (exit 1); exit 1; }; }
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3065 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3066 # On Suns, sometimes $CPP names a directory.
3067 if test -n "$CPP" && test -d "$CPP"; then
3070 if test -z "$CPP"; then
3071 if test "${ac_cv_prog_CPP+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 # Double quotes because CPP needs to be expanded
3075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3078 for ac_c_preproc_warn_flag in '' yes
3080 # Use a header file that comes with gcc, so configuring glibc
3081 # with a fresh cross-compiler works.
3082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3083 # <limits.h> exists even on freestanding compilers.
3084 # On the NeXT, cc -E runs the code through the compiler's parser,
3085 # not just through cpp. "Syntax error" is here to catch this case.
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3093 # include <limits.h>
3095 # include <assert.h>
3099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
3109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3116 if test -z "$ac_cpp_err"; then
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 # Broken: fails on valid input.
3125 rm -f conftest.err conftest.$ac_ext
3127 # OK, works on sane cases. Now check whether non-existent headers
3128 # can be detected and how.
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <ac_nonexistent.h>
3137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
3147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3154 if test -z "$ac_cpp_err"; then
3155 # Broken: success on invalid input.
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 # Passes both tests.
3165 rm -f conftest.err conftest.$ac_ext
3168 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3169 rm -f conftest.err conftest.$ac_ext
3170 if $ac_preproc_ok; then
3182 echo "$as_me:$LINENO: result: $CPP" >&5
3183 echo "${ECHO_T}$CPP" >&6
3185 for ac_c_preproc_warn_flag in '' yes
3187 # Use a header file that comes with gcc, so configuring glibc
3188 # with a fresh cross-compiler works.
3189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 # <limits.h> exists even on freestanding compilers.
3191 # On the NeXT, cc -E runs the code through the compiler's parser,
3192 # not just through cpp. "Syntax error" is here to catch this case.
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 # include <limits.h>
3202 # include <assert.h>
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3223 if test -z "$ac_cpp_err"; then
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3229 # Broken: fails on valid input.
3232 rm -f conftest.err conftest.$ac_ext
3234 # OK, works on sane cases. Now check whether non-existent headers
3235 # can be detected and how.
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <ac_nonexistent.h>
3244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null; then
3252 if test -s conftest.err; then
3253 ac_cpp_err=$ac_c_preproc_warn_flag
3254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3261 if test -z "$ac_cpp_err"; then
3262 # Broken: success on invalid input.
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Passes both tests.
3272 rm -f conftest.err conftest.$ac_ext
3275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3276 rm -f conftest.err conftest.$ac_ext
3277 if $ac_preproc_ok; then
3280 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3283 See \`config.log' for more details." >&2;}
3284 { (exit 1); exit 1; }; }
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 # Create compiler version string
3296 if test x"$GCC" = x"yes" ; then
3297 cc_string="GCC `${CC} --version | sed q`"
3302 cat >>confdefs.h <<_ACEOF
3303 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3309 # Set up TAS assembly code if needed; the template file has now had its
3310 # chance to request this.
3312 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3315 if test "$need_tas" = yes ; then
3324 # Automatic dependency tracking
3328 # Check whether --enable-depend or --disable-depend was given.
3329 if test "${enable_depend+set}" = set; then
3330 enableval="$enable_depend"
3340 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3341 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3342 { (exit 1); exit 1; }; }
3355 # Enable assert checks
3359 # Check whether --enable-cassert or --disable-cassert was given.
3360 if test "${enable_cassert+set}" = set; then
3361 enableval="$enable_cassert"
3366 cat >>confdefs.h <<\_ACEOF
3367 #define USE_ASSERT_CHECKING 1
3375 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3376 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3377 { (exit 1); exit 1; }; }
3389 # Include directories
3392 IFS="${IFS}${PATH_SEPARATOR}"
3393 # SRCH_INC comes from the template file
3394 for dir in $with_includes $SRCH_INC; do
3395 if test -d "$dir"; then
3396 INCLUDES="$INCLUDES -I$dir"
3398 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3399 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3407 # Library directories
3410 IFS="${IFS}${PATH_SEPARATOR}"
3411 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3412 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3413 if test -d "$dir"; then
3414 LIBDIRS="$LIBDIRS -L$dir"
3416 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3417 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3423 # Enable thread-safe client libraries
3425 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3426 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3429 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3430 if test "${enable_thread_safety+set}" = set; then
3431 enableval="$enable_thread_safety"
3441 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3442 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3443 { (exit 1); exit 1; }; }
3448 enable_thread_safety=no
3454 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3455 if test "${enable_thread_safety_force+set}" = set; then
3456 enableval="$enable_thread_safety_force"
3466 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3467 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3468 { (exit 1); exit 1; }; }
3473 enable_thread_safety_force=no
3477 if test "$enable_thread_safety" = yes -o \
3478 "$enable_thread_safety_force" = yes; then
3479 enable_thread_safety="yes" # for 'force'
3481 cat >>confdefs.h <<\_ACEOF
3482 #define ENABLE_THREAD_SAFETY 1
3486 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3487 echo "${ECHO_T}$enable_thread_safety" >&6
3491 # Optionally build Tcl modules (PL/Tcl)
3493 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3494 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3498 # Check whether --with-tcl or --without-tcl was given.
3499 if test "${with_tcl+set}" = set; then
3510 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3511 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3512 { (exit 1); exit 1; }; }
3521 echo "$as_me:$LINENO: result: $with_tcl" >&5
3522 echo "${ECHO_T}$with_tcl" >&6
3525 # We see if the path to the Tcl/Tk configuration scripts is specified.
3526 # This will override the use of tclsh to find the paths to search.
3531 # Check whether --with-tclconfig or --without-tclconfig was given.
3532 if test "${with_tclconfig+set}" = set; then
3533 withval="$with_tclconfig"
3537 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3538 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3539 { (exit 1); exit 1; }; }
3542 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3543 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3544 { (exit 1); exit 1; }; }
3555 # Optionally build Perl modules (PL/Perl)
3557 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3558 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3562 # Check whether --with-perl or --without-perl was given.
3563 if test "${with_perl+set}" = set; then
3564 withval="$with_perl"
3574 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3575 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3576 { (exit 1); exit 1; }; }
3585 echo "$as_me:$LINENO: result: $with_perl" >&5
3586 echo "${ECHO_T}$with_perl" >&6
3590 # Optionally build Python modules (PL/Python)
3592 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3593 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3597 # Check whether --with-python or --without-python was given.
3598 if test "${with_python+set}" = set; then
3599 withval="$with_python"
3609 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3610 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3611 { (exit 1); exit 1; }; }
3620 echo "$as_me:$LINENO: result: $with_python" >&5
3621 echo "${ECHO_T}$with_python" >&6
3627 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3628 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3632 # Check whether --with-krb5 or --without-krb5 was given.
3633 if test "${with_krb5+set}" = set; then
3634 withval="$with_krb5"
3640 cat >>confdefs.h <<\_ACEOF
3644 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3651 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3652 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3653 { (exit 1); exit 1; }; }
3662 echo "$as_me:$LINENO: result: $with_krb5" >&5
3663 echo "${ECHO_T}$with_krb5" >&6
3671 # Kerberos configuration parameters
3676 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3677 if test "${with_krb_srvnam+set}" = set; then
3678 withval="$with_krb_srvnam"
3682 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3683 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3684 { (exit 1); exit 1; }; }
3687 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3688 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3689 { (exit 1); exit 1; }; }
3697 with_krb_srvnam="postgres"
3701 cat >>confdefs.h <<_ACEOF
3702 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3710 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3711 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3715 # Check whether --with-pam or --without-pam was given.
3716 if test "${with_pam+set}" = set; then
3722 cat >>confdefs.h <<\_ACEOF
3731 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3732 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3733 { (exit 1); exit 1; }; }
3742 echo "$as_me:$LINENO: result: $with_pam" >&5
3743 echo "${ECHO_T}$with_pam" >&6
3750 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3751 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3755 # Check whether --with-bonjour or --without-bonjour was given.
3756 if test "${with_bonjour+set}" = set; then
3757 withval="$with_bonjour"
3762 cat >>confdefs.h <<\_ACEOF
3763 #define USE_BONJOUR 1
3771 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3772 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3773 { (exit 1); exit 1; }; }
3782 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3783 echo "${ECHO_T}$with_bonjour" >&6
3790 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3791 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3795 # Check whether --with-openssl or --without-openssl was given.
3796 if test "${with_openssl+set}" = set; then
3797 withval="$with_openssl"
3802 cat >>confdefs.h <<\_ACEOF
3811 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3812 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3813 { (exit 1); exit 1; }; }
3822 echo "$as_me:$LINENO: result: $with_openssl" >&5
3823 echo "${ECHO_T}$with_openssl" >&6
3833 # Check whether --with-readline or --without-readline was given.
3834 if test "${with_readline+set}" = set; then
3835 withval="$with_readline"
3845 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3846 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3847 { (exit 1); exit 1; }; }
3856 # readline on MinGW has problems with backslashes in psql and other bugs.
3857 # This is particularly a problem with non-US code pages.
3858 # Therefore disable its use until we understand the cause. 2004-07-20
3859 if test "$PORTNAME" = "win32"; then
3860 if test "$with_readline" = yes; then
3861 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3862 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3874 # Check whether --with-zlib or --without-zlib was given.
3875 if test "${with_zlib+set}" = set; then
3876 withval="$with_zlib"
3886 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3887 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3888 { (exit 1); exit 1; }; }
3903 # Assume system is ELF if it predefines __ELF__ as 1,
3904 # otherwise believe host_os based default.
3906 freebsd1*|freebsd2*) elf=no;;
3907 freebsd3*|freebsd4*) elf=yes;;
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3917 then ac_cv_prog_egrep='grep -E'
3918 else ac_cv_prog_egrep='egrep'
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923 EGREP=$ac_cv_prog_egrep
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938 $EGREP "yes" >/dev/null 2>&1; then
3941 if test "X$elf" = "Xyes" ; then
3955 CPPFLAGS="$CPPFLAGS $INCLUDES"
3956 LDFLAGS="$LDFLAGS $LIBDIRS"
3958 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3959 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3960 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3961 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3965 for ac_prog in gawk mawk nawk awk
3967 # Extract the first word of "$ac_prog", so it can be a program name with args.
3968 set dummy $ac_prog; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_AWK+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$AWK"; then
3975 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_AWK="$ac_prog"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 if test -n "$AWK"; then
3995 echo "$as_me:$LINENO: result: $AWK" >&5
3996 echo "${ECHO_T}$AWK" >&6
3998 echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4002 test -n "$AWK" && break
4005 echo "$as_me:$LINENO: checking for flex" >&5
4006 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4007 if test "${pgac_cv_path_flex+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 # Let the user override the test
4011 if test -n "$FLEX"; then
4012 pgac_cv_path_flex=$FLEX
4016 for pgac_dir in $PATH; do
4018 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4021 for pgac_prog in flex lex; do
4022 pgac_candidate="$pgac_dir/$pgac_prog"
4023 if test -f "$pgac_candidate" \
4024 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4026 echo '%%' > conftest.l
4027 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4028 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4029 pgac_broken_flex=$pgac_candidate
4033 pgac_cv_path_flex=$pgac_candidate
4039 rm -f conftest.l lex.yy.c
4040 : ${pgac_cv_path_flex=no}
4044 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4045 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4046 if test x"$pgac_cv_path_flex" = x"no"; then
4047 if test -n "$pgac_broken_flex"; then
4048 { echo "$as_me:$LINENO: WARNING:
4049 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4050 *** should get version 2.5.4 or later." >&5
4051 echo "$as_me: WARNING:
4052 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4053 *** should get version 2.5.4 or later." >&2;}
4056 { echo "$as_me:$LINENO: WARNING:
4057 *** Without Flex you will not be able to build PostgreSQL from CVS or
4058 *** change any of the scanner definition files. You can obtain Flex from
4059 *** a GNU mirror site. (If you are using the official distribution of
4060 *** PostgreSQL then you do not need to worry about this because the Flex
4061 *** output is pre-generated.)" >&5
4062 echo "$as_me: WARNING:
4063 *** Without Flex you will not be able to build PostgreSQL from CVS or
4064 *** change any of the scanner definition files. You can obtain Flex from
4065 *** a GNU mirror site. (If you are using the official distribution of
4066 *** PostgreSQL then you do not need to worry about this because the Flex
4067 *** output is pre-generated.)" >&2;}
4070 if test x"$pgac_cv_path_flex" = x"no"; then
4073 FLEX=$pgac_cv_path_flex
4079 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4080 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4082 if test "$LN_S" = "ln -s"; then
4083 echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6
4086 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4087 echo "${ECHO_T}no, using $LN_S" >&6
4091 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4092 if test "${with_gnu_ld+set}" = set; then
4093 withval="$with_gnu_ld"
4094 test "$withval" = no || with_gnu_ld=yes
4099 if test "$GCC" = yes; then
4100 # Check if gcc -print-prog-name=ld gives a path.
4101 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4102 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4105 # gcc leaves a trailing carriage return which upsets mingw
4106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4111 # Accept absolute paths.
4112 [\\/]* | [A-Za-z]:[\\/]*)
4113 re_direlt='/[^/][^/]*/\.\./'
4114 # Canonicalize the path of ld
4115 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4117 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4119 test -z "$LD" && LD="$ac_prog"
4122 # If it fails, then pretend we aren't using GCC.
4126 # If it is relative, then search for the first ld in PATH.
4130 elif test "$with_gnu_ld" = yes; then
4131 echo "$as_me:$LINENO: checking for GNU ld" >&5
4132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4134 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4137 if test "${ac_cv_path_LD+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if test -z "$LD"; then
4141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4142 for ac_dir in $PATH; do
4143 test -z "$ac_dir" && ac_dir=.
4144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4145 ac_cv_path_LD="$ac_dir/$ac_prog"
4146 # Check to see if the program is GNU ld. I'd rather use --version,
4147 # but apparently some GNU ld's only accept -v.
4148 # Break only if it was the GNU/non-GNU ld that we prefer.
4149 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4150 test "$with_gnu_ld" != no && break
4152 test "$with_gnu_ld" != yes && break
4158 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4163 if test -n "$LD"; then
4164 echo "$as_me:$LINENO: result: $LD" >&5
4165 echo "${ECHO_T}$LD" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4170 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4171 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4172 { (exit 1); exit 1; }; }
4173 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4174 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4175 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4179 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4180 ac_cv_prog_gnu_ld=yes
4182 ac_cv_prog_gnu_ld=no
4185 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4186 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4187 with_gnu_ld=$ac_cv_prog_gnu_ld
4192 case $host_os in sysv5*)
4193 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4194 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4195 if test "${pgac_cv_prog_ld_R+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4200 cat >conftest.$ac_ext <<_ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4215 rm -f conftest.$ac_objext conftest$ac_exeext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 2>conftest.er1
4219 grep -v '^ *+' conftest.er1 >conftest.err
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag"
4225 || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest$ac_exeext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 pgac_cv_prog_ld_R=yes
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 pgac_cv_prog_ld_R=no
4244 rm -f conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
4246 LDFLAGS=$pgac_save_LDFLAGS
4249 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4250 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4251 ld_R_works=$pgac_cv_prog_ld_R
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4257 echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4259 if test "${ac_cv_prog_RANLIB+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 if test -n "$RANLIB"; then
4263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 RANLIB=$ac_cv_prog_RANLIB
4282 if test -n "$RANLIB"; then
4283 echo "$as_me:$LINENO: result: $RANLIB" >&5
4284 echo "${ECHO_T}$RANLIB" >&6
4286 echo "$as_me:$LINENO: result: no" >&5
4287 echo "${ECHO_T}no" >&6
4291 if test -z "$ac_cv_prog_RANLIB"; then
4292 ac_ct_RANLIB=$RANLIB
4293 # Extract the first word of "ranlib", so it can be a program name with args.
4294 set dummy ranlib; ac_word=$2
4295 echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 if test -n "$ac_ct_RANLIB"; then
4301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_ac_ct_RANLIB="ranlib"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4321 if test -n "$ac_ct_RANLIB"; then
4322 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4323 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4329 RANLIB=$ac_ct_RANLIB
4331 RANLIB="$ac_cv_prog_RANLIB"
4334 for ac_prog in lorder
4336 # Extract the first word of "$ac_prog", so it can be a program name with args.
4337 set dummy $ac_prog; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_LORDER+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$LORDER"; then
4344 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir=.
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353 ac_cv_prog_LORDER="$ac_prog"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 LORDER=$ac_cv_prog_LORDER
4363 if test -n "$LORDER"; then
4364 echo "$as_me:$LINENO: result: $LORDER" >&5
4365 echo "${ECHO_T}$LORDER" >&6
4367 echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6
4371 test -n "$LORDER" && break
4374 # Extract the first word of "tar", so it can be a program name with args.
4375 set dummy tar; ac_word=$2
4376 echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378 if test "${ac_cv_path_TAR+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 if test -n "$TAR"; then
4406 echo "$as_me:$LINENO: result: $TAR" >&5
4407 echo "${ECHO_T}$TAR" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4416 set dummy ${ac_tool_prefix}strip; ac_word=$2
4417 echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419 if test "${ac_cv_prog_STRIP+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 if test -n "$STRIP"; then
4423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 STRIP=$ac_cv_prog_STRIP
4442 if test -n "$STRIP"; then
4443 echo "$as_me:$LINENO: result: $STRIP" >&5
4444 echo "${ECHO_T}$STRIP" >&6
4446 echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6
4451 if test -z "$ac_cv_prog_STRIP"; then
4453 # Extract the first word of "strip", so it can be a program name with args.
4454 set dummy strip; ac_word=$2
4455 echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4457 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 if test -n "$ac_ct_STRIP"; then
4461 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_ac_ct_STRIP="strip"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4480 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4481 if test -n "$ac_ct_STRIP"; then
4482 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4483 echo "${ECHO_T}$ac_ct_STRIP" >&6
4485 echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4491 STRIP="$ac_cv_prog_STRIP"
4495 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4496 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4497 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4498 STRIP_STATIC_LIB="$STRIP -x"
4499 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4500 echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6
4505 echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4512 for ac_prog in 'bison -y'
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518 if test "${ac_cv_prog_YACC+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 if test -n "$YACC"; then
4522 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_YACC="$ac_prog"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 YACC=$ac_cv_prog_YACC
4541 if test -n "$YACC"; then
4542 echo "$as_me:$LINENO: result: $YACC" >&5
4543 echo "${ECHO_T}$YACC" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 test -n "$YACC" && break
4553 if test "$YACC"; then
4554 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4555 { echo "$as_me:$LINENO: WARNING:
4556 *** If you are going to modify the grammar files or build from CVS, the installed
4557 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4558 echo "$as_me: WARNING:
4559 *** If you are going to modify the grammar files or build from CVS, the installed
4560 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4564 if test -z "$YACC"; then
4565 { echo "$as_me:$LINENO: WARNING:
4566 *** Without Bison you will not be able to build PostgreSQL from CVS or
4567 *** change any of the parser definition files. You can obtain Bison from
4568 *** a GNU mirror site. (If you are using the official distribution of
4569 *** PostgreSQL then you do not need to worry about this because the Bison
4570 *** output is pre-generated.) To use a different yacc program (possible,
4571 *** but not recommended), set the environment variable YACC before running
4572 *** 'configure'." >&5
4573 echo "$as_me: WARNING:
4574 *** Without Bison you will not be able to build PostgreSQL from CVS or
4575 *** change any of the parser definition files. You can obtain Bison from
4576 *** a GNU mirror site. (If you are using the official distribution of
4577 *** PostgreSQL then you do not need to worry about this because the Bison
4578 *** output is pre-generated.) To use a different yacc program (possible,
4579 *** but not recommended), set the environment variable YACC before running
4580 *** 'configure'." >&2;}
4584 # Extract the first word of "perl", so it can be a program name with args.
4585 set dummy perl; ac_word=$2
4586 echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588 if test "${ac_cv_path_PERL+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 PERL=$ac_cv_path_PERL
4615 if test -n "$PERL"; then
4616 echo "$as_me:$LINENO: result: $PERL" >&5
4617 echo "${ECHO_T}$PERL" >&6
4619 echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4623 if test "$with_perl" = yes; then
4625 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4626 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4627 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4628 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4629 echo "${ECHO_T}$perl_archlibexp" >&6
4630 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4631 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4632 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4633 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4634 echo "${ECHO_T}$perl_privlibexp" >&6
4635 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4636 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4637 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4638 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4639 echo "${ECHO_T}$perl_useshrplib" >&6
4641 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4642 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4643 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4644 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4645 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4646 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4647 echo "${ECHO_T}$perl_embed_ldflags" >&6
4650 if test "$with_python" = yes; then
4651 # Extract the first word of "python", so it can be a program name with args.
4652 set dummy python; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_path_PYTHON+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 PYTHON=$ac_cv_path_PYTHON
4682 if test -n "$PYTHON"; then
4683 echo "$as_me:$LINENO: result: $PYTHON" >&5
4684 echo "${ECHO_T}$PYTHON" >&6
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 if test x"$PYTHON" = x""; then
4691 { { echo "$as_me:$LINENO: error: Python not found" >&5
4692 echo "$as_me: error: Python not found" >&2;}
4693 { (exit 1); exit 1; }; }
4697 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4698 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4699 if "${PYTHON}" 2>&- -c 'import distutils'
4701 echo "$as_me:$LINENO: result: yes" >&5
4702 echo "${ECHO_T}yes" >&6
4704 echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6
4706 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4707 echo "$as_me: error: distutils module not found" >&2;}
4708 { (exit 1); exit 1; }; }
4710 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4711 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4712 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4713 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')"`
4714 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4716 # This should be enough of a message.
4717 echo "$as_me:$LINENO: result: $python_configdir" >&5
4718 echo "${ECHO_T}$python_configdir" >&6
4721 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4722 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4724 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4725 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4726 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4727 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4729 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4731 # New way: use the official shared library
4732 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4733 python_libspec="-L${python_libdir} -l${ldlibrary}"
4735 # Old way: use libpython from python_configdir
4736 python_libdir="${python_configdir}"
4737 python_libspec="-L${python_libdir} -lpython${python_version}"
4740 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4742 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4743 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4753 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4756 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4757 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4758 if test "${ac_cv_lib_bsd_main+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_check_lib_save_LIBS=$LIBS
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
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_lib_bsd_main=yes
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 ac_cv_lib_bsd_main=no
4808 rm -f conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810 LIBS=$ac_check_lib_save_LIBS
4812 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4813 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4814 if test $ac_cv_lib_bsd_main = yes; then
4815 cat >>confdefs.h <<_ACEOF
4816 #define HAVE_LIBBSD 1
4825 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4826 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4827 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 ac_check_lib_save_LIBS=$LIBS
4832 cat >conftest.$ac_ext <<_ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4845 char setproctitle ();
4854 rm -f conftest.$ac_objext conftest$ac_exeext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag"
4864 || test ! -s conftest.err'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; } &&
4870 { ac_try='test -s conftest$ac_exeext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_lib_util_setproctitle=yes
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cv_lib_util_setproctitle=no
4883 rm -f conftest.err conftest.$ac_objext \
4884 conftest$ac_exeext conftest.$ac_ext
4885 LIBS=$ac_check_lib_save_LIBS
4887 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4888 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4889 if test $ac_cv_lib_util_setproctitle = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define HAVE_LIBUTIL 1
4899 echo "$as_me:$LINENO: checking for main in -lm" >&5
4900 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4901 if test "${ac_cv_lib_m_main+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_check_lib_save_LIBS=$LIBS
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4922 rm -f conftest.$ac_objext conftest$ac_exeext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4924 (eval $ac_link) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -z "$ac_c_werror_flag"
4932 || test ! -s conftest.err'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_lib_m_main=yes
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f conftest.err conftest.$ac_objext \
4952 conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4955 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4956 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4957 if test $ac_cv_lib_m_main = yes; then
4958 cat >>confdefs.h <<_ACEOF
4967 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4968 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4969 if test "${ac_cv_lib_dl_main+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_check_lib_save_LIBS=$LIBS
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4990 rm -f conftest.$ac_objext conftest$ac_exeext
4991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4992 (eval $ac_link) 2>conftest.er1
4994 grep -v '^ *+' conftest.er1 >conftest.err
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } &&
4999 { ac_try='test -z "$ac_c_werror_flag"
5000 || test ! -s conftest.err'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; } &&
5006 { ac_try='test -s conftest$ac_exeext'
5007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; }; then
5012 ac_cv_lib_dl_main=yes
5014 echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5017 ac_cv_lib_dl_main=no
5019 rm -f conftest.err conftest.$ac_objext \
5020 conftest$ac_exeext conftest.$ac_ext
5021 LIBS=$ac_check_lib_save_LIBS
5023 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5024 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5025 if test $ac_cv_lib_dl_main = yes; then
5026 cat >>confdefs.h <<_ACEOF
5027 #define HAVE_LIBDL 1
5035 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5036 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5037 if test "${ac_cv_lib_nsl_main+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 ac_check_lib_save_LIBS=$LIBS
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5058 rm -f conftest.$ac_objext conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>conftest.er1
5062 grep -v '^ *+' conftest.er1 >conftest.err
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_cv_lib_nsl_main=yes
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5085 ac_cv_lib_nsl_main=no
5087 rm -f conftest.err conftest.$ac_objext \
5088 conftest$ac_exeext conftest.$ac_ext
5089 LIBS=$ac_check_lib_save_LIBS
5091 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5092 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5093 if test $ac_cv_lib_nsl_main = yes; then
5094 cat >>confdefs.h <<_ACEOF
5095 #define HAVE_LIBNSL 1
5103 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5104 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5105 if test "${ac_cv_lib_socket_main+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 ac_check_lib_save_LIBS=$LIBS
5109 LIBS="-lsocket $LIBS"
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_lib_socket_main=yes
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5153 ac_cv_lib_socket_main=no
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5159 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5160 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5161 if test $ac_cv_lib_socket_main = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBSOCKET 1
5166 LIBS="-lsocket $LIBS"
5171 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5172 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5173 if test "${ac_cv_lib_ipc_main+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 ac_check_lib_save_LIBS=$LIBS
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5194 rm -f conftest.$ac_objext conftest$ac_exeext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5196 (eval $ac_link) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1 >conftest.err
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest$ac_exeext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_lib_ipc_main=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 ac_cv_lib_ipc_main=no
5223 rm -f conftest.err conftest.$ac_objext \
5224 conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5228 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5229 if test $ac_cv_lib_ipc_main = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define HAVE_LIBIPC 1
5239 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5240 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5241 if test "${ac_cv_lib_IPC_main+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5246 cat >conftest.$ac_ext <<_ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_lib_IPC_main=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_cv_lib_IPC_main=no
5291 rm -f conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5296 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5297 if test $ac_cv_lib_IPC_main = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_LIBIPC 1
5307 echo "$as_me:$LINENO: checking for main in -llc" >&5
5308 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5309 if test "${ac_cv_lib_lc_main+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 ac_check_lib_save_LIBS=$LIBS
5314 cat >conftest.$ac_ext <<_ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5330 rm -f conftest.$ac_objext conftest$ac_exeext
5331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332 (eval $ac_link) 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest$ac_exeext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
5352 ac_cv_lib_lc_main=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_cv_lib_lc_main=no
5359 rm -f conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
5361 LIBS=$ac_check_lib_save_LIBS
5363 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5364 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5365 if test $ac_cv_lib_lc_main = yes; then
5366 cat >>confdefs.h <<_ACEOF
5367 #define HAVE_LIBLC 1
5375 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5376 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5377 if test "${ac_cv_lib_dld_main+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 ac_check_lib_save_LIBS=$LIBS
5382 cat >conftest.$ac_ext <<_ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_lib_dld_main=yes
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5425 ac_cv_lib_dld_main=no
5427 rm -f conftest.err conftest.$ac_objext \
5428 conftest$ac_exeext conftest.$ac_ext
5429 LIBS=$ac_check_lib_save_LIBS
5431 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5432 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5433 if test $ac_cv_lib_dld_main = yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define HAVE_LIBDLD 1
5443 echo "$as_me:$LINENO: checking for main in -lld" >&5
5444 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5445 if test "${ac_cv_lib_ld_main+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_check_lib_save_LIBS=$LIBS
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5468 (eval $ac_link) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest$ac_exeext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_cv_lib_ld_main=yes
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_lib_ld_main=no
5495 rm -f conftest.err conftest.$ac_objext \
5496 conftest$ac_exeext conftest.$ac_ext
5497 LIBS=$ac_check_lib_save_LIBS
5499 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5500 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5501 if test $ac_cv_lib_ld_main = yes; then
5502 cat >>confdefs.h <<_ACEOF
5503 #define HAVE_LIBLD 1
5511 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5512 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5513 if test "${ac_cv_lib_compat_main+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-lcompat $LIBS"
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_lib_compat_main=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5561 ac_cv_lib_compat_main=no
5563 rm -f conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5567 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5568 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5569 if test $ac_cv_lib_compat_main = yes; then
5570 cat >>confdefs.h <<_ACEOF
5571 #define HAVE_LIBCOMPAT 1
5574 LIBS="-lcompat $LIBS"
5579 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5580 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5581 if test "${ac_cv_lib_BSD_main+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_check_lib_save_LIBS=$LIBS
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -z "$ac_c_werror_flag"
5612 || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try='test -s conftest$ac_exeext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_lib_BSD_main=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 ac_cv_lib_BSD_main=no
5631 rm -f conftest.err conftest.$ac_objext \
5632 conftest$ac_exeext conftest.$ac_ext
5633 LIBS=$ac_check_lib_save_LIBS
5635 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5636 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5637 if test $ac_cv_lib_BSD_main = yes; then
5638 cat >>confdefs.h <<_ACEOF
5639 #define HAVE_LIBBSD 1
5647 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5648 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5649 if test "${ac_cv_lib_gen_main+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 ac_check_lib_save_LIBS=$LIBS
5654 cat >conftest.$ac_ext <<_ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5670 rm -f conftest.$ac_objext conftest$ac_exeext
5671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5672 (eval $ac_link) 2>conftest.er1
5674 grep -v '^ *+' conftest.er1 >conftest.err
5676 cat conftest.err >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } &&
5679 { ac_try='test -z "$ac_c_werror_flag"
5680 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest$ac_exeext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5692 ac_cv_lib_gen_main=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_lib_gen_main=no
5699 rm -f conftest.err conftest.$ac_objext \
5700 conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5704 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5705 if test $ac_cv_lib_gen_main = yes; then
5706 cat >>confdefs.h <<_ACEOF
5707 #define HAVE_LIBGEN 1
5715 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5716 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5717 if test "${ac_cv_lib_PW_main+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 ac_check_lib_save_LIBS=$LIBS
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>conftest.er1
5742 grep -v '^ *+' conftest.er1 >conftest.err
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
5747 { ac_try='test -z "$ac_c_werror_flag"
5748 || test ! -s conftest.err'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest$ac_exeext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_cv_lib_PW_main=yes
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5765 ac_cv_lib_PW_main=no
5767 rm -f conftest.err conftest.$ac_objext \
5768 conftest$ac_exeext conftest.$ac_ext
5769 LIBS=$ac_check_lib_save_LIBS
5771 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5772 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5773 if test $ac_cv_lib_PW_main = yes; then
5774 cat >>confdefs.h <<_ACEOF
5775 #define HAVE_LIBPW 1
5783 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5784 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5785 if test "${ac_cv_lib_resolv_main+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 ac_check_lib_save_LIBS=$LIBS
5789 LIBS="-lresolv $LIBS"
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5806 rm -f conftest.$ac_objext conftest$ac_exeext
5807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5808 (eval $ac_link) 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_c_werror_flag"
5816 || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try='test -s conftest$ac_exeext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_cv_lib_resolv_main=yes
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 ac_cv_lib_resolv_main=no
5835 rm -f conftest.err conftest.$ac_objext \
5836 conftest$ac_exeext conftest.$ac_ext
5837 LIBS=$ac_check_lib_save_LIBS
5839 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5840 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5841 if test $ac_cv_lib_resolv_main = yes; then
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LIBRESOLV 1
5846 LIBS="-lresolv $LIBS"
5850 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5851 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5852 if test "${ac_cv_search_getopt_long+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_func_search_save_LIBS=$LIBS
5856 ac_cv_search_getopt_long=no
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5864 /* Override any gcc2 internal prototype to avoid an error. */
5868 /* We use char because int might match the return type of a gcc2
5869 builtin and then its argument prototype would still apply. */
5870 char getopt_long ();
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>conftest.er1
5883 grep -v '^ *+' conftest.er1 >conftest.err
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag"
5889 || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 ac_cv_search_getopt_long="none required"
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5907 rm -f conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5909 if test "$ac_cv_search_getopt_long" = no; then
5910 for ac_lib in getopt gnugetopt; do
5911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5919 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5925 char getopt_long ();
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>conftest.er1
5938 grep -v '^ *+' conftest.er1 >conftest.err
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag"
5944 || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 ac_cv_search_getopt_long="-l$ac_lib"
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5963 rm -f conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_func_search_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5970 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5971 if test "$ac_cv_search_getopt_long" != no; then
5972 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5978 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5979 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5980 if test "${ac_cv_lib_unix_main+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 ac_check_lib_save_LIBS=$LIBS
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6003 (eval $ac_link) 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -z "$ac_c_werror_flag"
6011 || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest$ac_exeext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 ac_cv_lib_unix_main=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6028 ac_cv_lib_unix_main=no
6030 rm -f conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 LIBS=$ac_check_lib_save_LIBS
6034 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6035 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6036 if test $ac_cv_lib_unix_main = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_LIBUNIX 1
6045 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6046 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6047 if test "${ac_cv_search_crypt+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_func_search_save_LIBS=$LIBS
6051 ac_cv_search_crypt=no
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_search_crypt="none required"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.err conftest.$ac_objext \
6103 conftest$ac_exeext conftest.$ac_ext
6104 if test "$ac_cv_search_crypt" = no; then
6105 for ac_lib in crypt; do
6106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6114 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag"
6139 || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest$ac_exeext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_search_crypt="-l$ac_lib"
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6158 rm -f conftest.err conftest.$ac_objext \
6159 conftest$ac_exeext conftest.$ac_ext
6162 LIBS=$ac_func_search_save_LIBS
6164 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6165 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6166 if test "$ac_cv_search_crypt" != no; then
6167 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6172 if test "$PORTNAME" = "beos"
6175 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6176 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6177 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 ac_check_lib_save_LIBS=$LIBS
6182 cat >conftest.$ac_ext <<_ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6189 /* Override any gcc2 internal prototype to avoid an error. */
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char __inet_ntoa ();
6204 rm -f conftest.$ac_objext conftest$ac_exeext
6205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6206 (eval $ac_link) 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -z "$ac_c_werror_flag"
6214 || test ! -s conftest.err'
6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_lib_bind___inet_ntoa=yes
6228 echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6231 ac_cv_lib_bind___inet_ntoa=no
6233 rm -f conftest.err conftest.$ac_objext \
6234 conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6237 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6238 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6239 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6240 cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LIBBIND 1
6250 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6251 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6252 if test "${ac_cv_search_fdatasync+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_func_search_save_LIBS=$LIBS
6256 ac_cv_search_fdatasync=no
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281 (eval $ac_link) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag"
6289 || test ! -s conftest.err'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; } &&
6295 { ac_try='test -s conftest$ac_exeext'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 ac_cv_search_fdatasync="none required"
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6307 rm -f conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6309 if test "$ac_cv_search_fdatasync" = no; then
6310 for ac_lib in rt posix4; do
6311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6312 cat >conftest.$ac_ext <<_ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6319 /* Override any gcc2 internal prototype to avoid an error. */
6323 /* We use char because int might match the return type of a gcc2
6324 builtin and then its argument prototype would still apply. */
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6336 (eval $ac_link) 2>conftest.er1
6338 grep -v '^ *+' conftest.er1 >conftest.err
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } &&
6343 { ac_try='test -z "$ac_c_werror_flag"
6344 || test ! -s conftest.err'
6345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_search_fdatasync="-l$ac_lib"
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6363 rm -f conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6367 LIBS=$ac_func_search_save_LIBS
6369 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6370 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6371 if test "$ac_cv_search_fdatasync" != no; then
6372 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6378 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6379 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6380 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_check_lib_save_LIBS=$LIBS
6384 LIBS="-lcygipc $LIBS"
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6392 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest$ac_exeext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_lib_cygipc_shmget=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_lib_cygipc_shmget=no
6436 rm -f conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6440 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6441 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6442 if test $ac_cv_lib_cygipc_shmget = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_LIBCYGIPC 1
6447 LIBS="-lcygipc $LIBS"
6452 if test "$PORTNAME" = "win32"
6455 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
6456 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
6457 if test "${ac_cv_lib_wsock32_main+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_check_lib_save_LIBS=$LIBS
6461 LIBS="-lwsock32 $LIBS"
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6478 rm -f conftest.$ac_objext conftest$ac_exeext
6479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480 (eval $ac_link) 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
6487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest$ac_exeext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6500 ac_cv_lib_wsock32_main=yes
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_cv_lib_wsock32_main=no
6507 rm -f conftest.err conftest.$ac_objext \
6508 conftest$ac_exeext conftest.$ac_ext
6509 LIBS=$ac_check_lib_save_LIBS
6511 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
6512 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
6513 if test $ac_cv_lib_wsock32_main = yes; then
6514 cat >>confdefs.h <<_ACEOF
6515 #define HAVE_LIBWSOCK32 1
6518 LIBS="-lwsock32 $LIBS"
6524 if test "$with_readline" = yes; then
6526 echo "$as_me:$LINENO: checking for readline" >&5
6527 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6529 if test "${pgac_cv_check_readline+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 pgac_cv_check_readline=no
6533 pgac_save_LIBS=$LIBS
6534 for pgac_rllib in -lreadline -ledit ; do
6535 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6536 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6544 /* Override any gcc2 internal prototype to avoid an error. */
6548 /* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6582 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6583 # recognize dependent libraries; assume curses is needed if we didn't
6584 # find any dependency.
6586 netbsd* | openbsd* | irix*)
6587 if test x"$pgac_lib" = x"" ; then
6588 pgac_lib=" -lcurses"
6592 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6600 rm -f conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6604 LIBS=$pgac_save_LIBS
6608 if test "$pgac_cv_check_readline" != no ; then
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_LIBREADLINE 1
6614 LIBS="$pgac_cv_check_readline $LIBS"
6615 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6616 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6618 echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6621 if test x"$pgac_cv_check_readline" = x"no"; then
6622 { { echo "$as_me:$LINENO: error: readline library not found
6623 If you have readline already installed, see config.log for details on the
6624 failure. It is possible the compiler isn't looking in the proper directory.
6625 Use --without-readline to disable readline support." >&5
6626 echo "$as_me: error: readline library not found
6627 If you have readline already installed, see config.log for details on the
6628 failure. It is possible the compiler isn't looking in the proper directory.
6629 Use --without-readline to disable readline support." >&2;}
6630 { (exit 1); exit 1; }; }
6634 if test "$with_zlib" = yes; then
6636 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6637 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6638 if test "${ac_cv_lib_z_inflate+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 ac_check_lib_save_LIBS=$LIBS
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6654 /* We use char because int might match the return type of a gcc2
6655 builtin and then its argument prototype would still apply. */
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>conftest.er1
6669 grep -v '^ *+' conftest.er1 >conftest.err
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_lib_z_inflate=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_cv_lib_z_inflate=no
6694 rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 LIBS=$ac_check_lib_save_LIBS
6698 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6699 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6700 if test $ac_cv_lib_z_inflate = yes; then
6701 cat >>confdefs.h <<_ACEOF
6708 { { echo "$as_me:$LINENO: error: zlib library not found
6709 If you have zlib already installed, see config.log for details on the
6710 failure. It is possible the compiler isn't looking in the proper directory.
6711 Use --without-zlib to disable zlib support." >&5
6712 echo "$as_me: error: zlib library not found
6713 If you have zlib already installed, see config.log for details on the
6714 failure. It is possible the compiler isn't looking in the proper directory.
6715 Use --without-zlib to disable zlib support." >&2;}
6716 { (exit 1); exit 1; }; }
6721 if test "$enable_spinlocks" = yes; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_SPINLOCKS 1
6728 { echo "$as_me:$LINENO: WARNING:
6729 *** Not using spinlocks will cause poor performance." >&5
6730 echo "$as_me: WARNING:
6731 *** Not using spinlocks will cause poor performance." >&2;}
6734 if test "$with_krb5" = yes ; then
6735 if test "$PORTNAME" != "win32"; then
6736 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6737 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6738 if test "${ac_cv_search_com_err+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 ac_func_search_save_LIBS=$LIBS
6742 ac_cv_search_com_err=no
6743 cat >conftest.$ac_ext <<_ACEOF
6746 cat confdefs.h >>conftest.$ac_ext
6747 cat >>conftest.$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_com_err="none required"
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6793 rm -f conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 if test "$ac_cv_search_com_err" = no; then
6796 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6805 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822 (eval $ac_link) 2>conftest.er1
6824 grep -v '^ *+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag"
6830 || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_search_com_err="-l$ac_lib"
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6853 LIBS=$ac_func_search_save_LIBS
6855 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6856 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6857 if test "$ac_cv_search_com_err" != no; then
6858 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6861 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6862 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6863 { (exit 1); exit 1; }; }
6866 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6867 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6868 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 ac_func_search_save_LIBS=$LIBS
6872 ac_cv_search_krb5_encrypt=no
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6880 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6886 char krb5_encrypt ();
6895 rm -f conftest.$ac_objext conftest$ac_exeext
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897 (eval $ac_link) 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_search_krb5_encrypt="none required"
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6923 rm -f conftest.err conftest.$ac_objext \
6924 conftest$ac_exeext conftest.$ac_ext
6925 if test "$ac_cv_search_krb5_encrypt" = no; then
6926 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6928 cat >conftest.$ac_ext <<_ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6935 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6941 char krb5_encrypt ();
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6952 (eval $ac_link) 2>conftest.er1
6954 grep -v '^ *+' conftest.er1 >conftest.err
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest$ac_exeext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_search_krb5_encrypt="-l$ac_lib"
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6979 rm -f conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6983 LIBS=$ac_func_search_save_LIBS
6985 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6986 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6987 if test "$ac_cv_search_krb5_encrypt" != no; then
6988 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6991 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6992 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6993 { (exit 1); exit 1; }; }
6996 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6997 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6998 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_func_search_save_LIBS=$LIBS
7002 ac_cv_search_krb5_sendauth=no
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 krb5_sendauth ();
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_search_krb5_sendauth="none required"
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7055 if test "$ac_cv_search_krb5_sendauth" = no; then
7056 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7065 /* Override any gcc2 internal prototype to avoid an error. */
7069 /* We use char because int might match the return type of a gcc2
7070 builtin and then its argument prototype would still apply. */
7071 char krb5_sendauth ();
7080 rm -f conftest.$ac_objext conftest$ac_exeext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7082 (eval $ac_link) 2>conftest.er1
7084 grep -v '^ *+' conftest.er1 >conftest.err
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } &&
7089 { ac_try='test -z "$ac_c_werror_flag"
7090 || test ! -s conftest.err'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_search_krb5_sendauth="-l$ac_lib"
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 rm -f conftest.err conftest.$ac_objext \
7110 conftest$ac_exeext conftest.$ac_ext
7113 LIBS=$ac_func_search_save_LIBS
7115 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7116 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7117 if test "$ac_cv_search_krb5_sendauth" != no; then
7118 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7121 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7122 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7123 { (exit 1); exit 1; }; }
7127 echo "$as_me:$LINENO: checking for library containing com_err" >&5
7128 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7129 if test "${ac_cv_search_com_err+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 ac_func_search_save_LIBS=$LIBS
7133 ac_cv_search_com_err=no
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7141 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7158 (eval $ac_link) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_cv_search_com_err="none required"
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7184 rm -f conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 if test "$ac_cv_search_com_err" = no; then
7187 for ac_lib in 'comerr32 -lkrb5_32'; do
7188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7196 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7215 grep -v '^ *+' conftest.er1 >conftest.err
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
7220 { ac_try='test -z "$ac_c_werror_flag"
7221 || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest$ac_exeext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 ac_cv_search_com_err="-l$ac_lib"
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7240 rm -f conftest.err conftest.$ac_objext \
7241 conftest$ac_exeext conftest.$ac_ext
7244 LIBS=$ac_func_search_save_LIBS
7246 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7247 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7248 if test "$ac_cv_search_com_err" != no; then
7249 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7252 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7253 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7254 { (exit 1); exit 1; }; }
7260 if test "$with_openssl" = yes ; then
7261 if test "$PORTNAME" != "win32"; then
7263 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7264 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7265 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_check_lib_save_LIBS=$LIBS
7269 LIBS="-lcrypto $LIBS"
7270 cat >conftest.$ac_ext <<_ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7277 /* Override any gcc2 internal prototype to avoid an error. */
7281 /* We use char because int might match the return type of a gcc2
7282 builtin and then its argument prototype would still apply. */
7283 char CRYPTO_new_ex_data ();
7287 CRYPTO_new_ex_data ();
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294 (eval $ac_link) 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } &&
7301 { ac_try='test -z "$ac_c_werror_flag"
7302 || test ! -s conftest.err'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; } &&
7308 { ac_try='test -s conftest$ac_exeext'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; }; then
7314 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7321 rm -f conftest.err conftest.$ac_objext \
7322 conftest$ac_exeext conftest.$ac_ext
7323 LIBS=$ac_check_lib_save_LIBS
7325 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7326 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7327 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_LIBCRYPTO 1
7332 LIBS="-lcrypto $LIBS"
7335 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7336 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7337 { (exit 1); exit 1; }; }
7341 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7342 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7343 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_check_lib_save_LIBS=$LIBS
7348 cat >conftest.$ac_ext <<_ACEOF
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7355 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7361 char SSL_library_init ();
7365 SSL_library_init ();
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372 (eval $ac_link) 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -z "$ac_c_werror_flag"
7380 || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_lib_ssl_SSL_library_init=yes
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7397 ac_cv_lib_ssl_SSL_library_init=no
7399 rm -f conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
7401 LIBS=$ac_check_lib_save_LIBS
7403 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7404 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7405 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7406 cat >>confdefs.h <<_ACEOF
7407 #define HAVE_LIBSSL 1
7413 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7414 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7415 { (exit 1); exit 1; }; }
7420 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7421 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7422 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 ac_check_lib_save_LIBS=$LIBS
7426 LIBS="-leay32 $LIBS"
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7434 /* Override any gcc2 internal prototype to avoid an error. */
7438 /* We use char because int might match the return type of a gcc2
7439 builtin and then its argument prototype would still apply. */
7440 char CRYPTO_new_ex_data ();
7444 CRYPTO_new_ex_data ();
7449 rm -f conftest.$ac_objext conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451 (eval $ac_link) 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_exeext'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7478 rm -f conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
7480 LIBS=$ac_check_lib_save_LIBS
7482 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7483 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7484 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define HAVE_LIBEAY32 1
7489 LIBS="-leay32 $LIBS"
7492 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7493 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7494 { (exit 1); exit 1; }; }
7498 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7499 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7500 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 ac_check_lib_save_LIBS=$LIBS
7504 LIBS="-lssleay32 $LIBS"
7505 cat >conftest.$ac_ext <<_ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h. */
7512 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7518 char SSL_library_init ();
7522 SSL_library_init ();
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7529 (eval $ac_link) 2>conftest.er1
7531 grep -v '^ *+' conftest.er1 >conftest.err
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -z "$ac_c_werror_flag"
7537 || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_lib_ssleay32_SSL_library_init=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_lib_ssleay32_SSL_library_init=no
7556 rm -f conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7561 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7562 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_LIBSSLEAY32 1
7567 LIBS="-lssleay32 $LIBS"
7570 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7571 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7572 { (exit 1); exit 1; }; }
7578 if test "$with_pam" = yes ; then
7580 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7581 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7582 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 ac_check_lib_save_LIBS=$LIBS
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7594 /* Override any gcc2 internal prototype to avoid an error. */
7598 /* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7609 rm -f conftest.$ac_objext conftest$ac_exeext
7610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7611 (eval $ac_link) 2>conftest.er1
7613 grep -v '^ *+' conftest.er1 >conftest.err
7615 cat conftest.err >&5
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -z "$ac_c_werror_flag"
7619 || test ! -s conftest.err'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; } &&
7625 { ac_try='test -s conftest$ac_exeext'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; }; then
7631 ac_cv_lib_pam_pam_start=yes
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_cv_lib_pam_pam_start=no
7638 rm -f conftest.err conftest.$ac_objext \
7639 conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS
7642 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7643 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7644 if test $ac_cv_lib_pam_pam_start = yes; then
7645 cat >>confdefs.h <<_ACEOF
7646 #define HAVE_LIBPAM 1
7652 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7653 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7654 { (exit 1); exit 1; }; }
7664 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7666 if test "${ac_cv_header_stdc+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7688 rm -f conftest.$ac_objext
7689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7690 (eval $ac_compile) 2>conftest.er1
7692 grep -v '^ *+' conftest.er1 >conftest.err
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -z "$ac_c_werror_flag"
7698 || test ! -s conftest.err'
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_header_stdc=yes
7712 echo "$as_me: failed program was:" >&5
7713 sed 's/^/| /' conftest.$ac_ext >&5
7715 ac_cv_header_stdc=no
7717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7719 if test $ac_cv_header_stdc = yes; then
7720 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7731 $EGREP "memchr" >/dev/null 2>&1; then
7734 ac_cv_header_stdc=no
7740 if test $ac_cv_header_stdc = yes; then
7741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "free" >/dev/null 2>&1; then
7755 ac_cv_header_stdc=no
7761 if test $ac_cv_header_stdc = yes; then
7762 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7763 if test "$cross_compiling" = yes; then
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 #if ((' ' & 0x0FF) == 0x020)
7774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7777 # define ISLOWER(c) \
7778 (('a' <= (c) && (c) <= 'i') \
7779 || ('j' <= (c) && (c) <= 'r') \
7780 || ('s' <= (c) && (c) <= 'z'))
7781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7789 for (i = 0; i < 256; i++)
7790 if (XOR (islower (i), ISLOWER (i))
7791 || toupper (i) != TOUPPER (i))
7796 rm -f conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); }; }; then
7809 echo "$as_me: program exited with status $ac_status" >&5
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7814 ac_cv_header_stdc=no
7816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7820 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7821 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7822 if test $ac_cv_header_stdc = yes; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define STDC_HEADERS 1
7830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7841 inttypes.h stdint.h unistd.h
7843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7844 echo "$as_me:$LINENO: checking for $ac_header" >&5
7845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 $ac_includes_default
7857 #include <$ac_header>
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest.$ac_objext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_Header=yes"
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 eval "$as_ac_Header=no"
7888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7927 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
7929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931 echo "$as_me:$LINENO: checking for $ac_header" >&5
7932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939 # Is the header compilable?
7940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 $ac_includes_default
7949 #include <$ac_header>
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_header_compiler=yes
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7978 ac_header_compiler=no
7980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7982 echo "${ECHO_T}$ac_header_compiler" >&6
7984 # Is the header present?
7985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 #include <$ac_header>
7995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7998 grep -v '^ *+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } >/dev/null; then
8003 if test -s conftest.err; then
8004 ac_cpp_err=$ac_c_preproc_warn_flag
8005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8012 if test -z "$ac_cpp_err"; then
8013 ac_header_preproc=yes
8015 echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8018 ac_header_preproc=no
8020 rm -f conftest.err conftest.$ac_ext
8021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8022 echo "${ECHO_T}$ac_header_preproc" >&6
8024 # So? What about this header?
8025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8031 ac_header_preproc=yes
8034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8048 ## ---------------------------------------- ##
8049 ## Report this to pgsql-bugs@postgresql.org ##
8050 ## ---------------------------------------- ##
8053 sed "s/^/$as_me: WARNING: /" >&2
8056 echo "$as_me:$LINENO: checking for $ac_header" >&5
8057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 eval "$as_ac_Header=\$ac_header_preproc"
8063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8068 cat >>confdefs.h <<_ACEOF
8069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8077 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8078 # netinet/in.h is included first.
8080 for ac_header in netinet/in.h
8082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8084 echo "$as_me:$LINENO: checking for $ac_header" >&5
8085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8092 # Is the header compilable?
8093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #include <$ac_header>
8104 rm -f conftest.$ac_objext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106 (eval $ac_compile) 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -z "$ac_c_werror_flag"
8114 || test ! -s conftest.err'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 ac_header_compiler=yes
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 ac_header_compiler=no
8133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8135 echo "${ECHO_T}$ac_header_compiler" >&6
8137 # Is the header present?
8138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 #include <$ac_header>
8148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } >/dev/null; then
8156 if test -s conftest.err; then
8157 ac_cpp_err=$ac_c_preproc_warn_flag
8158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8165 if test -z "$ac_cpp_err"; then
8166 ac_header_preproc=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_header_preproc=no
8173 rm -f conftest.err conftest.$ac_ext
8174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8175 echo "${ECHO_T}$ac_header_preproc" >&6
8177 # So? What about this header?
8178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8184 ac_header_preproc=yes
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8201 ## ---------------------------------------- ##
8202 ## Report this to pgsql-bugs@postgresql.org ##
8203 ## ---------------------------------------- ##
8206 sed "s/^/$as_me: WARNING: /" >&2
8209 echo "$as_me:$LINENO: checking for $ac_header" >&5
8210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 eval "$as_ac_Header=\$ac_header_preproc"
8216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8221 cat >>confdefs.h <<_ACEOF
8222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 for ac_header in netinet/tcp.h
8232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8233 echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 cat >conftest.$ac_ext <<_ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 $ac_includes_default
8245 #ifdef HAVE_NETINET_IN_H
8246 #include <netinet/in.h>
8250 #include <$ac_header>
8252 rm -f conftest.$ac_objext
8253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8254 (eval $ac_compile) 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_c_werror_flag"
8262 || test ! -s conftest.err'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; } &&
8268 { ac_try='test -s conftest.$ac_objext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 eval "$as_ac_Header=yes"
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 eval "$as_ac_Header=no"
8281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8286 cat >>confdefs.h <<_ACEOF
8287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8295 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8297 for ac_header in readline/readline.h
8299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301 echo "$as_me:$LINENO: checking for $ac_header" >&5
8302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8309 # Is the header compilable?
8310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 $ac_includes_default
8319 #include <$ac_header>
8321 rm -f conftest.$ac_objext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag"
8331 || test ! -s conftest.err'
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; } &&
8337 { ac_try='test -s conftest.$ac_objext'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_header_compiler=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_header_compiler=no
8350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8352 echo "${ECHO_T}$ac_header_compiler" >&6
8354 # Is the header present?
8355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <$ac_header>
8365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } >/dev/null; then
8373 if test -s conftest.err; then
8374 ac_cpp_err=$ac_c_preproc_warn_flag
8375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8382 if test -z "$ac_cpp_err"; then
8383 ac_header_preproc=yes
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_header_preproc=no
8390 rm -f conftest.err conftest.$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8392 echo "${ECHO_T}$ac_header_preproc" >&6
8394 # So? What about this header?
8395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8401 ac_header_preproc=yes
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8418 ## ---------------------------------------- ##
8419 ## Report this to pgsql-bugs@postgresql.org ##
8420 ## ---------------------------------------- ##
8423 sed "s/^/$as_me: WARNING: /" >&2
8426 echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 eval "$as_ac_Header=\$ac_header_preproc"
8433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8444 for ac_header in readline.h
8446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8448 echo "$as_me:$LINENO: checking for $ac_header" >&5
8449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8456 # Is the header compilable?
8457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #include <$ac_header>
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470 (eval $ac_compile) 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -z "$ac_c_werror_flag"
8478 || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest.$ac_objext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_header_compiler=yes
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_header_compiler=no
8497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8499 echo "${ECHO_T}$ac_header_compiler" >&6
8501 # Is the header present?
8502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8504 cat >conftest.$ac_ext <<_ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510 #include <$ac_header>
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } >/dev/null; then
8520 if test -s conftest.err; then
8521 ac_cpp_err=$ac_c_preproc_warn_flag
8522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8529 if test -z "$ac_cpp_err"; then
8530 ac_header_preproc=yes
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 ac_header_preproc=no
8537 rm -f conftest.err conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8539 echo "${ECHO_T}$ac_header_preproc" >&6
8541 # So? What about this header?
8542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8548 ac_header_preproc=yes
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8565 ## ---------------------------------------- ##
8566 ## Report this to pgsql-bugs@postgresql.org ##
8567 ## ---------------------------------------- ##
8570 sed "s/^/$as_me: WARNING: /" >&2
8573 echo "$as_me:$LINENO: checking for $ac_header" >&5
8574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 eval "$as_ac_Header=\$ac_header_preproc"
8580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8585 cat >>confdefs.h <<_ACEOF
8586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8590 { { echo "$as_me:$LINENO: error: readline header not found
8591 If you have readline already installed, see config.log for details on the
8592 failure. It is possible the compiler isn't looking in the proper directory.
8593 Use --without-readline to disable readline support." >&5
8594 echo "$as_me: error: readline header not found
8595 If you have readline already installed, see config.log for details on the
8596 failure. It is possible the compiler isn't looking in the proper directory.
8597 Use --without-readline to disable readline support." >&2;}
8598 { (exit 1); exit 1; }; }
8608 for ac_header in readline/history.h
8610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8612 echo "$as_me:$LINENO: checking for $ac_header" >&5
8613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620 # Is the header compilable?
8621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 $ac_includes_default
8630 #include <$ac_header>
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>conftest.er1
8636 grep -v '^ *+' conftest.er1 >conftest.err
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 ac_header_compiler=no
8661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663 echo "${ECHO_T}$ac_header_compiler" >&6
8665 # Is the header present?
8666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8668 cat >conftest.$ac_ext <<_ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <$ac_header>
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1 >conftest.err
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null; then
8684 if test -s conftest.err; then
8685 ac_cpp_err=$ac_c_preproc_warn_flag
8686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 if test -z "$ac_cpp_err"; then
8694 ac_header_preproc=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_header_preproc=no
8701 rm -f conftest.err conftest.$ac_ext
8702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703 echo "${ECHO_T}$ac_header_preproc" >&6
8705 # So? What about this header?
8706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8712 ac_header_preproc=yes
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8729 ## ---------------------------------------- ##
8730 ## Report this to pgsql-bugs@postgresql.org ##
8731 ## ---------------------------------------- ##
8734 sed "s/^/$as_me: WARNING: /" >&2
8737 echo "$as_me:$LINENO: checking for $ac_header" >&5
8738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 eval "$as_ac_Header=\$ac_header_preproc"
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755 for ac_header in history.h
8757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8759 echo "$as_me:$LINENO: checking for $ac_header" >&5
8760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8767 # Is the header compilable?
8768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 #include <$ac_header>
8779 rm -f conftest.$ac_objext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8781 (eval $ac_compile) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 ac_header_compiler=yes
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 ac_header_compiler=no
8808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8810 echo "${ECHO_T}$ac_header_compiler" >&6
8812 # Is the header present?
8813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821 #include <$ac_header>
8823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } >/dev/null; then
8831 if test -s conftest.err; then
8832 ac_cpp_err=$ac_c_preproc_warn_flag
8833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8840 if test -z "$ac_cpp_err"; then
8841 ac_header_preproc=yes
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_header_preproc=no
8848 rm -f conftest.err conftest.$ac_ext
8849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8850 echo "${ECHO_T}$ac_header_preproc" >&6
8852 # So? What about this header?
8853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8859 ac_header_preproc=yes
8862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8876 ## ---------------------------------------- ##
8877 ## Report this to pgsql-bugs@postgresql.org ##
8878 ## ---------------------------------------- ##
8881 sed "s/^/$as_me: WARNING: /" >&2
8884 echo "$as_me:$LINENO: checking for $ac_header" >&5
8885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 eval "$as_ac_Header=\$ac_header_preproc"
8891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8896 cat >>confdefs.h <<_ACEOF
8897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8901 { { echo "$as_me:$LINENO: error: history header not found
8902 If you have readline already installed, see config.log for details on the
8903 failure. It is possible the compiler isn't looking in the proper directory.
8904 Use --without-readline to disable readline support." >&5
8905 echo "$as_me: error: history header not found
8906 If you have readline already installed, see config.log for details on the
8907 failure. It is possible the compiler isn't looking in the proper directory.
8908 Use --without-readline to disable readline support." >&2;}
8909 { (exit 1); exit 1; }; }
8920 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8921 # Some installations of libedit usurp /usr/include/readline/, which seems
8922 # bad practice, since in combined installations readline will have its headers
8923 # there. We might have to resort to AC_EGREP checks to make sure we found
8924 # the proper header...
8926 for ac_header in editline/readline.h
8928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo "$as_me:$LINENO: checking for $ac_header" >&5
8931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8938 # Is the header compilable?
8939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8941 cat >conftest.$ac_ext <<_ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8948 #include <$ac_header>
8950 rm -f conftest.$ac_objext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952 (eval $ac_compile) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_header_compiler=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_header_compiler=no
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981 echo "${ECHO_T}$ac_header_compiler" >&6
8983 # Is the header present?
8984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8986 cat >conftest.$ac_ext <<_ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h. */
8992 #include <$ac_header>
8994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } >/dev/null; then
9002 if test -s conftest.err; then
9003 ac_cpp_err=$ac_c_preproc_warn_flag
9004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9011 if test -z "$ac_cpp_err"; then
9012 ac_header_preproc=yes
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9017 ac_header_preproc=no
9019 rm -f conftest.err conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9021 echo "${ECHO_T}$ac_header_preproc" >&6
9023 # So? What about this header?
9024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9030 ac_header_preproc=yes
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9047 ## ---------------------------------------- ##
9048 ## Report this to pgsql-bugs@postgresql.org ##
9049 ## ---------------------------------------- ##
9052 sed "s/^/$as_me: WARNING: /" >&2
9055 echo "$as_me:$LINENO: checking for $ac_header" >&5
9056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 eval "$as_ac_Header=\$ac_header_preproc"
9062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9067 cat >>confdefs.h <<_ACEOF
9068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073 for ac_header in readline.h
9075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077 echo "$as_me:$LINENO: checking for $ac_header" >&5
9078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085 # Is the header compilable?
9086 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9088 cat >conftest.$ac_ext <<_ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9094 $ac_includes_default
9095 #include <$ac_header>
9097 rm -f conftest.$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_header_compiler=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_compiler=no
9126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9128 echo "${ECHO_T}$ac_header_compiler" >&6
9130 # Is the header present?
9131 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 #include <$ac_header>
9141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9144 grep -v '^ *+' conftest.er1 >conftest.err
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } >/dev/null; then
9149 if test -s conftest.err; then
9150 ac_cpp_err=$ac_c_preproc_warn_flag
9151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9158 if test -z "$ac_cpp_err"; then
9159 ac_header_preproc=yes
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 ac_header_preproc=no
9166 rm -f conftest.err conftest.$ac_ext
9167 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9168 echo "${ECHO_T}$ac_header_preproc" >&6
9170 # So? What about this header?
9171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9177 ac_header_preproc=yes
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9187 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194 ## ---------------------------------------- ##
9195 ## Report this to pgsql-bugs@postgresql.org ##
9196 ## ---------------------------------------- ##
9199 sed "s/^/$as_me: WARNING: /" >&2
9202 echo "$as_me:$LINENO: checking for $ac_header" >&5
9203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 eval "$as_ac_Header=\$ac_header_preproc"
9209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9214 cat >>confdefs.h <<_ACEOF
9215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9220 for ac_header in readline/readline.h
9222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9224 echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9232 # Is the header compilable?
9233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 $ac_includes_default
9242 #include <$ac_header>
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_header_compiler=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_header_compiler=no
9273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9275 echo "${ECHO_T}$ac_header_compiler" >&6
9277 # Is the header present?
9278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 #include <$ac_header>
9288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9291 grep -v '^ *+' conftest.er1 >conftest.err
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null; then
9296 if test -s conftest.err; then
9297 ac_cpp_err=$ac_c_preproc_warn_flag
9298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305 if test -z "$ac_cpp_err"; then
9306 ac_header_preproc=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_header_preproc=no
9313 rm -f conftest.err conftest.$ac_ext
9314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9315 echo "${ECHO_T}$ac_header_preproc" >&6
9317 # So? What about this header?
9318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9324 ac_header_preproc=yes
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9341 ## ---------------------------------------- ##
9342 ## Report this to pgsql-bugs@postgresql.org ##
9343 ## ---------------------------------------- ##
9346 sed "s/^/$as_me: WARNING: /" >&2
9349 echo "$as_me:$LINENO: checking for $ac_header" >&5
9350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 eval "$as_ac_Header=\$ac_header_preproc"
9356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9361 cat >>confdefs.h <<_ACEOF
9362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9366 { { echo "$as_me:$LINENO: error: readline header not found
9367 If you have libedit already installed, see config.log for details on the
9368 failure. It is possible the compiler isn't looking in the proper directory.
9369 Use --without-readline to disable libedit support." >&5
9370 echo "$as_me: error: readline header not found
9371 If you have libedit already installed, see config.log for details on the
9372 failure. It is possible the compiler isn't looking in the proper directory.
9373 Use --without-readline to disable libedit support." >&2;}
9374 { (exit 1); exit 1; }; }
9388 for ac_header in editline/history.h
9390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9392 echo "$as_me:$LINENO: checking for $ac_header" >&5
9393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9400 # Is the header compilable?
9401 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 $ac_includes_default
9410 #include <$ac_header>
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>conftest.er1
9416 grep -v '^ *+' conftest.er1 >conftest.err
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -z "$ac_c_werror_flag"
9422 || test ! -s conftest.err'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 ac_header_compiler=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_header_compiler=no
9441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9443 echo "${ECHO_T}$ac_header_compiler" >&6
9445 # Is the header present?
9446 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 #include <$ac_header>
9456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } >/dev/null; then
9464 if test -s conftest.err; then
9465 ac_cpp_err=$ac_c_preproc_warn_flag
9466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9473 if test -z "$ac_cpp_err"; then
9474 ac_header_preproc=yes
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 ac_header_preproc=no
9481 rm -f conftest.err conftest.$ac_ext
9482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9483 echo "${ECHO_T}$ac_header_preproc" >&6
9485 # So? What about this header?
9486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9492 ac_header_preproc=yes
9495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9509 ## ---------------------------------------- ##
9510 ## Report this to pgsql-bugs@postgresql.org ##
9511 ## ---------------------------------------- ##
9514 sed "s/^/$as_me: WARNING: /" >&2
9517 echo "$as_me:$LINENO: checking for $ac_header" >&5
9518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9519 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9522 eval "$as_ac_Header=\$ac_header_preproc"
9524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9535 for ac_header in history.h
9537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9539 echo "$as_me:$LINENO: checking for $ac_header" >&5
9540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9547 # Is the header compilable?
9548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 $ac_includes_default
9557 #include <$ac_header>
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561 (eval $ac_compile) 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } &&
9568 { ac_try='test -z "$ac_c_werror_flag"
9569 || test ! -s conftest.err'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; } &&
9575 { ac_try='test -s conftest.$ac_objext'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; }; then
9581 ac_header_compiler=yes
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9586 ac_header_compiler=no
9588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9590 echo "${ECHO_T}$ac_header_compiler" >&6
9592 # Is the header present?
9593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9595 cat >conftest.$ac_ext <<_ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9601 #include <$ac_header>
9603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } >/dev/null; then
9611 if test -s conftest.err; then
9612 ac_cpp_err=$ac_c_preproc_warn_flag
9613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9620 if test -z "$ac_cpp_err"; then
9621 ac_header_preproc=yes
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 ac_header_preproc=no
9628 rm -f conftest.err conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9630 echo "${ECHO_T}$ac_header_preproc" >&6
9632 # So? What about this header?
9633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9639 ac_header_preproc=yes
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9656 ## ---------------------------------------- ##
9657 ## Report this to pgsql-bugs@postgresql.org ##
9658 ## ---------------------------------------- ##
9661 sed "s/^/$as_me: WARNING: /" >&2
9664 echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 eval "$as_ac_Header=\$ac_header_preproc"
9671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >>confdefs.h <<_ACEOF
9677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682 for ac_header in readline/history.h
9684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9686 echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9694 # Is the header compilable?
9695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 $ac_includes_default
9704 #include <$ac_header>
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_header_compiler=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_header_compiler=no
9735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9737 echo "${ECHO_T}$ac_header_compiler" >&6
9739 # Is the header present?
9740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 #include <$ac_header>
9750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } >/dev/null; then
9758 if test -s conftest.err; then
9759 ac_cpp_err=$ac_c_preproc_warn_flag
9760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9767 if test -z "$ac_cpp_err"; then
9768 ac_header_preproc=yes
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9773 ac_header_preproc=no
9775 rm -f conftest.err conftest.$ac_ext
9776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9777 echo "${ECHO_T}$ac_header_preproc" >&6
9779 # So? What about this header?
9780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9786 ac_header_preproc=yes
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9803 ## ---------------------------------------- ##
9804 ## Report this to pgsql-bugs@postgresql.org ##
9805 ## ---------------------------------------- ##
9808 sed "s/^/$as_me: WARNING: /" >&2
9811 echo "$as_me:$LINENO: checking for $ac_header" >&5
9812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 eval "$as_ac_Header=\$ac_header_preproc"
9818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 { { echo "$as_me:$LINENO: error: history header not found
9829 If you have libedit already installed, see config.log for details on the
9830 failure. It is possible the compiler isn't looking in the proper directory.
9831 Use --without-readline to disable libedit support." >&5
9832 echo "$as_me: error: history header not found
9833 If you have libedit already installed, see config.log for details on the
9834 failure. It is possible the compiler isn't looking in the proper directory.
9835 Use --without-readline to disable libedit support." >&2;}
9836 { (exit 1); exit 1; }; }
9851 if test "$with_zlib" = yes; then
9852 if test "${ac_cv_header_zlib_h+set}" = set; then
9853 echo "$as_me:$LINENO: checking for zlib.h" >&5
9854 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9855 if test "${ac_cv_header_zlib_h+set}" = set; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9859 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9861 # Is the header compilable?
9862 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9863 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9873 rm -f conftest.$ac_objext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9875 (eval $ac_compile) 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag"
9883 || test ! -s conftest.err'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest.$ac_objext'
9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); }; }; then
9895 ac_header_compiler=yes
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.$ac_ext >&5
9900 ac_header_compiler=no
9902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9904 echo "${ECHO_T}$ac_header_compiler" >&6
9906 # Is the header present?
9907 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9908 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9920 grep -v '^ *+' conftest.er1 >conftest.err
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } >/dev/null; then
9925 if test -s conftest.err; then
9926 ac_cpp_err=$ac_c_preproc_warn_flag
9927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9934 if test -z "$ac_cpp_err"; then
9935 ac_header_preproc=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_header_preproc=no
9942 rm -f conftest.err conftest.$ac_ext
9943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9944 echo "${ECHO_T}$ac_header_preproc" >&6
9946 # So? What about this header?
9947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9949 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9950 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9952 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9953 ac_header_preproc=yes
9956 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9957 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9958 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9959 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9961 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9963 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9965 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9967 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9970 ## ---------------------------------------- ##
9971 ## Report this to pgsql-bugs@postgresql.org ##
9972 ## ---------------------------------------- ##
9975 sed "s/^/$as_me: WARNING: /" >&2
9978 echo "$as_me:$LINENO: checking for zlib.h" >&5
9979 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9980 if test "${ac_cv_header_zlib_h+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 ac_cv_header_zlib_h=$ac_header_preproc
9985 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9986 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9989 if test $ac_cv_header_zlib_h = yes; then
9992 { { echo "$as_me:$LINENO: error: zlib header not found
9993 If you have zlib already installed, see config.log for details on the
9994 failure. It is possible the compiler isn't looking in the proper directory.
9995 Use --without-zlib to disable zlib support." >&5
9996 echo "$as_me: error: zlib header not found
9997 If you have zlib already installed, see config.log for details on the
9998 failure. It is possible the compiler isn't looking in the proper directory.
9999 Use --without-zlib to disable zlib support." >&2;}
10000 { (exit 1); exit 1; }; }
10006 if test "$with_krb5" = yes ; then
10007 if test "${ac_cv_header_krb5_h+set}" = set; then
10008 echo "$as_me:$LINENO: checking for krb5.h" >&5
10009 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10010 if test "${ac_cv_header_krb5_h+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10014 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10016 # Is the header compilable?
10017 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10018 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10028 rm -f conftest.$ac_objext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10030 (eval $ac_compile) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest.$ac_objext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_header_compiler=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_compiler=no
10057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10059 echo "${ECHO_T}$ac_header_compiler" >&6
10061 # Is the header present?
10062 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10063 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10075 grep -v '^ *+' conftest.er1 >conftest.err
10077 cat conftest.err >&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); } >/dev/null; then
10080 if test -s conftest.err; then
10081 ac_cpp_err=$ac_c_preproc_warn_flag
10082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10089 if test -z "$ac_cpp_err"; then
10090 ac_header_preproc=yes
10092 echo "$as_me: failed program was:" >&5
10093 sed 's/^/| /' conftest.$ac_ext >&5
10095 ac_header_preproc=no
10097 rm -f conftest.err conftest.$ac_ext
10098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10099 echo "${ECHO_T}$ac_header_preproc" >&6
10101 # So? What about this header?
10102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10104 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10105 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10106 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10107 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10108 ac_header_preproc=yes
10111 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10112 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10113 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10114 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10115 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10116 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10117 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10118 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10120 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10122 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10125 ## ---------------------------------------- ##
10126 ## Report this to pgsql-bugs@postgresql.org ##
10127 ## ---------------------------------------- ##
10130 sed "s/^/$as_me: WARNING: /" >&2
10133 echo "$as_me:$LINENO: checking for krb5.h" >&5
10134 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10135 if test "${ac_cv_header_krb5_h+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 ac_cv_header_krb5_h=$ac_header_preproc
10140 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10141 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10144 if test $ac_cv_header_krb5_h = yes; then
10147 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10148 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10149 { (exit 1); exit 1; }; }
10155 if test "$with_openssl" = yes ; then
10156 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10157 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10158 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10159 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10163 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10165 # Is the header compilable?
10166 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10167 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10175 #include <openssl/ssl.h>
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag"
10187 || test ! -s conftest.err'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; } &&
10193 { ac_try='test -s conftest.$ac_objext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_header_compiler=yes
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10204 ac_header_compiler=no
10206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10208 echo "${ECHO_T}$ac_header_compiler" >&6
10210 # Is the header present?
10211 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10212 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 #include <openssl/ssl.h>
10221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10224 grep -v '^ *+' conftest.er1 >conftest.err
10226 cat conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } >/dev/null; then
10229 if test -s conftest.err; then
10230 ac_cpp_err=$ac_c_preproc_warn_flag
10231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10238 if test -z "$ac_cpp_err"; then
10239 ac_header_preproc=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ac_header_preproc=no
10246 rm -f conftest.err conftest.$ac_ext
10247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10248 echo "${ECHO_T}$ac_header_preproc" >&6
10250 # So? What about this header?
10251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10253 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10254 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10256 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10257 ac_header_preproc=yes
10260 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10261 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10263 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10264 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10265 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10266 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10267 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10269 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10271 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10274 ## ---------------------------------------- ##
10275 ## Report this to pgsql-bugs@postgresql.org ##
10276 ## ---------------------------------------- ##
10279 sed "s/^/$as_me: WARNING: /" >&2
10282 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10283 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10284 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10285 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10289 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10290 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10293 if test $ac_cv_header_openssl_ssl_h = yes; then
10296 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10297 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10298 { (exit 1); exit 1; }; }
10302 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10303 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10304 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10305 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10309 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10311 # Is the header compilable?
10312 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10313 echo $ECHO_N "checking openssl/err.h usability... $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 $ac_includes_default
10321 #include <openssl/err.h>
10323 rm -f conftest.$ac_objext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10325 (eval $ac_compile) 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } &&
10332 { ac_try='test -z "$ac_c_werror_flag"
10333 || test ! -s conftest.err'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_header_compiler=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_header_compiler=no
10352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10354 echo "${ECHO_T}$ac_header_compiler" >&6
10356 # Is the header present?
10357 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10358 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10359 cat >conftest.$ac_ext <<_ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <openssl/err.h>
10367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } >/dev/null; then
10375 if test -s conftest.err; then
10376 ac_cpp_err=$ac_c_preproc_warn_flag
10377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10384 if test -z "$ac_cpp_err"; then
10385 ac_header_preproc=yes
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10390 ac_header_preproc=no
10392 rm -f conftest.err conftest.$ac_ext
10393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10394 echo "${ECHO_T}$ac_header_preproc" >&6
10396 # So? What about this header?
10397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10399 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10400 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10402 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10403 ac_header_preproc=yes
10406 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10407 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10409 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10411 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10413 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10415 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10417 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10420 ## ---------------------------------------- ##
10421 ## Report this to pgsql-bugs@postgresql.org ##
10422 ## ---------------------------------------- ##
10425 sed "s/^/$as_me: WARNING: /" >&2
10428 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10429 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 ac_cv_header_openssl_err_h=$ac_header_preproc
10435 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10436 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10439 if test $ac_cv_header_openssl_err_h = yes; then
10442 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10443 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10444 { (exit 1); exit 1; }; }
10450 if test "$with_pam" = yes ; then
10452 for ac_header in security/pam_appl.h
10454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10456 echo "$as_me:$LINENO: checking for $ac_header" >&5
10457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10464 # Is the header compilable?
10465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10467 cat >conftest.$ac_ext <<_ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 $ac_includes_default
10474 #include <$ac_header>
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
10498 ac_header_compiler=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_header_compiler=no
10505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10507 echo "${ECHO_T}$ac_header_compiler" >&6
10509 # Is the header present?
10510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <$ac_header>
10520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10523 grep -v '^ *+' conftest.er1 >conftest.err
10525 cat conftest.err >&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } >/dev/null; then
10528 if test -s conftest.err; then
10529 ac_cpp_err=$ac_c_preproc_warn_flag
10530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10537 if test -z "$ac_cpp_err"; then
10538 ac_header_preproc=yes
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ac_header_preproc=no
10545 rm -f conftest.err conftest.$ac_ext
10546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10547 echo "${ECHO_T}$ac_header_preproc" >&6
10549 # So? What about this header?
10550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10556 ac_header_preproc=yes
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10573 ## ---------------------------------------- ##
10574 ## Report this to pgsql-bugs@postgresql.org ##
10575 ## ---------------------------------------- ##
10578 sed "s/^/$as_me: WARNING: /" >&2
10581 echo "$as_me:$LINENO: checking for $ac_header" >&5
10582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 eval "$as_ac_Header=\$ac_header_preproc"
10588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10593 cat >>confdefs.h <<_ACEOF
10594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10599 for ac_header in pam/pam_appl.h
10601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo "$as_me:$LINENO: checking for $ac_header" >&5
10604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 # Is the header compilable?
10612 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 #include <$ac_header>
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10625 (eval $ac_compile) 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -z "$ac_c_werror_flag"
10633 || test ! -s conftest.err'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; } &&
10639 { ac_try='test -s conftest.$ac_objext'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }; then
10645 ac_header_compiler=yes
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10650 ac_header_compiler=no
10652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10654 echo "${ECHO_T}$ac_header_compiler" >&6
10656 # Is the header present?
10657 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10659 cat >conftest.$ac_ext <<_ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 #include <$ac_header>
10667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_c_preproc_warn_flag
10677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10684 if test -z "$ac_cpp_err"; then
10685 ac_header_preproc=yes
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10690 ac_header_preproc=no
10692 rm -f conftest.err conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10694 echo "${ECHO_T}$ac_header_preproc" >&6
10696 # So? What about this header?
10697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10703 ac_header_preproc=yes
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 ## ---------------------------------------- ##
10721 ## Report this to pgsql-bugs@postgresql.org ##
10722 ## ---------------------------------------- ##
10725 sed "s/^/$as_me: WARNING: /" >&2
10728 echo "$as_me:$LINENO: checking for $ac_header" >&5
10729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 eval "$as_ac_Header=\$ac_header_preproc"
10735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10740 cat >>confdefs.h <<_ACEOF
10741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10745 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10746 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10747 { (exit 1); exit 1; }; }
10758 if test "$with_bonjour" = yes ; then
10759 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10760 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10761 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10762 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10766 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10768 # Is the header compilable?
10769 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10770 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10771 cat >conftest.$ac_ext <<_ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10778 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag"
10790 || test ! -s conftest.err'
10791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792 (eval $ac_try) 2>&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest.$ac_objext'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_header_compiler=yes
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10807 ac_header_compiler=no
10809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10810 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 echo "${ECHO_T}$ac_header_compiler" >&6
10813 # Is the header present?
10814 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10815 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } >/dev/null; then
10832 if test -s conftest.err; then
10833 ac_cpp_err=$ac_c_preproc_warn_flag
10834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10841 if test -z "$ac_cpp_err"; then
10842 ac_header_preproc=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_header_preproc=no
10849 rm -f conftest.err conftest.$ac_ext
10850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 echo "${ECHO_T}$ac_header_preproc" >&6
10853 # So? What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10857 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10859 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10860 ac_header_preproc=yes
10863 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10864 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10865 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10866 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10868 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10870 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10872 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10874 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10877 ## ---------------------------------------- ##
10878 ## Report this to pgsql-bugs@postgresql.org ##
10879 ## ---------------------------------------- ##
10882 sed "s/^/$as_me: WARNING: /" >&2
10885 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10886 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10887 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10892 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10893 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10896 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10899 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10900 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10901 { (exit 1); exit 1; }; }
10909 ## Types, structures, compiler characteristics
10912 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10913 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10914 if test "${ac_cv_c_const+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10927 /* FIXME: Include the comments suggested by Paul. */
10928 #ifndef __cplusplus
10929 /* Ultrix mips cc rejects this. */
10930 typedef int charset[2];
10932 /* SunOS 4.1.1 cc rejects this. */
10933 char const *const *ccp;
10935 /* NEC SVR4.0.2 mips cc rejects this. */
10936 struct point {int x, y;};
10937 static struct point const zero = {0,0};
10938 /* AIX XL C 1.02.0.0 rejects this.
10939 It does not let you subtract one const X* pointer from another in
10940 an arm of an if-expression whose if-part is not a constant
10942 const char *g = "string";
10943 ccp = &g + (g ? g-g : 0);
10944 /* HPUX 7.0 cc rejects these. */
10947 ccp = (char const *const *) p;
10948 { /* SCO 3.2v4 cc rejects this. */
10950 char const *s = 0 ? (char *) 0 : (char const *) 0;
10954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10955 int x[] = {25, 17};
10956 const int *foo = &x[0];
10959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10960 typedef const int *iptr;
10964 { /* AIX XL C 1.02.0.0 rejects this saying
10965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10966 struct s { int j; const int *ap[3]; };
10967 struct s *b; b->j = 5;
10969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10970 const int foo = 10;
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag"
10988 || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11009 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11010 echo "${ECHO_T}$ac_cv_c_const" >&6
11011 if test $ac_cv_c_const = no; then
11013 cat >>confdefs.h <<\_ACEOF
11020 echo "$as_me:$LINENO: checking for inline" >&5
11021 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11022 if test "${ac_cv_c_inline+set}" = set; then
11023 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 for ac_kw in inline __inline__ __inline; do
11027 cat >conftest.$ac_ext <<_ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #ifndef __cplusplus
11035 static $ac_kw foo_t static_foo () {return 0; }
11036 $ac_kw int foo () {return 0; }
11040 rm -f conftest.$ac_objext
11041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11042 (eval $ac_compile) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -z "$ac_c_werror_flag"
11050 || test ! -s conftest.err'
11051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052 (eval $ac_try) 2>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); }; } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_c_inline=$ac_kw; break
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11073 echo "${ECHO_T}$ac_cv_c_inline" >&6
11074 case $ac_cv_c_inline in
11077 cat >>confdefs.h <<\_ACEOF
11081 *) cat >>confdefs.h <<_ACEOF
11082 #define inline $ac_cv_c_inline
11087 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11088 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11089 if test "${ac_cv_c_stringize+set}" = set; then
11090 echo $ECHO_N "(cached) $ECHO_C" >&6
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11100 char *s = x(teststring);
11102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11103 $EGREP "#teststring" >/dev/null 2>&1; then
11104 ac_cv_c_stringize=no
11106 ac_cv_c_stringize=yes
11111 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11112 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11113 if test $ac_cv_c_stringize = yes; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_STRINGIZE 1
11121 echo "$as_me:$LINENO: checking for signed types" >&5
11122 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11123 if test "${pgac_cv_c_signed+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11136 signed char c; signed short s; signed int i;
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 pgac_cv_c_signed=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 pgac_cv_c_signed=no
11170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11172 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11173 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11174 if test x"$pgac_cv_c_signed" = xno ; then
11176 cat >>confdefs.h <<\_ACEOF
11181 echo "$as_me:$LINENO: checking for working volatile" >&5
11182 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11183 if test "${ac_cv_c_volatile+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11203 rm -f conftest.$ac_objext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205 (eval $ac_compile) 2>conftest.er1
11207 grep -v '^ *+' conftest.er1 >conftest.err
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } &&
11212 { ac_try='test -z "$ac_c_werror_flag"
11213 || test ! -s conftest.err'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
11220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221 (eval $ac_try) 2>&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); }; }; then
11225 ac_cv_c_volatile=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_cv_c_volatile=no
11232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11234 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11235 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11236 if test $ac_cv_c_volatile = no; then
11238 cat >>confdefs.h <<\_ACEOF
11244 echo "$as_me:$LINENO: checking for __func__" >&5
11245 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11246 if test "${pgac_cv_funcname_func_support+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11259 printf("%s\n", __func__);
11264 rm -f conftest.$ac_objext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11266 (eval $ac_compile) 2>conftest.er1
11268 grep -v '^ *+' conftest.er1 >conftest.err
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag"
11274 || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 pgac_cv_funcname_func_support=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 pgac_cv_funcname_func_support=no
11293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11296 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11297 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11299 cat >>confdefs.h <<\_ACEOF
11300 #define HAVE_FUNCNAME__FUNC 1
11304 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11305 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11306 if test "${pgac_cv_funcname_function_support+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 cat >conftest.$ac_ext <<_ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11319 printf("%s\n", __FUNCTION__);
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 pgac_cv_funcname_function_support=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 pgac_cv_funcname_function_support=no
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11356 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11357 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_FUNCNAME__FUNCTION 1
11365 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11366 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11367 if test "${ac_cv_struct_tm+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <sys/types.h>
11382 struct tm *tp; tp->tm_sec;
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389 (eval $ac_compile) 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag"
11397 || test ! -s conftest.err'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_cv_struct_tm=time.h
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_cv_struct_tm=sys/time.h
11416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11418 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11419 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11420 if test $ac_cv_struct_tm = sys/time.h; then
11422 cat >>confdefs.h <<\_ACEOF
11423 #define TM_IN_SYS_TIME 1
11428 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11429 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11430 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11433 cat >conftest.$ac_ext <<_ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 #include <sys/types.h>
11440 #include <$ac_cv_struct_tm>
11446 static struct tm ac_aggr;
11447 if (ac_aggr.tm_zone)
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_c_werror_flag"
11463 || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 ac_cv_member_struct_tm_tm_zone=yes
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 cat >conftest.$ac_ext <<_ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 #include <sys/types.h>
11487 #include <$ac_cv_struct_tm>
11493 static struct tm ac_aggr;
11494 if (sizeof ac_aggr.tm_zone)
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag"
11510 || test ! -s conftest.err'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_member_struct_tm_tm_zone=yes
11524 echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11527 ac_cv_member_struct_tm_tm_zone=no
11529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11534 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11535 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11537 cat >>confdefs.h <<_ACEOF
11538 #define HAVE_STRUCT_TM_TM_ZONE 1
11544 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11546 cat >>confdefs.h <<\_ACEOF
11547 #define HAVE_TM_ZONE 1
11551 echo "$as_me:$LINENO: checking for tzname" >&5
11552 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11553 if test "${ac_cv_var_tzname+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11563 #ifndef tzname /* For SGI. */
11564 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11577 (eval $ac_link) 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag"
11585 || test ! -s conftest.err'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 ac_cv_var_tzname=yes
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_cv_var_tzname=no
11604 rm -f conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11607 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11608 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11609 if test $ac_cv_var_tzname = yes; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_TZNAME 1
11617 echo "$as_me:$LINENO: checking for union semun" >&5
11618 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11619 if test "${ac_cv_type_union_semun+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 #include <sys/ipc.h>
11630 #include <sys/sem.h>
11635 if ((union semun *) 0)
11637 if (sizeof (union semun))
11643 rm -f conftest.$ac_objext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11645 (eval $ac_compile) 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -z "$ac_c_werror_flag"
11653 || test ! -s conftest.err'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_type_union_semun=yes
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_type_union_semun=no
11672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11675 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11676 if test $ac_cv_type_union_semun = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define HAVE_UNION_SEMUN 1
11685 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11686 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11687 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 #include <sys/types.h>
11697 #ifdef HAVE_SYS_UN_H
11698 #include <sys/un.h>
11705 if ((struct sockaddr_un *) 0)
11707 if (sizeof (struct sockaddr_un))
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>conftest.er1
11717 grep -v '^ *+' conftest.er1 >conftest.err
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_type_struct_sockaddr_un=yes
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 ac_cv_type_struct_sockaddr_un=no
11742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11745 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11746 if test $ac_cv_type_struct_sockaddr_un = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749 #define HAVE_STRUCT_SOCKADDR_UN 1
11753 cat >>confdefs.h <<\_ACEOF
11754 #define HAVE_UNIX_SOCKETS 1
11759 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11760 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11761 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 #include <sys/types.h>
11771 #ifdef HAVE_SYS_SOCKET_H
11772 #include <sys/socket.h>
11779 if ((struct sockaddr_storage *) 0)
11781 if (sizeof (struct sockaddr_storage))
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_type_struct_sockaddr_storage=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_cv_type_struct_sockaddr_storage=no
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11818 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11819 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11820 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11829 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11830 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11831 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 #include <sys/types.h>
11841 #ifdef HAVE_SYS_SOCKET_H
11842 #include <sys/socket.h>
11849 static struct sockaddr_storage ac_aggr;
11850 if (ac_aggr.ss_family)
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } &&
11865 { ac_try='test -z "$ac_c_werror_flag"
11866 || test ! -s conftest.err'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest.$ac_objext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 cat >conftest.$ac_ext <<_ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 #include <sys/types.h>
11890 #ifdef HAVE_SYS_SOCKET_H
11891 #include <sys/socket.h>
11898 static struct sockaddr_storage ac_aggr;
11899 if (sizeof ac_aggr.ss_family)
11905 rm -f conftest.$ac_objext
11906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11907 (eval $ac_compile) 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } &&
11914 { ac_try='test -z "$ac_c_werror_flag"
11915 || test ! -s conftest.err'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; } &&
11921 { ac_try='test -s conftest.$ac_objext'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_cv_member_struct_sockaddr_storage_ss_family=no
11934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11939 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11940 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11948 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11949 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11950 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 #include <sys/types.h>
11960 #ifdef HAVE_SYS_SOCKET_H
11961 #include <sys/socket.h>
11968 static struct sockaddr_storage ac_aggr;
11969 if (ac_aggr.__ss_family)
11975 rm -f conftest.$ac_objext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11977 (eval $ac_compile) 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
11984 { ac_try='test -z "$ac_c_werror_flag"
11985 || test ! -s conftest.err'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest.$ac_objext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 ac_cv_member_struct_sockaddr_storage___ss_family=yes
11999 echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 #include <sys/types.h>
12009 #ifdef HAVE_SYS_SOCKET_H
12010 #include <sys/socket.h>
12017 static struct sockaddr_storage ac_aggr;
12018 if (sizeof ac_aggr.__ss_family)
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag"
12034 || test ! -s conftest.err'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; } &&
12040 { ac_try='test -s conftest.$ac_objext'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
12046 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_member_struct_sockaddr_storage___ss_family=no
12053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12058 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12059 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12067 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12068 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12069 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12072 cat >conftest.$ac_ext <<_ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 #include <sys/types.h>
12079 #ifdef HAVE_SYS_SOCKET_H
12080 #include <sys/socket.h>
12087 static struct sockaddr_storage ac_aggr;
12088 if (ac_aggr.ss_len)
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
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); }; } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 #include <sys/types.h>
12128 #ifdef HAVE_SYS_SOCKET_H
12129 #include <sys/socket.h>
12136 static struct sockaddr_storage ac_aggr;
12137 if (sizeof ac_aggr.ss_len)
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ac_cv_member_struct_sockaddr_storage_ss_len=no
12172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12177 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12178 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12186 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12187 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12188 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <sys/types.h>
12198 #ifdef HAVE_SYS_SOCKET_H
12199 #include <sys/socket.h>
12206 static struct sockaddr_storage ac_aggr;
12207 if (ac_aggr.__ss_len)
12213 rm -f conftest.$ac_objext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215 (eval $ac_compile) 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 cat >conftest.$ac_ext <<_ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12247 #ifdef HAVE_SYS_SOCKET_H
12248 #include <sys/socket.h>
12255 static struct sockaddr_storage ac_aggr;
12256 if (sizeof ac_aggr.__ss_len)
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>conftest.er1
12266 grep -v '^ *+' conftest.er1 >conftest.err
12268 cat conftest.err >&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -z "$ac_c_werror_flag"
12272 || test ! -s conftest.err'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_member_struct_sockaddr_storage___ss_len=no
12291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12295 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12296 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12297 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12299 cat >>confdefs.h <<_ACEOF
12300 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12305 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12306 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12307 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <sys/types.h>
12317 #ifdef HAVE_SYS_SOCKET_H
12318 #include <sys/socket.h>
12325 static struct sockaddr ac_aggr;
12326 if (ac_aggr.sa_len)
12332 rm -f conftest.$ac_objext
12333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12334 (eval $ac_compile) 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
12341 { ac_try='test -z "$ac_c_werror_flag"
12342 || test ! -s conftest.err'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } &&
12348 { ac_try='test -s conftest.$ac_objext'
12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350 (eval $ac_try) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; }; then
12354 ac_cv_member_struct_sockaddr_sa_len=yes
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <sys/types.h>
12366 #ifdef HAVE_SYS_SOCKET_H
12367 #include <sys/socket.h>
12374 static struct sockaddr ac_aggr;
12375 if (sizeof ac_aggr.sa_len)
12381 rm -f conftest.$ac_objext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12383 (eval $ac_compile) 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag"
12391 || test ! -s conftest.err'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_member_struct_sockaddr_sa_len=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_member_struct_sockaddr_sa_len=no
12410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12415 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12416 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12425 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12426 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12427 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 #include <sys/types.h>
12437 #include <sys/socket.h>
12444 if ((struct addrinfo *) 0)
12446 if (sizeof (struct addrinfo))
12452 rm -f conftest.$ac_objext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag"
12462 || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest.$ac_objext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_type_struct_addrinfo=yes
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_cv_type_struct_addrinfo=no
12481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12483 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12484 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12485 if test $ac_cv_type_struct_addrinfo = yes; then
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_STRUCT_ADDRINFO 1
12495 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12496 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12497 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 #include <sys/param.h>
12507 #include <sys/types.h>
12508 #include <sys/socket.h>
12509 #include <sys/ucred.h>
12514 if ((struct cmsgcred *) 0)
12516 if (sizeof (struct cmsgcred))
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_type_struct_cmsgcred=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_cv_type_struct_cmsgcred=no
12551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12554 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12555 if test $ac_cv_type_struct_cmsgcred = yes; then
12557 cat >>confdefs.h <<_ACEOF
12558 #define HAVE_STRUCT_CMSGCRED 1
12563 echo "$as_me:$LINENO: checking for struct fcred" >&5
12564 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12565 if test "${ac_cv_type_struct_fcred+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 #include <sys/param.h>
12575 #include <sys/types.h>
12576 #include <sys/socket.h>
12577 #include <sys/ucred.h>
12582 if ((struct fcred *) 0)
12584 if (sizeof (struct fcred))
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
12599 { ac_try='test -z "$ac_c_werror_flag"
12600 || test ! -s conftest.err'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_cv_type_struct_fcred=yes
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12617 ac_cv_type_struct_fcred=no
12619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12621 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12622 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12623 if test $ac_cv_type_struct_fcred = yes; then
12625 cat >>confdefs.h <<_ACEOF
12626 #define HAVE_STRUCT_FCRED 1
12631 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12632 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12633 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12634 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 cat >conftest.$ac_ext <<_ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #include <sys/param.h>
12643 #include <sys/types.h>
12644 #include <sys/socket.h>
12645 #include <sys/ucred.h>
12650 if ((struct sockcred *) 0)
12652 if (sizeof (struct sockcred))
12658 rm -f conftest.$ac_objext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>conftest.er1
12662 grep -v '^ *+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest.$ac_objext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_type_struct_sockcred=yes
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_type_struct_sockcred=no
12687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12690 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12691 if test $ac_cv_type_struct_sockcred = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_STRUCT_SOCKCRED 1
12701 echo "$as_me:$LINENO: checking for struct option" >&5
12702 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12703 if test "${ac_cv_type_struct_option+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 #ifdef HAVE_GETOPT_H
12713 #include <getopt.h>
12719 if ((struct option *) 0)
12721 if (sizeof (struct option))
12727 rm -f conftest.$ac_objext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_c_werror_flag"
12737 || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 ac_cv_type_struct_option=yes
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_cv_type_struct_option=no
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12759 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12760 if test $ac_cv_type_struct_option = yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_STRUCT_OPTION 1
12770 if test "$with_zlib" = yes; then
12771 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12772 # did not). While we could work around the lack of z_streamp, it
12773 # seems unwise to encourage people to use such old zlib versions...
12774 echo "$as_me:$LINENO: checking for z_streamp" >&5
12775 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12776 if test "${ac_cv_type_z_streamp+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 cat >conftest.$ac_ext <<_ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12790 if ((z_streamp *) 0)
12792 if (sizeof (z_streamp))
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -z "$ac_c_werror_flag"
12808 || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_cv_type_z_streamp=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12825 ac_cv_type_z_streamp=no
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12830 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12831 if test $ac_cv_type_z_streamp = yes; then
12834 { { echo "$as_me:$LINENO: error: zlib version is too old
12835 Use --without-zlib to disable zlib support." >&5
12836 echo "$as_me: error: zlib version is too old
12837 Use --without-zlib to disable zlib support." >&2;}
12838 { (exit 1); exit 1; }; }
12843 if test "$with_krb5" = yes; then
12844 # Check for differences between MIT and Heimdal (KTH) releases
12845 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12846 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12847 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12861 static krb5_ticket ac_aggr;
12862 if (ac_aggr.enc_part2)
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>conftest.er1
12872 grep -v '^ *+' conftest.er1 >conftest.err
12874 cat conftest.err >&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -z "$ac_c_werror_flag"
12878 || test ! -s conftest.err'
12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880 (eval $ac_try) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_member_krb5_ticket_enc_part2=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 cat >conftest.$ac_ext <<_ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12906 static krb5_ticket ac_aggr;
12907 if (sizeof ac_aggr.enc_part2)
12913 rm -f conftest.$ac_objext
12914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12915 (eval $ac_compile) 2>conftest.er1
12917 grep -v '^ *+' conftest.er1 >conftest.err
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -z "$ac_c_werror_flag"
12923 || test ! -s conftest.err'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935 ac_cv_member_krb5_ticket_enc_part2=yes
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_member_krb5_ticket_enc_part2=no
12942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12946 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12947 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12948 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_KRB5_TICKET_ENC_PART2 1
12956 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12957 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12958 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 cat >conftest.$ac_ext <<_ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12972 static krb5_ticket ac_aggr;
12973 if (ac_aggr.client)
12979 rm -f conftest.$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>conftest.er1
12983 grep -v '^ *+' conftest.er1 >conftest.err
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -z "$ac_c_werror_flag"
12989 || test ! -s conftest.err'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_member_krb5_ticket_client=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13017 static krb5_ticket ac_aggr;
13018 if (sizeof ac_aggr.client)
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } &&
13033 { ac_try='test -z "$ac_c_werror_flag"
13034 || test ! -s conftest.err'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; } &&
13040 { ac_try='test -s conftest.$ac_objext'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; }; then
13046 ac_cv_member_krb5_ticket_client=yes
13048 echo "$as_me: failed program was:" >&5
13049 sed 's/^/| /' conftest.$ac_ext >&5
13051 ac_cv_member_krb5_ticket_client=no
13053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13057 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13058 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13059 if test $ac_cv_member_krb5_ticket_client = yes; then
13061 cat >>confdefs.h <<_ACEOF
13062 #define HAVE_KRB5_TICKET_CLIENT 1
13067 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13068 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13069 { (exit 1); exit 1; }; }
13074 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13075 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13076 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13090 static krb5_error ac_aggr;
13091 if (ac_aggr.text.data)
13097 rm -f conftest.$ac_objext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13101 grep -v '^ *+' conftest.er1 >conftest.err
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
13106 { ac_try='test -z "$ac_c_werror_flag"
13107 || test ! -s conftest.err'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } &&
13113 { ac_try='test -s conftest.$ac_objext'
13114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_member_krb5_error_text_data=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13135 static krb5_error ac_aggr;
13136 if (sizeof ac_aggr.text.data)
13142 rm -f conftest.$ac_objext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_c_werror_flag"
13152 || test ! -s conftest.err'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_member_krb5_error_text_data=yes
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_cv_member_krb5_error_text_data=no
13171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13176 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13177 if test $ac_cv_member_krb5_error_text_data = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13185 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13186 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13187 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13201 static krb5_error ac_aggr;
13202 if (ac_aggr.e_data)
13208 rm -f conftest.$ac_objext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13210 (eval $ac_compile) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 ac_cv_member_krb5_error_e_data=yes
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13246 static krb5_error ac_aggr;
13247 if (sizeof ac_aggr.e_data)
13253 rm -f conftest.$ac_objext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13255 (eval $ac_compile) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_member_krb5_error_e_data=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_member_krb5_error_e_data=no
13282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13286 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13287 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13288 if test $ac_cv_member_krb5_error_e_data = yes; then
13290 cat >>confdefs.h <<_ACEOF
13291 #define HAVE_KRB5_ERROR_E_DATA 1
13296 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13297 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13298 { (exit 1); exit 1; }; }
13306 ## Functions, global variables
13309 echo "$as_me:$LINENO: checking for int timezone" >&5
13310 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13311 if test "${pgac_cv_var_int_timezone+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13326 res = timezone / 60;
13328 res = _timezone / 60;
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13336 (eval $ac_link) 2>conftest.er1
13338 grep -v '^ *+' conftest.er1 >conftest.err
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag"
13344 || test ! -s conftest.err'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 pgac_cv_var_int_timezone=yes
13358 echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 pgac_cv_var_int_timezone=no
13363 rm -f conftest.err conftest.$ac_objext \
13364 conftest$ac_exeext conftest.$ac_ext
13366 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13367 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13368 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13370 cat >>confdefs.h <<\_ACEOF
13371 #define HAVE_INT_TIMEZONE
13375 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13376 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13377 if test "${ac_cv_func_accept_return+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 if test "${ac_cv_func_accept_arg1+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 if test "${ac_cv_func_accept_arg2+set}" = set; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13386 if test "${ac_cv_func_accept_arg3+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13390 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13391 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13392 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13393 cat >conftest.$ac_ext <<_ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 #ifdef HAVE_SYS_TYPES_H
13400 #include <sys/types.h>
13402 #ifdef HAVE_SYS_SOCKET_H
13403 #include <sys/socket.h>
13405 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13414 rm -f conftest.$ac_objext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416 (eval $ac_compile) 2>conftest.er1
13418 grep -v '^ *+' conftest.er1 >conftest.err
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
13423 { ac_try='test -z "$ac_c_werror_flag"
13424 || test ! -s conftest.err'
13425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest.$ac_objext'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_not_found=no; break 4
13438 echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13448 if test "$ac_not_found" = yes; then
13449 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13450 echo "$as_me: error: could not determine argument types" >&2;}
13451 { (exit 1); exit 1; }; }
13453 if test "$ac_cv_func_accept_arg3" = "void"; then
13454 ac_cv_func_accept_arg3=int
13464 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
13465 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13467 cat >>confdefs.h <<_ACEOF
13468 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13472 cat >>confdefs.h <<_ACEOF
13473 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13477 cat >>confdefs.h <<_ACEOF
13478 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13482 cat >>confdefs.h <<_ACEOF
13483 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13487 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13488 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13489 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include <sys/time.h>
13502 struct timeval *tp;
13503 struct timezone *tzp;
13504 gettimeofday(tp,tzp);
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 pgac_cv_func_gettimeofday_1arg=no
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13536 pgac_cv_func_gettimeofday_1arg=yes
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13541 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13542 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13544 cat >>confdefs.h <<\_ACEOF
13545 #define GETTIMEOFDAY_1ARG
13571 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13574 echo "$as_me:$LINENO: checking for $ac_func" >&5
13575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13576 if eval "test \"\${$as_ac_var+set}\" = set"; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13587 #define $ac_func innocuous_$ac_func
13589 /* System header to define __stub macros and hopefully few prototypes,
13590 which can conflict with char $ac_func (); below.
13591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13592 <limits.h> exists even on freestanding compilers. */
13595 # include <limits.h>
13597 # include <assert.h>
13602 /* Override any gcc2 internal prototype to avoid an error. */
13607 /* We use char because int might match the return type of a gcc2
13608 builtin and then its argument prototype would still apply. */
13610 /* The GNU C library defines this for functions which it implements
13611 to always fail with ENOSYS. Some functions are actually named
13612 something starting with __ and the normal name is an alias. */
13613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13616 char (*f) () = $ac_func;
13625 return f != $ac_func;
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>conftest.er1
13634 grep -v '^ *+' conftest.er1 >conftest.err
13636 cat conftest.err >&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
13639 { ac_try='test -z "$ac_c_werror_flag"
13640 || test ! -s conftest.err'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; } &&
13646 { ac_try='test -s conftest$ac_exeext'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13652 eval "$as_ac_var=yes"
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 eval "$as_ac_var=no"
13659 rm -f conftest.err conftest.$ac_objext \
13660 conftest$ac_exeext conftest.$ac_ext
13662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13664 if test `eval echo '${'$as_ac_var'}'` = yes; then
13665 cat >>confdefs.h <<_ACEOF
13666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13673 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13674 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13675 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 #include <unistd.h>
13690 char *p = (char *) fdatasync;
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>conftest.er1
13701 grep -v '^ *+' conftest.er1 >conftest.err
13703 cat conftest.err >&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -z "$ac_c_werror_flag"
13707 || test ! -s conftest.err'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 ac_cv_have_decl_fdatasync=yes
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_have_decl_fdatasync=no
13726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13728 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13729 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13730 if test $ac_cv_have_decl_fdatasync = yes; then
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_DECL_FDATASYNC 1
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_DECL_FDATASYNC 0
13748 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13749 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13750 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 $ac_includes_default
13760 #include <netinet/in.h>
13765 if ((struct sockaddr_in6 *) 0)
13767 if (sizeof (struct sockaddr_in6))
13773 rm -f conftest.$ac_objext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13775 (eval $ac_compile) 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag"
13783 || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest.$ac_objext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 ac_cv_type_struct_sockaddr_in6=yes
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_cv_type_struct_sockaddr_in6=no
13802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13805 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13806 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13808 cat >>confdefs.h <<\_ACEOF
13809 #define HAVE_IPV6 1
13817 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13818 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13819 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 cat >conftest.$ac_ext <<_ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <machine/vmparam.h>
13829 #include <sys/exec.h>
13834 PS_STRINGS->ps_nargvstr = 1;
13835 PS_STRINGS->ps_argvstr = "foo";
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>conftest.er1
13844 grep -v '^ *+' conftest.er1 >conftest.err
13846 cat conftest.err >&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
13849 { ac_try='test -z "$ac_c_werror_flag"
13850 || test ! -s conftest.err'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } &&
13856 { ac_try='test -s conftest$ac_exeext'
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; }; then
13862 pgac_cv_var_PS_STRINGS=yes
13864 echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 pgac_cv_var_PS_STRINGS=no
13869 rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13872 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13873 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13874 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_PS_STRINGS
13883 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13884 # is missing. Yes, there are machines that have only one. We may
13885 # also decide to use snprintf.c if snprintf() is present but does not
13886 # have all the features we need --- see below.
13888 pgac_need_repl_snprintf=no
13890 for ac_func in snprintf
13892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13893 echo "$as_me:$LINENO: checking for $ac_func" >&5
13894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_var+set}\" = set"; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13906 #define $ac_func innocuous_$ac_func
13908 /* System header to define __stub macros and hopefully few prototypes,
13909 which can conflict with char $ac_func (); below.
13910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13911 <limits.h> exists even on freestanding compilers. */
13914 # include <limits.h>
13916 # include <assert.h>
13921 /* Override any gcc2 internal prototype to avoid an error. */
13926 /* We use char because int might match the return type of a gcc2
13927 builtin and then its argument prototype would still apply. */
13929 /* The GNU C library defines this for functions which it implements
13930 to always fail with ENOSYS. Some functions are actually named
13931 something starting with __ and the normal name is an alias. */
13932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13935 char (*f) () = $ac_func;
13944 return f != $ac_func;
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13951 (eval $ac_link) 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 eval "$as_ac_var=yes"
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 eval "$as_ac_var=no"
13978 rm -f conftest.err conftest.$ac_objext \
13979 conftest$ac_exeext conftest.$ac_ext
13981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13983 if test `eval echo '${'$as_ac_var'}'` = yes; then
13984 cat >>confdefs.h <<_ACEOF
13985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 pgac_need_repl_snprintf=yes
13994 for ac_func in vsnprintf
13996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13997 echo "$as_me:$LINENO: checking for $ac_func" >&5
13998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13999 if eval "test \"\${$as_ac_var+set}\" = set"; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14010 #define $ac_func innocuous_$ac_func
14012 /* System header to define __stub macros and hopefully few prototypes,
14013 which can conflict with char $ac_func (); below.
14014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14015 <limits.h> exists even on freestanding compilers. */
14018 # include <limits.h>
14020 # include <assert.h>
14025 /* Override any gcc2 internal prototype to avoid an error. */
14030 /* We use char because int might match the return type of a gcc2
14031 builtin and then its argument prototype would still apply. */
14033 /* The GNU C library defines this for functions which it implements
14034 to always fail with ENOSYS. Some functions are actually named
14035 something starting with __ and the normal name is an alias. */
14036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14039 char (*f) () = $ac_func;
14048 return f != $ac_func;
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14055 (eval $ac_link) 2>conftest.er1
14057 grep -v '^ *+' conftest.er1 >conftest.err
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag"
14063 || test ! -s conftest.err'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075 eval "$as_ac_var=yes"
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 eval "$as_ac_var=no"
14082 rm -f conftest.err conftest.$ac_objext \
14083 conftest$ac_exeext conftest.$ac_ext
14085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14087 if test `eval echo '${'$as_ac_var'}'` = yes; then
14088 cat >>confdefs.h <<_ACEOF
14089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14093 pgac_need_repl_snprintf=yes
14099 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14100 # include/c.h will provide declarations. Note this is a separate test
14101 # from whether the functions exist in the C library --- there are
14102 # systems that have the functions but don't bother to declare them :-(
14104 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14105 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14106 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14120 char *p = (char *) snprintf;
14127 rm -f conftest.$ac_objext
14128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag"
14137 || test ! -s conftest.err'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 ac_cv_have_decl_snprintf=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_cv_have_decl_snprintf=no
14156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14158 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14159 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14160 if test $ac_cv_have_decl_snprintf = yes; then
14162 cat >>confdefs.h <<_ACEOF
14163 #define HAVE_DECL_SNPRINTF 1
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_DECL_SNPRINTF 0
14174 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14175 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14176 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14179 cat >conftest.$ac_ext <<_ACEOF
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14185 $ac_includes_default
14190 char *p = (char *) vsnprintf;
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199 (eval $ac_compile) 2>conftest.er1
14201 grep -v '^ *+' conftest.er1 >conftest.err
14203 cat conftest.err >&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } &&
14206 { ac_try='test -z "$ac_c_werror_flag"
14207 || test ! -s conftest.err'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest.$ac_objext'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; }; then
14219 ac_cv_have_decl_vsnprintf=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 ac_cv_have_decl_vsnprintf=no
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14229 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14230 if test $ac_cv_have_decl_vsnprintf = yes; then
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_DECL_VSNPRINTF 1
14238 cat >>confdefs.h <<_ACEOF
14239 #define HAVE_DECL_VSNPRINTF 0
14248 # do this one the hard way in case isinf() is a macro
14249 echo "$as_me:$LINENO: checking for isinf" >&5
14250 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14251 if test "${ac_cv_func_isinf+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 cat >conftest.$ac_ext <<_ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14265 double x = 0.0; int res = isinf(x);
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_c_werror_flag"
14280 || test ! -s conftest.err'
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; } &&
14286 { ac_try='test -s conftest$ac_exeext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 ac_cv_func_isinf=yes
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 ac_cv_func_isinf=no
14299 rm -f conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14302 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14303 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14305 if test $ac_cv_func_isinf = yes ; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_ISINF 1
14313 "isinf.$ac_objext" | \
14314 *" isinf.$ac_objext" | \
14315 "isinf.$ac_objext "* | \
14316 *" isinf.$ac_objext "* ) ;;
14317 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14320 # Look for a way to implement a substitute for isinf()
14325 for ac_func in fpclass fp_class fp_class_d class
14327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14328 echo "$as_me:$LINENO: checking for $ac_func" >&5
14329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14330 if eval "test \"\${$as_ac_var+set}\" = set"; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14341 #define $ac_func innocuous_$ac_func
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func (); below.
14345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14346 <limits.h> exists even on freestanding compilers. */
14349 # include <limits.h>
14351 # include <assert.h>
14356 /* Override any gcc2 internal prototype to avoid an error. */
14361 /* We use char because int might match the return type of a gcc2
14362 builtin and then its argument prototype would still apply. */
14364 /* The GNU C library defines this for functions which it implements
14365 to always fail with ENOSYS. Some functions are actually named
14366 something starting with __ and the normal name is an alias. */
14367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14370 char (*f) () = $ac_func;
14379 return f != $ac_func;
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386 (eval $ac_link) 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag"
14394 || test ! -s conftest.err'
14395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; } &&
14400 { ac_try='test -s conftest$ac_exeext'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 eval "$as_ac_var=yes"
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 eval "$as_ac_var=no"
14413 rm -f conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14418 if test `eval echo '${'$as_ac_var'}'` = yes; then
14419 cat >>confdefs.h <<_ACEOF
14420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14441 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14446 if eval "test \"\${$as_ac_var+set}\" = set"; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14457 #define $ac_func innocuous_$ac_func
14459 /* System header to define __stub macros and hopefully few prototypes,
14460 which can conflict with char $ac_func (); below.
14461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462 <limits.h> exists even on freestanding compilers. */
14465 # include <limits.h>
14467 # include <assert.h>
14472 /* Override any gcc2 internal prototype to avoid an error. */
14477 /* We use char because int might match the return type of a gcc2
14478 builtin and then its argument prototype would still apply. */
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14486 char (*f) () = $ac_func;
14495 return f != $ac_func;
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14502 (eval $ac_link) 2>conftest.er1
14504 grep -v '^ *+' conftest.er1 >conftest.err
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
14509 { ac_try='test -z "$ac_c_werror_flag"
14510 || test ! -s conftest.err'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest$ac_exeext'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 eval "$as_ac_var=yes"
14524 echo "$as_me: failed program was:" >&5
14525 sed 's/^/| /' conftest.$ac_ext >&5
14527 eval "$as_ac_var=no"
14529 rm -f conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534 if test `eval echo '${'$as_ac_var'}'` = yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14541 "$ac_func.$ac_objext" | \
14542 *" $ac_func.$ac_objext" | \
14543 "$ac_func.$ac_objext "* | \
14544 *" $ac_func.$ac_objext "* ) ;;
14545 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14553 # system's version of getaddrinfo(), if any, may be used only if we found
14554 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
14555 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14557 for ac_func in getaddrinfo
14559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14560 echo "$as_me:$LINENO: checking for $ac_func" >&5
14561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14562 if eval "test \"\${$as_ac_var+set}\" = set"; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14573 #define $ac_func innocuous_$ac_func
14575 /* System header to define __stub macros and hopefully few prototypes,
14576 which can conflict with char $ac_func (); below.
14577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14578 <limits.h> exists even on freestanding compilers. */
14581 # include <limits.h>
14583 # include <assert.h>
14588 /* Override any gcc2 internal prototype to avoid an error. */
14593 /* We use char because int might match the return type of a gcc2
14594 builtin and then its argument prototype would still apply. */
14596 /* The GNU C library defines this for functions which it implements
14597 to always fail with ENOSYS. Some functions are actually named
14598 something starting with __ and the normal name is an alias. */
14599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14602 char (*f) () = $ac_func;
14611 return f != $ac_func;
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14618 (eval $ac_link) 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest$ac_exeext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 eval "$as_ac_var=yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 eval "$as_ac_var=no"
14645 rm -f conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14650 if test `eval echo '${'$as_ac_var'}'` = yes; then
14651 cat >>confdefs.h <<_ACEOF
14652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14657 "$ac_func.$ac_objext" | \
14658 *" $ac_func.$ac_objext" | \
14659 "$ac_func.$ac_objext "* | \
14660 *" $ac_func.$ac_objext "* ) ;;
14661 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14670 "getaddrinfo.$ac_objext" | \
14671 *" getaddrinfo.$ac_objext" | \
14672 "getaddrinfo.$ac_objext "* | \
14673 *" getaddrinfo.$ac_objext "* ) ;;
14674 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14679 # similarly, use system's getopt_long() only if system provides struct option.
14680 if test x"$ac_cv_type_struct_option" = xyes ; then
14682 for ac_func in getopt_long
14684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14685 echo "$as_me:$LINENO: checking for $ac_func" >&5
14686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14687 if eval "test \"\${$as_ac_var+set}\" = set"; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14698 #define $ac_func innocuous_$ac_func
14700 /* System header to define __stub macros and hopefully few prototypes,
14701 which can conflict with char $ac_func (); below.
14702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14703 <limits.h> exists even on freestanding compilers. */
14706 # include <limits.h>
14708 # include <assert.h>
14713 /* Override any gcc2 internal prototype to avoid an error. */
14718 /* We use char because int might match the return type of a gcc2
14719 builtin and then its argument prototype would still apply. */
14721 /* The GNU C library defines this for functions which it implements
14722 to always fail with ENOSYS. Some functions are actually named
14723 something starting with __ and the normal name is an alias. */
14724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14727 char (*f) () = $ac_func;
14736 return f != $ac_func;
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743 (eval $ac_link) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_c_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 eval "$as_ac_var=yes"
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 eval "$as_ac_var=no"
14770 rm -f conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14775 if test `eval echo '${'$as_ac_var'}'` = yes; then
14776 cat >>confdefs.h <<_ACEOF
14777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 "$ac_func.$ac_objext" | \
14783 *" $ac_func.$ac_objext" | \
14784 "$ac_func.$ac_objext "* | \
14785 *" $ac_func.$ac_objext "* ) ;;
14786 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14795 "getopt_long.$ac_objext" | \
14796 *" getopt_long.$ac_objext" | \
14797 "getopt_long.$ac_objext "* | \
14798 *" getopt_long.$ac_objext "* ) ;;
14799 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14804 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14805 # We override the previous test that said fseeko/ftello didn't exist
14806 # OS tests are also done in include/c.h and port/fseeko.c
14807 case $host_os in bsdi*|netbsd*)
14808 ac_cv_func_fseeko=yes
14811 # Solaris has a very slow qsort in certain cases, so we replace it.
14812 if test "$PORTNAME" = "solaris"; then
14814 "qsort.$ac_objext" | \
14815 *" qsort.$ac_objext" | \
14816 "qsort.$ac_objext "* | \
14817 *" qsort.$ac_objext "* ) ;;
14818 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14824 if test "$PORTNAME" = "win32"; then
14826 "gettimeofday.$ac_objext" | \
14827 *" gettimeofday.$ac_objext" | \
14828 "gettimeofday.$ac_objext "* | \
14829 *" gettimeofday.$ac_objext "* ) ;;
14830 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14834 "kill.$ac_objext" | \
14835 *" kill.$ac_objext" | \
14836 "kill.$ac_objext "* | \
14837 *" kill.$ac_objext "* ) ;;
14838 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14842 "open.$ac_objext" | \
14843 *" open.$ac_objext" | \
14844 "open.$ac_objext "* | \
14845 *" open.$ac_objext "* ) ;;
14846 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14850 "rand.$ac_objext" | \
14851 *" rand.$ac_objext" | \
14852 "rand.$ac_objext "* | \
14853 *" rand.$ac_objext "* ) ;;
14854 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_SYMLINK 1
14864 if test "$with_readline" = yes; then
14865 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14866 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14874 #ifdef HAVE_READLINE_READLINE_H
14875 # include <readline/readline.h>
14876 #elif defined(HAVE_READLINE_H)
14877 # include <readline.h>
14883 rl_completion_append_character = 'x';
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14890 (eval $ac_link) 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } &&
14897 { ac_try='test -z "$ac_c_werror_flag"
14898 || test ! -s conftest.err'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; } &&
14904 { ac_try='test -s conftest$ac_exeext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 echo "$as_me:$LINENO: result: yes" >&5
14911 echo "${ECHO_T}yes" >&6
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14918 echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 echo "$as_me:$LINENO: result: no" >&5
14922 echo "${ECHO_T}no" >&6
14924 rm -f conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14928 for ac_func in rl_completion_matches rl_filename_completion_function
14930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14931 echo "$as_me:$LINENO: checking for $ac_func" >&5
14932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14933 if eval "test \"\${$as_ac_var+set}\" = set"; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14944 #define $ac_func innocuous_$ac_func
14946 /* System header to define __stub macros and hopefully few prototypes,
14947 which can conflict with char $ac_func (); below.
14948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14949 <limits.h> exists even on freestanding compilers. */
14952 # include <limits.h>
14954 # include <assert.h>
14959 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14967 /* The GNU C library defines this for functions which it implements
14968 to always fail with ENOSYS. Some functions are actually named
14969 something starting with __ and the normal name is an alias. */
14970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14973 char (*f) () = $ac_func;
14982 return f != $ac_func;
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag"
14997 || test ! -s conftest.err'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; } &&
15003 { ac_try='test -s conftest$ac_exeext'
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then
15009 eval "$as_ac_var=yes"
15011 echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 eval "$as_ac_var=no"
15016 rm -f conftest.err conftest.$ac_objext \
15017 conftest$ac_exeext conftest.$ac_ext
15019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15021 if test `eval echo '${'$as_ac_var'}'` = yes; then
15022 cat >>confdefs.h <<_ACEOF
15023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15030 for ac_func in replace_history_entry
15032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15033 echo "$as_me:$LINENO: checking for $ac_func" >&5
15034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15035 if eval "test \"\${$as_ac_var+set}\" = set"; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15046 #define $ac_func innocuous_$ac_func
15048 /* System header to define __stub macros and hopefully few prototypes,
15049 which can conflict with char $ac_func (); below.
15050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15051 <limits.h> exists even on freestanding compilers. */
15054 # include <limits.h>
15056 # include <assert.h>
15061 /* Override any gcc2 internal prototype to avoid an error. */
15066 /* We use char because int might match the return type of a gcc2
15067 builtin and then its argument prototype would still apply. */
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15075 char (*f) () = $ac_func;
15084 return f != $ac_func;
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091 (eval $ac_link) 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -z "$ac_c_werror_flag"
15099 || test ! -s conftest.err'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } &&
15105 { ac_try='test -s conftest$ac_exeext'
15106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15111 eval "$as_ac_var=yes"
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.$ac_ext >&5
15116 eval "$as_ac_var=no"
15118 rm -f conftest.err conftest.$ac_objext \
15119 conftest$ac_exeext conftest.$ac_ext
15121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15123 if test `eval echo '${'$as_ac_var'}'` = yes; then
15124 cat >>confdefs.h <<_ACEOF
15125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15134 echo "$as_me:$LINENO: checking for finite" >&5
15135 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15146 int dummy=finite(1.0);
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest$ac_exeext'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_FINITE 1
15178 echo "$as_me:$LINENO: result: yes" >&5
15179 echo "${ECHO_T}yes" >&6
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 echo "$as_me:$LINENO: result: no" >&5
15185 echo "${ECHO_T}no" >&6
15187 rm -f conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15190 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15191 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <setjmp.h>
15202 sigjmp_buf x; sigsetjmp(x, 1);
15207 rm -f conftest.$ac_objext conftest$ac_exeext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15209 (eval $ac_link) 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } &&
15216 { ac_try='test -z "$ac_c_werror_flag"
15217 || test ! -s conftest.err'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15230 cat >>confdefs.h <<\_ACEOF
15231 #define HAVE_SIGSETJMP 1
15234 echo "$as_me:$LINENO: result: yes" >&5
15235 echo "${ECHO_T}yes" >&6
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 echo "$as_me:$LINENO: result: no" >&5
15241 echo "${ECHO_T}no" >&6
15243 rm -f conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15246 echo "$as_me:$LINENO: checking for syslog" >&5
15247 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15248 if test "${ac_cv_func_syslog+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15259 #define syslog innocuous_syslog
15261 /* System header to define __stub macros and hopefully few prototypes,
15262 which can conflict with char syslog (); below.
15263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15264 <limits.h> exists even on freestanding compilers. */
15267 # include <limits.h>
15269 # include <assert.h>
15274 /* Override any gcc2 internal prototype to avoid an error. */
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15282 /* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285 #if defined (__stub_syslog) || defined (__stub___syslog)
15288 char (*f) () = syslog;
15297 return f != syslog;
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304 (eval $ac_link) 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_func_syslog=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_func_syslog=no
15331 rm -f conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15334 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15335 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15336 if test $ac_cv_func_syslog = yes; then
15337 if test "${ac_cv_header_syslog_h+set}" = set; then
15338 echo "$as_me:$LINENO: checking for syslog.h" >&5
15339 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15340 if test "${ac_cv_header_syslog_h+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15344 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15346 # Is the header compilable?
15347 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15348 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15349 cat >conftest.$ac_ext <<_ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h. */
15355 $ac_includes_default
15356 #include <syslog.h>
15358 rm -f conftest.$ac_objext
15359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15360 (eval $ac_compile) 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag"
15368 || test ! -s conftest.err'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 ac_header_compiler=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_header_compiler=no
15387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6
15391 # Is the header present?
15392 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15393 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <syslog.h>
15402 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } >/dev/null; then
15410 if test -s conftest.err; then
15411 ac_cpp_err=$ac_c_preproc_warn_flag
15412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15419 if test -z "$ac_cpp_err"; then
15420 ac_header_preproc=yes
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_header_preproc=no
15427 rm -f conftest.err conftest.$ac_ext
15428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15429 echo "${ECHO_T}$ac_header_preproc" >&6
15431 # So? What about this header?
15432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15434 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15435 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15436 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15437 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15438 ac_header_preproc=yes
15441 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15442 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15444 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15446 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15448 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15450 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15452 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15455 ## ---------------------------------------- ##
15456 ## Report this to pgsql-bugs@postgresql.org ##
15457 ## ---------------------------------------- ##
15460 sed "s/^/$as_me: WARNING: /" >&2
15463 echo "$as_me:$LINENO: checking for syslog.h" >&5
15464 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15465 if test "${ac_cv_header_syslog_h+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 ac_cv_header_syslog_h=$ac_header_preproc
15470 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15471 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15474 if test $ac_cv_header_syslog_h = yes; then
15476 cat >>confdefs.h <<\_ACEOF
15477 #define HAVE_SYSLOG 1
15486 echo "$as_me:$LINENO: checking for optreset" >&5
15487 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15488 if test "${pgac_cv_var_int_optreset+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 #include <unistd.h>
15501 extern int optreset; optreset = 1;
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15508 (eval $ac_link) 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } &&
15515 { ac_try='test -z "$ac_c_werror_flag"
15516 || test ! -s conftest.err'
15517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); }; } &&
15522 { ac_try='test -s conftest$ac_exeext'
15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524 (eval $ac_try) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); }; }; then
15528 pgac_cv_var_int_optreset=yes
15530 echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15533 pgac_cv_var_int_optreset=no
15535 rm -f conftest.err conftest.$ac_objext \
15536 conftest$ac_exeext conftest.$ac_ext
15538 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15539 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15540 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15542 cat >>confdefs.h <<\_ACEOF
15543 #define HAVE_INT_OPTRESET 1
15550 for ac_func in strtoll strtoq
15552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15553 echo "$as_me:$LINENO: checking for $ac_func" >&5
15554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15555 if eval "test \"\${$as_ac_var+set}\" = set"; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15566 #define $ac_func innocuous_$ac_func
15568 /* System header to define __stub macros and hopefully few prototypes,
15569 which can conflict with char $ac_func (); below.
15570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15571 <limits.h> exists even on freestanding compilers. */
15574 # include <limits.h>
15576 # include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15586 /* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15595 char (*f) () = $ac_func;
15604 return f != $ac_func;
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15611 (eval $ac_link) 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } &&
15618 { ac_try='test -z "$ac_c_werror_flag"
15619 || test ! -s conftest.err'
15620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; } &&
15625 { ac_try='test -s conftest$ac_exeext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 eval "$as_ac_var=yes"
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 eval "$as_ac_var=no"
15638 rm -f conftest.err conftest.$ac_objext \
15639 conftest$ac_exeext conftest.$ac_ext
15641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15643 if test `eval echo '${'$as_ac_var'}'` = yes; then
15644 cat >>confdefs.h <<_ACEOF
15645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15653 for ac_func in strtoull strtouq
15655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15656 echo "$as_me:$LINENO: checking for $ac_func" >&5
15657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15658 if eval "test \"\${$as_ac_var+set}\" = set"; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15661 cat >conftest.$ac_ext <<_ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h. */
15667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15669 #define $ac_func innocuous_$ac_func
15671 /* System header to define __stub macros and hopefully few prototypes,
15672 which can conflict with char $ac_func (); below.
15673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15674 <limits.h> exists even on freestanding compilers. */
15677 # include <limits.h>
15679 # include <assert.h>
15684 /* Override any gcc2 internal prototype to avoid an error. */
15689 /* We use char because int might match the return type of a gcc2
15690 builtin and then its argument prototype would still apply. */
15692 /* The GNU C library defines this for functions which it implements
15693 to always fail with ENOSYS. Some functions are actually named
15694 something starting with __ and the normal name is an alias. */
15695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15698 char (*f) () = $ac_func;
15707 return f != $ac_func;
15712 rm -f conftest.$ac_objext conftest$ac_exeext
15713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15714 (eval $ac_link) 2>conftest.er1
15716 grep -v '^ *+' conftest.er1 >conftest.err
15718 cat conftest.err >&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
15721 { ac_try='test -z "$ac_c_werror_flag"
15722 || test ! -s conftest.err'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest$ac_exeext'
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 eval "$as_ac_var=yes"
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 eval "$as_ac_var=no"
15741 rm -f conftest.err conftest.$ac_objext \
15742 conftest$ac_exeext conftest.$ac_ext
15744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15746 if test `eval echo '${'$as_ac_var'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15755 # Check for one of atexit() or on_exit()
15757 for ac_func in atexit
15759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15760 echo "$as_me:$LINENO: checking for $ac_func" >&5
15761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15762 if eval "test \"\${$as_ac_var+set}\" = set"; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 cat >conftest.$ac_ext <<_ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15773 #define $ac_func innocuous_$ac_func
15775 /* System header to define __stub macros and hopefully few prototypes,
15776 which can conflict with char $ac_func (); below.
15777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15778 <limits.h> exists even on freestanding compilers. */
15781 # include <limits.h>
15783 # include <assert.h>
15788 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15802 char (*f) () = $ac_func;
15811 return f != $ac_func;
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } &&
15825 { ac_try='test -z "$ac_c_werror_flag"
15826 || test ! -s conftest.err'
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); }; } &&
15832 { ac_try='test -s conftest$ac_exeext'
15833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834 (eval $ac_try) 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 eval "$as_ac_var=yes"
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 eval "$as_ac_var=no"
15845 rm -f conftest.err conftest.$ac_objext \
15846 conftest$ac_exeext conftest.$ac_ext
15848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15850 if test `eval echo '${'$as_ac_var'}'` = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15857 for ac_func in on_exit
15859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15860 echo "$as_me:$LINENO: checking for $ac_func" >&5
15861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15862 if eval "test \"\${$as_ac_var+set}\" = set"; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15873 #define $ac_func innocuous_$ac_func
15875 /* System header to define __stub macros and hopefully few prototypes,
15876 which can conflict with char $ac_func (); below.
15877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878 <limits.h> exists even on freestanding compilers. */
15881 # include <limits.h>
15883 # include <assert.h>
15888 /* Override any gcc2 internal prototype to avoid an error. */
15893 /* We use char because int might match the return type of a gcc2
15894 builtin and then its argument prototype would still apply. */
15896 /* The GNU C library defines this for functions which it implements
15897 to always fail with ENOSYS. Some functions are actually named
15898 something starting with __ and the normal name is an alias. */
15899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15902 char (*f) () = $ac_func;
15911 return f != $ac_func;
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15918 (eval $ac_link) 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag"
15926 || test ! -s conftest.err'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; } &&
15932 { ac_try='test -s conftest$ac_exeext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15938 eval "$as_ac_var=yes"
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 eval "$as_ac_var=no"
15945 rm -f conftest.err conftest.$ac_objext \
15946 conftest$ac_exeext conftest.$ac_ext
15948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15950 if test `eval echo '${'$as_ac_var'}'` = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15956 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15957 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15958 { (exit 1); exit 1; }; }
15966 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15967 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15968 if test "${ac_cv_sys_largefile_source+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 ac_cv_sys_largefile_source=no
15973 cat >conftest.$ac_ext <<_ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15988 rm -f conftest.$ac_objext
15989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15990 (eval $ac_compile) 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -z "$ac_c_werror_flag"
15998 || test ! -s conftest.err'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16012 echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #define _LARGEFILE_SOURCE 1
16033 rm -f conftest.$ac_objext
16034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16035 (eval $ac_compile) 2>conftest.er1
16037 grep -v '^ *+' conftest.er1 >conftest.err
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -z "$ac_c_werror_flag"
16043 || test ! -s conftest.err'
16044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); }; } &&
16049 { ac_try='test -s conftest.$ac_objext'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; }; then
16055 ac_cv_sys_largefile_source=1; break
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16066 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16067 if test "$ac_cv_sys_largefile_source" != no; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16076 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16077 # in glibc 2.1.3, but that breaks too many other things.
16078 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16079 echo "$as_me:$LINENO: checking for fseeko" >&5
16080 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16081 if test "${ac_cv_func_fseeko+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 cat >conftest.$ac_ext <<_ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16094 return fseeko && fseeko (stdin, 0, 0);
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16101 (eval $ac_link) 2>conftest.er1
16103 grep -v '^ *+' conftest.er1 >conftest.err
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag"
16109 || test ! -s conftest.err'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_cv_func_fseeko=yes
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 ac_cv_func_fseeko=no
16128 rm -f conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16131 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16132 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16133 if test $ac_cv_func_fseeko = yes; then
16135 cat >>confdefs.h <<\_ACEOF
16136 #define HAVE_FSEEKO 1
16145 # For each platform, we need to know about any special compile and link
16146 # libraries, and whether the normal C function names are thread-safe.
16147 # See the comment at the top of src/port/thread.c for more information.
16149 if test "$enable_thread_safety" = yes; then
16155 ac_cpp='$CPP $CPPFLAGS'
16156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16162 # We used to check for pthread.h first, but this fails if pthread.h
16163 # requires special compiler flags (e.g. on True64 or Sequent).
16164 # It gets checked for in the link test anyway.
16166 # First of all, check if the user has set any of the PTHREAD_LIBS,
16167 # etcetera environment variables, and if threads linking works using
16169 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16170 save_CFLAGS="$CFLAGS"
16171 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16173 LIBS="$PTHREAD_LIBS $LIBS"
16174 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16175 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16183 /* Override any gcc2 internal prototype to avoid an error. */
16187 /* We use char because int might match the return type of a gcc2
16188 builtin and then its argument prototype would still apply. */
16189 char pthread_join ();
16198 rm -f conftest.$ac_objext conftest$ac_exeext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16200 (eval $ac_link) 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag"
16208 || test ! -s conftest.err'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest$ac_exeext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16226 rm -f conftest.err conftest.$ac_objext \
16227 conftest$ac_exeext conftest.$ac_ext
16228 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16229 echo "${ECHO_T}$acx_pthread_ok" >&6
16230 if test x"$acx_pthread_ok" = xno; then
16235 CFLAGS="$save_CFLAGS"
16238 # We must check for the threads library under a number of different
16239 # names; the ordering is very important because some systems
16240 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16241 # libraries is broken (non-POSIX).
16243 # Create a list of thread flags to try. Items starting with a "-" are
16244 # C compiler flags, and other items are library names, except for "none"
16245 # which indicates that we try without any flags at all, and "pthread-config"
16246 # which is a program returning the flags for the Pth emulation library.
16248 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16250 # The ordering *is* (sometimes) important. Some notes on the
16251 # individual items follow:
16253 # pthreads: AIX (must check this before -lpthread)
16254 # none: in case threads are in libc; should be tried before -Kthread and
16255 # other compiler flags to prevent continual compiler warnings
16256 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16257 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16258 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16259 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16260 # -pthreads: Solaris/gcc
16261 # -mthreads: Mingw32/gcc, Lynx/gcc
16262 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16263 # doesn't hurt to check since this sometimes defines pthreads too;
16264 # also defines -D_REENTRANT)
16265 # pthread: Linux, etcetera
16266 # --thread-safe: KAI C++
16267 # pthread-config: use pthread-config program (for GNU Pth library)
16269 case "${host_cpu}-${host_os}" in
16272 # On Solaris (at least, for some versions), libc contains stubbed
16273 # (non-functional) versions of the pthreads routines, so link-based
16274 # tests will erroneously succeed. (We need to link with -pthread or
16275 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16276 # a function called by this macro, so we could check for that, but
16277 # who knows whether they'll stub that too in a future libc.) So,
16278 # we'll just look for -pthreads and -lpthread first:
16280 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16284 if test x"$acx_pthread_ok" = xno; then
16285 for flag in $acx_pthread_flags; do
16287 tryPTHREAD_CFLAGS=""
16291 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16292 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16296 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16297 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16298 tryPTHREAD_CFLAGS="$flag"
16302 # skip this if we already have flags defined, for PostgreSQL
16303 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16304 # Extract the first word of "pthread-config", so it can be a program name with args.
16305 set dummy pthread-config; ac_word=$2
16306 echo "$as_me:$LINENO: checking for $ac_word" >&5
16307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16308 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 if test -n "$acx_pthread_config"; then
16312 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16315 for as_dir in $PATH
16318 test -z "$as_dir" && as_dir=.
16319 for ac_exec_ext in '' $ac_executable_extensions; do
16320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16321 ac_cv_prog_acx_pthread_config="yes"
16322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16328 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16331 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16332 if test -n "$acx_pthread_config"; then
16333 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16334 echo "${ECHO_T}$acx_pthread_config" >&6
16336 echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6
16340 if test x"$acx_pthread_config" = xno; then continue; fi
16341 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16342 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16346 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16347 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16348 tryPTHREAD_LIBS="-l$flag"
16353 save_CFLAGS="$CFLAGS"
16354 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16355 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16357 # Check for various functions. We must include pthread.h,
16358 # since some functions may be macros. (On the Sequent, we
16359 # need a special flag -Kthread to make this header compile.)
16360 # We check for pthread_join because it is in -lpthread on IRIX
16361 # while pthread_create is in libc. We check for pthread_attr_init
16362 # due to DEC craziness with -lpthreads. We check for
16363 # pthread_cleanup_push because it is one of the few pthread
16364 # functions on Solaris that doesn't have a non-functional libc stub.
16365 # We try pthread_create on general principles.
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 #include <pthread.h>
16376 pthread_t th; pthread_join(th, 0);
16377 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16378 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385 (eval $ac_link) 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -z "$ac_c_werror_flag"
16393 || test ! -s conftest.err'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16412 rm -f conftest.err conftest.$ac_objext \
16413 conftest$ac_exeext conftest.$ac_ext
16415 if test "x$acx_pthread_ok" = xyes; then
16416 # Don't use options that are ignored by the compiler.
16417 # We find them by checking stderror.
16418 cat >conftest.$ac_ext <<_ACEOF
16420 main (int argc, char **argv)
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16429 # we continue with more flags because Linux needs -lpthread
16430 # for libpq builds on PostgreSQL. The test above only
16431 # tests for building binaries, not shared libraries.
16432 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16433 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16434 else acx_pthread_ok=no
16439 CFLAGS="$save_CFLAGS"
16441 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16442 echo "${ECHO_T}$acx_pthread_ok" >&6
16446 # Various other checks:
16447 if test "x$acx_pthread_ok" = xyes; then
16449 LIBS="$PTHREAD_LIBS $LIBS"
16450 save_CFLAGS="$CFLAGS"
16451 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16453 # Detect AIX lossage: threads are created detached by default
16454 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16455 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16456 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16457 cat >conftest.$ac_ext <<_ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 #include <pthread.h>
16467 int attr=PTHREAD_CREATE_JOINABLE;
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16474 (eval $ac_link) 2>conftest.er1
16476 grep -v '^ *+' conftest.er1 >conftest.err
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -z "$ac_c_werror_flag"
16482 || test ! -s conftest.err'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest$ac_exeext'
16489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16490 (eval $ac_try) 2>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; }; then
16494 ok=PTHREAD_CREATE_JOINABLE
16496 echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16501 rm -f conftest.err conftest.$ac_objext \
16502 conftest$ac_exeext conftest.$ac_ext
16503 if test x"$ok" = xunknown; then
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 #include <pthread.h>
16514 int attr=PTHREAD_CREATE_UNDETACHED;
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16521 (eval $ac_link) 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ok=PTHREAD_CREATE_UNDETACHED
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16548 rm -f conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16551 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16553 cat >>confdefs.h <<\_ACEOF
16554 #define PTHREAD_CREATE_JOINABLE $ok
16558 echo "$as_me:$LINENO: result: ${ok}" >&5
16559 echo "${ECHO_T}${ok}" >&6
16560 if test x"$ok" = xunknown; then
16561 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16562 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16565 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16566 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16568 # We always add these in PostgreSQL
16569 # case "${host_cpu}-${host_os}" in
16570 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16571 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16573 echo "$as_me:$LINENO: result: ${flag}" >&5
16574 echo "${ECHO_T}${flag}" >&6
16575 if test "x$flag" != xno; then
16576 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16580 CFLAGS="$save_CFLAGS"
16582 # Supporting cc_r would require a special CC in all places that
16583 # use libpq, and that is ugly, so we don't do it. Users can still
16584 # define their compiler as cc_r to do thread builds of everything.
16585 # More AIX lossage: must compile with cc_r
16586 # Extract the first word of "cc_r", so it can be a program name with args.
16587 set dummy cc_r; ac_word=$2
16588 echo "$as_me:$LINENO: checking for $ac_word" >&5
16589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16590 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 if test -n "$PTHREAD_CC"; then
16594 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597 for as_dir in $PATH
16600 test -z "$as_dir" && as_dir=.
16601 for ac_exec_ext in '' $ac_executable_extensions; do
16602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16603 ac_cv_prog_PTHREAD_CC="cc_r"
16604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16610 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16613 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16614 if test -n "$PTHREAD_CC"; then
16615 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16616 echo "${ECHO_T}$PTHREAD_CC" >&6
16618 echo "$as_me:$LINENO: result: no" >&5
16619 echo "${ECHO_T}no" >&6
16630 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16631 if test x"$acx_pthread_ok" = xyes; then
16633 cat >>confdefs.h <<\_ACEOF
16634 #define HAVE_PTHREAD 1
16643 ac_cpp='$CPP $CPPFLAGS'
16644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16650 # Some platforms use these, so just defineed them. They can't hurt if they
16651 # are not supported.
16652 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16655 # At this point, we don't want to muck with the compiler name for threading.
16656 # Let's see who fails, perhaps AIX. 2004-04-23
16657 if test "$PTHREAD_CC" != "$CC"; then
16658 { { echo "$as_me:$LINENO: error:
16659 PostgreSQL does not support platforms that require a special
16660 compiler binary for thread-safety.
16662 echo "$as_me: error:
16663 PostgreSQL does not support platforms that require a special
16664 compiler binary for thread-safety.
16666 { (exit 1); exit 1; }; }
16669 if test "$THREAD_SUPPORT" = no; then
16670 { { echo "$as_me:$LINENO: error:
16671 Cannot enable threads on your platform.
16672 Your platform is known to not support thread-safe programs.
16673 For details, compile and run src/bin/pg_thread_test.
16675 echo "$as_me: error:
16676 Cannot enable threads on your platform.
16677 Your platform is known to not support thread-safe programs.
16678 For details, compile and run src/bin/pg_thread_test.
16680 { (exit 1); exit 1; }; }
16683 # Check for *_r functions
16686 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16687 LIBS="$LIBS $PTHREAD_LIBS"
16689 if test "${ac_cv_header_pthread_h+set}" = set; then
16690 echo "$as_me:$LINENO: checking for pthread.h" >&5
16691 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16692 if test "${ac_cv_header_pthread_h+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16696 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16698 # Is the header compilable?
16699 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16700 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16708 #include <pthread.h>
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712 (eval $ac_compile) 2>conftest.er1
16714 grep -v '^ *+' conftest.er1 >conftest.err
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_header_compiler=yes
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16737 ac_header_compiler=no
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16745 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h. */
16752 #include <pthread.h>
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16757 grep -v '^ *+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } >/dev/null; then
16762 if test -s conftest.err; then
16763 ac_cpp_err=$ac_c_preproc_warn_flag
16764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16771 if test -z "$ac_cpp_err"; then
16772 ac_header_preproc=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_header_preproc=no
16779 rm -f conftest.err conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16783 # So? What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16786 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16790 ac_header_preproc=yes
16793 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16795 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16797 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16807 ## ---------------------------------------- ##
16808 ## Report this to pgsql-bugs@postgresql.org ##
16809 ## ---------------------------------------- ##
16812 sed "s/^/$as_me: WARNING: /" >&2
16815 echo "$as_me:$LINENO: checking for pthread.h" >&5
16816 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16817 if test "${ac_cv_header_pthread_h+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16820 ac_cv_header_pthread_h=$ac_header_preproc
16822 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16823 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16826 if test $ac_cv_header_pthread_h = yes; then
16829 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16830 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16831 { (exit 1); exit 1; }; }
16839 for ac_func in strerror_r getpwuid_r gethostbyname_r
16841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16842 echo "$as_me:$LINENO: checking for $ac_func" >&5
16843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16844 if eval "test \"\${$as_ac_var+set}\" = set"; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16855 #define $ac_func innocuous_$ac_func
16857 /* System header to define __stub macros and hopefully few prototypes,
16858 which can conflict with char $ac_func (); below.
16859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16860 <limits.h> exists even on freestanding compilers. */
16863 # include <limits.h>
16865 # include <assert.h>
16870 /* Override any gcc2 internal prototype to avoid an error. */
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16884 char (*f) () = $ac_func;
16893 return f != $ac_func;
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900 (eval $ac_link) 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag"
16908 || test ! -s conftest.err'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 eval "$as_ac_var=yes"
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 eval "$as_ac_var=no"
16927 rm -f conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16932 if test `eval echo '${'$as_ac_var'}'` = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16941 # Do test here with the proper thread flags
16942 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16943 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16944 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #include <sys/types.h>
16959 struct passwd *space;
16962 struct passwd **result;
16963 getpwuid_r(uid, space, buf, bufsize, result);
16968 rm -f conftest.$ac_objext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 pgac_func_getpwuid_r_5arg=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 pgac_func_getpwuid_r_5arg=no
16997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16999 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17000 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17001 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17003 cat >>confdefs.h <<\_ACEOF
17004 #define GETPWUID_R_5ARG
17009 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17010 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17011 if test "${pgac_func_strerror_r_int+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h. */
17020 #include <string.h>
17025 int strerror_r(int, char *, size_t);
17027 /* Older AIX has 'int' for the third argument so we don't test the args. */
17034 rm -f conftest.$ac_objext
17035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17036 (eval $ac_compile) 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } &&
17043 { ac_try='test -z "$ac_c_werror_flag"
17044 || test ! -s conftest.err'
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 pgac_func_strerror_r_int=yes
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 pgac_func_strerror_r_int=no
17063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17065 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17066 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17067 if test x"$pgac_func_strerror_r_int" = xyes ; then
17069 cat >>confdefs.h <<\_ACEOF
17070 #define STRERROR_R_INT
17080 # do not use values from template file
17089 # This test makes sure that run tests work at all. Sometimes a shared
17090 # library is found by the linker, but the runtime linker can't find it.
17091 # This check should come after all modifications of compiler or linker
17092 # variables, and before any other run tests.
17093 echo "$as_me:$LINENO: checking test program" >&5
17094 echo $ECHO_N "checking test program... $ECHO_C" >&6
17095 if test "$cross_compiling" = yes; then
17096 echo "$as_me:$LINENO: result: cross-compiling" >&5
17097 echo "${ECHO_T}cross-compiling" >&6
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 int main() { return 0; }
17107 rm -f conftest$ac_exeext
17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 echo "$as_me:$LINENO: result: ok" >&5
17119 echo "${ECHO_T}ok" >&6
17121 echo "$as_me: program exited with status $ac_status" >&5
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ( exit $ac_status )
17126 echo "$as_me:$LINENO: result: failed" >&5
17127 echo "${ECHO_T}failed" >&6
17128 { { echo "$as_me:$LINENO: error:
17129 *** Could not execute a simple test program. This may be a problem
17130 *** related to locating shared libraries. Check the file 'config.log'
17131 *** for the exact reason." >&5
17132 echo "$as_me: error:
17133 *** Could not execute a simple test program. This may be a problem
17134 *** related to locating shared libraries. Check the file 'config.log'
17135 *** for the exact reason." >&2;}
17136 { (exit 1); exit 1; }; }
17138 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17142 # Force use of our snprintf if system's doesn't do arg control
17143 # This feature is used by NLS
17144 if test "$enable_nls" = yes &&
17145 test $pgac_need_repl_snprintf = no &&
17146 # On Win32, libintl replaces snprintf() with its own version that
17147 # understands arg control, so we don't need our own. In fact, it
17148 # also uses macros that conflict with ours, so we _can't_ use
17150 test "$PORTNAME" != "win32"; then
17151 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17152 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17153 if test "${pgac_cv_printf_arg_control+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 if test "$cross_compiling" = yes; then
17157 pgac_cv_printf_arg_control=cross
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 #include <string.h>
17172 /* can it swap arguments? */
17173 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17174 if (strcmp(buf, "4 3") != 0)
17179 rm -f conftest$ac_exeext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17181 (eval $ac_link) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 pgac_cv_printf_arg_control=yes
17192 echo "$as_me: program exited with status $ac_status" >&5
17193 echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17196 ( exit $ac_status )
17197 pgac_cv_printf_arg_control=no
17199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17203 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17204 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17206 if test $pgac_cv_printf_arg_control != yes ; then
17207 pgac_need_repl_snprintf=yes
17213 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17214 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17215 if test "${pgac_cv_type_long_int_64+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 if test "$cross_compiling" = yes; then
17219 # If cross-compiling, check the size reported by the compiler and
17220 # trust that the arithmetic works.
17221 cat >conftest.$ac_ext <<_ACEOF
17224 cat confdefs.h >>conftest.$ac_ext
17225 cat >>conftest.$ac_ext <<_ACEOF
17226 /* end confdefs.h. */
17231 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17238 rm -f conftest.$ac_objext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17240 (eval $ac_compile) 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 pgac_cv_type_long_int_64=yes
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 pgac_cv_type_long_int_64=no
17267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 typedef long int ac_int64;
17278 * These are globals to discourage the compiler from folding all the
17279 * arithmetic tests down to compile-time constants.
17281 ac_int64 a = 20000001;
17282 ac_int64 b = 40000005;
17284 int does_int64_work()
17288 if (sizeof(ac_int64) != 8)
17289 return 0; /* definitely not the right size */
17291 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17299 exit(! does_int64_work());
17302 rm -f conftest$ac_exeext
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 pgac_cv_type_long_int_64=yes
17315 echo "$as_me: program exited with status $ac_status" >&5
17316 echo "$as_me: failed program was:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ( exit $ac_status )
17320 pgac_cv_type_long_int_64=no
17322 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17325 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17326 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17328 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17329 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17331 cat >>confdefs.h <<\_ACEOF
17332 #define HAVE_LONG_INT_64
17338 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17339 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17340 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17341 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 if test "$cross_compiling" = yes; then
17345 # If cross-compiling, check the size reported by the compiler and
17346 # trust that the arithmetic works.
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17357 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17364 rm -f conftest.$ac_objext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17366 (eval $ac_compile) 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag"
17374 || test ! -s conftest.err'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest.$ac_objext'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 pgac_cv_type_long_long_int_64=yes
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 pgac_cv_type_long_long_int_64=no
17393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395 cat >conftest.$ac_ext <<_ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 typedef long long int ac_int64;
17404 * These are globals to discourage the compiler from folding all the
17405 * arithmetic tests down to compile-time constants.
17407 ac_int64 a = 20000001;
17408 ac_int64 b = 40000005;
17410 int does_int64_work()
17414 if (sizeof(ac_int64) != 8)
17415 return 0; /* definitely not the right size */
17417 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17425 exit(! does_int64_work());
17428 rm -f conftest$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 pgac_cv_type_long_long_int_64=yes
17441 echo "$as_me: program exited with status $ac_status" >&5
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 ( exit $ac_status )
17446 pgac_cv_type_long_long_int_64=no
17448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17451 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17452 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17454 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17455 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_LONG_LONG_INT_64
17467 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17468 cat >conftest.$ac_ext <<_ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h. */
17475 #define INT64CONST(x) x##LL
17476 long long int foo = INT64CONST(0x1234567890123456);
17486 rm -f conftest.$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488 (eval $ac_compile) 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); } &&
17495 { ac_try='test -z "$ac_c_werror_flag"
17496 || test ! -s conftest.err'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17509 cat >>confdefs.h <<\_ACEOF
17510 #define HAVE_LL_CONSTANTS 1
17514 echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17522 # If we found "long int" is 64 bits, assume snprintf handles it. If
17523 # we found we need to use "long long int", better check. We cope with
17524 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17525 # work, fall back to our own snprintf emulation (which we know uses %lld).
17527 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17528 if test $pgac_need_repl_snprintf = no; then
17529 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17530 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17531 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 for pgac_format in '%lld' '%qd' '%I64d'; do
17535 if test "$cross_compiling" = yes; then
17536 pgac_cv_snprintf_long_long_int_format=cross; break
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 typedef long long int ac_int64;
17546 #define INT64_FORMAT "$pgac_format"
17548 ac_int64 a = 20000001;
17549 ac_int64 b = 40000005;
17551 int does_int64_snprintf_work()
17556 if (sizeof(ac_int64) != 8)
17557 return 0; /* doesn't look like the right size */
17560 snprintf(buf, 100, INT64_FORMAT, c);
17561 if (strcmp(buf, "800000140000005") != 0)
17562 return 0; /* either multiply or snprintf is busted */
17566 exit(! does_int64_snprintf_work());
17569 rm -f conftest$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>&5
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17582 echo "$as_me: program exited with status $ac_status" >&5
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17587 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17592 LONG_LONG_INT_FORMAT=''
17594 case $pgac_cv_snprintf_long_long_int_format in
17595 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17596 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17597 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17598 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17599 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17600 *) echo "$as_me:$LINENO: result: none" >&5
17601 echo "${ECHO_T}none" >&6;;
17603 if test "$LONG_LONG_INT_FORMAT" = ""; then
17604 # Force usage of our own snprintf, since system snprintf is broken
17605 pgac_need_repl_snprintf=yes
17606 LONG_LONG_INT_FORMAT='%lld'
17609 # Here if we previously decided we needed to use our own snprintf
17610 LONG_LONG_INT_FORMAT='%lld'
17612 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17613 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17614 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17616 # Here if we are not using 'long long int' at all
17617 INT64_FORMAT='"%ld"'
17618 UINT64_FORMAT='"%lu"'
17622 cat >>confdefs.h <<_ACEOF
17623 #define INT64_FORMAT $INT64_FORMAT
17628 cat >>confdefs.h <<_ACEOF
17629 #define UINT64_FORMAT $UINT64_FORMAT
17633 # Now we have checked all the reasons to replace snprintf
17634 if test $pgac_need_repl_snprintf = yes; then
17636 cat >>confdefs.h <<\_ACEOF
17637 #define USE_SNPRINTF 1
17641 "snprintf.$ac_objext" | \
17642 *" snprintf.$ac_objext" | \
17643 "snprintf.$ac_objext "* | \
17644 *" snprintf.$ac_objext "* ) ;;
17645 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17650 # Need a #define for the size of Datum (unsigned long)
17651 echo "$as_me:$LINENO: checking for unsigned long" >&5
17652 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17653 if test "${ac_cv_type_unsigned_long+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 $ac_includes_default
17666 if ((unsigned long *) 0)
17668 if (sizeof (unsigned long))
17674 rm -f conftest.$ac_objext
17675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } &&
17683 { ac_try='test -z "$ac_c_werror_flag"
17684 || test ! -s conftest.err'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest.$ac_objext'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_type_unsigned_long=yes
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ac_cv_type_unsigned_long=no
17703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17705 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17706 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17708 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17709 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17710 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17713 if test "$ac_cv_type_unsigned_long" = yes; then
17714 # The cast to unsigned long works around a bug in the HP C Compiler
17715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17717 # This bug is HP SR number 8606223364.
17718 if test "$cross_compiling" = yes; then
17719 # Depending upon the size, compute the lo and hi bounds.
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 $ac_includes_default
17730 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17737 rm -f conftest.$ac_objext
17738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17739 (eval $ac_compile) 2>conftest.er1
17741 grep -v '^ *+' conftest.er1 >conftest.err
17743 cat conftest.err >&5
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
17746 { ac_try='test -z "$ac_c_werror_flag"
17747 || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest.$ac_objext'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17761 cat >conftest.$ac_ext <<_ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17767 $ac_includes_default
17771 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17778 rm -f conftest.$ac_objext
17779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17780 (eval $ac_compile) 2>conftest.er1
17782 grep -v '^ *+' conftest.er1 >conftest.err
17784 cat conftest.err >&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
17787 { ac_try='test -z "$ac_c_werror_flag"
17788 || test ! -s conftest.err'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } &&
17794 { ac_try='test -s conftest.$ac_objext'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; }; then
17800 ac_hi=$ac_mid; break
17802 echo "$as_me: failed program was:" >&5
17803 sed 's/^/| /' conftest.$ac_ext >&5
17805 ac_lo=`expr $ac_mid + 1`
17806 if test $ac_lo -le $ac_mid; then
17810 ac_mid=`expr 2 '*' $ac_mid + 1`
17812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 $ac_includes_default
17828 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17835 rm -f conftest.$ac_objext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17839 grep -v '^ *+' conftest.er1 >conftest.err
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag"
17845 || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17859 cat >conftest.$ac_ext <<_ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17869 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_lo=$ac_mid; break
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_hi=`expr '(' $ac_mid ')' - 1`
17904 if test $ac_mid -le $ac_hi; then
17908 ac_mid=`expr 2 '*' $ac_mid`
17910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17913 echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17921 # Binary search between lo and hi bounds.
17922 while test "x$ac_lo" != "x$ac_hi"; do
17923 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17924 cat >conftest.$ac_ext <<_ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17934 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17945 grep -v '^ *+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_lo=`expr '(' $ac_mid ')' + 1`
17970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17973 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17974 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17975 See \`config.log' for more details." >&5
17976 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17977 See \`config.log' for more details." >&2;}
17978 { (exit 1); exit 1; }; } ;;
17981 if test "$cross_compiling" = yes; then
17982 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17983 See \`config.log' for more details." >&5
17984 echo "$as_me: error: cannot run test program while cross compiling
17985 See \`config.log' for more details." >&2;}
17986 { (exit 1); exit 1; }; }
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 $ac_includes_default
17995 long longval () { return (long) (sizeof (unsigned long)); }
17996 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
17998 #include <stdlib.h>
18003 FILE *f = fopen ("conftest.val", "w");
18006 if (((long) (sizeof (unsigned long))) < 0)
18008 long i = longval ();
18009 if (i != ((long) (sizeof (unsigned long))))
18011 fprintf (f, "%ld\n", i);
18015 unsigned long i = ulongval ();
18016 if (i != ((long) (sizeof (unsigned long))))
18018 fprintf (f, "%lu\n", i);
18020 exit (ferror (f) || fclose (f) != 0);
18026 rm -f conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18039 echo "$as_me: program exited with status $ac_status" >&5
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ( exit $ac_status )
18044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18045 See \`config.log' for more details." >&5
18046 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18047 See \`config.log' for more details." >&2;}
18048 { (exit 1); exit 1; }; }
18050 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18055 ac_cv_sizeof_unsigned_long=0
18058 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18059 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18060 cat >>confdefs.h <<_ACEOF
18061 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18066 # And one for the size of size_t (enables tweaks for > 32bit address space)
18067 echo "$as_me:$LINENO: checking for size_t" >&5
18068 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18069 if test "${ac_cv_type_size_t+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18078 $ac_includes_default
18084 if (sizeof (size_t))
18090 rm -f conftest.$ac_objext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18092 (eval $ac_compile) 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_c_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest.$ac_objext'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_type_size_t=yes
18114 echo "$as_me: failed program was:" >&5
18115 sed 's/^/| /' conftest.$ac_ext >&5
18117 ac_cv_type_size_t=no
18119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18121 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18122 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18124 echo "$as_me:$LINENO: checking size of size_t" >&5
18125 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18126 if test "${ac_cv_sizeof_size_t+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 if test "$ac_cv_type_size_t" = yes; then
18130 # The cast to unsigned long works around a bug in the HP C Compiler
18131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18133 # This bug is HP SR number 8606223364.
18134 if test "$cross_compiling" = yes; then
18135 # Depending upon the size, compute the lo and hi bounds.
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 $ac_includes_default
18146 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155 (eval $ac_compile) 2>conftest.er1
18157 grep -v '^ *+' conftest.er1 >conftest.err
18159 cat conftest.err >&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); } &&
18162 { ac_try='test -z "$ac_c_werror_flag"
18163 || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 $ac_includes_default
18187 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_hi=$ac_mid; break
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 ac_lo=`expr $ac_mid + 1`
18222 if test $ac_lo -le $ac_mid; then
18226 ac_mid=`expr 2 '*' $ac_mid + 1`
18228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18234 cat >conftest.$ac_ext <<_ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 $ac_includes_default
18244 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18251 rm -f conftest.$ac_objext
18252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18253 (eval $ac_compile) 2>conftest.er1
18255 grep -v '^ *+' conftest.er1 >conftest.err
18257 cat conftest.err >&5
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); } &&
18260 { ac_try='test -z "$ac_c_werror_flag"
18261 || test ! -s conftest.err'
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest.$ac_objext'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; }; then
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18285 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18292 rm -f conftest.$ac_objext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18294 (eval $ac_compile) 2>conftest.er1
18296 grep -v '^ *+' conftest.er1 >conftest.err
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest.$ac_objext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_lo=$ac_mid; break
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_hi=`expr '(' $ac_mid ')' - 1`
18320 if test $ac_mid -le $ac_hi; then
18324 ac_mid=`expr 2 '*' $ac_mid`
18326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18337 # Binary search between lo and hi bounds.
18338 while test "x$ac_lo" != "x$ac_hi"; do
18339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 $ac_includes_default
18350 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18357 rm -f conftest.$ac_objext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18359 (eval $ac_compile) 2>conftest.er1
18361 grep -v '^ *+' conftest.er1 >conftest.err
18363 cat conftest.err >&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } &&
18366 { ac_try='test -z "$ac_c_werror_flag"
18367 || test ! -s conftest.err'
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; } &&
18373 { ac_try='test -s conftest.$ac_objext'
18374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18381 echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18384 ac_lo=`expr '(' $ac_mid ')' + 1`
18386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18391 See \`config.log' for more details." >&5
18392 echo "$as_me: error: cannot compute sizeof (size_t), 77
18393 See \`config.log' for more details." >&2;}
18394 { (exit 1); exit 1; }; } ;;
18397 if test "$cross_compiling" = yes; then
18398 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18399 See \`config.log' for more details." >&5
18400 echo "$as_me: error: cannot run test program while cross compiling
18401 See \`config.log' for more details." >&2;}
18402 { (exit 1); exit 1; }; }
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 $ac_includes_default
18411 long longval () { return (long) (sizeof (size_t)); }
18412 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18414 #include <stdlib.h>
18419 FILE *f = fopen ("conftest.val", "w");
18422 if (((long) (sizeof (size_t))) < 0)
18424 long i = longval ();
18425 if (i != ((long) (sizeof (size_t))))
18427 fprintf (f, "%ld\n", i);
18431 unsigned long i = ulongval ();
18432 if (i != ((long) (sizeof (size_t))))
18434 fprintf (f, "%lu\n", i);
18436 exit (ferror (f) || fclose (f) != 0);
18442 rm -f conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
18453 ac_cv_sizeof_size_t=`cat conftest.val`
18455 echo "$as_me: program exited with status $ac_status" >&5
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ( exit $ac_status )
18460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18461 See \`config.log' for more details." >&5
18462 echo "$as_me: error: cannot compute sizeof (size_t), 77
18463 See \`config.log' for more details." >&2;}
18464 { (exit 1); exit 1; }; }
18466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18471 ac_cv_sizeof_size_t=0
18474 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18475 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18476 cat >>confdefs.h <<_ACEOF
18477 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18482 # Determine memory alignment requirements for the basic C data types.
18484 echo "$as_me:$LINENO: checking for short" >&5
18485 echo $ECHO_N "checking for short... $ECHO_C" >&6
18486 if test "${ac_cv_type_short+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 $ac_includes_default
18501 if (sizeof (short))
18507 rm -f conftest.$ac_objext
18508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18509 (eval $ac_compile) 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_c_werror_flag"
18517 || test ! -s conftest.err'
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest.$ac_objext'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; }; then
18529 ac_cv_type_short=yes
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ac_cv_type_short=no
18536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18538 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18539 echo "${ECHO_T}$ac_cv_type_short" >&6
18541 echo "$as_me:$LINENO: checking alignment of short" >&5
18542 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18543 if test "${pgac_cv_alignof_short+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18546 if test "$ac_cv_type_short" = yes; then
18547 if test "$cross_compiling" = yes; then
18548 # Depending upon the size, compute the lo and hi bounds.
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18555 $ac_includes_default
18556 struct { char filler; short field; } pgac_struct;
18560 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18567 rm -f conftest.$ac_objext
18568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18569 (eval $ac_compile) 2>conftest.er1
18571 grep -v '^ *+' conftest.er1 >conftest.err
18573 cat conftest.err >&5
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
18576 { ac_try='test -z "$ac_c_werror_flag"
18577 || test ! -s conftest.err'
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; } &&
18583 { ac_try='test -s conftest.$ac_objext'
18584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 $ac_includes_default
18598 struct { char filler; short field; } pgac_struct;
18602 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>conftest.er1
18613 grep -v '^ *+' conftest.er1 >conftest.err
18615 cat conftest.err >&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
18618 { ac_try='test -z "$ac_c_werror_flag"
18619 || test ! -s conftest.err'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } &&
18625 { ac_try='test -s conftest.$ac_objext'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_hi=$ac_mid; break
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_lo=`expr $ac_mid + 1`
18637 if test $ac_lo -le $ac_mid; then
18641 ac_mid=`expr 2 '*' $ac_mid + 1`
18643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18646 echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.$ac_ext >&5
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18655 $ac_includes_default
18656 struct { char filler; short field; } pgac_struct;
18660 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18667 rm -f conftest.$ac_objext
18668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18669 (eval $ac_compile) 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } &&
18676 { ac_try='test -z "$ac_c_werror_flag"
18677 || test ! -s conftest.err'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } &&
18683 { ac_try='test -s conftest.$ac_objext'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; }; then
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 $ac_includes_default
18698 struct { char filler; short field; } pgac_struct;
18702 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18709 rm -f conftest.$ac_objext
18710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18711 (eval $ac_compile) 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag"
18719 || test ! -s conftest.err'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest.$ac_objext'
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; }; then
18731 ac_lo=$ac_mid; break
18733 echo "$as_me: failed program was:" >&5
18734 sed 's/^/| /' conftest.$ac_ext >&5
18736 ac_hi=`expr '(' $ac_mid ')' - 1`
18737 if test $ac_mid -le $ac_hi; then
18741 ac_mid=`expr 2 '*' $ac_mid`
18743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18746 echo "$as_me: failed program was:" >&5
18747 sed 's/^/| /' conftest.$ac_ext >&5
18751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18754 # Binary search between lo and hi bounds.
18755 while test "x$ac_lo" != "x$ac_hi"; do
18756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18757 cat >conftest.$ac_ext <<_ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18763 $ac_includes_default
18764 struct { char filler; short field; } pgac_struct;
18768 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777 (eval $ac_compile) 2>conftest.er1
18779 grep -v '^ *+' conftest.er1 >conftest.err
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag"
18785 || test ! -s conftest.err'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18802 ac_lo=`expr '(' $ac_mid ')' + 1`
18804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18807 ?*) pgac_cv_alignof_short=$ac_lo;;
18808 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18809 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18810 { (exit 1); exit 1; }; } ;;
18813 if test "$cross_compiling" = yes; then
18814 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18815 See \`config.log' for more details." >&5
18816 echo "$as_me: error: cannot run test program while cross compiling
18817 See \`config.log' for more details." >&2;}
18818 { (exit 1); exit 1; }; }
18820 cat >conftest.$ac_ext <<_ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826 $ac_includes_default
18827 struct { char filler; short field; } pgac_struct;
18828 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18829 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18831 #include <stdlib.h>
18836 FILE *f = fopen ("conftest.val", "w");
18839 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18841 long i = longval ();
18842 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18844 fprintf (f, "%ld\n", i);
18848 unsigned long i = ulongval ();
18849 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18851 fprintf (f, "%lu\n", i);
18853 exit (ferror (f) || fclose (f) != 0);
18859 rm -f conftest$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18866 (eval $ac_try) 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; }; then
18870 pgac_cv_alignof_short=`cat conftest.val`
18872 echo "$as_me: program exited with status $ac_status" >&5
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 ( exit $ac_status )
18877 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18878 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18879 { (exit 1); exit 1; }; }
18881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18886 pgac_cv_alignof_short=0
18889 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18890 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18891 cat >>confdefs.h <<_ACEOF
18892 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18896 echo "$as_me:$LINENO: checking for int" >&5
18897 echo $ECHO_N "checking for int... $ECHO_C" >&6
18898 if test "${ac_cv_type_int+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 $ac_includes_default
18919 rm -f conftest.$ac_objext
18920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18921 (eval $ac_compile) 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
18928 { ac_try='test -z "$ac_c_werror_flag"
18929 || test ! -s conftest.err'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest.$ac_objext'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18950 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18951 echo "${ECHO_T}$ac_cv_type_int" >&6
18953 echo "$as_me:$LINENO: checking alignment of int" >&5
18954 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18955 if test "${pgac_cv_alignof_int+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 if test "$ac_cv_type_int" = yes; then
18959 if test "$cross_compiling" = yes; then
18960 # Depending upon the size, compute the lo and hi bounds.
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 $ac_includes_default
18968 struct { char filler; int field; } pgac_struct;
18972 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18979 rm -f conftest.$ac_objext
18980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18981 (eval $ac_compile) 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } &&
18988 { ac_try='test -z "$ac_c_werror_flag"
18989 || test ! -s conftest.err'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } &&
18995 { ac_try='test -s conftest.$ac_objext'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; }; then
19003 cat >conftest.$ac_ext <<_ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 struct { char filler; int field; } pgac_struct;
19014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19021 rm -f conftest.$ac_objext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19023 (eval $ac_compile) 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag"
19031 || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_hi=$ac_mid; break
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_lo=`expr $ac_mid + 1`
19049 if test $ac_lo -le $ac_mid; then
19053 ac_mid=`expr 2 '*' $ac_mid + 1`
19055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 $ac_includes_default
19068 struct { char filler; int field; } pgac_struct;
19072 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19079 rm -f conftest.$ac_objext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19081 (eval $ac_compile) 2>conftest.er1
19083 grep -v '^ *+' conftest.er1 >conftest.err
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest.$ac_objext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19103 cat >conftest.$ac_ext <<_ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19109 $ac_includes_default
19110 struct { char filler; int field; } pgac_struct;
19114 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123 (eval $ac_compile) 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest.$ac_objext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 ac_lo=$ac_mid; break
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_hi=`expr '(' $ac_mid ')' - 1`
19149 if test $ac_mid -le $ac_hi; then
19153 ac_mid=`expr 2 '*' $ac_mid`
19155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19166 # Binary search between lo and hi bounds.
19167 while test "x$ac_lo" != "x$ac_hi"; do
19168 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 $ac_includes_default
19176 struct { char filler; int field; } pgac_struct;
19180 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19187 rm -f conftest.$ac_objext
19188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
19196 { ac_try='test -z "$ac_c_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19211 echo "$as_me: failed program was:" >&5
19212 sed 's/^/| /' conftest.$ac_ext >&5
19214 ac_lo=`expr '(' $ac_mid ')' + 1`
19216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19219 ?*) pgac_cv_alignof_int=$ac_lo;;
19220 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19221 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19222 { (exit 1); exit 1; }; } ;;
19225 if test "$cross_compiling" = yes; then
19226 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19227 See \`config.log' for more details." >&5
19228 echo "$as_me: error: cannot run test program while cross compiling
19229 See \`config.log' for more details." >&2;}
19230 { (exit 1); exit 1; }; }
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 $ac_includes_default
19239 struct { char filler; int field; } pgac_struct;
19240 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19241 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19243 #include <stdlib.h>
19248 FILE *f = fopen ("conftest.val", "w");
19251 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19253 long i = longval ();
19254 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19256 fprintf (f, "%ld\n", i);
19260 unsigned long i = ulongval ();
19261 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19263 fprintf (f, "%lu\n", i);
19265 exit (ferror (f) || fclose (f) != 0);
19271 rm -f conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273 (eval $ac_link) 2>&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 pgac_cv_alignof_int=`cat conftest.val`
19284 echo "$as_me: program exited with status $ac_status" >&5
19285 echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ( exit $ac_status )
19289 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19290 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19291 { (exit 1); exit 1; }; }
19293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19298 pgac_cv_alignof_int=0
19301 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19302 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19303 cat >>confdefs.h <<_ACEOF
19304 #define ALIGNOF_INT $pgac_cv_alignof_int
19308 echo "$as_me:$LINENO: checking for long" >&5
19309 echo $ECHO_N "checking for long... $ECHO_C" >&6
19310 if test "${ac_cv_type_long+set}" = set; then
19311 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 cat >conftest.$ac_ext <<_ACEOF
19316 cat confdefs.h >>conftest.$ac_ext
19317 cat >>conftest.$ac_ext <<_ACEOF
19318 /* end confdefs.h. */
19319 $ac_includes_default
19331 rm -f conftest.$ac_objext
19332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19333 (eval $ac_compile) 2>conftest.er1
19335 grep -v '^ *+' conftest.er1 >conftest.err
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } &&
19340 { ac_try='test -z "$ac_c_werror_flag"
19341 || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_cv_type_long=yes
19355 echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19362 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19363 echo "${ECHO_T}$ac_cv_type_long" >&6
19365 echo "$as_me:$LINENO: checking alignment of long" >&5
19366 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19367 if test "${pgac_cv_alignof_long+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 if test "$ac_cv_type_long" = yes; then
19371 if test "$cross_compiling" = yes; then
19372 # Depending upon the size, compute the lo and hi bounds.
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 $ac_includes_default
19380 struct { char filler; long field; } pgac_struct;
19384 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19391 rm -f conftest.$ac_objext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393 (eval $ac_compile) 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag"
19401 || test ! -s conftest.err'
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19415 cat >conftest.$ac_ext <<_ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h. */
19421 $ac_includes_default
19422 struct { char filler; long field; } pgac_struct;
19426 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19433 rm -f conftest.$ac_objext
19434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19435 (eval $ac_compile) 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try='test -z "$ac_c_werror_flag"
19443 || test ! -s conftest.err'
19444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19445 (eval $ac_try) 2>&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); }; } &&
19449 { ac_try='test -s conftest.$ac_objext'
19450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19451 (eval $ac_try) 2>&5
19453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); }; }; then
19455 ac_hi=$ac_mid; break
19457 echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19460 ac_lo=`expr $ac_mid + 1`
19461 if test $ac_lo -le $ac_mid; then
19465 ac_mid=`expr 2 '*' $ac_mid + 1`
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19470 echo "$as_me: failed program was:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 $ac_includes_default
19480 struct { char filler; long field; } pgac_struct;
19484 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19491 rm -f conftest.$ac_objext
19492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19493 (eval $ac_compile) 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } &&
19500 { ac_try='test -z "$ac_c_werror_flag"
19501 || test ! -s conftest.err'
19502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19503 (eval $ac_try) 2>&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); }; } &&
19507 { ac_try='test -s conftest.$ac_objext'
19508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509 (eval $ac_try) 2>&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); }; }; then
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19522 struct { char filler; long field; } pgac_struct;
19526 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 ac_lo=$ac_mid; break
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_hi=`expr '(' $ac_mid ')' - 1`
19561 if test $ac_mid -le $ac_hi; then
19565 ac_mid=`expr 2 '*' $ac_mid`
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19578 # Binary search between lo and hi bounds.
19579 while test "x$ac_lo" != "x$ac_hi"; do
19580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 $ac_includes_default
19588 struct { char filler; long field; } pgac_struct;
19592 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19599 rm -f conftest.$ac_objext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601 (eval $ac_compile) 2>conftest.er1
19603 grep -v '^ *+' conftest.er1 >conftest.err
19605 cat conftest.err >&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
19608 { ac_try='test -z "$ac_c_werror_flag"
19609 || test ! -s conftest.err'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_lo=`expr '(' $ac_mid ')' + 1`
19628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19631 ?*) pgac_cv_alignof_long=$ac_lo;;
19632 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19633 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19634 { (exit 1); exit 1; }; } ;;
19637 if test "$cross_compiling" = yes; then
19638 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19639 See \`config.log' for more details." >&5
19640 echo "$as_me: error: cannot run test program while cross compiling
19641 See \`config.log' for more details." >&2;}
19642 { (exit 1); exit 1; }; }
19644 cat >conftest.$ac_ext <<_ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19651 struct { char filler; long field; } pgac_struct;
19652 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19653 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19655 #include <stdlib.h>
19660 FILE *f = fopen ("conftest.val", "w");
19663 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19665 long i = longval ();
19666 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19668 fprintf (f, "%ld\n", i);
19672 unsigned long i = ulongval ();
19673 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19675 fprintf (f, "%lu\n", i);
19677 exit (ferror (f) || fclose (f) != 0);
19683 rm -f conftest$ac_exeext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19685 (eval $ac_link) 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; }; then
19694 pgac_cv_alignof_long=`cat conftest.val`
19696 echo "$as_me: program exited with status $ac_status" >&5
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ( exit $ac_status )
19701 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19702 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19703 { (exit 1); exit 1; }; }
19705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19710 pgac_cv_alignof_long=0
19713 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19714 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19715 cat >>confdefs.h <<_ACEOF
19716 #define ALIGNOF_LONG $pgac_cv_alignof_long
19720 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19721 echo "$as_me:$LINENO: checking for long long int" >&5
19722 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19723 if test "${ac_cv_type_long_long_int+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19732 $ac_includes_default
19736 if ((long long int *) 0)
19738 if (sizeof (long long int))
19744 rm -f conftest.$ac_objext
19745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19746 (eval $ac_compile) 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } &&
19753 { ac_try='test -z "$ac_c_werror_flag"
19754 || test ! -s conftest.err'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_cv_type_long_long_int=yes
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_cv_type_long_long_int=no
19773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19776 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19778 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19779 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19780 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19783 if test "$ac_cv_type_long_long_int" = yes; then
19784 if test "$cross_compiling" = yes; then
19785 # Depending upon the size, compute the lo and hi bounds.
19786 cat >conftest.$ac_ext <<_ACEOF
19789 cat confdefs.h >>conftest.$ac_ext
19790 cat >>conftest.$ac_ext <<_ACEOF
19791 /* end confdefs.h. */
19792 $ac_includes_default
19793 struct { char filler; long long int field; } pgac_struct;
19797 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19804 rm -f conftest.$ac_objext
19805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19806 (eval $ac_compile) 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag"
19814 || test ! -s conftest.err'
19815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 $ac_includes_default
19835 struct { char filler; long long int field; } pgac_struct;
19839 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19846 rm -f conftest.$ac_objext
19847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848 (eval $ac_compile) 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } &&
19855 { ac_try='test -z "$ac_c_werror_flag"
19856 || test ! -s conftest.err'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; } &&
19862 { ac_try='test -s conftest.$ac_objext'
19863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864 (eval $ac_try) 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); }; }; then
19868 ac_hi=$ac_mid; break
19870 echo "$as_me: failed program was:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_lo=`expr $ac_mid + 1`
19874 if test $ac_lo -le $ac_mid; then
19878 ac_mid=`expr 2 '*' $ac_mid + 1`
19880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 $ac_includes_default
19893 struct { char filler; long long int field; } pgac_struct;
19897 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19904 rm -f conftest.$ac_objext
19905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19906 (eval $ac_compile) 2>conftest.er1
19908 grep -v '^ *+' conftest.er1 >conftest.err
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } &&
19913 { ac_try='test -z "$ac_c_werror_flag"
19914 || test ! -s conftest.err'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 $ac_includes_default
19935 struct { char filler; long long int field; } pgac_struct;
19939 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948 (eval $ac_compile) 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_lo=$ac_mid; break
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_hi=`expr '(' $ac_mid ')' - 1`
19974 if test $ac_mid -le $ac_hi; then
19978 ac_mid=`expr 2 '*' $ac_mid`
19980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19991 # Binary search between lo and hi bounds.
19992 while test "x$ac_lo" != "x$ac_hi"; do
19993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 $ac_includes_default
20001 struct { char filler; long long int field; } pgac_struct;
20005 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20012 rm -f conftest.$ac_objext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014 (eval $ac_compile) 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_c_werror_flag"
20022 || test ! -s conftest.err'
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest.$ac_objext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_lo=`expr '(' $ac_mid ')' + 1`
20041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20045 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20046 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20047 { (exit 1); exit 1; }; } ;;
20050 if test "$cross_compiling" = yes; then
20051 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20052 See \`config.log' for more details." >&5
20053 echo "$as_me: error: cannot run test program while cross compiling
20054 See \`config.log' for more details." >&2;}
20055 { (exit 1); exit 1; }; }
20057 cat >conftest.$ac_ext <<_ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h. */
20063 $ac_includes_default
20064 struct { char filler; long long int field; } pgac_struct;
20065 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20066 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20068 #include <stdlib.h>
20073 FILE *f = fopen ("conftest.val", "w");
20076 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20078 long i = longval ();
20079 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20081 fprintf (f, "%ld\n", i);
20085 unsigned long i = ulongval ();
20086 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20088 fprintf (f, "%lu\n", i);
20090 exit (ferror (f) || fclose (f) != 0);
20096 rm -f conftest$ac_exeext
20097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20098 (eval $ac_link) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 pgac_cv_alignof_long_long_int=`cat conftest.val`
20109 echo "$as_me: program exited with status $ac_status" >&5
20110 echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ( exit $ac_status )
20114 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20115 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20116 { (exit 1); exit 1; }; }
20118 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20123 pgac_cv_alignof_long_long_int=0
20126 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20127 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20128 cat >>confdefs.h <<_ACEOF
20129 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20134 echo "$as_me:$LINENO: checking for double" >&5
20135 echo $ECHO_N "checking for double... $ECHO_C" >&6
20136 if test "${ac_cv_type_double+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 $ac_includes_default
20151 if (sizeof (double))
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_type_double=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_type_double=no
20186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20189 echo "${ECHO_T}$ac_cv_type_double" >&6
20191 echo "$as_me:$LINENO: checking alignment of double" >&5
20192 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20193 if test "${pgac_cv_alignof_double+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 if test "$ac_cv_type_double" = yes; then
20197 if test "$cross_compiling" = yes; then
20198 # Depending upon the size, compute the lo and hi bounds.
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 $ac_includes_default
20206 struct { char filler; double field; } pgac_struct;
20210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219 (eval $ac_compile) 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
20226 { ac_try='test -z "$ac_c_werror_flag"
20227 || test ! -s conftest.err'
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 $ac_includes_default
20248 struct { char filler; double field; } pgac_struct;
20252 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20259 rm -f conftest.$ac_objext
20260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20261 (eval $ac_compile) 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try='test -z "$ac_c_werror_flag"
20269 || test ! -s conftest.err'
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; } &&
20275 { ac_try='test -s conftest.$ac_objext'
20276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277 (eval $ac_try) 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_hi=$ac_mid; break
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 ac_lo=`expr $ac_mid + 1`
20287 if test $ac_lo -le $ac_mid; then
20291 ac_mid=`expr 2 '*' $ac_mid + 1`
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20306 struct { char filler; double field; } pgac_struct;
20310 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20317 rm -f conftest.$ac_objext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>conftest.er1
20321 grep -v '^ *+' conftest.er1 >conftest.err
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20341 cat >conftest.$ac_ext <<_ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347 $ac_includes_default
20348 struct { char filler; double field; } pgac_struct;
20352 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_lo=$ac_mid; break
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ac_hi=`expr '(' $ac_mid ')' - 1`
20387 if test $ac_mid -le $ac_hi; then
20391 ac_mid=`expr 2 '*' $ac_mid`
20393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20404 # Binary search between lo and hi bounds.
20405 while test "x$ac_lo" != "x$ac_hi"; do
20406 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 $ac_includes_default
20414 struct { char filler; double field; } pgac_struct;
20418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20425 rm -f conftest.$ac_objext
20426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20427 (eval $ac_compile) 2>conftest.er1
20429 grep -v '^ *+' conftest.er1 >conftest.err
20431 cat conftest.err >&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } &&
20434 { ac_try='test -z "$ac_c_werror_flag"
20435 || test ! -s conftest.err'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ac_lo=`expr '(' $ac_mid ')' + 1`
20454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20457 ?*) pgac_cv_alignof_double=$ac_lo;;
20458 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20459 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20460 { (exit 1); exit 1; }; } ;;
20463 if test "$cross_compiling" = yes; then
20464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20465 See \`config.log' for more details." >&5
20466 echo "$as_me: error: cannot run test program while cross compiling
20467 See \`config.log' for more details." >&2;}
20468 { (exit 1); exit 1; }; }
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 $ac_includes_default
20477 struct { char filler; double field; } pgac_struct;
20478 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20479 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20481 #include <stdlib.h>
20486 FILE *f = fopen ("conftest.val", "w");
20489 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20491 long i = longval ();
20492 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20494 fprintf (f, "%ld\n", i);
20498 unsigned long i = ulongval ();
20499 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20501 fprintf (f, "%lu\n", i);
20503 exit (ferror (f) || fclose (f) != 0);
20509 rm -f conftest$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511 (eval $ac_link) 2>&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 pgac_cv_alignof_double=`cat conftest.val`
20522 echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20526 ( exit $ac_status )
20527 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20528 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20529 { (exit 1); exit 1; }; }
20531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20536 pgac_cv_alignof_double=0
20539 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20540 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20541 cat >>confdefs.h <<_ACEOF
20542 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20547 # Compute maximum alignment of any basic type.
20548 # We assume long's alignment is at least as strong as char, short, or int;
20549 # but we must check long long (if it exists) and double.
20551 MAX_ALIGNOF=$pgac_cv_alignof_long
20552 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20553 MAX_ALIGNOF=$pgac_cv_alignof_double
20555 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20556 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20559 cat >>confdefs.h <<_ACEOF
20560 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20565 # Some platforms predefine the types int8, int16, etc. Only check
20566 # a (hopefully) representative subset.
20567 echo "$as_me:$LINENO: checking for int8" >&5
20568 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20569 if test "${ac_cv_type_int8+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 cat >conftest.$ac_ext <<_ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h. */
20579 #ifdef HAVE_SUPPORTDEFS_H
20580 #include <SupportDefs.h>
20594 rm -f conftest.$ac_objext
20595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20596 (eval $ac_compile) 2>conftest.er1
20598 grep -v '^ *+' conftest.er1 >conftest.err
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } &&
20603 { ac_try='test -z "$ac_c_werror_flag"
20604 || test ! -s conftest.err'
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_type_int8=yes
20618 echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20625 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20626 echo "${ECHO_T}$ac_cv_type_int8" >&6
20627 if test $ac_cv_type_int8 = yes; then
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_INT8 1
20635 echo "$as_me:$LINENO: checking for uint8" >&5
20636 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20637 if test "${ac_cv_type_uint8+set}" = set; then
20638 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20647 #ifdef HAVE_SUPPORTDEFS_H
20648 #include <SupportDefs.h>
20656 if (sizeof (uint8))
20662 rm -f conftest.$ac_objext
20663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664 (eval $ac_compile) 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } &&
20671 { ac_try='test -z "$ac_c_werror_flag"
20672 || test ! -s conftest.err'
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; } &&
20678 { ac_try='test -s conftest.$ac_objext'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; }; then
20684 ac_cv_type_uint8=yes
20686 echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_cv_type_uint8=no
20691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20693 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20694 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20695 if test $ac_cv_type_uint8 = yes; then
20697 cat >>confdefs.h <<_ACEOF
20698 #define HAVE_UINT8 1
20703 echo "$as_me:$LINENO: checking for int64" >&5
20704 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20705 if test "${ac_cv_type_int64+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
20708 cat >conftest.$ac_ext <<_ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20715 #ifdef HAVE_SUPPORTDEFS_H
20716 #include <SupportDefs.h>
20724 if (sizeof (int64))
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_type_int64=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_cv_type_int64=no
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20762 echo "${ECHO_T}$ac_cv_type_int64" >&6
20763 if test $ac_cv_type_int64 = yes; then
20765 cat >>confdefs.h <<_ACEOF
20766 #define HAVE_INT64 1
20771 echo "$as_me:$LINENO: checking for uint64" >&5
20772 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20773 if test "${ac_cv_type_uint64+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20783 #ifdef HAVE_SUPPORTDEFS_H
20784 #include <SupportDefs.h>
20792 if (sizeof (uint64))
20798 rm -f conftest.$ac_objext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20800 (eval $ac_compile) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } &&
20807 { ac_try='test -z "$ac_c_werror_flag"
20808 || test ! -s conftest.err'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; } &&
20814 { ac_try='test -s conftest.$ac_objext'
20815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816 (eval $ac_try) 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20820 ac_cv_type_uint64=yes
20822 echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20825 ac_cv_type_uint64=no
20827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20829 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20830 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20831 if test $ac_cv_type_uint64 = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_UINT64 1
20841 # We also check for sig_atomic_t, which *should* be defined per ANSI
20842 # C, but is missing on some old platforms.
20843 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20844 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20845 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20848 cat >conftest.$ac_ext <<_ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h. */
20854 #include <signal.h>
20859 if ((sig_atomic_t *) 0)
20861 if (sizeof (sig_atomic_t))
20867 rm -f conftest.$ac_objext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20869 (eval $ac_compile) 2>conftest.er1
20871 grep -v '^ *+' conftest.er1 >conftest.err
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_c_werror_flag"
20877 || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest.$ac_objext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_type_sig_atomic_t=yes
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_type_sig_atomic_t=no
20896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20898 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20899 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20900 if test $ac_cv_type_sig_atomic_t = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 #define HAVE_SIG_ATOMIC_T 1
20911 if test x"$template" != x"win32"
20913 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20914 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20915 if test "${pgac_cv_func_posix_signals+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 cat >conftest.$ac_ext <<_ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 #include <signal.h>
20929 struct sigaction act, oact;
20930 sigemptyset(&act.sa_mask);
20931 act.sa_flags = SA_RESTART;
20932 sigaction(0, &act, &oact);
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20939 (eval $ac_link) 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
20946 { ac_try='test -z "$ac_c_werror_flag"
20947 || test ! -s conftest.err'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest$ac_exeext'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 pgac_cv_func_posix_signals=yes
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 pgac_cv_func_posix_signals=no
20966 rm -f conftest.err conftest.$ac_objext \
20967 conftest$ac_exeext conftest.$ac_ext
20969 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20970 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20971 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20973 cat >>confdefs.h <<\_ACEOF
20974 #define HAVE_POSIX_SIGNALS
20978 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20980 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20981 { { echo "$as_me:$LINENO: error:
20982 *** Thread-safety requires POSIX signals, which are not supported by your
20983 *** operating system.
20985 echo "$as_me: error:
20986 *** Thread-safety requires POSIX signals, which are not supported by your
20987 *** operating system.
20989 { (exit 1); exit 1; }; }
20993 if test $ac_cv_func_fseeko = yes; then
20994 # Check whether --enable-largefile or --disable-largefile was given.
20995 if test "${enable_largefile+set}" = set; then
20996 enableval="$enable_largefile"
20999 if test "$enable_largefile" != no; then
21001 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21002 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21003 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 ac_cv_sys_largefile_CC=no
21007 if test "$GCC" != yes; then
21010 # IRIX 6.2 and later do not support large files by default,
21011 # so use the C compiler's -n32 option if that helps.
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 #include <sys/types.h>
21019 /* Check that off_t can represent 2**63 - 1 correctly.
21020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21021 since some C++ compilers masquerading as C compilers
21022 incorrectly reject 9223372036854775807. */
21023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21025 && LARGE_OFF_T % 2147483647 == 1)
21035 rm -f conftest.$ac_objext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21037 (eval $ac_compile) 2>conftest.er1
21039 grep -v '^ *+' conftest.er1 >conftest.err
21041 cat conftest.err >&5
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } &&
21044 { ac_try='test -z "$ac_c_werror_flag"
21045 || test ! -s conftest.err'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21059 echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21063 rm -f conftest.err conftest.$ac_objext
21065 rm -f conftest.$ac_objext
21066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21067 (eval $ac_compile) 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
21074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_sys_largefile_CC=' -n32'; break
21089 echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21093 rm -f conftest.err conftest.$ac_objext
21097 rm -f conftest.$ac_ext
21100 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21101 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21102 if test "$ac_cv_sys_largefile_CC" != no; then
21103 CC=$CC$ac_cv_sys_largefile_CC
21106 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21107 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21108 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 ac_cv_sys_file_offset_bits=no
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 #include <sys/types.h>
21120 /* Check that off_t can represent 2**63 - 1 correctly.
21121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21122 since some C++ compilers masquerading as C compilers
21123 incorrectly reject 9223372036854775807. */
21124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21126 && LARGE_OFF_T % 2147483647 == 1)
21136 rm -f conftest.$ac_objext
21137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21138 (eval $ac_compile) 2>conftest.er1
21140 grep -v '^ *+' conftest.er1 >conftest.err
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } &&
21145 { ac_try='test -z "$ac_c_werror_flag"
21146 || test ! -s conftest.err'
21147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148 (eval $ac_try) 2>&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; } &&
21152 { ac_try='test -s conftest.$ac_objext'
21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154 (eval $ac_try) 2>&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); }; }; then
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21165 cat >conftest.$ac_ext <<_ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21171 #define _FILE_OFFSET_BITS 64
21172 #include <sys/types.h>
21173 /* Check that off_t can represent 2**63 - 1 correctly.
21174 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21175 since some C++ compilers masquerading as C compilers
21176 incorrectly reject 9223372036854775807. */
21177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21178 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21179 && LARGE_OFF_T % 2147483647 == 1)
21189 rm -f conftest.$ac_objext
21190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
21198 { ac_try='test -z "$ac_c_werror_flag"
21199 || test ! -s conftest.err'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } &&
21205 { ac_try='test -s conftest.$ac_objext'
21206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21207 (eval $ac_try) 2>&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); }; }; then
21211 ac_cv_sys_file_offset_bits=64; break
21213 echo "$as_me: failed program was:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21221 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21222 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21223 if test "$ac_cv_sys_file_offset_bits" != no; then
21225 cat >>confdefs.h <<_ACEOF
21226 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21231 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21232 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21233 if test "${ac_cv_sys_large_files+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 ac_cv_sys_large_files=no
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <sys/types.h>
21245 /* Check that off_t can represent 2**63 - 1 correctly.
21246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21247 since some C++ compilers masquerading as C compilers
21248 incorrectly reject 9223372036854775807. */
21249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21251 && LARGE_OFF_T % 2147483647 == 1)
21261 rm -f conftest.$ac_objext
21262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21263 (eval $ac_compile) 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); } &&
21270 { ac_try='test -z "$ac_c_werror_flag"
21271 || test ! -s conftest.err'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; } &&
21277 { ac_try='test -s conftest.$ac_objext'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; }; then
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 #define _LARGE_FILES 1
21297 #include <sys/types.h>
21298 /* Check that off_t can represent 2**63 - 1 correctly.
21299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21300 since some C++ compilers masquerading as C compilers
21301 incorrectly reject 9223372036854775807. */
21302 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21304 && LARGE_OFF_T % 2147483647 == 1)
21314 rm -f conftest.$ac_objext
21315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21316 (eval $ac_compile) 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } &&
21323 { ac_try='test -z "$ac_c_werror_flag"
21324 || test ! -s conftest.err'
21325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326 (eval $ac_try) 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest.$ac_objext'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_sys_large_files=1; break
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21346 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21347 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21348 if test "$ac_cv_sys_large_files" != no; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define _LARGE_FILES $ac_cv_sys_large_files
21360 # SunOS doesn't handle negative byte comparisons properly with +/- return
21361 echo "$as_me:$LINENO: checking for working memcmp" >&5
21362 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21363 if test "${ac_cv_func_memcmp_working+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 if test "$cross_compiling" = yes; then
21367 ac_cv_func_memcmp_working=no
21369 cat >conftest.$ac_ext <<_ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 $ac_includes_default
21380 /* Some versions of memcmp are not 8-bit clean. */
21381 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21382 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21385 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21386 or more and with at least one buffer not starting on a 4-byte boundary.
21387 William Lewis provided this test program. */
21392 for (i = 0; i < 4; i++)
21396 strcpy (a, "--------01111111");
21397 strcpy (b, "--------10000000");
21398 if (memcmp (a, b, 16) >= 0)
21408 rm -f conftest$ac_exeext
21409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21410 (eval $ac_link) 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 ac_cv_func_memcmp_working=yes
21421 echo "$as_me: program exited with status $ac_status" >&5
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ( exit $ac_status )
21426 ac_cv_func_memcmp_working=no
21428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21432 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21433 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21434 "memcmp.$ac_objext" | \
21435 *" memcmp.$ac_objext" | \
21436 "memcmp.$ac_objext "* | \
21437 *" memcmp.$ac_objext "* ) ;;
21438 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21444 # Select semaphore implementation type.
21445 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define USE_NAMED_POSIX_SEMAPHORES 1
21451 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21453 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21455 cat >>confdefs.h <<\_ACEOF
21456 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21459 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21462 cat >>confdefs.h <<\_ACEOF
21463 #define USE_SYSV_SEMAPHORES 1
21466 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21471 # Select shared-memory implementation type.
21473 cat >>confdefs.h <<\_ACEOF
21474 #define USE_SYSV_SHARED_MEMORY 1
21477 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21480 if test "$enable_nls" = yes ; then
21482 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21483 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21484 if test "${ac_cv_search_gettext+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 ac_func_search_save_LIBS=$LIBS
21488 ac_cv_search_gettext=no
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 /* Override any gcc2 internal prototype to avoid an error. */
21500 /* We use char because int might match the return type of a gcc2
21501 builtin and then its argument prototype would still apply. */
21511 rm -f conftest.$ac_objext conftest$ac_exeext
21512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21513 (eval $ac_link) 2>conftest.er1
21515 grep -v '^ *+' conftest.er1 >conftest.err
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } &&
21520 { ac_try='test -z "$ac_c_werror_flag"
21521 || test ! -s conftest.err'
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest$ac_exeext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 ac_cv_search_gettext="none required"
21535 echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21539 rm -f conftest.err conftest.$ac_objext \
21540 conftest$ac_exeext conftest.$ac_ext
21541 if test "$ac_cv_search_gettext" = no; then
21542 for ac_lib in intl; do
21543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21551 /* Override any gcc2 internal prototype to avoid an error. */
21555 /* We use char because int might match the return type of a gcc2
21556 builtin and then its argument prototype would still apply. */
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21568 (eval $ac_link) 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
21575 { ac_try='test -z "$ac_c_werror_flag"
21576 || test ! -s conftest.err'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; } &&
21582 { ac_try='test -s conftest$ac_exeext'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; }; then
21588 ac_cv_search_gettext="-l$ac_lib"
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21595 rm -f conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
21599 LIBS=$ac_func_search_save_LIBS
21601 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21602 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21603 if test "$ac_cv_search_gettext" != no; then
21604 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21607 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21608 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21609 { (exit 1); exit 1; }; }
21612 if test "${ac_cv_header_libintl_h+set}" = set; then
21613 echo "$as_me:$LINENO: checking for libintl.h" >&5
21614 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21615 if test "${ac_cv_header_libintl_h+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21619 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21621 # Is the header compilable?
21622 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21623 echo $ECHO_N "checking libintl.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
21631 #include <libintl.h>
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 libintl.h presence" >&5
21668 echo $ECHO_N "checking libintl.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. */
21675 #include <libintl.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: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21710 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21712 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21713 ac_header_preproc=yes
21716 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21717 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21719 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21721 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21723 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21725 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21726 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21727 echo "$as_me: WARNING: libintl.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 libintl.h" >&5
21739 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21740 if test "${ac_cv_header_libintl_h+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_cv_header_libintl_h=$ac_header_preproc
21745 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21746 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21749 if test $ac_cv_header_libintl_h = yes; then
21752 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21753 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21754 { (exit 1); exit 1; }; }
21758 for ac_prog in msgfmt
21760 # Extract the first word of "$ac_prog", so it can be a program name with args.
21761 set dummy $ac_prog; ac_word=$2
21762 echo "$as_me:$LINENO: checking for $ac_word" >&5
21763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21764 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21765 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 if test -n "$MSGFMT"; then
21768 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21771 for as_dir in $PATH
21774 test -z "$as_dir" && as_dir=.
21775 for ac_exec_ext in '' $ac_executable_extensions; do
21776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21777 ac_cv_prog_MSGFMT="$ac_prog"
21778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21786 MSGFMT=$ac_cv_prog_MSGFMT
21787 if test -n "$MSGFMT"; then
21788 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21789 echo "${ECHO_T}$MSGFMT" >&6
21791 echo "$as_me:$LINENO: result: no" >&5
21792 echo "${ECHO_T}no" >&6
21795 test -n "$MSGFMT" && break
21798 if test -z "$MSGFMT"; then
21799 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21800 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21801 { (exit 1); exit 1; }; }
21803 for ac_prog in msgmerge
21805 # Extract the first word of "$ac_prog", so it can be a program name with args.
21806 set dummy $ac_prog; ac_word=$2
21807 echo "$as_me:$LINENO: checking for $ac_word" >&5
21808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21809 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 if test -n "$MSGMERGE"; then
21813 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21816 for as_dir in $PATH
21819 test -z "$as_dir" && as_dir=.
21820 for ac_exec_ext in '' $ac_executable_extensions; do
21821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21822 ac_cv_prog_MSGMERGE="$ac_prog"
21823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21831 MSGMERGE=$ac_cv_prog_MSGMERGE
21832 if test -n "$MSGMERGE"; then
21833 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21834 echo "${ECHO_T}$MSGMERGE" >&6
21836 echo "$as_me:$LINENO: result: no" >&5
21837 echo "${ECHO_T}no" >&6
21840 test -n "$MSGMERGE" && break
21843 for ac_prog in xgettext
21845 # Extract the first word of "$ac_prog", so it can be a program name with args.
21846 set dummy $ac_prog; ac_word=$2
21847 echo "$as_me:$LINENO: checking for $ac_word" >&5
21848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21849 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21852 if test -n "$XGETTEXT"; then
21853 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21856 for as_dir in $PATH
21859 test -z "$as_dir" && as_dir=.
21860 for ac_exec_ext in '' $ac_executable_extensions; do
21861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21862 ac_cv_prog_XGETTEXT="$ac_prog"
21863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21871 XGETTEXT=$ac_cv_prog_XGETTEXT
21872 if test -n "$XGETTEXT"; then
21873 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21874 echo "${ECHO_T}$XGETTEXT" >&6
21876 echo "$as_me:$LINENO: result: no" >&5
21877 echo "${ECHO_T}no" >&6
21880 test -n "$XGETTEXT" && break
21884 # Note: share/locale is always the default, independent of $datadir
21885 localedir='${prefix}/share/locale'
21886 if test x"$prefix" = x"NONE"; then
21887 exp_localedir="$ac_default_prefix/share/locale"
21889 exp_localedir="$prefix/share/locale"
21894 cat >>confdefs.h <<_ACEOF
21895 #define LOCALEDIR "$exp_localedir"
21901 # Check for Tcl configuration script tclConfig.sh
21902 if test "$with_tcl" = yes; then
21903 for ac_prog in tclsh tcl
21905 # Extract the first word of "$ac_prog", so it can be a program name with args.
21906 set dummy $ac_prog; ac_word=$2
21907 echo "$as_me:$LINENO: checking for $ac_word" >&5
21908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21909 if test "${ac_cv_path_TCLSH+set}" = set; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21918 for as_dir in $PATH
21921 test -z "$as_dir" && as_dir=.
21922 for ac_exec_ext in '' $ac_executable_extensions; do
21923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21924 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21934 TCLSH=$ac_cv_path_TCLSH
21936 if test -n "$TCLSH"; then
21937 echo "$as_me:$LINENO: result: $TCLSH" >&5
21938 echo "${ECHO_T}$TCLSH" >&6
21940 echo "$as_me:$LINENO: result: no" >&5
21941 echo "${ECHO_T}no" >&6
21944 test -n "$TCLSH" && break
21947 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21948 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21949 # Let user override test
21950 if test -z "$TCL_CONFIG_SH"; then
21951 pgac_test_dirs="$with_tclconfig"
21953 set X $pgac_test_dirs; shift
21954 if test $# -eq 0; then
21955 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21956 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21957 { (exit 1); exit 1; }; }
21958 set X `echo 'puts $auto_path' | $TCLSH`; shift
21962 if test -r "$pgac_dir/tclConfig.sh"; then
21963 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21969 if test -z "$TCL_CONFIG_SH"; then
21970 echo "$as_me:$LINENO: result: no" >&5
21971 echo "${ECHO_T}no" >&6
21972 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21973 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21974 { (exit 1); exit 1; }; }
21976 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21977 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21983 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21984 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21985 eval TCL_LIBS=\"$TCL_LIBS\"
21986 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21987 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
21989 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
21990 ac_save_CPPFLAGS=$CPPFLAGS
21991 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
21992 if test "${ac_cv_header_tcl_h+set}" = set; then
21993 echo "$as_me:$LINENO: checking for tcl.h" >&5
21994 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
21995 if test "${ac_cv_header_tcl_h+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
21999 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22001 # Is the header compilable?
22002 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22003 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22004 cat >conftest.$ac_ext <<_ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 $ac_includes_default
22013 rm -f conftest.$ac_objext
22014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22015 (eval $ac_compile) 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag"
22023 || test ! -s conftest.err'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest.$ac_objext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 ac_header_compiler=yes
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22040 ac_header_compiler=no
22042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22044 echo "${ECHO_T}$ac_header_compiler" >&6
22046 # Is the header present?
22047 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22048 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22060 grep -v '^ *+' conftest.er1 >conftest.err
22062 cat conftest.err >&5
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } >/dev/null; then
22065 if test -s conftest.err; then
22066 ac_cpp_err=$ac_c_preproc_warn_flag
22067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22074 if test -z "$ac_cpp_err"; then
22075 ac_header_preproc=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_header_preproc=no
22082 rm -f conftest.err conftest.$ac_ext
22083 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22084 echo "${ECHO_T}$ac_header_preproc" >&6
22086 # So? What about this header?
22087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22089 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22090 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22091 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22092 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22093 ac_header_preproc=yes
22096 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22097 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22098 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22099 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22100 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22101 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22103 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22104 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22105 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22106 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22107 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22110 ## ---------------------------------------- ##
22111 ## Report this to pgsql-bugs@postgresql.org ##
22112 ## ---------------------------------------- ##
22115 sed "s/^/$as_me: WARNING: /" >&2
22118 echo "$as_me:$LINENO: checking for tcl.h" >&5
22119 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22120 if test "${ac_cv_header_tcl_h+set}" = set; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 ac_cv_header_tcl_h=$ac_header_preproc
22125 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22126 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22129 if test $ac_cv_header_tcl_h = yes; then
22132 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22133 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22134 { (exit 1); exit 1; }; }
22138 CPPFLAGS=$ac_save_CPPFLAGS
22142 # Check for DocBook and tools
22144 for ac_prog in onsgmls nsgmls
22146 # Extract the first word of "$ac_prog", so it can be a program name with args.
22147 set dummy $ac_prog; ac_word=$2
22148 echo "$as_me:$LINENO: checking for $ac_word" >&5
22149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22150 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 if test -n "$NSGMLS"; then
22154 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22160 test -z "$as_dir" && as_dir=.
22161 for ac_exec_ext in '' $ac_executable_extensions; do
22162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22163 ac_cv_prog_NSGMLS="$ac_prog"
22164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22172 NSGMLS=$ac_cv_prog_NSGMLS
22173 if test -n "$NSGMLS"; then
22174 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22175 echo "${ECHO_T}$NSGMLS" >&6
22177 echo "$as_me:$LINENO: result: no" >&5
22178 echo "${ECHO_T}no" >&6
22181 test -n "$NSGMLS" && break
22184 for ac_prog in openjade jade
22186 # Extract the first word of "$ac_prog", so it can be a program name with args.
22187 set dummy $ac_prog; ac_word=$2
22188 echo "$as_me:$LINENO: checking for $ac_word" >&5
22189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22190 if test "${ac_cv_prog_JADE+set}" = set; then
22191 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 if test -n "$JADE"; then
22194 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22197 for as_dir in $PATH
22200 test -z "$as_dir" && as_dir=.
22201 for ac_exec_ext in '' $ac_executable_extensions; do
22202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22203 ac_cv_prog_JADE="$ac_prog"
22204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22212 JADE=$ac_cv_prog_JADE
22213 if test -n "$JADE"; then
22214 echo "$as_me:$LINENO: result: $JADE" >&5
22215 echo "${ECHO_T}$JADE" >&6
22217 echo "$as_me:$LINENO: result: no" >&5
22218 echo "${ECHO_T}no" >&6
22221 test -n "$JADE" && break
22225 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22226 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22227 if test "${pgac_cv_check_docbook+set}" = set; then
22228 echo $ECHO_N "(cached) $ECHO_C" >&6
22230 cat >conftest.sgml <<EOF
22231 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22233 <title>test</title>
22235 <title>random</title>
22237 <title>testsect</title>
22244 pgac_cv_check_docbook=no
22246 if test -n "$NSGMLS"; then
22247 $NSGMLS -s conftest.sgml 1>&5 2>&1
22248 if test $? -eq 0; then
22249 pgac_cv_check_docbook=yes
22252 rm -f conftest.sgml
22254 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22255 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22257 have_docbook=$pgac_cv_check_docbook
22260 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22261 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22262 if test "${pgac_cv_path_stylesheets+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22265 if test -n "$DOCBOOKSTYLE"; then
22266 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22268 for pgac_prefix in /usr /usr/local /opt; do
22269 for pgac_infix in share lib; do
22270 for pgac_postfix in \
22271 sgml/stylesheets/nwalsh-modular \
22272 sgml/stylesheets/docbook \
22273 sgml/docbook-dsssl \
22274 sgml/docbook/dsssl/modular \
22275 sgml/docbook/stylesheet/dsssl/modular \
22276 sgml/docbook/dsssl-stylesheets
22278 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22279 if test -r "$pgac_candidate/html/docbook.dsl" \
22280 && test -r "$pgac_candidate/print/docbook.dsl"
22282 pgac_cv_path_stylesheets=$pgac_candidate
22291 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22293 if test -n "$DOCBOOKSTYLE"; then
22294 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22295 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22297 echo "$as_me:$LINENO: result: no" >&5
22298 echo "${ECHO_T}no" >&6
22300 if test -n "$DOCBOOKSTYLE"; then
22301 for ac_prog in collateindex.pl
22303 # Extract the first word of "$ac_prog", so it can be a program name with args.
22304 set dummy $ac_prog; ac_word=$2
22305 echo "$as_me:$LINENO: checking for $ac_word" >&5
22306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22307 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22308 echo $ECHO_N "(cached) $ECHO_C" >&6
22310 case $COLLATEINDEX in
22312 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $DOCBOOKSTYLE/bin $PATH
22319 test -z "$as_dir" && as_dir=.
22320 for ac_exec_ext in '' $ac_executable_extensions; do
22321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22322 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22332 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22334 if test -n "$COLLATEINDEX"; then
22335 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22336 echo "${ECHO_T}$COLLATEINDEX" >&6
22338 echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6
22342 test -n "$COLLATEINDEX" && break
22346 for ac_prog in collateindex.pl
22348 # Extract the first word of "$ac_prog", so it can be a program name with args.
22349 set dummy $ac_prog; ac_word=$2
22350 echo "$as_me:$LINENO: checking for $ac_word" >&5
22351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22352 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 case $COLLATEINDEX in
22357 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22364 test -z "$as_dir" && as_dir=.
22365 for ac_exec_ext in '' $ac_executable_extensions; do
22366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22367 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22377 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22379 if test -n "$COLLATEINDEX"; then
22380 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22381 echo "${ECHO_T}$COLLATEINDEX" >&6
22383 echo "$as_me:$LINENO: result: no" >&5
22384 echo "${ECHO_T}no" >&6
22387 test -n "$COLLATEINDEX" && break
22391 for ac_prog in sgmlspl
22393 # Extract the first word of "$ac_prog", so it can be a program name with args.
22394 set dummy $ac_prog; ac_word=$2
22395 echo "$as_me:$LINENO: checking for $ac_word" >&5
22396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22397 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22400 if test -n "$SGMLSPL"; then
22401 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22407 test -z "$as_dir" && as_dir=.
22408 for ac_exec_ext in '' $ac_executable_extensions; do
22409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22410 ac_cv_prog_SGMLSPL="$ac_prog"
22411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22419 SGMLSPL=$ac_cv_prog_SGMLSPL
22420 if test -n "$SGMLSPL"; then
22421 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22422 echo "${ECHO_T}$SGMLSPL" >&6
22424 echo "$as_me:$LINENO: result: no" >&5
22425 echo "${ECHO_T}no" >&6
22428 test -n "$SGMLSPL" && break
22434 # We have to run the thread test near the end so we have all our symbols
22435 # defined. Cross compiling throws a warning.
22437 if test "$enable_thread_safety_force" = yes; then
22438 if test x"$template" != x"win32"
22440 { echo "$as_me:$LINENO: WARNING:
22441 *** Skipping thread test program. --enable-thread-safety-force was used.
22442 *** Run the program in src/tools/thread on the your machine and add
22443 proper locking function calls to your applications to guarantee thread
22446 echo "$as_me: WARNING:
22447 *** Skipping thread test program. --enable-thread-safety-force was used.
22448 *** Run the program in src/tools/thread on the your machine and add
22449 proper locking function calls to your applications to guarantee thread
22453 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22454 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22456 elif test "$enable_thread_safety" = yes; then
22457 if test x"$template" != x"win32"
22459 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22460 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22464 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22465 LIBS="$LIBS $PTHREAD_LIBS"
22466 if test "$cross_compiling" = yes; then
22467 echo "$as_me:$LINENO: result: maybe" >&5
22468 echo "${ECHO_T}maybe" >&6
22469 { echo "$as_me:$LINENO: WARNING:
22470 *** Skipping thread test program because of cross-compile build.
22471 *** Run the program in src/tools/thread on the target machine.
22473 echo "$as_me: WARNING:
22474 *** Skipping thread test program because of cross-compile build.
22475 *** Run the program in src/tools/thread on the target machine.
22478 cat >conftest.$ac_ext <<_ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include "$srcdir/src/tools/thread/thread_test.c"
22486 rm -f conftest$ac_exeext
22487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22488 (eval $ac_link) 2>&5
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 echo "$as_me:$LINENO: result: yes" >&5
22498 echo "${ECHO_T}yes" >&6
22500 echo "$as_me: program exited with status $ac_status" >&5
22501 echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ( exit $ac_status )
22505 echo "$as_me:$LINENO: result: no" >&5
22506 echo "${ECHO_T}no" >&6
22507 { { echo "$as_me:$LINENO: error:
22508 *** Thread test program failed. Your platform is not thread-safe.
22509 *** Check the file 'config.log'for the exact reason.
22511 *** You can use the configure option --enable-thread-safety-force
22512 *** to force threads to be enabled. However, you must then run
22513 *** the program in src/tools/thread and add locking function calls
22514 *** to your applications to guarantee thread safety.
22516 echo "$as_me: error:
22517 *** Thread test program failed. Your platform is not thread-safe.
22518 *** Check the file 'config.log'for the exact reason.
22520 *** You can use the configure option --enable-thread-safety-force
22521 *** to force threads to be enabled. However, you must then run
22522 *** the program in src/tools/thread and add locking function calls
22523 *** to your applications to guarantee thread safety.
22525 { (exit 1); exit 1; }; }
22527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22532 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22533 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22537 # prepare build tree if outside source tree
22538 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22539 # Note 2: /bin/pwd might be better than shell's built-in at getting
22540 # a symlink-free name.
22541 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22545 if test "$no_create" != yes; then
22546 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22547 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22548 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22549 || { { echo "$as_me:$LINENO: error: failed" >&5
22550 echo "$as_me: error: failed" >&2;}
22551 { (exit 1); exit 1; }; }
22552 echo "$as_me:$LINENO: result: done" >&5
22553 echo "${ECHO_T}done" >&6
22559 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22562 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}"
22565 if test "$PORTNAME" = "win32"; then
22566 ac_config_commands="$ac_config_commands check_win32_symlinks"
22570 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22573 cat >confcache <<\_ACEOF
22574 # This file is a shell script that caches the results of configure
22575 # tests run on this system so they can be shared between configure
22576 # scripts and configure runs, see configure's option --config-cache.
22577 # It is not useful on other systems. If it contains results you don't
22578 # want to keep, you may remove or edit it.
22580 # config.status only pays attention to the cache file if you give it
22581 # the --recheck option to rerun configure.
22583 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22584 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22585 # following values.
22589 # The following way of writing the cache mishandles newlines in values,
22590 # but we know of no workaround that is simple, portable, and efficient.
22591 # So, don't put newlines in cache variables' values.
22592 # Ultrix sh set writes to stderr and can't be redirected directly,
22593 # and sets the high bit in the cache file unless we assign to the vars.
22596 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22598 # `set' does not quote correctly, so add quotes (double-quote
22599 # substitution turns \\\\ into \\, and sed turns \\ into \).
22602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22605 # `set' quotes correctly as required by POSIX, so do not add quotes.
22607 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22616 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22618 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22619 if test -w $cache_file; then
22620 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22621 cat confcache >$cache_file
22623 echo "not updating unwritable cache $cache_file"
22628 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22629 # Let make expand exec_prefix.
22630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22632 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22633 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22634 # trailing colons and then remove the whole line if VPATH becomes empty
22635 # (actually we leave an empty line to preserve line numbers).
22636 if test "x$srcdir" = x.; then
22637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22638 s/:*\$(srcdir):*/:/;
22639 s/:*\${srcdir}:*/:/;
22641 s/^\([^=]*=[ ]*\):*/\1/;
22647 DEFS=-DHAVE_CONFIG_H
22651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22652 # 1. Remove the extension, and $U if already installed.
22653 ac_i=`echo "$ac_i" |
22654 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22656 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22657 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22659 LIBOBJS=$ac_libobjs
22661 LTLIBOBJS=$ac_ltlibobjs
22665 : ${CONFIG_STATUS=./config.status}
22666 ac_clean_files_save=$ac_clean_files
22667 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22668 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22669 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22670 cat >$CONFIG_STATUS <<_ACEOF
22672 # Generated by $as_me.
22673 # Run this file to recreate the current configuration.
22674 # Compiler output produced by configure, useful for debugging
22675 # configure, is in config.log if it exists.
22678 ac_cs_recheck=false
22680 SHELL=\${CONFIG_SHELL-$SHELL}
22683 cat >>$CONFIG_STATUS <<\_ACEOF
22684 ## --------------------- ##
22685 ## M4sh Initialization. ##
22686 ## --------------------- ##
22688 # Be Bourne compatible
22689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22692 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22693 # is contrary to our usage. Disable this feature.
22694 alias -g '${1+"$@"}'='"$@"'
22695 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22698 DUALCASE=1; export DUALCASE # for MKS sh
22700 # Support unset when possible.
22701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22708 # Work around bugs in pre-3.0 UWIN ksh.
22709 $as_unset ENV MAIL MAILPATH
22716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22718 LC_TELEPHONE LC_TIME
22720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22721 eval $as_var=C; export $as_var
22727 # Required to use basename.
22728 if expr a : '\(a\)' >/dev/null 2>&1; then
22734 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22735 as_basename=basename
22741 # Name of the executable.
22742 as_me=`$as_basename "$0" ||
22743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22744 X"$0" : 'X\(//\)$' \| \
22745 X"$0" : 'X\(/\)$' \| \
22746 . : '\(.\)' 2>/dev/null ||
22748 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22749 /^X\/\(\/\/\)$/{ s//\1/; q; }
22750 /^X\/\(\/\).*/{ s//\1/; q; }
22754 # PATH needs CR, and LINENO needs CR and PATH.
22755 # Avoid depending upon Character Ranges.
22756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22759 as_cr_digits='0123456789'
22760 as_cr_alnum=$as_cr_Letters$as_cr_digits
22762 # The user is always right.
22763 if test "${PATH_SEPARATOR+set}" != set; then
22764 echo "#! /bin/sh" >conf$$.sh
22765 echo "exit 0" >>conf$$.sh
22767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22776 as_lineno_1=$LINENO
22777 as_lineno_2=$LINENO
22778 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22779 test "x$as_lineno_1" != "x$as_lineno_2" &&
22780 test "x$as_lineno_3" = "x$as_lineno_2" || {
22781 # Find who we are. Look in the path if we contain no path at all
22784 *[\\/]* ) as_myself=$0 ;;
22785 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22786 for as_dir in $PATH
22789 test -z "$as_dir" && as_dir=.
22790 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22795 # We did not find ourselves, most probably we were run as `sh COMMAND'
22796 # in which case we are not to be found in the path.
22797 if test "x$as_myself" = x; then
22800 if test ! -f "$as_myself"; then
22801 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22802 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22803 { (exit 1); exit 1; }; }
22805 case $CONFIG_SHELL in
22807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22811 test -z "$as_dir" && as_dir=.
22812 for as_base in sh bash ksh sh5; do
22815 if ("$as_dir/$as_base" -c '
22816 as_lineno_1=$LINENO
22817 as_lineno_2=$LINENO
22818 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22819 test "x$as_lineno_1" != "x$as_lineno_2" &&
22820 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22821 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22822 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22823 CONFIG_SHELL=$as_dir/$as_base
22824 export CONFIG_SHELL
22825 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22833 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22834 # uniformly replaced by the line number. The first 'sed' inserts a
22835 # line-number line before each line; the second 'sed' does the real
22836 # work. The second script uses 'N' to pair each line-number line
22837 # with the numbered line, and appends trailing '-' during
22838 # substitution so that $LINENO is not a special case at line end.
22839 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22840 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22841 sed '=' <$as_myself |
22846 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22849 s,^['$as_cr_digits']*\n,,
22850 ' >$as_me.lineno &&
22851 chmod +x $as_me.lineno ||
22852 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22853 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22854 { (exit 1); exit 1; }; }
22856 # Don't try to exec as it changes $[0], causing all sort of problems
22857 # (the dirname of $[0] is not the place where we might find the
22858 # original and so on. Autoconf is especially sensible to this).
22860 # Exit status is that of the last command.
22865 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22866 *c*,-n*) ECHO_N= ECHO_C='
22868 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22869 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22872 if expr a : '\(a\)' >/dev/null 2>&1; then
22878 rm -f conf$$ conf$$.exe conf$$.file
22880 if ln -s conf$$.file conf$$ 2>/dev/null; then
22881 # We could just check for DJGPP; but this test a) works b) is more generic
22882 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22883 if test -f conf$$.exe; then
22884 # Don't use ln at all; we don't have any links
22889 elif ln conf$$.file conf$$ 2>/dev/null; then
22894 rm -f conf$$ conf$$.exe conf$$.file
22896 if mkdir -p . 2>/dev/null; then
22899 test -d ./-p && rmdir ./-p
22903 as_executable_p="test -f"
22905 # Sed expression to map a string onto a valid CPP name.
22906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22908 # Sed expression to map a string onto a valid variable name.
22909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22913 # We need space, tab and new line, in precisely that order.
22923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22924 # report actual input values of CONFIG_FILES etc. instead of their
22925 # values after options handling. Logging --version etc. is OK.
22929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22930 ## Running $as_me. ##
22935 This file was extended by PostgreSQL $as_me 8.1beta1, which was
22936 generated by GNU Autoconf 2.59. Invocation command line was
22938 CONFIG_FILES = $CONFIG_FILES
22939 CONFIG_HEADERS = $CONFIG_HEADERS
22940 CONFIG_LINKS = $CONFIG_LINKS
22941 CONFIG_COMMANDS = $CONFIG_COMMANDS
22945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22949 # Files that config.status was made for.
22950 if test -n "$ac_config_files"; then
22951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22954 if test -n "$ac_config_headers"; then
22955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22958 if test -n "$ac_config_links"; then
22959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22962 if test -n "$ac_config_commands"; then
22963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22966 cat >>$CONFIG_STATUS <<\_ACEOF
22969 \`$as_me' instantiates files from templates according to the
22970 current configuration.
22972 Usage: $0 [OPTIONS] [FILE]...
22974 -h, --help print this help, then exit
22975 -V, --version print version number, then exit
22976 -q, --quiet do not print progress messages
22977 -d, --debug don't remove temporary files
22978 --recheck update $as_me by reconfiguring in the same conditions
22979 --file=FILE[:TEMPLATE]
22980 instantiate the configuration file FILE
22981 --header=FILE[:TEMPLATE]
22982 instantiate the configuration header FILE
22984 Configuration files:
22987 Configuration headers:
22990 Configuration links:
22993 Configuration commands:
22996 Report bugs to <bug-autoconf@gnu.org>."
22999 cat >>$CONFIG_STATUS <<_ACEOF
23001 PostgreSQL config.status 8.1beta1
23002 configured by $0, generated by GNU Autoconf 2.59,
23003 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23005 Copyright (C) 2003 Free Software Foundation, Inc.
23006 This config.status script is free software; the Free Software Foundation
23007 gives unlimited permission to copy, distribute and modify it."
23011 cat >>$CONFIG_STATUS <<\_ACEOF
23012 # If no file are specified by the user, then we need to provide default
23013 # value. By we need to know if files were specified by the user.
23019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23028 *) # This is not an option, so the user has probably given explicit
23031 ac_need_defaults=false;;
23035 # Handling of the options.
23037 cat >>$CONFIG_STATUS <<\_ACEOF
23038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23040 --version | --vers* | -V )
23041 echo "$ac_cs_version"; exit 0 ;;
23043 # Conflict between --help and --header
23044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23045 Try \`$0 --help' for more information." >&5
23046 echo "$as_me: error: ambiguous option: $1
23047 Try \`$0 --help' for more information." >&2;}
23048 { (exit 1); exit 1; }; };;
23049 --help | --hel | -h )
23050 echo "$ac_cs_usage"; exit 0 ;;
23051 --debug | --d* | -d )
23053 --file | --fil | --fi | --f )
23055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23056 ac_need_defaults=false;;
23057 --header | --heade | --head | --hea )
23059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23060 ac_need_defaults=false;;
23061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23065 # This is an error.
23066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23067 Try \`$0 --help' for more information." >&5
23068 echo "$as_me: error: unrecognized option: $1
23069 Try \`$0 --help' for more information." >&2;}
23070 { (exit 1); exit 1; }; } ;;
23072 *) ac_config_targets="$ac_config_targets $1" ;;
23078 ac_configure_extra_args=
23080 if $ac_cs_silent; then
23082 ac_configure_extra_args="$ac_configure_extra_args --silent"
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 if \$ac_cs_recheck; then
23088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23099 for ac_config_target in $ac_config_targets
23101 case "$ac_config_target" in
23102 # Handling of arguments.
23103 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23104 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23105 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23106 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23107 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23108 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23109 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23110 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23111 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23112 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23113 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23114 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23115 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23116 { (exit 1); exit 1; }; };;
23120 # If the user did not use the arguments to specify the items to instantiate,
23121 # then the envvar interface is used. Set only those that are not.
23122 # We use the long form for the default assignment because of an extremely
23123 # bizarre bug on SunOS 4.1.3.
23124 if $ac_need_defaults; then
23125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23126 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23127 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23131 # Have a temporary directory for convenience. Make it in the build tree
23132 # simply because there is no reason to put it here, and in addition,
23133 # creating and moving files from /tmp can sometimes cause problems.
23134 # Create a temporary directory, and hook for its removal unless debugging.
23137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23138 trap '{ (exit 1); exit 1; }' 1 2 13 15
23141 # Create a (secure) tmp directory for tmp files.
23144 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23145 test -n "$tmp" && test -d "$tmp"
23148 tmp=./confstat$$-$RANDOM
23149 (umask 077 && mkdir $tmp)
23152 echo "$me: cannot create a temporary directory in ." >&2
23153 { (exit 1); exit 1; }
23158 cat >>$CONFIG_STATUS <<_ACEOF
23161 # CONFIG_FILES section.
23164 # No need to generate the scripts if there are no CONFIG_FILES.
23165 # This happens for instance when ./config.status config.h
23166 if test -n "\$CONFIG_FILES"; then
23167 # Protect against being on the right side of a sed subst in config.status.
23168 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23169 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23170 s,@SHELL@,$SHELL,;t t
23171 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23172 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23173 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23174 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23175 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23176 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23177 s,@exec_prefix@,$exec_prefix,;t t
23178 s,@prefix@,$prefix,;t t
23179 s,@program_transform_name@,$program_transform_name,;t t
23180 s,@bindir@,$bindir,;t t
23181 s,@sbindir@,$sbindir,;t t
23182 s,@libexecdir@,$libexecdir,;t t
23183 s,@datadir@,$datadir,;t t
23184 s,@sysconfdir@,$sysconfdir,;t t
23185 s,@sharedstatedir@,$sharedstatedir,;t t
23186 s,@localstatedir@,$localstatedir,;t t
23187 s,@libdir@,$libdir,;t t
23188 s,@includedir@,$includedir,;t t
23189 s,@oldincludedir@,$oldincludedir,;t t
23190 s,@infodir@,$infodir,;t t
23191 s,@mandir@,$mandir,;t t
23192 s,@build_alias@,$build_alias,;t t
23193 s,@host_alias@,$host_alias,;t t
23194 s,@target_alias@,$target_alias,;t t
23195 s,@DEFS@,$DEFS,;t t
23196 s,@ECHO_C@,$ECHO_C,;t t
23197 s,@ECHO_N@,$ECHO_N,;t t
23198 s,@ECHO_T@,$ECHO_T,;t t
23199 s,@LIBS@,$LIBS,;t t
23200 s,@configure_args@,$configure_args,;t t
23201 s,@build@,$build,;t t
23202 s,@build_cpu@,$build_cpu,;t t
23203 s,@build_vendor@,$build_vendor,;t t
23204 s,@build_os@,$build_os,;t t
23205 s,@host@,$host,;t t
23206 s,@host_cpu@,$host_cpu,;t t
23207 s,@host_vendor@,$host_vendor,;t t
23208 s,@host_os@,$host_os,;t t
23209 s,@PORTNAME@,$PORTNAME,;t t
23210 s,@docdir@,$docdir,;t t
23211 s,@enable_nls@,$enable_nls,;t t
23212 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23213 s,@default_port@,$default_port,;t t
23214 s,@enable_shared@,$enable_shared,;t t
23215 s,@enable_rpath@,$enable_rpath,;t t
23216 s,@enable_debug@,$enable_debug,;t t
23218 s,@CFLAGS@,$CFLAGS,;t t
23219 s,@LDFLAGS@,$LDFLAGS,;t t
23220 s,@CPPFLAGS@,$CPPFLAGS,;t t
23221 s,@ac_ct_CC@,$ac_ct_CC,;t t
23222 s,@EXEEXT@,$EXEEXT,;t t
23223 s,@OBJEXT@,$OBJEXT,;t t
23227 s,@autodepend@,$autodepend,;t t
23228 s,@INCLUDES@,$INCLUDES,;t t
23229 s,@enable_thread_safety@,$enable_thread_safety,;t t
23230 s,@with_tcl@,$with_tcl,;t t
23231 s,@with_perl@,$with_perl,;t t
23232 s,@with_python@,$with_python,;t t
23233 s,@with_krb5@,$with_krb5,;t t
23234 s,@krb_srvtab@,$krb_srvtab,;t t
23235 s,@with_pam@,$with_pam,;t t
23236 s,@with_bonjour@,$with_bonjour,;t t
23237 s,@with_openssl@,$with_openssl,;t t
23238 s,@with_zlib@,$with_zlib,;t t
23239 s,@EGREP@,$EGREP,;t t
23240 s,@ELF_SYS@,$ELF_SYS,;t t
23241 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23243 s,@FLEX@,$FLEX,;t t
23244 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23245 s,@LN_S@,$LN_S,;t t
23247 s,@with_gnu_ld@,$with_gnu_ld,;t t
23248 s,@ld_R_works@,$ld_R_works,;t t
23249 s,@RANLIB@,$RANLIB,;t t
23250 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23251 s,@LORDER@,$LORDER,;t t
23253 s,@STRIP@,$STRIP,;t t
23254 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23255 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23256 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23257 s,@YACC@,$YACC,;t t
23258 s,@YFLAGS@,$YFLAGS,;t t
23259 s,@PERL@,$PERL,;t t
23260 s,@perl_archlibexp@,$perl_archlibexp,;t t
23261 s,@perl_privlibexp@,$perl_privlibexp,;t t
23262 s,@perl_useshrplib@,$perl_useshrplib,;t t
23263 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23264 s,@PYTHON@,$PYTHON,;t t
23265 s,@python_version@,$python_version,;t t
23266 s,@python_configdir@,$python_configdir,;t t
23267 s,@python_includespec@,$python_includespec,;t t
23268 s,@python_libdir@,$python_libdir,;t t
23269 s,@python_libspec@,$python_libspec,;t t
23270 s,@python_additional_libs@,$python_additional_libs,;t t
23271 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23272 s,@LIBOBJS@,$LIBOBJS,;t t
23273 s,@acx_pthread_config@,$acx_pthread_config,;t t
23274 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23275 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23276 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23277 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23278 s,@MSGFMT@,$MSGFMT,;t t
23279 s,@MSGMERGE@,$MSGMERGE,;t t
23280 s,@XGETTEXT@,$XGETTEXT,;t t
23281 s,@localedir@,$localedir,;t t
23282 s,@TCLSH@,$TCLSH,;t t
23283 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23284 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23285 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23286 s,@TCL_LIBS@,$TCL_LIBS,;t t
23287 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23288 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23289 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23290 s,@NSGMLS@,$NSGMLS,;t t
23291 s,@JADE@,$JADE,;t t
23292 s,@have_docbook@,$have_docbook,;t t
23293 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23294 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23295 s,@SGMLSPL@,$SGMLSPL,;t t
23296 s,@vpath_build@,$vpath_build,;t t
23297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23302 cat >>$CONFIG_STATUS <<\_ACEOF
23303 # Split the substitutions into bite-sized pieces for seds with
23304 # small command number limits, like on Digital OSF/1 and HP-UX.
23305 ac_max_sed_lines=48
23306 ac_sed_frag=1 # Number of current file.
23307 ac_beg=1 # First line for current file.
23308 ac_end=$ac_max_sed_lines # Line after last line for current file.
23311 while $ac_more_lines; do
23312 if test $ac_beg -gt 1; then
23313 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23315 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23317 if test ! -s $tmp/subs.frag; then
23318 ac_more_lines=false
23320 # The purpose of the label and of the branching condition is to
23321 # speed up the sed processing (if there are no `@' at all, there
23322 # is no need to browse any of the substitutions).
23323 # These are the two extra sed commands mentioned above.
23325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23326 if test -z "$ac_sed_cmds"; then
23327 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23329 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23331 ac_sed_frag=`expr $ac_sed_frag + 1`
23333 ac_end=`expr $ac_end + $ac_max_sed_lines`
23336 if test -z "$ac_sed_cmds"; then
23339 fi # test -n "$CONFIG_FILES"
23342 cat >>$CONFIG_STATUS <<\_ACEOF
23343 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23344 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23346 - | *:- | *:-:* ) # input from stdin
23348 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23350 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23351 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23352 * ) ac_file_in=$ac_file.in ;;
23355 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23356 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23358 X"$ac_file" : 'X\(//\)[^/]' \| \
23359 X"$ac_file" : 'X\(//\)$' \| \
23360 X"$ac_file" : 'X\(/\)' \| \
23361 . : '\(.\)' 2>/dev/null ||
23363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23365 /^X\(\/\/\)$/{ s//\1/; q; }
23366 /^X\(\/\).*/{ s//\1/; q; }
23368 { if $as_mkdir_p; then
23373 while test ! -d "$as_dir"; do
23374 as_dirs="$as_dir $as_dirs"
23375 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23376 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$as_dir" : 'X\(//\)[^/]' \| \
23378 X"$as_dir" : 'X\(//\)$' \| \
23379 X"$as_dir" : 'X\(/\)' \| \
23380 . : '\(.\)' 2>/dev/null ||
23382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23383 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23384 /^X\(\/\/\)$/{ s//\1/; q; }
23385 /^X\(\/\).*/{ s//\1/; q; }
23388 test ! -n "$as_dirs" || mkdir $as_dirs
23389 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23390 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23391 { (exit 1); exit 1; }; }; }
23395 if test "$ac_dir" != .; then
23396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23397 # A "../" for each directory in $ac_dir_suffix.
23398 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23400 ac_dir_suffix= ac_top_builddir=
23404 .) # No --srcdir option. We are building in place.
23406 if test -z "$ac_top_builddir"; then
23409 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23411 [\\/]* | ?:[\\/]* ) # Absolute path.
23412 ac_srcdir=$srcdir$ac_dir_suffix;
23413 ac_top_srcdir=$srcdir ;;
23414 *) # Relative path.
23415 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23416 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23419 # Do not use `cd foo && pwd` to compute absolute paths, because
23420 # the directories may not exist.
23422 .) ac_abs_builddir="$ac_dir";;
23425 .) ac_abs_builddir=`pwd`;;
23426 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23427 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23430 case $ac_abs_builddir in
23431 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23433 case ${ac_top_builddir}. in
23434 .) ac_abs_top_builddir=$ac_abs_builddir;;
23435 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23436 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23439 case $ac_abs_builddir in
23440 .) ac_abs_srcdir=$ac_srcdir;;
23443 .) ac_abs_srcdir=$ac_abs_builddir;;
23444 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23445 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23448 case $ac_abs_builddir in
23449 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23451 case $ac_top_srcdir in
23452 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23453 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23454 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23460 if test x"$ac_file" != x-; then
23461 { echo "$as_me:$LINENO: creating $ac_file" >&5
23462 echo "$as_me: creating $ac_file" >&6;}
23465 # Let's still pretend it is `configure' which instantiates (i.e., don't
23466 # use $as_me), people would be surprised to read:
23467 # /* config.h. Generated by config.status. */
23468 if test x"$ac_file" = x-; then
23471 configure_input="$ac_file. "
23473 configure_input=$configure_input"Generated from `echo $ac_file_in |
23474 sed 's,.*/,,'` by configure."
23476 # First look for the input files in the build tree, otherwise in the
23478 ac_file_inputs=`IFS=:
23479 for f in $ac_file_in; do
23481 -) echo $tmp/stdin ;;
23483 # Absolute (can't be DOS-style, as IFS=:)
23484 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23485 echo "$as_me: error: cannot find input file: $f" >&2;}
23486 { (exit 1); exit 1; }; }
23489 if test -f "$f"; then
23492 elif test -f "$srcdir/$f"; then
23497 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23498 echo "$as_me: error: cannot find input file: $f" >&2;}
23499 { (exit 1); exit 1; }; }
23502 done` || { (exit 1); exit 1; }
23504 cat >>$CONFIG_STATUS <<_ACEOF
23508 cat >>$CONFIG_STATUS <<\_ACEOF
23510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23511 s,@configure_input@,$configure_input,;t t
23512 s,@srcdir@,$ac_srcdir,;t t
23513 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23514 s,@top_srcdir@,$ac_top_srcdir,;t t
23515 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23516 s,@builddir@,$ac_builddir,;t t
23517 s,@abs_builddir@,$ac_abs_builddir,;t t
23518 s,@top_builddir@,$ac_top_builddir,;t t
23519 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23520 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23522 if test x"$ac_file" != x-; then
23523 mv $tmp/out $ac_file
23531 cat >>$CONFIG_STATUS <<\_ACEOF
23534 # CONFIG_HEADER section.
23537 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23538 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23540 # ac_d sets the value in "#define NAME VALUE" lines.
23541 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23542 ac_dB='[ ].*$,\1#\2'
23545 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23546 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23547 ac_uB='$,\1#\2define\3'
23551 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23552 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23554 - | *:- | *:-:* ) # input from stdin
23556 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23557 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23558 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560 * ) ac_file_in=$ac_file.in ;;
23563 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23564 echo "$as_me: creating $ac_file" >&6;}
23566 # First look for the input files in the build tree, otherwise in the
23568 ac_file_inputs=`IFS=:
23569 for f in $ac_file_in; do
23571 -) echo $tmp/stdin ;;
23573 # Absolute (can't be DOS-style, as IFS=:)
23574 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23575 echo "$as_me: error: cannot find input file: $f" >&2;}
23576 { (exit 1); exit 1; }; }
23577 # Do quote $f, to prevent DOS paths from being IFS'd.
23580 if test -f "$f"; then
23583 elif test -f "$srcdir/$f"; then
23588 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23589 echo "$as_me: error: cannot find input file: $f" >&2;}
23590 { (exit 1); exit 1; }; }
23593 done` || { (exit 1); exit 1; }
23594 # Remove the trailing spaces.
23595 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23599 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23600 # `conftest.undefs', that substitutes the proper values into
23601 # config.h.in to produce config.h. The first handles `#define'
23602 # templates, and the second `#undef' templates.
23603 # And first: Protect against being on the right side of a sed subst in
23604 # config.status. Protect against being in an unquoted here document
23605 # in config.status.
23606 rm -f conftest.defines conftest.undefs
23607 # Using a here document instead of a string reduces the quoting nightmare.
23608 # Putting comments in sed scripts is not portable.
23610 # `end' is used to avoid that the second main sed command (meant for
23611 # 0-ary CPP macros) applies to n-ary macro definitions.
23612 # See the Autoconf documentation for `clear'.
23613 cat >confdef2sed.sed <<\_ACEOF
23618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23623 # If some macros were called several times there might be several times
23624 # the same #defines, which is useless. Nevertheless, we may not want to
23625 # sort them, since we want the *last* AC-DEFINE to be honored.
23626 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23627 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23628 rm -f confdef2sed.sed
23630 # This sed command replaces #undef with comments. This is necessary, for
23631 # example, in the case of _POSIX_SOURCE, which is predefined and required
23632 # on some systems where configure will not decide to define it.
23633 cat >>conftest.undefs <<\_ACEOF
23634 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23637 # Break up conftest.defines because some shells have a limit on the size
23638 # of here documents, and old seds have small limits too (100 cmds).
23639 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23640 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23641 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23642 echo ' :' >>$CONFIG_STATUS
23643 rm -f conftest.tail
23644 while grep . conftest.defines >/dev/null
23646 # Write a limited-size here document to $tmp/defines.sed.
23647 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23648 # Speed up: don't consider the non `#define' lines.
23649 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23650 # Work around the forget-to-reset-the-flag bug.
23651 echo 't clr' >>$CONFIG_STATUS
23652 echo ': clr' >>$CONFIG_STATUS
23653 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23655 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23657 mv $tmp/out $tmp/in
23659 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23660 rm -f conftest.defines
23661 mv conftest.tail conftest.defines
23663 rm -f conftest.defines
23664 echo ' fi # grep' >>$CONFIG_STATUS
23665 echo >>$CONFIG_STATUS
23667 # Break up conftest.undefs because some shells have a limit on the size
23668 # of here documents, and old seds have small limits too (100 cmds).
23669 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23670 rm -f conftest.tail
23671 while grep . conftest.undefs >/dev/null
23673 # Write a limited-size here document to $tmp/undefs.sed.
23674 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23675 # Speed up: don't consider the non `#undef'
23676 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23677 # Work around the forget-to-reset-the-flag bug.
23678 echo 't clr' >>$CONFIG_STATUS
23679 echo ': clr' >>$CONFIG_STATUS
23680 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23682 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23684 mv $tmp/out $tmp/in
23686 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23687 rm -f conftest.undefs
23688 mv conftest.tail conftest.undefs
23690 rm -f conftest.undefs
23692 cat >>$CONFIG_STATUS <<\_ACEOF
23693 # Let's still pretend it is `configure' which instantiates (i.e., don't
23694 # use $as_me), people would be surprised to read:
23695 # /* config.h. Generated by config.status. */
23696 if test x"$ac_file" = x-; then
23697 echo "/* Generated by configure. */" >$tmp/config.h
23699 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23701 cat $tmp/in >>$tmp/config.h
23703 if test x"$ac_file" != x-; then
23704 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23705 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23706 echo "$as_me: $ac_file is unchanged" >&6;}
23708 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23710 X"$ac_file" : 'X\(//\)[^/]' \| \
23711 X"$ac_file" : 'X\(//\)$' \| \
23712 X"$ac_file" : 'X\(/\)' \| \
23713 . : '\(.\)' 2>/dev/null ||
23715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23717 /^X\(\/\/\)$/{ s//\1/; q; }
23718 /^X\(\/\).*/{ s//\1/; q; }
23720 { if $as_mkdir_p; then
23725 while test ! -d "$as_dir"; do
23726 as_dirs="$as_dir $as_dirs"
23727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729 X"$as_dir" : 'X\(//\)[^/]' \| \
23730 X"$as_dir" : 'X\(//\)$' \| \
23731 X"$as_dir" : 'X\(/\)' \| \
23732 . : '\(.\)' 2>/dev/null ||
23734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23736 /^X\(\/\/\)$/{ s//\1/; q; }
23737 /^X\(\/\).*/{ s//\1/; q; }
23740 test ! -n "$as_dirs" || mkdir $as_dirs
23741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23742 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23743 { (exit 1); exit 1; }; }; }
23746 mv $tmp/config.h $ac_file
23750 rm -f $tmp/config.h
23752 # Run the commands associated with the file.
23754 src/include/pg_config.h )
23755 # Update timestamp for pg_config.h (see Makefile.global)
23756 echo >src/include/stamp-h
23761 cat >>$CONFIG_STATUS <<\_ACEOF
23764 # CONFIG_LINKS section.
23767 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23768 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23769 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23771 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23772 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23774 if test ! -r $srcdir/$ac_source; then
23775 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23776 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23777 { (exit 1); exit 1; }; }
23781 # Make relative symlinks.
23782 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23783 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23784 X"$ac_dest" : 'X\(//\)[^/]' \| \
23785 X"$ac_dest" : 'X\(//\)$' \| \
23786 X"$ac_dest" : 'X\(/\)' \| \
23787 . : '\(.\)' 2>/dev/null ||
23789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23791 /^X\(\/\/\)$/{ s//\1/; q; }
23792 /^X\(\/\).*/{ s//\1/; q; }
23794 { if $as_mkdir_p; then
23795 mkdir -p "$ac_dest_dir"
23797 as_dir="$ac_dest_dir"
23799 while test ! -d "$as_dir"; do
23800 as_dirs="$as_dir $as_dirs"
23801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23803 X"$as_dir" : 'X\(//\)[^/]' \| \
23804 X"$as_dir" : 'X\(//\)$' \| \
23805 X"$as_dir" : 'X\(/\)' \| \
23806 . : '\(.\)' 2>/dev/null ||
23808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23810 /^X\(\/\/\)$/{ s//\1/; q; }
23811 /^X\(\/\).*/{ s//\1/; q; }
23814 test ! -n "$as_dirs" || mkdir $as_dirs
23815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23816 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23817 { (exit 1); exit 1; }; }; }
23821 if test "$ac_dest_dir" != .; then
23822 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23823 # A "../" for each directory in $ac_dir_suffix.
23824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23826 ac_dir_suffix= ac_top_builddir=
23830 .) # No --srcdir option. We are building in place.
23832 if test -z "$ac_top_builddir"; then
23835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23837 [\\/]* | ?:[\\/]* ) # Absolute path.
23838 ac_srcdir=$srcdir$ac_dir_suffix;
23839 ac_top_srcdir=$srcdir ;;
23840 *) # Relative path.
23841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23845 # Do not use `cd foo && pwd` to compute absolute paths, because
23846 # the directories may not exist.
23848 .) ac_abs_builddir="$ac_dest_dir";;
23850 case "$ac_dest_dir" in
23851 .) ac_abs_builddir=`pwd`;;
23852 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23853 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23856 case $ac_abs_builddir in
23857 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23859 case ${ac_top_builddir}. in
23860 .) ac_abs_top_builddir=$ac_abs_builddir;;
23861 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23862 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23865 case $ac_abs_builddir in
23866 .) ac_abs_srcdir=$ac_srcdir;;
23869 .) ac_abs_srcdir=$ac_abs_builddir;;
23870 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23871 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23874 case $ac_abs_builddir in
23875 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23877 case $ac_top_srcdir in
23878 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23879 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23880 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23886 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23887 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23890 # Try a symlink, then a hard link, then a copy.
23891 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23892 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23893 cp -p $srcdir/$ac_source $ac_dest ||
23894 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23895 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23896 { (exit 1); exit 1; }; }
23899 cat >>$CONFIG_STATUS <<\_ACEOF
23902 # CONFIG_COMMANDS section.
23904 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23905 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23906 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23907 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23908 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23909 X"$ac_dest" : 'X\(//\)[^/]' \| \
23910 X"$ac_dest" : 'X\(//\)$' \| \
23911 X"$ac_dest" : 'X\(/\)' \| \
23912 . : '\(.\)' 2>/dev/null ||
23914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23916 /^X\(\/\/\)$/{ s//\1/; q; }
23917 /^X\(\/\).*/{ s//\1/; q; }
23919 { if $as_mkdir_p; then
23924 while test ! -d "$as_dir"; do
23925 as_dirs="$as_dir $as_dirs"
23926 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23928 X"$as_dir" : 'X\(//\)[^/]' \| \
23929 X"$as_dir" : 'X\(//\)$' \| \
23930 X"$as_dir" : 'X\(/\)' \| \
23931 . : '\(.\)' 2>/dev/null ||
23933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23935 /^X\(\/\/\)$/{ s//\1/; q; }
23936 /^X\(\/\).*/{ s//\1/; q; }
23939 test ! -n "$as_dirs" || mkdir $as_dirs
23940 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23942 { (exit 1); exit 1; }; }; }
23946 if test "$ac_dir" != .; then
23947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23948 # A "../" for each directory in $ac_dir_suffix.
23949 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23951 ac_dir_suffix= ac_top_builddir=
23955 .) # No --srcdir option. We are building in place.
23957 if test -z "$ac_top_builddir"; then
23960 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23962 [\\/]* | ?:[\\/]* ) # Absolute path.
23963 ac_srcdir=$srcdir$ac_dir_suffix;
23964 ac_top_srcdir=$srcdir ;;
23965 *) # Relative path.
23966 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23967 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23970 # Do not use `cd foo && pwd` to compute absolute paths, because
23971 # the directories may not exist.
23973 .) ac_abs_builddir="$ac_dir";;
23976 .) ac_abs_builddir=`pwd`;;
23977 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23978 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23981 case $ac_abs_builddir in
23982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23984 case ${ac_top_builddir}. in
23985 .) ac_abs_top_builddir=$ac_abs_builddir;;
23986 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23987 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23990 case $ac_abs_builddir in
23991 .) ac_abs_srcdir=$ac_srcdir;;
23994 .) ac_abs_srcdir=$ac_abs_builddir;;
23995 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23996 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23999 case $ac_abs_builddir in
24000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24002 case $ac_top_srcdir in
24003 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24004 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24005 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24010 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24011 echo "$as_me: executing $ac_dest commands" >&6;}
24013 check_win32_symlinks )
24014 # Links sometimes fail undetected on Mingw -
24015 # so here we detect it and warn the user
24016 for FILE in $CONFIG_LINKS
24018 # test -e works for symlinks in the MinGW console
24019 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24020 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24027 cat >>$CONFIG_STATUS <<\_ACEOF
24029 { (exit 0); exit 0; }
24031 chmod +x $CONFIG_STATUS
24032 ac_clean_files=$ac_clean_files_save
24035 # configure is writing to config.log, and then calls config.status.
24036 # config.status does its own redirection, appending to config.log.
24037 # Unfortunately, on DOS this fails, as config.log is still kept open
24038 # by configure, so config.status won't be able to write to it; its
24039 # output is simply discarded. So we exec the FD to /dev/null,
24040 # effectively closing config.log, so it can be properly (re)opened and
24041 # appended to by config.status. When coming back to configure, we
24042 # need to make the FD available again.
24043 if test "$no_create" != yes; then
24045 ac_config_status_args=
24046 test "$silent" = yes &&
24047 ac_config_status_args="$ac_config_status_args --quiet"
24049 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24051 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24052 # would make configure fail if this is the last instruction.
24053 $ac_cs_success || { (exit 1); exit 1; }