2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for PostgreSQL 8.2devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1996-2005, PostgreSQL Global Development Group
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 DUALCASE=1; export DUALCASE # for MKS sh
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49 eval $as_var=C; export $as_var
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
132 case $CONFIG_SHELL in
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
142 if ("$as_dir/$as_base" -c '
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
176 s,^['$as_cr_digits']*\n,,
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
186 # Exit status is that of the last command.
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
198 if expr a : '\(a\)' >/dev/null 2>&1; then
204 rm -f conf$$ conf$$.exe conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
215 elif ln conf$$.file conf$$ 2>/dev/null; then
220 rm -f conf$$ conf$$.exe conf$$.file
222 if mkdir -p . 2>/dev/null; then
225 test -d ./-p && rmdir ./-p
229 as_executable_p="test -f"
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239 # We need space, tab and new line, in precisely that order.
249 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250 # so uname gets run too.
251 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
258 ac_default_prefix=/usr/local
259 ac_config_libobj_dir=.
264 SHELL=${CONFIG_SHELL-/bin/sh}
266 # Maximum number of lines to put in a shell here document.
267 # This variable seems obsolete. It should probably be removed, and
268 # only ac_max_sed_lines should be used.
269 : ${ac_max_here_lines=38}
271 # Identity of this package.
272 PACKAGE_NAME='PostgreSQL'
273 PACKAGE_TARNAME='postgresql'
274 PACKAGE_VERSION='8.2devel'
275 PACKAGE_STRING='PostgreSQL 8.2devel'
276 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
278 ac_unique_file="src/backend/access/common/heaptuple.c"
279 ac_default_prefix=/usr/local/pgsql
280 # Factoring default headers for most tests.
281 ac_includes_default="\
284 # include <sys/types.h>
287 # include <sys/stat.h>
298 # if !STDC_HEADERS && HAVE_MEMORY_H
304 # include <strings.h>
307 # include <inttypes.h>
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS configure_args build build_cpu build_vendor build_os host host_cpu host_vendor host_os PORTNAME docdir enable_nls WANTED_LANGUAGES default_port enable_shared enable_rpath enable_debug CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP GCC TAS autodepend INCLUDES enable_thread_safety with_tcl with_perl with_python with_krb5 krb_srvtab with_pam with_bonjour with_openssl with_zlib EGREP ELF_SYS LDFLAGS_SL AWK FLEX FLEXFLAGS LN_S LD with_gnu_ld ld_R_works RANLIB ac_ct_RANLIB LORDER TAR STRIP ac_ct_STRIP STRIP_STATIC_LIB STRIP_SHARED_LIB YACC YFLAGS PERL perl_archlibexp perl_privlibexp perl_useshrplib perl_embed_ldflags PYTHON python_version python_configdir python_includespec python_libdir python_libspec python_additional_libs HAVE_IPV6 LIBOBJS acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS HAVE_POSIX_SIGNALS MSGFMT MSGMERGE XGETTEXT localedir TCLSH TCL_CONFIG_SH TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIBS TCL_LIB_SPEC TCL_SHARED_BUILD TCL_SHLIB_LD_LIBS NSGMLS JADE have_docbook DOCBOOKSTYLE COLLATEINDEX SGMLSPL vpath_build LTLIBOBJS'
320 # Initialize some variables set by options.
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
332 program_transform_name=s,x,x,
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370 # Accept the important Cygnus configure options, so we can diagnose typos.
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
392 cache_file=config.cache ;;
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 datadir=$ac_optarg ;;
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
420 eval "enable_$ac_feature='$ac_optarg'" ;;
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
435 -help | --help | --hel | --he | -h)
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
459 -libdir | --libdir | --libdi | --libd)
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 # Obsolete; use --without-fp.
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 sbindir=$ac_optarg ;;
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 sharedstatedir=$ac_optarg ;;
563 -site | --site | --sit)
565 -site=* | --site=* | --sit=*)
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
588 -version | --version | --versio | --versi | --vers | -V)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
602 eval "with_$ac_package='$ac_optarg'" ;;
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
614 # Obsolete; use --with-x.
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
666 eval ac_val=$`echo $ac_var`
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
678 eval ac_val=$`echo $ac_var`
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707 test "$silent" = yes && exec 6>/dev/null
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
727 if test ! -r $srcdir/$ac_unique_file; then
731 ac_srcdir_defaulted=no
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
779 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
780 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
781 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
782 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
783 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
784 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
785 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
788 # Report the --help message.
790 if test "$ac_init_help" = "long"; then
791 # Omit some internal or obsolete options to make the list less imposing.
792 # This message is too long to be a string in the A/UX 3.1 sh.
794 \`configure' configures PostgreSQL 8.2devel to adapt to many kinds of systems.
796 Usage: $0 [OPTION]... [VAR=VALUE]...
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE. See below for descriptions of some of the useful variables.
801 Defaults for the options are specified in brackets.
804 -h, --help display this help and exit
805 --help=short display options specific to this package
806 --help=recursive display the short help of all the included packages
807 -V, --version display version information and exit
808 -q, --quiet, --silent do not print \`checking...' messages
809 --cache-file=FILE cache test results in FILE [disabled]
810 -C, --config-cache alias for \`--cache-file=config.cache'
811 -n, --no-create do not create output files
812 --srcdir=DIR find the sources in DIR [configure dir or \`..']
817 Installation directories:
818 --prefix=PREFIX install architecture-independent files in PREFIX
820 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
828 For better control, use the options below.
830 Fine tuning of the installation directories:
831 --bindir=DIR user executables [EPREFIX/bin]
832 --sbindir=DIR system admin executables [EPREFIX/sbin]
833 --libexecdir=DIR program executables [EPREFIX/libexec]
834 --datadir=DIR read-only architecture-independent data [PREFIX/share]
835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
838 --libdir=DIR object code libraries [EPREFIX/lib]
839 --includedir=DIR C header files [PREFIX/include]
840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
841 --infodir=DIR info documentation [PREFIX/info]
842 --mandir=DIR man documentation [PREFIX/man]
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 if test -n "$ac_init_help"; then
854 case $ac_init_help in
855 short | recursive ) echo "Configuration of PostgreSQL 8.2devel:";;
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-integer-datetimes enable 64-bit integer date/time support
863 --enable-nls[=LANGUAGES] enable Native Language Support
864 --disable-shared do not build shared libraries
865 --disable-rpath do not embed shared library search path in executables
866 --disable-spinlocks do not use spinlocks
867 --enable-debug build with debugging symbols (-g)
868 --enable-depend turn on automatic dependency tracking
869 --enable-cassert enable assertion checks (for debugging)
870 --enable-thread-safety make client libraries thread-safe
871 --enable-thread-safety-force force thread-safety in spite of thread test failure
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
879 --without-docdir do not install the documentation
880 --with-includes=DIRS look for additional header files in DIRS
881 --with-libraries=DIRS look for additional libraries in DIRS
882 --with-libs=DIRS alternative spelling of --with-libraries
883 --with-pgport=PORTNUM change default port number 5432
884 --with-tcl build Tcl modules (PL/Tcl)
885 --with-tclconfig=DIR tclConfig.sh is in DIR
886 --with-perl build Perl modules (PL/Perl)
887 --with-python build Python modules (PL/Python)
888 --with-krb5 build with Kerberos 5 support
889 --with-krb-srvnam=NAME name of the default service principal in Kerberos [postgres]
890 --with-pam build with PAM support
891 --with-bonjour build with Bonjour support
892 --with-openssl build with OpenSSL support
893 --with-libedit-preferred prefer BSD Libedit over GNU Readline
894 --without-readline do not use GNU Readline / BSD Libedit line editing
895 --without-zlib do not use Zlib
896 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
908 location of DocBook stylesheets
910 Use these variables to override the choices made by `configure' or to help
911 it to find libraries and programs with nonstandard names/locations.
913 Report bugs to <pgsql-bugs@postgresql.org>.
917 if test "$ac_init_help" = "recursive"; then
918 # If there are subdirs, report their specific --help.
920 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921 test -d $ac_dir || continue
924 if test "$ac_dir" != .; then
925 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926 # A "../" for each directory in $ac_dir_suffix.
927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 ac_dir_suffix= ac_top_builddir=
933 .) # No --srcdir option. We are building in place.
935 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 [\\/]* | ?:[\\/]* ) # Absolute path.
941 ac_srcdir=$srcdir$ac_dir_suffix;
942 ac_top_srcdir=$srcdir ;;
944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
951 .) ac_abs_builddir="$ac_dir";;
954 .) ac_abs_builddir=`pwd`;;
955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 case ${ac_top_builddir}. in
963 .) ac_abs_top_builddir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
972 .) ac_abs_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 case $ac_top_srcdir in
981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 # Check for guested configure; otherwise get Cygnus style configure.
989 if test -f $ac_srcdir/configure.gnu; then
991 $SHELL $ac_srcdir/configure.gnu --help=recursive
992 elif test -f $ac_srcdir/configure; then
994 $SHELL $ac_srcdir/configure --help=recursive
995 elif test -f $ac_srcdir/configure.ac ||
996 test -f $ac_srcdir/configure.in; then
1000 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1009 PostgreSQL configure 8.2devel
1010 generated by GNU Autoconf 2.59
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1016 Copyright (c) 1996-2005, PostgreSQL Global Development Group
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by PostgreSQL $as_me 8.2devel, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366 for ac_dir in config $srcdir/config; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 configure_args=$ac_configure_args
1395 cat >>confdefs.h <<_ACEOF
1396 #define PG_VERSION "$PACKAGE_VERSION"
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413 ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417 { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439 ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1456 echo "$as_me:$LINENO: checking which template to use" >&5
1457 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1462 # Check whether --with-template or --without-template was given.
1463 if test "${with_template+set}" = set; then
1464 withval="$with_template"
1468 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1469 echo "$as_me: error: argument required for --with-template option" >&2;}
1470 { (exit 1); exit 1; }; }
1473 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1474 echo "$as_me: error: argument required for --with-template option" >&2;}
1475 { (exit 1); exit 1; }; }
1480 list) echo; ls "$srcdir/src/template"; exit;;
1481 *) if test -f "$srcdir/src/template/$with_template" ; then
1484 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1485 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1486 { (exit 1); exit 1; }; }
1495 # --with-template not given
1498 aix*) template=aix ;;
1499 beos*) template=beos ;;
1500 bsdi*) template=bsdi ;;
1501 cygwin*) template=cygwin ;;
1502 darwin*) template=darwin ;;
1503 dgux*) template=dgux ;;
1504 freebsd*) template=freebsd ;;
1505 hpux*) template=hpux ;;
1506 irix*) template=irix ;;
1507 linux*|gnu*|k*bsd*-gnu)
1509 mingw*) template=win32 ;;
1510 netbsd*) template=netbsd ;;
1511 nextstep*) template=nextstep ;;
1512 openbsd*) template=openbsd ;;
1513 osf*) template=osf ;;
1514 qnx*) template=qnx4 ;;
1515 sco*) template=sco ;;
1516 solaris*) template=solaris ;;
1517 sunos*) template=sunos4 ;;
1519 case $host_vendor in
1520 univel) template=univel ;;
1522 sysv4*) template=svr4 ;;
1523 sysv5*) template=unixware ;;
1524 ultrix*) template=ultrix4 ;;
1527 if test x"$template" = x"" ; then
1528 { { echo "$as_me:$LINENO: error:
1529 *******************************************************************
1530 PostgreSQL has apparently not been ported to your platform yet.
1531 To try a manual configuration, look into the src/template directory
1532 for a similar platform and use the '--with-template=' option.
1534 Please also contact <pgsql-ports@postgresql.org> to see about
1535 rectifying this. Include the above 'checking host system type...'
1537 *******************************************************************
1539 echo "$as_me: error:
1540 *******************************************************************
1541 PostgreSQL has apparently not been ported to your platform yet.
1542 To try a manual configuration, look into the src/template directory
1543 for a similar platform and use the '--with-template=' option.
1545 Please also contact <pgsql-ports@postgresql.org> to see about
1546 rectifying this. Include the above 'checking host system type...'
1548 *******************************************************************
1550 { (exit 1); exit 1; }; }
1557 echo "$as_me:$LINENO: result: $template" >&5
1558 echo "${ECHO_T}$template" >&6
1563 # Initialize default assumption that we do not need separate assembly code
1564 # for TAS (test-and-set). This can be overridden by the template file
1565 # when it's executed.
1572 ## Command line options
1576 # Installation directory for documentation
1581 # Check whether --with-docdir or --without-docdir was given.
1582 if test "${with_docdir+set}" = set; then
1583 withval="$with_docdir"
1587 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1588 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1589 { (exit 1); exit 1; }; }
1600 docdir='${prefix}/doc'
1607 # Add non-standard directories to the include path
1612 # Check whether --with-includes or --without-includes was given.
1613 if test "${with_includes+set}" = set; then
1614 withval="$with_includes"
1618 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1619 echo "$as_me: error: argument required for --with-includes option" >&2;}
1620 { (exit 1); exit 1; }; }
1623 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1624 echo "$as_me: error: argument required for --with-includes option" >&2;}
1625 { (exit 1); exit 1; }; }
1637 # Add non-standard directories to the library search path
1642 # Check whether --with-libraries or --without-libraries was given.
1643 if test "${with_libraries+set}" = set; then
1644 withval="$with_libraries"
1648 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1649 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1650 { (exit 1); exit 1; }; }
1653 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1654 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1655 { (exit 1); exit 1; }; }
1658 LIBRARY_DIRS=$withval
1668 # Check whether --with-libs or --without-libs was given.
1669 if test "${with_libs+set}" = set; then
1670 withval="$with_libs"
1674 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1675 echo "$as_me: error: argument required for --with-libs option" >&2;}
1676 { (exit 1); exit 1; }; }
1679 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1680 echo "$as_me: error: argument required for --with-libs option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 LIBRARY_DIRS=$withval
1693 # 64-bit integer date/time storage (--enable-integer-datetimes)
1695 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1696 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1699 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1700 if test "${enable_integer_datetimes+set}" = set; then
1701 enableval="$enable_integer_datetimes"
1706 cat >>confdefs.h <<\_ACEOF
1707 #define USE_INTEGER_DATETIMES 1
1715 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1716 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1717 { (exit 1); exit 1; }; }
1722 enable_integer_datetimes=no
1726 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1727 echo "${ECHO_T}$enable_integer_datetimes" >&6
1733 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1734 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1737 # Check whether --enable-nls or --disable-nls was given.
1738 if test "${enable_nls+set}" = set; then
1739 enableval="$enable_nls"
1750 WANTED_LANGUAGES=$enableval
1759 if test "$enable_nls" = yes; then
1761 cat >>confdefs.h <<\_ACEOF
1762 #define ENABLE_NLS 1
1767 echo "$as_me:$LINENO: result: $enable_nls" >&5
1768 echo "${ECHO_T}$enable_nls" >&6
1773 # Default port number (--with-pgport), default 5432
1775 echo "$as_me:$LINENO: checking for default port number" >&5
1776 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1780 # Check whether --with-pgport or --without-pgport was given.
1781 if test "${with_pgport+set}" = set; then
1782 withval="$with_pgport"
1786 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1787 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1788 { (exit 1); exit 1; }; }
1791 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1792 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1793 { (exit 1); exit 1; }; }
1796 default_port=$withval
1804 echo "$as_me:$LINENO: result: $default_port" >&5
1805 echo "${ECHO_T}$default_port" >&6
1806 # Need both of these because some places want an integer and some a string
1808 cat >>confdefs.h <<_ACEOF
1809 #define DEF_PGPORT ${default_port}
1813 cat >>confdefs.h <<_ACEOF
1814 #define DEF_PGPORT_STR "${default_port}"
1820 # Option to disable shared libraries
1824 # Check whether --enable-shared or --disable-shared was given.
1825 if test "${enable_shared+set}" = set; then
1826 enableval="$enable_shared"
1836 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1837 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1838 { (exit 1); exit 1; }; }
1850 # '-rpath'-like feature can be disabled
1854 # Check whether --enable-rpath or --disable-rpath was given.
1855 if test "${enable_rpath+set}" = set; then
1856 enableval="$enable_rpath"
1866 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1867 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1868 { (exit 1); exit 1; }; }
1884 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1885 if test "${enable_spinlocks+set}" = set; then
1886 enableval="$enable_spinlocks"
1896 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1897 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1898 { (exit 1); exit 1; }; }
1903 enable_spinlocks=yes
1909 # --enable-debug adds -g to compiler flags
1913 # Check whether --enable-debug or --disable-debug was given.
1914 if test "${enable_debug+set}" = set; then
1915 enableval="$enable_debug"
1925 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1926 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1927 { (exit 1); exit 1; }; }
1942 # For historical reasons you can also use --with-CC to specify the C compiler
1943 # to use, although the standard way to do this is to set the CC environment
1948 # Check whether --with-CC or --without-CC was given.
1949 if test "${with_CC+set}" = set; then
1954 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1955 echo "$as_me: error: argument required for --with-CC option" >&2;}
1956 { (exit 1); exit 1; }; }
1959 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1960 echo "$as_me: error: argument required for --with-CC option" >&2;}
1961 { (exit 1); exit 1; }; }
1972 aix) pgac_cc_list="gcc xlc";;
1973 irix) pgac_cc_list="cc";; # no gcc
1974 *) pgac_cc_list="gcc cc";;
1978 ac_cpp='$CPP $CPPFLAGS'
1979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in $pgac_cc_list
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2025 for ac_prog in $pgac_cc_list
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$ac_ct_CC" && break
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO:" \
2077 "checking for C compiler version" >&5
2078 ac_compiler=`set X $ac_compile; echo $2`
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080 (eval $ac_compiler --version </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085 (eval $ac_compiler -v </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2089 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090 (eval $ac_compiler -V </dev/null >&5) 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2095 cat >conftest.$ac_ext <<_ACEOF
2098 cat confdefs.h >>conftest.$ac_ext
2099 cat >>conftest.$ac_ext <<_ACEOF
2100 /* end confdefs.h. */
2110 ac_clean_files_save=$ac_clean_files
2111 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2112 # Try to create an executable without -o first, disregard a.out.
2113 # It will help us diagnose broken compilers, and finding out an intuition
2115 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119 (eval $ac_link_default) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; then
2123 # Find the output, starting from the most likely. This scheme is
2124 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127 # Be careful to initialize this variable, since it used to be cached.
2128 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 # b.out is created by i960 compilers.
2131 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133 test -f "$ac_file" || continue
2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138 # This is the source file.
2141 # We found the default executable, but exeext='' is most
2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 # FIXME: I believe we export ac_cv_exeext for Libtool,
2147 # but it would be cool to find out if it's true. Does anybody
2148 # maintain Libtool? --akim.
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&2;}
2163 { (exit 77); exit 77; }; }
2166 ac_exeext=$ac_cv_exeext
2167 echo "$as_me:$LINENO: result: $ac_file" >&5
2168 echo "${ECHO_T}$ac_file" >&6
2170 # Check the compiler produces executables we can run. If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175 # If not cross compiling, check that we can run a simple program.
2176 if test "$cross_compiling" != yes; then
2177 if { ac_try='./$ac_file'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2185 if test "$cross_compiling" = maybe; then
2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'.
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: cannot run C compiled programs.
2192 If you meant to cross compile, use \`--host'.
2193 See \`config.log' for more details." >&2;}
2194 { (exit 1); exit 1; }; }
2198 echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6
2201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202 ac_clean_files=$ac_clean_files_save
2203 # Check the compiler produces executables we can run. If not, either
2204 # the compiler is broken, or we cross compile.
2205 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208 echo "${ECHO_T}$cross_compiling" >&6
2210 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213 (eval $ac_link) 2>&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2219 # work properly (i.e., refer to `conftest.exe'), while it won't with
2221 for ac_file in conftest.exe conftest conftest.*; do
2222 test -f "$ac_file" || continue
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233 See \`config.log' for more details." >&5
2234 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2239 rm -f conftest$ac_cv_exeext
2240 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241 echo "${ECHO_T}$ac_cv_exeext" >&6
2243 rm -f conftest.$ac_ext
2244 EXEEXT=$ac_cv_exeext
2246 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248 if test "${ac_cv_objext+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2266 rm -f conftest.o conftest.obj
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; then
2272 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293 echo "${ECHO_T}$ac_cv_objext" >&6
2294 OBJEXT=$ac_cv_objext
2296 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2301 cat >conftest.$ac_ext <<_ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2319 rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2323 grep -v '^ *+' conftest.er1 >conftest.err
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
2343 echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2352 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354 GCC=`test $ac_compiler_gnu = yes && echo yes`
2355 ac_test_CFLAGS=${CFLAGS+set}
2356 ac_save_CFLAGS=$CFLAGS
2358 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360 if test "${ac_cv_prog_cc_g+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.$ac_ext <<_ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag"
2388 || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2420 if test "$GCC" = yes; then
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_prog_cc_stdc=no
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2457 s = g (p, va_arg (v,int));
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.err conftest.$ac_objext
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2531 case "x$ac_cv_prog_cc_stdc" in
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 # Some people use a C++ compiler to compile C. Since we use `exit',
2542 # in C++ we need to declare it. In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag"
2560 || test ! -s conftest.err'
2561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; } &&
2566 { ac_try='test -s conftest.$ac_objext'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; }; then
2572 for ac_declaration in \
2574 'extern "C" void std::exit (int) throw (); using std::exit;' \
2575 'extern "C" void std::exit (int); using std::exit;' \
2576 'extern "C" void exit (int) throw ();' \
2577 'extern "C" void exit (int);' \
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2600 grep -v '^ *+' conftest.er1 >conftest.err
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag"
2606 || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag"
2651 || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672 if test -n "$ac_declaration"; then
2673 echo '#ifdef __cplusplus' >>confdefs.h
2674 echo $ac_declaration >>confdefs.h
2675 echo '#endif' >>confdefs.h
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cpp='$CPP $CPPFLAGS'
2686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 . "$srcdir/src/template/$template" || exit
2698 # CFLAGS are selected so:
2699 # If the user specifies something in the environment, that is used.
2700 # else: If the template file set something, that is used.
2701 # else: If the compiler is GCC, then we use -O2.
2702 # else: If the compiler is something else, then we use -0.
2704 if test "$ac_env_CFLAGS_set" = set; then
2705 CFLAGS=$ac_env_CFLAGS_value
2706 elif test "${CFLAGS+set}" = set; then
2707 : # (keep what template set)
2708 elif test "$GCC" = yes; then
2711 # if the user selected debug mode, don't use -O
2712 if test "$enable_debug" != yes; then
2717 if test "$GCC" = yes; then
2718 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
2720 # Some versions of GCC support some additional useful warning flags.
2721 # Check whether they are supported, and add them to CFLAGS if so.
2722 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2723 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2724 pgac_save_CFLAGS=$CFLAGS
2725 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2726 cat >conftest.$ac_ext <<_ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h. */
2741 rm -f conftest.$ac_objext
2742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>conftest.er1
2745 grep -v '^ *+' conftest.er1 >conftest.err
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } &&
2750 { ac_try='test -z "$ac_c_werror_flag"
2751 || test ! -s conftest.err'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; } &&
2757 { ac_try='test -s conftest.$ac_objext'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 echo "$as_me:$LINENO: result: yes" >&5
2764 echo "${ECHO_T}yes" >&6
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 CFLAGS="$pgac_save_CFLAGS"
2770 echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2775 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2776 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2777 pgac_save_CFLAGS=$CFLAGS
2778 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2779 cat >conftest.$ac_ext <<_ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2794 rm -f conftest.$ac_objext
2795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796 (eval $ac_compile) 2>conftest.er1
2798 grep -v '^ *+' conftest.er1 >conftest.err
2800 cat conftest.err >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); } &&
2803 { ac_try='test -z "$ac_c_werror_flag"
2804 || test ! -s conftest.err'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; } &&
2810 { ac_try='test -s conftest.$ac_objext'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 echo "$as_me:$LINENO: result: yes" >&5
2817 echo "${ECHO_T}yes" >&6
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2822 CFLAGS="$pgac_save_CFLAGS"
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 # Disable strict-aliasing rules; needed for gcc 3.3+
2830 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2831 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2832 pgac_save_CFLAGS=$CFLAGS
2833 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2849 rm -f conftest.$ac_objext
2850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851 (eval $ac_compile) 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -z "$ac_c_werror_flag"
2859 || test ! -s conftest.err'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 echo "$as_me:$LINENO: result: yes" >&5
2872 echo "${ECHO_T}yes" >&6
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 CFLAGS="$pgac_save_CFLAGS"
2878 echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885 # supply -g if --enable-debug
2886 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2890 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2891 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2893 # We already have this in Makefile.win32, but configure needs it too
2894 if test "$PORTNAME" = "win32"; then
2895 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2898 # Check if the compiler still works with the template settings
2899 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2900 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.$ac_objext conftest$ac_exeext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1 >conftest.err
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 echo "$as_me:$LINENO: result: no" >&5
2946 echo "${ECHO_T}no" >&6
2947 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2948 echo "$as_me: error: cannot proceed" >&2;}
2949 { (exit 1); exit 1; }; }
2951 rm -f conftest.err conftest.$ac_objext \
2952 conftest$ac_exeext conftest.$ac_ext
2954 # Defend against gcc -ffast-math
2955 if test "$GCC" = yes; then
2956 cat >conftest.$ac_ext <<_ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2966 #ifdef __FAST_MATH__
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag"
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
3001 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
3002 { (exit 1); exit 1; }; }
3004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014 # On Suns, sometimes $CPP names a directory.
3015 if test -n "$CPP" && test -d "$CPP"; then
3018 if test -z "$CPP"; then
3019 if test "${ac_cv_prog_CPP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 # Double quotes because CPP needs to be expanded
3023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3026 for ac_c_preproc_warn_flag in '' yes
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 # <limits.h> exists even on freestanding compilers.
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp. "Syntax error" is here to catch this case.
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3041 # include <limits.h>
3043 # include <assert.h>
3047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 grep -v '^ *+' conftest.er1 >conftest.err
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3064 if test -z "$ac_cpp_err"; then
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 # Broken: fails on valid input.
3073 rm -f conftest.err conftest.$ac_ext
3075 # OK, works on sane cases. Now check whether non-existent headers
3076 # can be detected and how.
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3083 #include <ac_nonexistent.h>
3085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 grep -v '^ *+' conftest.er1 >conftest.err
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3102 if test -z "$ac_cpp_err"; then
3103 # Broken: success on invalid input.
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 # Passes both tests.
3113 rm -f conftest.err conftest.$ac_ext
3116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117 rm -f conftest.err conftest.$ac_ext
3118 if $ac_preproc_ok; then
3130 echo "$as_me:$LINENO: result: $CPP" >&5
3131 echo "${ECHO_T}$CPP" >&6
3133 for ac_c_preproc_warn_flag in '' yes
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138 # <limits.h> exists even on freestanding compilers.
3139 # On the NeXT, cc -E runs the code through the compiler's parser,
3140 # not just through cpp. "Syntax error" is here to catch this case.
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3148 # include <limits.h>
3150 # include <assert.h>
3154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3171 if test -z "$ac_cpp_err"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 # Broken: fails on valid input.
3180 rm -f conftest.err conftest.$ac_ext
3182 # OK, works on sane cases. Now check whether non-existent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190 #include <ac_nonexistent.h>
3192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 grep -v '^ *+' conftest.er1 >conftest.err
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209 if test -z "$ac_cpp_err"; then
3210 # Broken: success on invalid input.
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3216 # Passes both tests.
3220 rm -f conftest.err conftest.$ac_ext
3223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3224 rm -f conftest.err conftest.$ac_ext
3225 if $ac_preproc_ok; then
3228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 # Create compiler version string
3244 if test x"$GCC" = x"yes" ; then
3245 cc_string="GCC `${CC} --version | sed q`"
3250 cat >>confdefs.h <<_ACEOF
3251 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
3257 # Set up TAS assembly code if needed; the template file has now had its
3258 # chance to request this.
3260 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
3263 if test "$need_tas" = yes ; then
3272 # Automatic dependency tracking
3276 # Check whether --enable-depend or --disable-depend was given.
3277 if test "${enable_depend+set}" = set; then
3278 enableval="$enable_depend"
3288 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
3289 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
3290 { (exit 1); exit 1; }; }
3303 # Enable assert checks
3307 # Check whether --enable-cassert or --disable-cassert was given.
3308 if test "${enable_cassert+set}" = set; then
3309 enableval="$enable_cassert"
3314 cat >>confdefs.h <<\_ACEOF
3315 #define USE_ASSERT_CHECKING 1
3323 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3324 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3325 { (exit 1); exit 1; }; }
3337 # Include directories
3340 IFS="${IFS}${PATH_SEPARATOR}"
3341 # SRCH_INC comes from the template file
3342 for dir in $with_includes $SRCH_INC; do
3343 if test -d "$dir"; then
3344 INCLUDES="$INCLUDES -I$dir"
3346 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3347 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3355 # Library directories
3358 IFS="${IFS}${PATH_SEPARATOR}"
3359 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3360 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3361 if test -d "$dir"; then
3362 LIBDIRS="$LIBDIRS -L$dir"
3364 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3365 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3371 # Enable thread-safe client libraries
3373 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3374 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3377 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3378 if test "${enable_thread_safety+set}" = set; then
3379 enableval="$enable_thread_safety"
3389 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3390 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3391 { (exit 1); exit 1; }; }
3396 enable_thread_safety=no
3402 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3403 if test "${enable_thread_safety_force+set}" = set; then
3404 enableval="$enable_thread_safety_force"
3414 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3415 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3416 { (exit 1); exit 1; }; }
3421 enable_thread_safety_force=no
3425 if test "$enable_thread_safety" = yes -o \
3426 "$enable_thread_safety_force" = yes; then
3427 enable_thread_safety="yes" # for 'force'
3429 cat >>confdefs.h <<\_ACEOF
3430 #define ENABLE_THREAD_SAFETY 1
3434 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3435 echo "${ECHO_T}$enable_thread_safety" >&6
3439 # Optionally build Tcl modules (PL/Tcl)
3441 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3442 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3446 # Check whether --with-tcl or --without-tcl was given.
3447 if test "${with_tcl+set}" = set; then
3458 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3459 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3460 { (exit 1); exit 1; }; }
3469 echo "$as_me:$LINENO: result: $with_tcl" >&5
3470 echo "${ECHO_T}$with_tcl" >&6
3473 # We see if the path to the Tcl/Tk configuration scripts is specified.
3474 # This will override the use of tclsh to find the paths to search.
3479 # Check whether --with-tclconfig or --without-tclconfig was given.
3480 if test "${with_tclconfig+set}" = set; then
3481 withval="$with_tclconfig"
3485 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3486 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3487 { (exit 1); exit 1; }; }
3490 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3491 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3492 { (exit 1); exit 1; }; }
3503 # Optionally build Perl modules (PL/Perl)
3505 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3506 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3510 # Check whether --with-perl or --without-perl was given.
3511 if test "${with_perl+set}" = set; then
3512 withval="$with_perl"
3522 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3523 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3524 { (exit 1); exit 1; }; }
3533 echo "$as_me:$LINENO: result: $with_perl" >&5
3534 echo "${ECHO_T}$with_perl" >&6
3538 # Optionally build Python modules (PL/Python)
3540 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3541 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3545 # Check whether --with-python or --without-python was given.
3546 if test "${with_python+set}" = set; then
3547 withval="$with_python"
3557 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3558 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3559 { (exit 1); exit 1; }; }
3568 echo "$as_me:$LINENO: result: $with_python" >&5
3569 echo "${ECHO_T}$with_python" >&6
3575 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3576 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3580 # Check whether --with-krb5 or --without-krb5 was given.
3581 if test "${with_krb5+set}" = set; then
3582 withval="$with_krb5"
3588 cat >>confdefs.h <<\_ACEOF
3592 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3599 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3600 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3601 { (exit 1); exit 1; }; }
3610 echo "$as_me:$LINENO: result: $with_krb5" >&5
3611 echo "${ECHO_T}$with_krb5" >&6
3619 # Kerberos configuration parameters
3624 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3625 if test "${with_krb_srvnam+set}" = set; then
3626 withval="$with_krb_srvnam"
3630 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3631 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3632 { (exit 1); exit 1; }; }
3635 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3636 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3637 { (exit 1); exit 1; }; }
3645 with_krb_srvnam="postgres"
3649 cat >>confdefs.h <<_ACEOF
3650 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3658 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3659 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3663 # Check whether --with-pam or --without-pam was given.
3664 if test "${with_pam+set}" = set; then
3670 cat >>confdefs.h <<\_ACEOF
3679 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3680 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3681 { (exit 1); exit 1; }; }
3690 echo "$as_me:$LINENO: result: $with_pam" >&5
3691 echo "${ECHO_T}$with_pam" >&6
3698 echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
3699 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6
3703 # Check whether --with-bonjour or --without-bonjour was given.
3704 if test "${with_bonjour+set}" = set; then
3705 withval="$with_bonjour"
3710 cat >>confdefs.h <<\_ACEOF
3711 #define USE_BONJOUR 1
3719 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
3720 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
3721 { (exit 1); exit 1; }; }
3730 echo "$as_me:$LINENO: result: $with_bonjour" >&5
3731 echo "${ECHO_T}$with_bonjour" >&6
3738 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3739 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3743 # Check whether --with-openssl or --without-openssl was given.
3744 if test "${with_openssl+set}" = set; then
3745 withval="$with_openssl"
3750 cat >>confdefs.h <<\_ACEOF
3759 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3760 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3761 { (exit 1); exit 1; }; }
3770 echo "$as_me:$LINENO: result: $with_openssl" >&5
3771 echo "${ECHO_T}$with_openssl" >&6
3781 # Check whether --with-libedit-preferred or --without-libedit-preferred was given.
3782 if test "${with_libedit_preferred+set}" = set; then
3783 withval="$with_libedit_preferred"
3793 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
3794 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
3795 { (exit 1); exit 1; }; }
3800 with_libedit_preferred=no
3812 # Check whether --with-readline or --without-readline was given.
3813 if test "${with_readline+set}" = set; then
3814 withval="$with_readline"
3824 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3825 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3826 { (exit 1); exit 1; }; }
3835 # readline on MinGW has problems with backslashes in psql and other bugs.
3836 # This is particularly a problem with non-US code pages.
3837 # Therefore disable its use until we understand the cause. 2004-07-20
3838 if test "$PORTNAME" = "win32"; then
3839 if test "$with_readline" = yes; then
3840 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3841 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3853 # Check whether --with-zlib or --without-zlib was given.
3854 if test "${with_zlib+set}" = set; then
3855 withval="$with_zlib"
3865 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3866 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3867 { (exit 1); exit 1; }; }
3882 # Assume system is ELF if it predefines __ELF__ as 1,
3883 # otherwise believe host_os based default.
3885 freebsd1*|freebsd2*) elf=no;;
3886 freebsd3*|freebsd4*) elf=yes;;
3890 echo "$as_me:$LINENO: checking for egrep" >&5
3891 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3892 if test "${ac_cv_prog_egrep+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3896 then ac_cv_prog_egrep='grep -E'
3897 else ac_cv_prog_egrep='egrep'
3900 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3901 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3902 EGREP=$ac_cv_prog_egrep
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3917 $EGREP "yes" >/dev/null 2>&1; then
3920 if test "X$elf" = "Xyes" ; then
3934 CPPFLAGS="$CPPFLAGS $INCLUDES"
3935 LDFLAGS="$LDFLAGS $LIBDIRS"
3937 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3938 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3939 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3940 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3944 for ac_prog in gawk mawk nawk awk
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 echo "$as_me:$LINENO: checking for $ac_word" >&5
3949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3950 if test "${ac_cv_prog_AWK+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 if test -n "$AWK"; then
3954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_AWK="$ac_prog"
3964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 if test -n "$AWK"; then
3974 echo "$as_me:$LINENO: result: $AWK" >&5
3975 echo "${ECHO_T}$AWK" >&6
3977 echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3981 test -n "$AWK" && break
3984 echo "$as_me:$LINENO: checking for flex" >&5
3985 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3986 if test "${pgac_cv_path_flex+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 # Let the user override the test
3990 if test -n "$FLEX"; then
3991 pgac_cv_path_flex=$FLEX
3995 for pgac_dir in $PATH; do
3997 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4000 for pgac_prog in flex lex; do
4001 pgac_candidate="$pgac_dir/$pgac_prog"
4002 if test -f "$pgac_candidate" \
4003 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4005 echo '%%' > conftest.l
4006 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4007 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4008 pgac_broken_flex=$pgac_candidate
4012 pgac_cv_path_flex=$pgac_candidate
4018 rm -f conftest.l lex.yy.c
4019 : ${pgac_cv_path_flex=no}
4023 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4024 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4025 if test x"$pgac_cv_path_flex" = x"no"; then
4026 if test -n "$pgac_broken_flex"; then
4027 { echo "$as_me:$LINENO: WARNING:
4028 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4029 *** should get version 2.5.4 or later." >&5
4030 echo "$as_me: WARNING:
4031 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4032 *** should get version 2.5.4 or later." >&2;}
4035 { echo "$as_me:$LINENO: WARNING:
4036 *** Without Flex you will not be able to build PostgreSQL from CVS or
4037 *** change any of the scanner definition files. You can obtain Flex from
4038 *** a GNU mirror site. (If you are using the official distribution of
4039 *** PostgreSQL then you do not need to worry about this because the Flex
4040 *** output is pre-generated.)" >&5
4041 echo "$as_me: WARNING:
4042 *** Without Flex you will not be able to build PostgreSQL from CVS or
4043 *** change any of the scanner definition files. You can obtain Flex from
4044 *** a GNU mirror site. (If you are using the official distribution of
4045 *** PostgreSQL then you do not need to worry about this because the Flex
4046 *** output is pre-generated.)" >&2;}
4049 if test x"$pgac_cv_path_flex" = x"no"; then
4052 FLEX=$pgac_cv_path_flex
4058 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4059 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4061 if test "$LN_S" = "ln -s"; then
4062 echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6
4065 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4066 echo "${ECHO_T}no, using $LN_S" >&6
4070 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4071 if test "${with_gnu_ld+set}" = set; then
4072 withval="$with_gnu_ld"
4073 test "$withval" = no || with_gnu_ld=yes
4078 if test "$GCC" = yes; then
4079 # Check if gcc -print-prog-name=ld gives a path.
4080 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4081 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4084 # gcc leaves a trailing carriage return which upsets mingw
4085 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4087 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4090 # Accept absolute paths.
4091 [\\/]* | [A-Za-z]:[\\/]*)
4092 re_direlt='/[^/][^/]*/\.\./'
4093 # Canonicalize the path of ld
4094 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4095 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4096 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4098 test -z "$LD" && LD="$ac_prog"
4101 # If it fails, then pretend we aren't using GCC.
4105 # If it is relative, then search for the first ld in PATH.
4109 elif test "$with_gnu_ld" = yes; then
4110 echo "$as_me:$LINENO: checking for GNU ld" >&5
4111 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4113 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4114 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4116 if test "${ac_cv_path_LD+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 if test -z "$LD"; then
4120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4121 for ac_dir in $PATH; do
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4124 ac_cv_path_LD="$ac_dir/$ac_prog"
4125 # Check to see if the program is GNU ld. I'd rather use --version,
4126 # but apparently some GNU ld's only accept -v.
4127 # Break only if it was the GNU/non-GNU ld that we prefer.
4128 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4129 test "$with_gnu_ld" != no && break
4131 test "$with_gnu_ld" != yes && break
4137 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4142 if test -n "$LD"; then
4143 echo "$as_me:$LINENO: result: $LD" >&5
4144 echo "${ECHO_T}$LD" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4149 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4150 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4151 { (exit 1); exit 1; }; }
4152 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4153 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4154 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4158 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4159 ac_cv_prog_gnu_ld=yes
4161 ac_cv_prog_gnu_ld=no
4164 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4165 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4166 with_gnu_ld=$ac_cv_prog_gnu_ld
4171 case $host_os in sysv5*)
4172 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4173 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4174 if test "${pgac_cv_prog_ld_R+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4179 cat >conftest.$ac_ext <<_ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4194 rm -f conftest.$ac_objext conftest$ac_exeext
4195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4196 (eval $ac_link) 2>conftest.er1
4198 grep -v '^ *+' conftest.er1 >conftest.err
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag"
4204 || test ! -s conftest.err'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; } &&
4210 { ac_try='test -s conftest$ac_exeext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 pgac_cv_prog_ld_R=yes
4218 echo "$as_me: failed program was:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 pgac_cv_prog_ld_R=no
4223 rm -f conftest.err conftest.$ac_objext \
4224 conftest$ac_exeext conftest.$ac_ext
4225 LDFLAGS=$pgac_save_LDFLAGS
4228 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4229 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4230 ld_R_works=$pgac_cv_prog_ld_R
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_RANLIB+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 RANLIB=$ac_cv_prog_RANLIB
4261 if test -n "$RANLIB"; then
4262 echo "$as_me:$LINENO: result: $RANLIB" >&5
4263 echo "${ECHO_T}$RANLIB" >&6
4265 echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4270 if test -z "$ac_cv_prog_RANLIB"; then
4271 ac_ct_RANLIB=$RANLIB
4272 # Extract the first word of "ranlib", so it can be a program name with args.
4273 set dummy ranlib; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 if test -n "$ac_ct_RANLIB"; then
4280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_RANLIB="ranlib"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4300 if test -n "$ac_ct_RANLIB"; then
4301 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4302 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4308 RANLIB=$ac_ct_RANLIB
4310 RANLIB="$ac_cv_prog_RANLIB"
4313 for ac_prog in lorder
4315 # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_LORDER+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 if test -n "$LORDER"; then
4323 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_LORDER="$ac_prog"
4333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 LORDER=$ac_cv_prog_LORDER
4342 if test -n "$LORDER"; then
4343 echo "$as_me:$LINENO: result: $LORDER" >&5
4344 echo "${ECHO_T}$LORDER" >&6
4346 echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4350 test -n "$LORDER" && break
4353 # Extract the first word of "tar", so it can be a program name with args.
4354 set dummy tar; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_path_TAR+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 if test -n "$TAR"; then
4385 echo "$as_me:$LINENO: result: $TAR" >&5
4386 echo "${ECHO_T}$TAR" >&6
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4393 if test -n "$ac_tool_prefix"; then
4394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}strip; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_STRIP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if test -n "$STRIP"; then
4402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 STRIP=$ac_cv_prog_STRIP
4421 if test -n "$STRIP"; then
4422 echo "$as_me:$LINENO: result: $STRIP" >&5
4423 echo "${ECHO_T}$STRIP" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4430 if test -z "$ac_cv_prog_STRIP"; then
4432 # Extract the first word of "strip", so it can be a program name with args.
4433 set dummy strip; ac_word=$2
4434 echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4436 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if test -n "$ac_ct_STRIP"; then
4440 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_ac_ct_STRIP="strip"
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4459 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4460 if test -n "$ac_ct_STRIP"; then
4461 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4462 echo "${ECHO_T}$ac_ct_STRIP" >&6
4464 echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6
4470 STRIP="$ac_cv_prog_STRIP"
4474 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4475 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4476 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4477 STRIP_STATIC_LIB="$STRIP -x"
4478 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4479 echo "$as_me:$LINENO: result: yes" >&5
4480 echo "${ECHO_T}yes" >&6
4484 echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6
4491 for ac_prog in 'bison -y'
4493 # Extract the first word of "$ac_prog", so it can be a program name with args.
4494 set dummy $ac_prog; ac_word=$2
4495 echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497 if test "${ac_cv_prog_YACC+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 if test -n "$YACC"; then
4501 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4510 ac_cv_prog_YACC="$ac_prog"
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 YACC=$ac_cv_prog_YACC
4520 if test -n "$YACC"; then
4521 echo "$as_me:$LINENO: result: $YACC" >&5
4522 echo "${ECHO_T}$YACC" >&6
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$YACC" && break
4532 if test "$YACC"; then
4533 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4534 { echo "$as_me:$LINENO: WARNING:
4535 *** If you are going to modify the grammar files or build from CVS, the installed
4536 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4537 echo "$as_me: WARNING:
4538 *** If you are going to modify the grammar files or build from CVS, the installed
4539 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4543 if test -z "$YACC"; then
4544 { echo "$as_me:$LINENO: WARNING:
4545 *** Without Bison you will not be able to build PostgreSQL from CVS or
4546 *** change any of the parser definition files. You can obtain Bison from
4547 *** a GNU mirror site. (If you are using the official distribution of
4548 *** PostgreSQL then you do not need to worry about this because the Bison
4549 *** output is pre-generated.) To use a different yacc program (possible,
4550 *** but not recommended), set the environment variable YACC before running
4551 *** 'configure'." >&5
4552 echo "$as_me: WARNING:
4553 *** Without Bison you will not be able to build PostgreSQL from CVS or
4554 *** change any of the parser definition files. You can obtain Bison from
4555 *** a GNU mirror site. (If you are using the official distribution of
4556 *** PostgreSQL then you do not need to worry about this because the Bison
4557 *** output is pre-generated.) To use a different yacc program (possible,
4558 *** but not recommended), set the environment variable YACC before running
4559 *** 'configure'." >&2;}
4563 # Extract the first word of "perl", so it can be a program name with args.
4564 set dummy perl; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_PERL+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 PERL=$ac_cv_path_PERL
4594 if test -n "$PERL"; then
4595 echo "$as_me:$LINENO: result: $PERL" >&5
4596 echo "${ECHO_T}$PERL" >&6
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 if test "$with_perl" = yes; then
4604 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4605 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4606 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4607 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4608 echo "${ECHO_T}$perl_archlibexp" >&6
4609 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4610 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4611 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4612 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4613 echo "${ECHO_T}$perl_privlibexp" >&6
4614 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4615 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4616 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4617 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4618 echo "${ECHO_T}$perl_useshrplib" >&6
4620 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4621 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4622 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4623 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4624 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4625 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4626 echo "${ECHO_T}$perl_embed_ldflags" >&6
4629 if test "$with_python" = yes; then
4630 # Extract the first word of "python", so it can be a program name with args.
4631 set dummy python; ac_word=$2
4632 echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634 if test "${ac_cv_path_PYTHON+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 PYTHON=$ac_cv_path_PYTHON
4661 if test -n "$PYTHON"; then
4662 echo "$as_me:$LINENO: result: $PYTHON" >&5
4663 echo "${ECHO_T}$PYTHON" >&6
4665 echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4669 if test x"$PYTHON" = x""; then
4670 { { echo "$as_me:$LINENO: error: Python not found" >&5
4671 echo "$as_me: error: Python not found" >&2;}
4672 { (exit 1); exit 1; }; }
4676 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4677 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4678 if "${PYTHON}" 2>&- -c 'import distutils'
4680 echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6
4683 echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6
4685 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4686 echo "$as_me: error: distutils module not found" >&2;}
4687 { (exit 1); exit 1; }; }
4689 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4690 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4691 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4692 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')"`
4693 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4695 # This should be enough of a message.
4696 echo "$as_me:$LINENO: result: $python_configdir" >&5
4697 echo "${ECHO_T}$python_configdir" >&6
4700 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4701 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4703 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4704 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4705 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4706 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4708 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4710 # New way: use the official shared library
4711 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4712 python_libspec="-L${python_libdir} -l${ldlibrary}"
4714 # Old way: use libpython from python_configdir
4715 python_libdir="${python_configdir}"
4716 python_libspec="-L${python_libdir} -lpython${python_version}"
4719 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4721 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4722 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4725 # threaded python is not supported on bsd's
4726 echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
4727 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6
4728 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
4729 if test "$pythreads" = "1"; then
4730 echo "$as_me:$LINENO: result: yes" >&5
4731 echo "${ECHO_T}yes" >&6
4734 { { echo "$as_me:$LINENO: error: *** Threaded Python not supported on this platform ***" >&5
4735 echo "$as_me: error: *** Threaded Python not supported on this platform ***" >&2;}
4736 { (exit 1); exit 1; }; }
4740 echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4752 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4755 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4756 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4757 if test "${ac_cv_lib_bsd_main+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 ac_check_lib_save_LIBS=$LIBS
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4778 rm -f conftest.$ac_objext conftest$ac_exeext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>conftest.er1
4782 grep -v '^ *+' conftest.er1 >conftest.err
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } &&
4787 { ac_try='test -z "$ac_c_werror_flag"
4788 || test ! -s conftest.err'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; } &&
4794 { ac_try='test -s conftest$ac_exeext'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; }; then
4800 ac_cv_lib_bsd_main=yes
4802 echo "$as_me: failed program was:" >&5
4803 sed 's/^/| /' conftest.$ac_ext >&5
4805 ac_cv_lib_bsd_main=no
4807 rm -f conftest.err conftest.$ac_objext \
4808 conftest$ac_exeext conftest.$ac_ext
4809 LIBS=$ac_check_lib_save_LIBS
4811 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4812 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4813 if test $ac_cv_lib_bsd_main = yes; then
4814 cat >>confdefs.h <<_ACEOF
4815 #define HAVE_LIBBSD 1
4824 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4825 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4826 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_check_lib_save_LIBS=$LIBS
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4838 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4844 char setproctitle ();
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } &&
4862 { ac_try='test -z "$ac_c_werror_flag"
4863 || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest$ac_exeext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_lib_util_setproctitle=yes
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 ac_cv_lib_util_setproctitle=no
4882 rm -f conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4884 LIBS=$ac_check_lib_save_LIBS
4886 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4887 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4888 if test $ac_cv_lib_util_setproctitle = yes; then
4889 cat >>confdefs.h <<_ACEOF
4890 #define HAVE_LIBUTIL 1
4898 echo "$as_me:$LINENO: checking for main in -lm" >&5
4899 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4900 if test "${ac_cv_lib_m_main+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 ac_check_lib_save_LIBS=$LIBS
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4921 rm -f conftest.$ac_objext conftest$ac_exeext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4923 (eval $ac_link) 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } &&
4930 { ac_try='test -z "$ac_c_werror_flag"
4931 || test ! -s conftest.err'
4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 ac_cv_lib_m_main=yes
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4950 rm -f conftest.err conftest.$ac_objext \
4951 conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4954 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4955 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4956 if test $ac_cv_lib_m_main = yes; then
4957 cat >>confdefs.h <<_ACEOF
4966 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4967 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4968 if test "${ac_cv_lib_dl_main+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 ac_check_lib_save_LIBS=$LIBS
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag"
4999 || test ! -s conftest.err'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; } &&
5005 { ac_try='test -s conftest$ac_exeext'
5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); }; }; then
5011 ac_cv_lib_dl_main=yes
5013 echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 ac_cv_lib_dl_main=no
5018 rm -f conftest.err conftest.$ac_objext \
5019 conftest$ac_exeext conftest.$ac_ext
5020 LIBS=$ac_check_lib_save_LIBS
5022 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5023 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5024 if test $ac_cv_lib_dl_main = yes; then
5025 cat >>confdefs.h <<_ACEOF
5026 #define HAVE_LIBDL 1
5034 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5035 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5036 if test "${ac_cv_lib_nsl_main+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 ac_check_lib_save_LIBS=$LIBS
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>conftest.er1
5061 grep -v '^ *+' conftest.er1 >conftest.err
5063 cat conftest.err >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } &&
5066 { ac_try='test -z "$ac_c_werror_flag"
5067 || test ! -s conftest.err'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; } &&
5073 { ac_try='test -s conftest$ac_exeext'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 ac_cv_lib_nsl_main=yes
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5084 ac_cv_lib_nsl_main=no
5086 rm -f conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 LIBS=$ac_check_lib_save_LIBS
5090 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5091 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5092 if test $ac_cv_lib_nsl_main = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define HAVE_LIBNSL 1
5102 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5103 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5104 if test "${ac_cv_lib_socket_main+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 ac_check_lib_save_LIBS=$LIBS
5108 LIBS="-lsocket $LIBS"
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5125 rm -f conftest.$ac_objext conftest$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -z "$ac_c_werror_flag"
5135 || test ! -s conftest.err'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; } &&
5141 { ac_try='test -s conftest$ac_exeext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_cv_lib_socket_main=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5152 ac_cv_lib_socket_main=no
5154 rm -f conftest.err conftest.$ac_objext \
5155 conftest$ac_exeext conftest.$ac_ext
5156 LIBS=$ac_check_lib_save_LIBS
5158 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5159 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5160 if test $ac_cv_lib_socket_main = yes; then
5161 cat >>confdefs.h <<_ACEOF
5162 #define HAVE_LIBSOCKET 1
5165 LIBS="-lsocket $LIBS"
5170 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5171 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5172 if test "${ac_cv_lib_ipc_main+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 ac_check_lib_save_LIBS=$LIBS
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_ipc_main=yes
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ac_cv_lib_ipc_main=no
5222 rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5227 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5228 if test $ac_cv_lib_ipc_main = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_LIBIPC 1
5238 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5239 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5240 if test "${ac_cv_lib_IPC_main+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 ac_check_lib_save_LIBS=$LIBS
5245 cat >conftest.$ac_ext <<_ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_IPC_main=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_lib_IPC_main=no
5290 rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5295 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5296 if test $ac_cv_lib_IPC_main = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBIPC 1
5306 echo "$as_me:$LINENO: checking for main in -llc" >&5
5307 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5308 if test "${ac_cv_lib_lc_main+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5313 cat >conftest.$ac_ext <<_ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5329 rm -f conftest.$ac_objext conftest$ac_exeext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5331 (eval $ac_link) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest$ac_exeext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_lib_lc_main=yes
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_cv_lib_lc_main=no
5358 rm -f conftest.err conftest.$ac_objext \
5359 conftest$ac_exeext conftest.$ac_ext
5360 LIBS=$ac_check_lib_save_LIBS
5362 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5363 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5364 if test $ac_cv_lib_lc_main = yes; then
5365 cat >>confdefs.h <<_ACEOF
5366 #define HAVE_LIBLC 1
5374 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5375 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5376 if test "${ac_cv_lib_dld_main+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 ac_check_lib_save_LIBS=$LIBS
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_c_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest$ac_exeext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 ac_cv_lib_dld_main=yes
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ac_cv_lib_dld_main=no
5426 rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428 LIBS=$ac_check_lib_save_LIBS
5430 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5431 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5432 if test $ac_cv_lib_dld_main = yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define HAVE_LIBDLD 1
5442 echo "$as_me:$LINENO: checking for main in -lld" >&5
5443 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5444 if test "${ac_cv_lib_ld_main+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_check_lib_save_LIBS=$LIBS
5449 cat >conftest.$ac_ext <<_ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5465 rm -f conftest.$ac_objext conftest$ac_exeext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467 (eval $ac_link) 2>conftest.er1
5469 grep -v '^ *+' conftest.er1 >conftest.err
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
5474 { ac_try='test -z "$ac_c_werror_flag"
5475 || test ! -s conftest.err'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; } &&
5481 { ac_try='test -s conftest$ac_exeext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_lib_ld_main=yes
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_cv_lib_ld_main=no
5494 rm -f conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_check_lib_save_LIBS
5498 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5499 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5500 if test $ac_cv_lib_ld_main = yes; then
5501 cat >>confdefs.h <<_ACEOF
5502 #define HAVE_LIBLD 1
5510 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5511 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5512 if test "${ac_cv_lib_compat_main+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_check_lib_save_LIBS=$LIBS
5516 LIBS="-lcompat $LIBS"
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5533 rm -f conftest.$ac_objext conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag"
5543 || test ! -s conftest.err'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest$ac_exeext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 ac_cv_lib_compat_main=yes
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_cv_lib_compat_main=no
5562 rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5566 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5567 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5568 if test $ac_cv_lib_compat_main = yes; then
5569 cat >>confdefs.h <<_ACEOF
5570 #define HAVE_LIBCOMPAT 1
5573 LIBS="-lcompat $LIBS"
5578 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5579 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5580 if test "${ac_cv_lib_BSD_main+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 ac_check_lib_save_LIBS=$LIBS
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -z "$ac_c_werror_flag"
5611 || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_lib_BSD_main=yes
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628 ac_cv_lib_BSD_main=no
5630 rm -f conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_check_lib_save_LIBS
5634 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5635 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5636 if test $ac_cv_lib_BSD_main = yes; then
5637 cat >>confdefs.h <<_ACEOF
5638 #define HAVE_LIBBSD 1
5646 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5647 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5648 if test "${ac_cv_lib_gen_main+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_check_lib_save_LIBS=$LIBS
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671 (eval $ac_link) 2>conftest.er1
5673 grep -v '^ *+' conftest.er1 >conftest.err
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag"
5679 || test ! -s conftest.err'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest$ac_exeext'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
5691 ac_cv_lib_gen_main=yes
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5696 ac_cv_lib_gen_main=no
5698 rm -f conftest.err conftest.$ac_objext \
5699 conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5702 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5703 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5704 if test $ac_cv_lib_gen_main = yes; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define HAVE_LIBGEN 1
5714 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5715 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5716 if test "${ac_cv_lib_PW_main+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 ac_check_lib_save_LIBS=$LIBS
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_lib_PW_main=yes
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5764 ac_cv_lib_PW_main=no
5766 rm -f conftest.err conftest.$ac_objext \
5767 conftest$ac_exeext conftest.$ac_ext
5768 LIBS=$ac_check_lib_save_LIBS
5770 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5771 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5772 if test $ac_cv_lib_PW_main = yes; then
5773 cat >>confdefs.h <<_ACEOF
5774 #define HAVE_LIBPW 1
5782 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5783 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5784 if test "${ac_cv_lib_resolv_main+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 ac_check_lib_save_LIBS=$LIBS
5788 LIBS="-lresolv $LIBS"
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5805 rm -f conftest.$ac_objext conftest$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } &&
5814 { ac_try='test -z "$ac_c_werror_flag"
5815 || test ! -s conftest.err'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5827 ac_cv_lib_resolv_main=yes
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 ac_cv_lib_resolv_main=no
5834 rm -f conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext
5836 LIBS=$ac_check_lib_save_LIBS
5838 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5839 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5840 if test $ac_cv_lib_resolv_main = yes; then
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_LIBRESOLV 1
5845 LIBS="-lresolv $LIBS"
5849 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5850 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5851 if test "${ac_cv_search_getopt_long+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_func_search_save_LIBS=$LIBS
5855 ac_cv_search_getopt_long=no
5856 cat >conftest.$ac_ext <<_ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5863 /* Override any gcc2 internal prototype to avoid an error. */
5867 /* We use char because int might match the return type of a gcc2
5868 builtin and then its argument prototype would still apply. */
5869 char getopt_long ();
5878 rm -f conftest.$ac_objext conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880 (eval $ac_link) 2>conftest.er1
5882 grep -v '^ *+' conftest.er1 >conftest.err
5884 cat conftest.err >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } &&
5887 { ac_try='test -z "$ac_c_werror_flag"
5888 || test ! -s conftest.err'
5889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; } &&
5894 { ac_try='test -s conftest$ac_exeext'
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; }; then
5900 ac_cv_search_getopt_long="none required"
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5906 rm -f conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5908 if test "$ac_cv_search_getopt_long" = no; then
5909 for ac_lib in getopt gnugetopt; do
5910 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5924 char getopt_long ();
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_search_getopt_long="-l$ac_lib"
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5966 LIBS=$ac_func_search_save_LIBS
5968 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5969 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5970 if test "$ac_cv_search_getopt_long" != no; then
5971 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5977 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5978 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5979 if test "${ac_cv_lib_unix_main+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 ac_check_lib_save_LIBS=$LIBS
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002 (eval $ac_link) 2>conftest.er1
6004 grep -v '^ *+' conftest.er1 >conftest.err
6006 cat conftest.err >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } &&
6009 { ac_try='test -z "$ac_c_werror_flag"
6010 || test ! -s conftest.err'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; } &&
6016 { ac_try='test -s conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_lib_unix_main=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 ac_cv_lib_unix_main=no
6029 rm -f conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6033 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6034 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6035 if test $ac_cv_lib_unix_main = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_LIBUNIX 1
6044 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6045 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6046 if test "${ac_cv_search_crypt+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 ac_func_search_save_LIBS=$LIBS
6050 ac_cv_search_crypt=no
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6058 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6073 rm -f conftest.$ac_objext conftest$ac_exeext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6075 (eval $ac_link) 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag"
6083 || test ! -s conftest.err'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_crypt="none required"
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f conftest.err conftest.$ac_objext \
6102 conftest$ac_exeext conftest.$ac_ext
6103 if test "$ac_cv_search_crypt" = no; then
6104 for ac_lib in crypt; do
6105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>conftest.er1
6132 grep -v '^ *+' conftest.er1 >conftest.err
6134 cat conftest.err >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } &&
6137 { ac_try='test -z "$ac_c_werror_flag"
6138 || test ! -s conftest.err'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_cv_search_crypt="-l$ac_lib"
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6157 rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6161 LIBS=$ac_func_search_save_LIBS
6163 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6164 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6165 if test "$ac_cv_search_crypt" != no; then
6166 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6171 if test "$PORTNAME" = "beos"
6174 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6175 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6176 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 ac_check_lib_save_LIBS=$LIBS
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6188 /* Override any gcc2 internal prototype to avoid an error. */
6192 /* We use char because int might match the return type of a gcc2
6193 builtin and then its argument prototype would still apply. */
6194 char __inet_ntoa ();
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag"
6213 || test ! -s conftest.err'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest$ac_exeext'
6220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
6225 ac_cv_lib_bind___inet_ntoa=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.$ac_ext >&5
6230 ac_cv_lib_bind___inet_ntoa=no
6232 rm -f conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6236 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6237 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6238 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define HAVE_LIBBIND 1
6249 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6250 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6251 if test "${ac_cv_search_fdatasync+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 ac_func_search_save_LIBS=$LIBS
6255 ac_cv_search_fdatasync=no
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6263 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_search_fdatasync="none required"
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6308 if test "$ac_cv_search_fdatasync" = no; then
6309 for ac_lib in rt posix4; do
6310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6318 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag"
6343 || test ! -s conftest.err'
6344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest$ac_exeext'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 ac_cv_search_fdatasync="-l$ac_lib"
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -f conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6366 LIBS=$ac_func_search_save_LIBS
6368 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6369 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6370 if test "$ac_cv_search_fdatasync" != no; then
6371 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6377 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6378 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6379 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 ac_check_lib_save_LIBS=$LIBS
6383 LIBS="-lcygipc $LIBS"
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6406 rm -f conftest.$ac_objext conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_lib_cygipc_shmget=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 ac_cv_lib_cygipc_shmget=no
6435 rm -f conftest.err conftest.$ac_objext \
6436 conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_check_lib_save_LIBS
6439 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6440 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6441 if test $ac_cv_lib_cygipc_shmget = yes; then
6442 cat >>confdefs.h <<_ACEOF
6443 #define HAVE_LIBCYGIPC 1
6446 LIBS="-lcygipc $LIBS"
6451 if test "$PORTNAME" = "win32"
6454 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
6455 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
6456 if test "${ac_cv_lib_wsock32_main+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_check_lib_save_LIBS=$LIBS
6460 LIBS="-lwsock32 $LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6477 rm -f conftest.$ac_objext conftest$ac_exeext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479 (eval $ac_link) 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -z "$ac_c_werror_flag"
6487 || test ! -s conftest.err'
6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); }; } &&
6493 { ac_try='test -s conftest$ac_exeext'
6494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); }; }; then
6499 ac_cv_lib_wsock32_main=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 ac_cv_lib_wsock32_main=no
6506 rm -f conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext conftest.$ac_ext
6508 LIBS=$ac_check_lib_save_LIBS
6510 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
6511 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
6512 if test $ac_cv_lib_wsock32_main = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define HAVE_LIBWSOCK32 1
6517 LIBS="-lwsock32 $LIBS"
6523 if test "$with_readline" = yes; then
6526 if test "${pgac_cv_check_readline+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 pgac_cv_check_readline=no
6530 pgac_save_LIBS=$LIBS
6531 if test x"$with_libedit_preferred" != x"yes"
6532 then READLINE_ORDER="-lreadline -ledit"
6533 else READLINE_ORDER="-ledit -lreadline"
6535 for pgac_rllib in $READLINE_ORDER ; do
6536 echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
6537 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6
6538 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6539 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6547 /* Override any gcc2 internal prototype to avoid an error. */
6551 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_c_werror_flag"
6572 || test ! -s conftest.err'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; } &&
6578 { ac_try='test -s conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6585 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6586 # recognize dependent libraries; assume curses is needed if we didn't
6587 # find any dependency.
6589 netbsd* | openbsd* | irix*)
6590 if test x"$pgac_lib" = x"" ; then
6591 pgac_lib=" -lcurses"
6595 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6603 rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6606 if test "$pgac_cv_check_readline" != no ; then
6607 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6608 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6611 echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6
6615 LIBS=$pgac_save_LIBS
6619 if test "$pgac_cv_check_readline" != no ; then
6620 LIBS="$pgac_cv_check_readline $LIBS"
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_LIBREADLINE 1
6629 if test x"$pgac_cv_check_readline" = x"no"; then
6630 { { echo "$as_me:$LINENO: error: readline library not found
6631 If you have readline already installed, see config.log for details on the
6632 failure. It is possible the compiler isn't looking in the proper directory.
6633 Use --without-readline to disable readline support." >&5
6634 echo "$as_me: error: readline library not found
6635 If you have readline already installed, see config.log for details on the
6636 failure. It is possible the compiler isn't looking in the proper directory.
6637 Use --without-readline to disable readline support." >&2;}
6638 { (exit 1); exit 1; }; }
6642 if test "$with_zlib" = yes; then
6644 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6645 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6646 if test "${ac_cv_lib_z_inflate+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 ac_check_lib_save_LIBS=$LIBS
6651 cat >conftest.$ac_ext <<_ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6658 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6673 rm -f conftest.$ac_objext conftest$ac_exeext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6675 (eval $ac_link) 2>conftest.er1
6677 grep -v '^ *+' conftest.er1 >conftest.err
6679 cat conftest.err >&5
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } &&
6682 { ac_try='test -z "$ac_c_werror_flag"
6683 || test ! -s conftest.err'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_lib_z_inflate=yes
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 ac_cv_lib_z_inflate=no
6702 rm -f conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6704 LIBS=$ac_check_lib_save_LIBS
6706 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6707 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6708 if test $ac_cv_lib_z_inflate = yes; then
6709 cat >>confdefs.h <<_ACEOF
6716 { { echo "$as_me:$LINENO: error: zlib library not found
6717 If you have zlib already installed, see config.log for details on the
6718 failure. It is possible the compiler isn't looking in the proper directory.
6719 Use --without-zlib to disable zlib support." >&5
6720 echo "$as_me: error: zlib library not found
6721 If you have zlib already installed, see config.log for details on the
6722 failure. It is possible the compiler isn't looking in the proper directory.
6723 Use --without-zlib to disable zlib support." >&2;}
6724 { (exit 1); exit 1; }; }
6729 if test "$enable_spinlocks" = yes; then
6731 cat >>confdefs.h <<\_ACEOF
6732 #define HAVE_SPINLOCKS 1
6736 { echo "$as_me:$LINENO: WARNING:
6737 *** Not using spinlocks will cause poor performance." >&5
6738 echo "$as_me: WARNING:
6739 *** Not using spinlocks will cause poor performance." >&2;}
6742 if test "$with_krb5" = yes ; then
6743 if test "$PORTNAME" != "win32"; then
6744 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6745 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6746 if test "${ac_cv_search_com_err+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_func_search_save_LIBS=$LIBS
6750 ac_cv_search_com_err=no
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6758 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_com_err="none required"
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6801 rm -f conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 if test "$ac_cv_search_com_err" = no; then
6804 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6813 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_search_com_err="-l$ac_lib"
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6857 rm -f conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_func_search_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6864 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6865 if test "$ac_cv_search_com_err" != no; then
6866 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6869 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6870 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6871 { (exit 1); exit 1; }; }
6874 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6875 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6876 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_func_search_save_LIBS=$LIBS
6880 ac_cv_search_krb5_encrypt=no
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6888 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6894 char krb5_encrypt ();
6903 rm -f conftest.$ac_objext conftest$ac_exeext
6904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_c_werror_flag"
6913 || test ! -s conftest.err'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; } &&
6919 { ac_try='test -s conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_search_krb5_encrypt="none required"
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6931 rm -f conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933 if test "$ac_cv_search_krb5_encrypt" = no; then
6934 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6943 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6949 char krb5_encrypt ();
6958 rm -f conftest.$ac_objext conftest$ac_exeext
6959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6960 (eval $ac_link) 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } &&
6967 { ac_try='test -z "$ac_c_werror_flag"
6968 || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest$ac_exeext'
6975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6980 ac_cv_search_krb5_encrypt="-l$ac_lib"
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6987 rm -f conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext conftest.$ac_ext
6991 LIBS=$ac_func_search_save_LIBS
6993 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6994 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6995 if test "$ac_cv_search_krb5_encrypt" != no; then
6996 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6999 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
7000 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
7001 { (exit 1); exit 1; }; }
7004 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7005 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
7006 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_func_search_save_LIBS=$LIBS
7010 ac_cv_search_krb5_sendauth=no
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7018 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char krb5_sendauth ();
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_search_krb5_sendauth="none required"
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7061 rm -f conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 if test "$ac_cv_search_krb5_sendauth" = no; then
7064 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7066 cat >conftest.$ac_ext <<_ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7077 /* We use char because int might match the return type of a gcc2
7078 builtin and then its argument prototype would still apply. */
7079 char krb5_sendauth ();
7088 rm -f conftest.$ac_objext conftest$ac_exeext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090 (eval $ac_link) 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
7110 ac_cv_search_krb5_sendauth="-l$ac_lib"
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7117 rm -f conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7121 LIBS=$ac_func_search_save_LIBS
7123 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7124 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7125 if test "$ac_cv_search_krb5_sendauth" != no; then
7126 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7129 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7130 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7131 { (exit 1); exit 1; }; }
7135 echo "$as_me:$LINENO: checking for library containing com_err" >&5
7136 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
7137 if test "${ac_cv_search_com_err+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_func_search_save_LIBS=$LIBS
7141 ac_cv_search_com_err=no
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7149 /* Override any gcc2 internal prototype to avoid an error. */
7153 /* We use char because int might match the return type of a gcc2
7154 builtin and then its argument prototype would still apply. */
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -z "$ac_c_werror_flag"
7174 || test ! -s conftest.err'
7175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; } &&
7180 { ac_try='test -s conftest$ac_exeext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 ac_cv_search_com_err="none required"
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7192 rm -f conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 if test "$ac_cv_search_com_err" = no; then
7195 for ac_lib in 'comerr32 -lkrb5_32'; do
7196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7197 cat >conftest.$ac_ext <<_ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7204 /* Override any gcc2 internal prototype to avoid an error. */
7208 /* We use char because int might match the return type of a gcc2
7209 builtin and then its argument prototype would still apply. */
7219 rm -f conftest.$ac_objext conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -z "$ac_c_werror_flag"
7229 || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7241 ac_cv_search_com_err="-l$ac_lib"
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7248 rm -f conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7252 LIBS=$ac_func_search_save_LIBS
7254 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7255 echo "${ECHO_T}$ac_cv_search_com_err" >&6
7256 if test "$ac_cv_search_com_err" != no; then
7257 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
7260 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7261 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7262 { (exit 1); exit 1; }; }
7268 if test "$with_openssl" = yes ; then
7269 if test "$PORTNAME" != "win32"; then
7271 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7272 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7273 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 ac_check_lib_save_LIBS=$LIBS
7277 LIBS="-lcrypto $LIBS"
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7285 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char CRYPTO_new_ex_data ();
7295 CRYPTO_new_ex_data ();
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7327 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7329 rm -f conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331 LIBS=$ac_check_lib_save_LIBS
7333 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7334 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7335 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7336 cat >>confdefs.h <<_ACEOF
7337 #define HAVE_LIBCRYPTO 1
7340 LIBS="-lcrypto $LIBS"
7343 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7344 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7345 { (exit 1); exit 1; }; }
7349 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7350 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7351 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 ac_check_lib_save_LIBS=$LIBS
7356 cat >conftest.$ac_ext <<_ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7363 /* Override any gcc2 internal prototype to avoid an error. */
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7369 char SSL_library_init ();
7373 SSL_library_init ();
7378 rm -f conftest.$ac_objext conftest$ac_exeext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7380 (eval $ac_link) 2>conftest.er1
7382 grep -v '^ *+' conftest.er1 >conftest.err
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } &&
7387 { ac_try='test -z "$ac_c_werror_flag"
7388 || test ! -s conftest.err'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; } &&
7394 { ac_try='test -s conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_lib_ssl_SSL_library_init=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_lib_ssl_SSL_library_init=no
7407 rm -f conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7409 LIBS=$ac_check_lib_save_LIBS
7411 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7412 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7413 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7414 cat >>confdefs.h <<_ACEOF
7415 #define HAVE_LIBSSL 1
7421 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7422 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7423 { (exit 1); exit 1; }; }
7428 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
7429 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
7430 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_check_lib_save_LIBS=$LIBS
7434 LIBS="-leay32 $LIBS"
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7442 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7448 char CRYPTO_new_ex_data ();
7452 CRYPTO_new_ex_data ();
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7486 rm -f conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
7488 LIBS=$ac_check_lib_save_LIBS
7490 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7491 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7492 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define HAVE_LIBEAY32 1
7497 LIBS="-leay32 $LIBS"
7500 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7501 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7502 { (exit 1); exit 1; }; }
7506 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7507 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7508 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-lssleay32 $LIBS"
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7520 /* Override any gcc2 internal prototype to avoid an error. */
7524 /* We use char because int might match the return type of a gcc2
7525 builtin and then its argument prototype would still apply. */
7526 char SSL_library_init ();
7530 SSL_library_init ();
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -z "$ac_c_werror_flag"
7545 || test ! -s conftest.err'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 ac_cv_lib_ssleay32_SSL_library_init=yes
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 ac_cv_lib_ssleay32_SSL_library_init=no
7564 rm -f conftest.err conftest.$ac_objext \
7565 conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7568 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7569 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7570 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define HAVE_LIBSSLEAY32 1
7575 LIBS="-lssleay32 $LIBS"
7578 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7579 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7580 { (exit 1); exit 1; }; }
7586 if test "$with_pam" = yes ; then
7588 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7589 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7590 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 ac_check_lib_save_LIBS=$LIBS
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7602 /* Override any gcc2 internal prototype to avoid an error. */
7606 /* We use char because int might match the return type of a gcc2
7607 builtin and then its argument prototype would still apply. */
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_c_werror_flag"
7627 || test ! -s conftest.err'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; } &&
7633 { ac_try='test -s conftest$ac_exeext'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; }; then
7639 ac_cv_lib_pam_pam_start=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_lib_pam_pam_start=no
7646 rm -f conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 LIBS=$ac_check_lib_save_LIBS
7650 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7651 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7652 if test $ac_cv_lib_pam_pam_start = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_LIBPAM 1
7660 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7661 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7662 { (exit 1); exit 1; }; }
7672 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7673 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7674 if test "${ac_cv_header_stdc+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_cv_header_stdc=yes
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_cv_header_stdc=no
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 if test $ac_cv_header_stdc = yes; then
7728 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7739 $EGREP "memchr" >/dev/null 2>&1; then
7742 ac_cv_header_stdc=no
7748 if test $ac_cv_header_stdc = yes; then
7749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7750 cat >conftest.$ac_ext <<_ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7760 $EGREP "free" >/dev/null 2>&1; then
7763 ac_cv_header_stdc=no
7769 if test $ac_cv_header_stdc = yes; then
7770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7771 if test "$cross_compiling" = yes; then
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7781 #if ((' ' & 0x0FF) == 0x020)
7782 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7783 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7785 # define ISLOWER(c) \
7786 (('a' <= (c) && (c) <= 'i') \
7787 || ('j' <= (c) && (c) <= 'r') \
7788 || ('s' <= (c) && (c) <= 'z'))
7789 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7792 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7797 for (i = 0; i < 256; i++)
7798 if (XOR (islower (i), ISLOWER (i))
7799 || toupper (i) != TOUPPER (i))
7804 rm -f conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7817 echo "$as_me: program exited with status $ac_status" >&5
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_cv_header_stdc=no
7824 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7829 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7830 if test $ac_cv_header_stdc = yes; then
7832 cat >>confdefs.h <<\_ACEOF
7833 #define STDC_HEADERS 1
7838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7849 inttypes.h stdint.h unistd.h
7851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852 echo "$as_me:$LINENO: checking for $ac_header" >&5
7853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.$ac_ext <<_ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 $ac_includes_default
7865 #include <$ac_header>
7867 rm -f conftest.$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 eval "$as_ac_Header=yes"
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 eval "$as_ac_Header=no"
7896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7901 cat >>confdefs.h <<_ACEOF
7902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 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
7937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7939 echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7947 # Is the header compilable?
7948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 #include <$ac_header>
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag"
7969 || test ! -s conftest.err'
7970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); }; } &&
7975 { ac_try='test -s conftest.$ac_objext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7981 ac_header_compiler=yes
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7986 ac_header_compiler=no
7988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7990 echo "${ECHO_T}$ac_header_compiler" >&6
7992 # Is the header present?
7993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <$ac_header>
8003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8006 grep -v '^ *+' conftest.er1 >conftest.err
8008 cat conftest.err >&5
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); } >/dev/null; then
8011 if test -s conftest.err; then
8012 ac_cpp_err=$ac_c_preproc_warn_flag
8013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8020 if test -z "$ac_cpp_err"; then
8021 ac_header_preproc=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_header_preproc=no
8028 rm -f conftest.err conftest.$ac_ext
8029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8030 echo "${ECHO_T}$ac_header_preproc" >&6
8032 # So? What about this header?
8033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8039 ac_header_preproc=yes
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8056 ## ---------------------------------------- ##
8057 ## Report this to pgsql-bugs@postgresql.org ##
8058 ## ---------------------------------------- ##
8061 sed "s/^/$as_me: WARNING: /" >&2
8064 echo "$as_me:$LINENO: checking for $ac_header" >&5
8065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 eval "$as_ac_Header=\$ac_header_preproc"
8071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8076 cat >>confdefs.h <<_ACEOF
8077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8085 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
8086 # netinet/in.h is included first.
8088 for ac_header in netinet/in.h
8090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8092 echo "$as_me:$LINENO: checking for $ac_header" >&5
8093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8100 # Is the header compilable?
8101 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8103 cat >conftest.$ac_ext <<_ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #include <$ac_header>
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_header_compiler=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_header_compiler=no
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143 echo "${ECHO_T}$ac_header_compiler" >&6
8145 # Is the header present?
8146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 #include <$ac_header>
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } >/dev/null; then
8164 if test -s conftest.err; then
8165 ac_cpp_err=$ac_c_preproc_warn_flag
8166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8173 if test -z "$ac_cpp_err"; then
8174 ac_header_preproc=yes
8176 echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8179 ac_header_preproc=no
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8185 # So? What about this header?
8186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8192 ac_header_preproc=yes
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8200 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8202 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8206 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8209 ## ---------------------------------------- ##
8210 ## Report this to pgsql-bugs@postgresql.org ##
8211 ## ---------------------------------------- ##
8214 sed "s/^/$as_me: WARNING: /" >&2
8217 echo "$as_me:$LINENO: checking for $ac_header" >&5
8218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 eval "$as_ac_Header=\$ac_header_preproc"
8224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8229 cat >>confdefs.h <<_ACEOF
8230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8238 for ac_header in netinet/tcp.h
8240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8241 echo "$as_me:$LINENO: checking for $ac_header" >&5
8242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 #ifdef HAVE_NETINET_IN_H
8254 #include <netinet/in.h>
8258 #include <$ac_header>
8260 rm -f conftest.$ac_objext
8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8264 grep -v '^ *+' conftest.er1 >conftest.err
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 eval "$as_ac_Header=yes"
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 eval "$as_ac_Header=no"
8289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294 cat >>confdefs.h <<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8303 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
8305 for ac_header in readline/readline.h
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309 echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8317 # Is the header compilable?
8318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 $ac_includes_default
8327 #include <$ac_header>
8329 rm -f conftest.$ac_objext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331 (eval $ac_compile) 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -z "$ac_c_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 ac_header_compiler=yes
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8356 ac_header_compiler=no
8358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8360 echo "${ECHO_T}$ac_header_compiler" >&6
8362 # Is the header present?
8363 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 #include <$ac_header>
8373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } >/dev/null; then
8381 if test -s conftest.err; then
8382 ac_cpp_err=$ac_c_preproc_warn_flag
8383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8390 if test -z "$ac_cpp_err"; then
8391 ac_header_preproc=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_header_preproc=no
8398 rm -f conftest.err conftest.$ac_ext
8399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8400 echo "${ECHO_T}$ac_header_preproc" >&6
8402 # So? What about this header?
8403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8409 ac_header_preproc=yes
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8426 ## ---------------------------------------- ##
8427 ## Report this to pgsql-bugs@postgresql.org ##
8428 ## ---------------------------------------- ##
8431 sed "s/^/$as_me: WARNING: /" >&2
8434 echo "$as_me:$LINENO: checking for $ac_header" >&5
8435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 eval "$as_ac_Header=\$ac_header_preproc"
8441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8446 cat >>confdefs.h <<_ACEOF
8447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 for ac_header in readline.h
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8456 echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 # Is the header compilable?
8465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_header_compiler=yes
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.$ac_ext >&5
8503 ac_header_compiler=no
8505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8507 echo "${ECHO_T}$ac_header_compiler" >&6
8509 # Is the header present?
8510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8518 #include <$ac_header>
8520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 grep -v '^ *+' conftest.er1 >conftest.err
8525 cat conftest.err >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } >/dev/null; then
8528 if test -s conftest.err; then
8529 ac_cpp_err=$ac_c_preproc_warn_flag
8530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537 if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_preproc=no
8545 rm -f conftest.err conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8547 echo "${ECHO_T}$ac_header_preproc" >&6
8549 # So? What about this header?
8550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8556 ac_header_preproc=yes
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8573 ## ---------------------------------------- ##
8574 ## Report this to pgsql-bugs@postgresql.org ##
8575 ## ---------------------------------------- ##
8578 sed "s/^/$as_me: WARNING: /" >&2
8581 echo "$as_me:$LINENO: checking for $ac_header" >&5
8582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 eval "$as_ac_Header=\$ac_header_preproc"
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8593 cat >>confdefs.h <<_ACEOF
8594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8598 { { echo "$as_me:$LINENO: error: readline header not found
8599 If you have readline already installed, see config.log for details on the
8600 failure. It is possible the compiler isn't looking in the proper directory.
8601 Use --without-readline to disable readline support." >&5
8602 echo "$as_me: error: readline header not found
8603 If you have readline already installed, see config.log for details on the
8604 failure. It is possible the compiler isn't looking in the proper directory.
8605 Use --without-readline to disable readline support." >&2;}
8606 { (exit 1); exit 1; }; }
8616 for ac_header in readline/history.h
8618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8620 echo "$as_me:$LINENO: checking for $ac_header" >&5
8621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8628 # Is the header compilable?
8629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #include <$ac_header>
8640 rm -f conftest.$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_header_compiler=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_header_compiler=no
8669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8671 echo "${ECHO_T}$ac_header_compiler" >&6
8673 # Is the header present?
8674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 #include <$ac_header>
8684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } >/dev/null; then
8692 if test -s conftest.err; then
8693 ac_cpp_err=$ac_c_preproc_warn_flag
8694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8701 if test -z "$ac_cpp_err"; then
8702 ac_header_preproc=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 ac_header_preproc=no
8709 rm -f conftest.err conftest.$ac_ext
8710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711 echo "${ECHO_T}$ac_header_preproc" >&6
8713 # So? What about this header?
8714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720 ac_header_preproc=yes
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8737 ## ---------------------------------------- ##
8738 ## Report this to pgsql-bugs@postgresql.org ##
8739 ## ---------------------------------------- ##
8742 sed "s/^/$as_me: WARNING: /" >&2
8745 echo "$as_me:$LINENO: checking for $ac_header" >&5
8746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 eval "$as_ac_Header=\$ac_header_preproc"
8752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8763 for ac_header in history.h
8765 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo "$as_me:$LINENO: checking for $ac_header" >&5
8768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8775 # Is the header compilable?
8776 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8785 #include <$ac_header>
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>conftest.er1
8791 grep -v '^ *+' conftest.er1 >conftest.err
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -z "$ac_c_werror_flag"
8797 || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest.$ac_objext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 ac_header_compiler=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 ac_header_compiler=no
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <$ac_header>
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 grep -v '^ *+' conftest.er1 >conftest.err
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } >/dev/null; then
8839 if test -s conftest.err; then
8840 ac_cpp_err=$ac_c_preproc_warn_flag
8841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8848 if test -z "$ac_cpp_err"; then
8849 ac_header_preproc=yes
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_header_preproc=no
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8860 # So? What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867 ac_header_preproc=yes
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884 ## ---------------------------------------- ##
8885 ## Report this to pgsql-bugs@postgresql.org ##
8886 ## ---------------------------------------- ##
8889 sed "s/^/$as_me: WARNING: /" >&2
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 eval "$as_ac_Header=\$ac_header_preproc"
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904 cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8909 { { echo "$as_me:$LINENO: error: history header not found
8910 If you have readline already installed, see config.log for details on the
8911 failure. It is possible the compiler isn't looking in the proper directory.
8912 Use --without-readline to disable readline support." >&5
8913 echo "$as_me: error: history header not found
8914 If you have readline already installed, see config.log for details on the
8915 failure. It is possible the compiler isn't looking in the proper directory.
8916 Use --without-readline to disable readline support." >&2;}
8917 { (exit 1); exit 1; }; }
8928 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8929 # Some installations of libedit usurp /usr/include/readline/, which seems
8930 # bad practice, since in combined installations readline will have its headers
8931 # there. We might have to resort to AC_EGREP checks to make sure we found
8932 # the proper header...
8934 for ac_header in editline/readline.h
8936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938 echo "$as_me:$LINENO: checking for $ac_header" >&5
8939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946 # Is the header compilable?
8947 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8949 cat >conftest.$ac_ext <<_ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 $ac_includes_default
8956 #include <$ac_header>
8958 rm -f conftest.$ac_objext
8959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 ac_header_compiler=yes
8982 echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8985 ac_header_compiler=no
8987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8988 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8989 echo "${ECHO_T}$ac_header_compiler" >&6
8991 # Is the header present?
8992 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #include <$ac_header>
9002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005 grep -v '^ *+' conftest.er1 >conftest.err
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } >/dev/null; then
9010 if test -s conftest.err; then
9011 ac_cpp_err=$ac_c_preproc_warn_flag
9012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9019 if test -z "$ac_cpp_err"; then
9020 ac_header_preproc=yes
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_header_preproc=no
9027 rm -f conftest.err conftest.$ac_ext
9028 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9029 echo "${ECHO_T}$ac_header_preproc" >&6
9031 # So? What about this header?
9032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9035 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9038 ac_header_preproc=yes
9041 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9042 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9044 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9046 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9048 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9052 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9055 ## ---------------------------------------- ##
9056 ## Report this to pgsql-bugs@postgresql.org ##
9057 ## ---------------------------------------- ##
9060 sed "s/^/$as_me: WARNING: /" >&2
9063 echo "$as_me:$LINENO: checking for $ac_header" >&5
9064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 eval "$as_ac_Header=\$ac_header_preproc"
9070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9075 cat >>confdefs.h <<_ACEOF
9076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9081 for ac_header in readline.h
9083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo "$as_me:$LINENO: checking for $ac_header" >&5
9086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9093 # Is the header compilable?
9094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 #include <$ac_header>
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>conftest.er1
9109 grep -v '^ *+' conftest.er1 >conftest.err
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest.$ac_objext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_header_compiler=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_compiler=no
9134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9136 echo "${ECHO_T}$ac_header_compiler" >&6
9138 # Is the header present?
9139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 #include <$ac_header>
9149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9152 grep -v '^ *+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } >/dev/null; then
9157 if test -s conftest.err; then
9158 ac_cpp_err=$ac_c_preproc_warn_flag
9159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9166 if test -z "$ac_cpp_err"; then
9167 ac_header_preproc=yes
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_header_preproc=no
9174 rm -f conftest.err conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176 echo "${ECHO_T}$ac_header_preproc" >&6
9178 # So? What about this header?
9179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9185 ac_header_preproc=yes
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9202 ## ---------------------------------------- ##
9203 ## Report this to pgsql-bugs@postgresql.org ##
9204 ## ---------------------------------------- ##
9207 sed "s/^/$as_me: WARNING: /" >&2
9210 echo "$as_me:$LINENO: checking for $ac_header" >&5
9211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 eval "$as_ac_Header=\$ac_header_preproc"
9217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9222 cat >>confdefs.h <<_ACEOF
9223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9228 for ac_header in readline/readline.h
9230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo "$as_me:$LINENO: checking for $ac_header" >&5
9233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9240 # Is the header compilable?
9241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9250 #include <$ac_header>
9252 rm -f conftest.$ac_objext
9253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9254 (eval $ac_compile) 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -z "$ac_c_werror_flag"
9262 || test ! -s conftest.err'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; } &&
9268 { ac_try='test -s conftest.$ac_objext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_header_compiler=yes
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9279 ac_header_compiler=no
9281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9283 echo "${ECHO_T}$ac_header_compiler" >&6
9285 # Is the header present?
9286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9294 #include <$ac_header>
9296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9299 grep -v '^ *+' conftest.er1 >conftest.err
9301 cat conftest.err >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } >/dev/null; then
9304 if test -s conftest.err; then
9305 ac_cpp_err=$ac_c_preproc_warn_flag
9306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9313 if test -z "$ac_cpp_err"; then
9314 ac_header_preproc=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_header_preproc=no
9321 rm -f conftest.err conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9323 echo "${ECHO_T}$ac_header_preproc" >&6
9325 # So? What about this header?
9326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9332 ac_header_preproc=yes
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9349 ## ---------------------------------------- ##
9350 ## Report this to pgsql-bugs@postgresql.org ##
9351 ## ---------------------------------------- ##
9354 sed "s/^/$as_me: WARNING: /" >&2
9357 echo "$as_me:$LINENO: checking for $ac_header" >&5
9358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 eval "$as_ac_Header=\$ac_header_preproc"
9364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9369 cat >>confdefs.h <<_ACEOF
9370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9374 { { echo "$as_me:$LINENO: error: readline header not found
9375 If you have libedit already installed, see config.log for details on the
9376 failure. It is possible the compiler isn't looking in the proper directory.
9377 Use --without-readline to disable libedit support." >&5
9378 echo "$as_me: error: readline header not found
9379 If you have libedit already installed, see config.log for details on the
9380 failure. It is possible the compiler isn't looking in the proper directory.
9381 Use --without-readline to disable libedit support." >&2;}
9382 { (exit 1); exit 1; }; }
9396 for ac_header in editline/history.h
9398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9400 echo "$as_me:$LINENO: checking for $ac_header" >&5
9401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9408 # Is the header compilable?
9409 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 $ac_includes_default
9418 #include <$ac_header>
9420 rm -f conftest.$ac_objext
9421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9422 (eval $ac_compile) 2>conftest.er1
9424 grep -v '^ *+' conftest.er1 >conftest.err
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } &&
9429 { ac_try='test -z "$ac_c_werror_flag"
9430 || test ! -s conftest.err'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; } &&
9436 { ac_try='test -s conftest.$ac_objext'
9437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); }; }; then
9442 ac_header_compiler=yes
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_header_compiler=no
9449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9450 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9451 echo "${ECHO_T}$ac_header_compiler" >&6
9453 # Is the header present?
9454 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9456 cat >conftest.$ac_ext <<_ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9462 #include <$ac_header>
9464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } >/dev/null; then
9472 if test -s conftest.err; then
9473 ac_cpp_err=$ac_c_preproc_warn_flag
9474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9481 if test -z "$ac_cpp_err"; then
9482 ac_header_preproc=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 ac_header_preproc=no
9489 rm -f conftest.err conftest.$ac_ext
9490 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9491 echo "${ECHO_T}$ac_header_preproc" >&6
9493 # So? What about this header?
9494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9500 ac_header_preproc=yes
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9517 ## ---------------------------------------- ##
9518 ## Report this to pgsql-bugs@postgresql.org ##
9519 ## ---------------------------------------- ##
9522 sed "s/^/$as_me: WARNING: /" >&2
9525 echo "$as_me:$LINENO: checking for $ac_header" >&5
9526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 eval "$as_ac_Header=\$ac_header_preproc"
9532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9543 for ac_header in history.h
9545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9547 echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9555 # Is the header compilable?
9556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9565 #include <$ac_header>
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569 (eval $ac_compile) 2>conftest.er1
9571 grep -v '^ *+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -z "$ac_c_werror_flag"
9577 || test ! -s conftest.err'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; } &&
9583 { ac_try='test -s conftest.$ac_objext'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 ac_header_compiler=yes
9591 echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9594 ac_header_compiler=no
9596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9598 echo "${ECHO_T}$ac_header_compiler" >&6
9600 # Is the header present?
9601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 #include <$ac_header>
9611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } >/dev/null; then
9619 if test -s conftest.err; then
9620 ac_cpp_err=$ac_c_preproc_warn_flag
9621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9628 if test -z "$ac_cpp_err"; then
9629 ac_header_preproc=yes
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_header_preproc=no
9636 rm -f conftest.err conftest.$ac_ext
9637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9638 echo "${ECHO_T}$ac_header_preproc" >&6
9640 # So? What about this header?
9641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9647 ac_header_preproc=yes
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9664 ## ---------------------------------------- ##
9665 ## Report this to pgsql-bugs@postgresql.org ##
9666 ## ---------------------------------------- ##
9669 sed "s/^/$as_me: WARNING: /" >&2
9672 echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 eval "$as_ac_Header=\$ac_header_preproc"
9679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9684 cat >>confdefs.h <<_ACEOF
9685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9690 for ac_header in readline/history.h
9692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9694 echo "$as_me:$LINENO: checking for $ac_header" >&5
9695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9702 # Is the header compilable?
9703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 $ac_includes_default
9712 #include <$ac_header>
9714 rm -f conftest.$ac_objext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9716 (eval $ac_compile) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -z "$ac_c_werror_flag"
9724 || test ! -s conftest.err'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try='test -s conftest.$ac_objext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_header_compiler=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9745 echo "${ECHO_T}$ac_header_compiler" >&6
9747 # Is the header present?
9748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756 #include <$ac_header>
9758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9761 grep -v '^ *+' conftest.er1 >conftest.err
9763 cat conftest.err >&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } >/dev/null; then
9766 if test -s conftest.err; then
9767 ac_cpp_err=$ac_c_preproc_warn_flag
9768 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9775 if test -z "$ac_cpp_err"; then
9776 ac_header_preproc=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9781 ac_header_preproc=no
9783 rm -f conftest.err conftest.$ac_ext
9784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9785 echo "${ECHO_T}$ac_header_preproc" >&6
9787 # So? What about this header?
9788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9794 ac_header_preproc=yes
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9811 ## ---------------------------------------- ##
9812 ## Report this to pgsql-bugs@postgresql.org ##
9813 ## ---------------------------------------- ##
9816 sed "s/^/$as_me: WARNING: /" >&2
9819 echo "$as_me:$LINENO: checking for $ac_header" >&5
9820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 eval "$as_ac_Header=\$ac_header_preproc"
9826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9831 cat >>confdefs.h <<_ACEOF
9832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9836 { { echo "$as_me:$LINENO: error: history header not found
9837 If you have libedit already installed, see config.log for details on the
9838 failure. It is possible the compiler isn't looking in the proper directory.
9839 Use --without-readline to disable libedit support." >&5
9840 echo "$as_me: error: history header not found
9841 If you have libedit already installed, see config.log for details on the
9842 failure. It is possible the compiler isn't looking in the proper directory.
9843 Use --without-readline to disable libedit support." >&2;}
9844 { (exit 1); exit 1; }; }
9859 if test "$with_zlib" = yes; then
9860 if test "${ac_cv_header_zlib_h+set}" = set; then
9861 echo "$as_me:$LINENO: checking for zlib.h" >&5
9862 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9863 if test "${ac_cv_header_zlib_h+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9867 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9869 # Is the header compilable?
9870 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9871 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 $ac_includes_default
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>conftest.er1
9885 grep -v '^ *+' conftest.er1 >conftest.err
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
9890 { ac_try='test -z "$ac_c_werror_flag"
9891 || test ! -s conftest.err'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest.$ac_objext'
9898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; }; then
9903 ac_header_compiler=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_header_compiler=no
9910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9912 echo "${ECHO_T}$ac_header_compiler" >&6
9914 # Is the header present?
9915 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9916 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9928 grep -v '^ *+' conftest.er1 >conftest.err
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } >/dev/null; then
9933 if test -s conftest.err; then
9934 ac_cpp_err=$ac_c_preproc_warn_flag
9935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9942 if test -z "$ac_cpp_err"; then
9943 ac_header_preproc=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_header_preproc=no
9950 rm -f conftest.err conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9952 echo "${ECHO_T}$ac_header_preproc" >&6
9954 # So? What about this header?
9955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9958 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9960 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9961 ac_header_preproc=yes
9964 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9965 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9967 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9969 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9971 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9973 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9975 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9978 ## ---------------------------------------- ##
9979 ## Report this to pgsql-bugs@postgresql.org ##
9980 ## ---------------------------------------- ##
9983 sed "s/^/$as_me: WARNING: /" >&2
9986 echo "$as_me:$LINENO: checking for zlib.h" >&5
9987 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9988 if test "${ac_cv_header_zlib_h+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_cv_header_zlib_h=$ac_header_preproc
9993 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9994 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9997 if test $ac_cv_header_zlib_h = yes; then
10000 { { echo "$as_me:$LINENO: error: zlib header not found
10001 If you have zlib already installed, see config.log for details on the
10002 failure. It is possible the compiler isn't looking in the proper directory.
10003 Use --without-zlib to disable zlib support." >&5
10004 echo "$as_me: error: zlib header not found
10005 If you have zlib already installed, see config.log for details on the
10006 failure. It is possible the compiler isn't looking in the proper directory.
10007 Use --without-zlib to disable zlib support." >&2;}
10008 { (exit 1); exit 1; }; }
10014 if test "$with_krb5" = yes ; then
10015 if test "${ac_cv_header_krb5_h+set}" = set; then
10016 echo "$as_me:$LINENO: checking for krb5.h" >&5
10017 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10018 if test "${ac_cv_header_krb5_h+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10022 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10024 # Is the header compilable?
10025 echo "$as_me:$LINENO: checking krb5.h usability" >&5
10026 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 $ac_includes_default
10036 rm -f conftest.$ac_objext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10038 (eval $ac_compile) 2>conftest.er1
10040 grep -v '^ *+' conftest.er1 >conftest.err
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_header_compiler=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_header_compiler=no
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10067 echo "${ECHO_T}$ac_header_compiler" >&6
10069 # Is the header present?
10070 echo "$as_me:$LINENO: checking krb5.h presence" >&5
10071 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } >/dev/null; then
10088 if test -s conftest.err; then
10089 ac_cpp_err=$ac_c_preproc_warn_flag
10090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10097 if test -z "$ac_cpp_err"; then
10098 ac_header_preproc=yes
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_header_preproc=no
10105 rm -f conftest.err conftest.$ac_ext
10106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10107 echo "${ECHO_T}$ac_header_preproc" >&6
10109 # So? What about this header?
10110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10112 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
10113 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
10115 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
10116 ac_header_preproc=yes
10119 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
10120 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
10122 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
10124 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
10126 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
10128 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
10129 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
10130 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
10133 ## ---------------------------------------- ##
10134 ## Report this to pgsql-bugs@postgresql.org ##
10135 ## ---------------------------------------- ##
10138 sed "s/^/$as_me: WARNING: /" >&2
10141 echo "$as_me:$LINENO: checking for krb5.h" >&5
10142 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
10143 if test "${ac_cv_header_krb5_h+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_cv_header_krb5_h=$ac_header_preproc
10148 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
10149 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
10152 if test $ac_cv_header_krb5_h = yes; then
10155 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
10156 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
10157 { (exit 1); exit 1; }; }
10163 if test "$with_openssl" = yes ; then
10164 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10165 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10166 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10167 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10171 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10173 # Is the header compilable?
10174 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
10175 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
10176 cat >conftest.$ac_ext <<_ACEOF
10179 cat confdefs.h >>conftest.$ac_ext
10180 cat >>conftest.$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10182 $ac_includes_default
10183 #include <openssl/ssl.h>
10185 rm -f conftest.$ac_objext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10187 (eval $ac_compile) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest.$ac_objext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_header_compiler=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_header_compiler=no
10214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10216 echo "${ECHO_T}$ac_header_compiler" >&6
10218 # Is the header present?
10219 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
10220 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 #include <openssl/ssl.h>
10229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10232 grep -v '^ *+' conftest.er1 >conftest.err
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } >/dev/null; then
10237 if test -s conftest.err; then
10238 ac_cpp_err=$ac_c_preproc_warn_flag
10239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10246 if test -z "$ac_cpp_err"; then
10247 ac_header_preproc=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_header_preproc=no
10254 rm -f conftest.err conftest.$ac_ext
10255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10256 echo "${ECHO_T}$ac_header_preproc" >&6
10258 # So? What about this header?
10259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10261 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10262 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10263 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
10264 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
10265 ac_header_preproc=yes
10268 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
10269 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
10270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
10271 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
10272 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
10273 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
10274 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
10275 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10276 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
10277 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
10279 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
10282 ## ---------------------------------------- ##
10283 ## Report this to pgsql-bugs@postgresql.org ##
10284 ## ---------------------------------------- ##
10287 sed "s/^/$as_me: WARNING: /" >&2
10290 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
10291 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
10292 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_cv_header_openssl_ssl_h=$ac_header_preproc
10297 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
10298 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
10301 if test $ac_cv_header_openssl_ssl_h = yes; then
10304 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
10305 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
10306 { (exit 1); exit 1; }; }
10310 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10311 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10312 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10313 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10317 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10319 # Is the header compilable?
10320 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
10321 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 $ac_includes_default
10329 #include <openssl/err.h>
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -z "$ac_c_werror_flag"
10341 || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_header_compiler=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_header_compiler=no
10360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10362 echo "${ECHO_T}$ac_header_compiler" >&6
10364 # Is the header present?
10365 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
10366 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <openssl/err.h>
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } >/dev/null; then
10383 if test -s conftest.err; then
10384 ac_cpp_err=$ac_c_preproc_warn_flag
10385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10392 if test -z "$ac_cpp_err"; then
10393 ac_header_preproc=yes
10395 echo "$as_me: failed program was:" >&5
10396 sed 's/^/| /' conftest.$ac_ext >&5
10398 ac_header_preproc=no
10400 rm -f conftest.err conftest.$ac_ext
10401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10402 echo "${ECHO_T}$ac_header_preproc" >&6
10404 # So? What about this header?
10405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10407 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
10408 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10409 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
10410 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
10411 ac_header_preproc=yes
10414 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
10415 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
10417 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
10419 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
10421 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
10423 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
10424 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
10425 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
10428 ## ---------------------------------------- ##
10429 ## Report this to pgsql-bugs@postgresql.org ##
10430 ## ---------------------------------------- ##
10433 sed "s/^/$as_me: WARNING: /" >&2
10436 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
10437 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
10438 if test "${ac_cv_header_openssl_err_h+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 ac_cv_header_openssl_err_h=$ac_header_preproc
10443 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
10444 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
10447 if test $ac_cv_header_openssl_err_h = yes; then
10450 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
10451 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
10452 { (exit 1); exit 1; }; }
10458 if test "$with_pam" = yes ; then
10460 for ac_header in security/pam_appl.h
10462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464 echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10472 # Is the header compilable?
10473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 #include <$ac_header>
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_header_compiler=yes
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_header_compiler=no
10513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10515 echo "${ECHO_T}$ac_header_compiler" >&6
10517 # Is the header present?
10518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 #include <$ac_header>
10528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } >/dev/null; then
10536 if test -s conftest.err; then
10537 ac_cpp_err=$ac_c_preproc_warn_flag
10538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10545 if test -z "$ac_cpp_err"; then
10546 ac_header_preproc=yes
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10551 ac_header_preproc=no
10553 rm -f conftest.err conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10555 echo "${ECHO_T}$ac_header_preproc" >&6
10557 # So? What about this header?
10558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10564 ac_header_preproc=yes
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10581 ## ---------------------------------------- ##
10582 ## Report this to pgsql-bugs@postgresql.org ##
10583 ## ---------------------------------------- ##
10586 sed "s/^/$as_me: WARNING: /" >&2
10589 echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 eval "$as_ac_Header=\$ac_header_preproc"
10596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10607 for ac_header in pam/pam_appl.h
10609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10611 echo "$as_me:$LINENO: checking for $ac_header" >&5
10612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10619 # Is the header compilable?
10620 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 $ac_includes_default
10629 #include <$ac_header>
10631 rm -f conftest.$ac_objext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10633 (eval $ac_compile) 2>conftest.er1
10635 grep -v '^ *+' conftest.er1 >conftest.err
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_header_compiler=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_header_compiler=no
10660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10662 echo "${ECHO_T}$ac_header_compiler" >&6
10664 # Is the header present?
10665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #include <$ac_header>
10675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10678 grep -v '^ *+' conftest.er1 >conftest.err
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } >/dev/null; then
10683 if test -s conftest.err; then
10684 ac_cpp_err=$ac_c_preproc_warn_flag
10685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10692 if test -z "$ac_cpp_err"; then
10693 ac_header_preproc=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_header_preproc=no
10700 rm -f conftest.err conftest.$ac_ext
10701 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10702 echo "${ECHO_T}$ac_header_preproc" >&6
10704 # So? What about this header?
10705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10711 ac_header_preproc=yes
10714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10728 ## ---------------------------------------- ##
10729 ## Report this to pgsql-bugs@postgresql.org ##
10730 ## ---------------------------------------- ##
10733 sed "s/^/$as_me: WARNING: /" >&2
10736 echo "$as_me:$LINENO: checking for $ac_header" >&5
10737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 eval "$as_ac_Header=\$ac_header_preproc"
10743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10748 cat >>confdefs.h <<_ACEOF
10749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
10754 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
10755 { (exit 1); exit 1; }; }
10766 if test "$with_bonjour" = yes ; then
10767 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10768 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10769 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10770 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10774 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10776 # Is the header compilable?
10777 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
10778 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10788 rm -f conftest.$ac_objext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10790 (eval $ac_compile) 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } &&
10797 { ac_try='test -z "$ac_c_werror_flag"
10798 || test ! -s conftest.err'
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_header_compiler=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10815 ac_header_compiler=no
10817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10819 echo "${ECHO_T}$ac_header_compiler" >&6
10821 # Is the header present?
10822 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
10823 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
10832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } >/dev/null; then
10840 if test -s conftest.err; then
10841 ac_cpp_err=$ac_c_preproc_warn_flag
10842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10849 if test -z "$ac_cpp_err"; then
10850 ac_header_preproc=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_header_preproc=no
10857 rm -f conftest.err conftest.$ac_ext
10858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10859 echo "${ECHO_T}$ac_header_preproc" >&6
10861 # So? What about this header?
10862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10864 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
10865 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10866 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
10867 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
10868 ac_header_preproc=yes
10871 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
10872 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
10874 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
10876 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
10878 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
10879 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
10880 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
10882 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
10885 ## ---------------------------------------- ##
10886 ## Report this to pgsql-bugs@postgresql.org ##
10887 ## ---------------------------------------- ##
10890 sed "s/^/$as_me: WARNING: /" >&2
10893 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
10894 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
10895 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
10900 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
10901 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
10904 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
10907 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
10908 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
10909 { (exit 1); exit 1; }; }
10917 ## Types, structures, compiler characteristics
10920 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10921 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10922 if test "${ac_cv_c_const+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10935 /* FIXME: Include the comments suggested by Paul. */
10936 #ifndef __cplusplus
10937 /* Ultrix mips cc rejects this. */
10938 typedef int charset[2];
10940 /* SunOS 4.1.1 cc rejects this. */
10941 char const *const *ccp;
10943 /* NEC SVR4.0.2 mips cc rejects this. */
10944 struct point {int x, y;};
10945 static struct point const zero = {0,0};
10946 /* AIX XL C 1.02.0.0 rejects this.
10947 It does not let you subtract one const X* pointer from another in
10948 an arm of an if-expression whose if-part is not a constant
10950 const char *g = "string";
10951 ccp = &g + (g ? g-g : 0);
10952 /* HPUX 7.0 cc rejects these. */
10955 ccp = (char const *const *) p;
10956 { /* SCO 3.2v4 cc rejects this. */
10958 char const *s = 0 ? (char *) 0 : (char const *) 0;
10962 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10963 int x[] = {25, 17};
10964 const int *foo = &x[0];
10967 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10968 typedef const int *iptr;
10972 { /* AIX XL C 1.02.0.0 rejects this saying
10973 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10974 struct s { int j; const int *ap[3]; };
10975 struct s *b; b->j = 5;
10977 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10978 const int foo = 10;
10986 rm -f conftest.$ac_objext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10988 (eval $ac_compile) 2>conftest.er1
10990 grep -v '^ *+' conftest.er1 >conftest.err
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } &&
10995 { ac_try='test -z "$ac_c_werror_flag"
10996 || test ! -s conftest.err'
10997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10998 (eval $ac_try) 2>&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest.$ac_objext'
11003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004 (eval $ac_try) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11018 echo "${ECHO_T}$ac_cv_c_const" >&6
11019 if test $ac_cv_c_const = no; then
11021 cat >>confdefs.h <<\_ACEOF
11028 echo "$as_me:$LINENO: checking for inline" >&5
11029 echo $ECHO_N "checking for inline... $ECHO_C" >&6
11030 if test "${ac_cv_c_inline+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11034 for ac_kw in inline __inline__ __inline; do
11035 cat >conftest.$ac_ext <<_ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #ifndef __cplusplus
11043 static $ac_kw foo_t static_foo () {return 0; }
11044 $ac_kw int foo () {return 0; }
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050 (eval $ac_compile) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_c_inline=$ac_kw; break
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
11081 echo "${ECHO_T}$ac_cv_c_inline" >&6
11082 case $ac_cv_c_inline in
11085 cat >>confdefs.h <<\_ACEOF
11089 *) cat >>confdefs.h <<_ACEOF
11090 #define inline $ac_cv_c_inline
11095 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
11096 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
11097 if test "${ac_cv_c_stringize+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11108 char *s = x(teststring);
11110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11111 $EGREP "#teststring" >/dev/null 2>&1; then
11112 ac_cv_c_stringize=no
11114 ac_cv_c_stringize=yes
11119 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
11120 echo "${ECHO_T}$ac_cv_c_stringize" >&6
11121 if test $ac_cv_c_stringize = yes; then
11123 cat >>confdefs.h <<\_ACEOF
11124 #define HAVE_STRINGIZE 1
11129 echo "$as_me:$LINENO: checking for signed types" >&5
11130 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
11131 if test "${pgac_cv_c_signed+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11137 cat confdefs.h >>conftest.$ac_ext
11138 cat >>conftest.$ac_ext <<_ACEOF
11139 /* end confdefs.h. */
11144 signed char c; signed short s; signed int i;
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 pgac_cv_c_signed=yes
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 pgac_cv_c_signed=no
11178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11180 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
11181 echo "${ECHO_T}$pgac_cv_c_signed" >&6
11182 if test x"$pgac_cv_c_signed" = xno ; then
11184 cat >>confdefs.h <<\_ACEOF
11189 echo "$as_me:$LINENO: checking for working volatile" >&5
11190 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
11191 if test "${ac_cv_c_volatile+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11211 rm -f conftest.$ac_objext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11213 (eval $ac_compile) 2>conftest.er1
11215 grep -v '^ *+' conftest.er1 >conftest.err
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag"
11221 || test ! -s conftest.err'
11222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 ac_cv_c_volatile=yes
11235 echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11238 ac_cv_c_volatile=no
11240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11242 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11243 echo "${ECHO_T}$ac_cv_c_volatile" >&6
11244 if test $ac_cv_c_volatile = no; then
11246 cat >>confdefs.h <<\_ACEOF
11252 echo "$as_me:$LINENO: checking for __func__" >&5
11253 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
11254 if test "${pgac_cv_funcname_func_support+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11267 printf("%s\n", __func__);
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274 (eval $ac_compile) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1 >conftest.err
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest.$ac_objext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 pgac_cv_funcname_func_support=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 pgac_cv_funcname_func_support=no
11301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11303 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
11304 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
11305 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_FUNCNAME__FUNC 1
11312 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
11313 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
11314 if test "${pgac_cv_funcname_function_support+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11327 printf("%s\n", __FUNCTION__);
11332 rm -f conftest.$ac_objext
11333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334 (eval $ac_compile) 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag"
11342 || test ! -s conftest.err'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 pgac_cv_funcname_function_support=yes
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 pgac_cv_funcname_function_support=no
11361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11363 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
11364 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
11365 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_FUNCNAME__FUNCTION 1
11373 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11374 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11375 if test "${ac_cv_struct_tm+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 #include <sys/types.h>
11390 struct tm *tp; tp->tm_sec;
11395 rm -f conftest.$ac_objext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>conftest.er1
11399 grep -v '^ *+' conftest.er1 >conftest.err
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -z "$ac_c_werror_flag"
11405 || test ! -s conftest.err'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_cv_struct_tm=time.h
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_cv_struct_tm=sys/time.h
11424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11426 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11427 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11428 if test $ac_cv_struct_tm = sys/time.h; then
11430 cat >>confdefs.h <<\_ACEOF
11431 #define TM_IN_SYS_TIME 1
11436 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11437 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11438 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11439 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 #include <sys/types.h>
11448 #include <$ac_cv_struct_tm>
11454 static struct tm ac_aggr;
11455 if (ac_aggr.tm_zone)
11461 rm -f conftest.$ac_objext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11463 (eval $ac_compile) 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_member_struct_tm_tm_zone=yes
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <sys/types.h>
11495 #include <$ac_cv_struct_tm>
11501 static struct tm ac_aggr;
11502 if (sizeof ac_aggr.tm_zone)
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_c_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_member_struct_tm_tm_zone=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_cv_member_struct_tm_tm_zone=no
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11542 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11543 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11545 cat >>confdefs.h <<_ACEOF
11546 #define HAVE_STRUCT_TM_TM_ZONE 1
11552 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_TM_ZONE 1
11559 echo "$as_me:$LINENO: checking for tzname" >&5
11560 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11561 if test "${ac_cv_var_tzname+set}" = set; then
11562 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 cat >conftest.$ac_ext <<_ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11571 #ifndef tzname /* For SGI. */
11572 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11583 rm -f conftest.$ac_objext conftest$ac_exeext
11584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>conftest.er1
11587 grep -v '^ *+' conftest.er1 >conftest.err
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -z "$ac_c_werror_flag"
11593 || test ! -s conftest.err'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; } &&
11599 { ac_try='test -s conftest$ac_exeext'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; }; then
11605 ac_cv_var_tzname=yes
11607 echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_var_tzname=no
11612 rm -f conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11616 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11617 if test $ac_cv_var_tzname = yes; then
11619 cat >>confdefs.h <<\_ACEOF
11620 #define HAVE_TZNAME 1
11625 echo "$as_me:$LINENO: checking for union semun" >&5
11626 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
11627 if test "${ac_cv_type_union_semun+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11636 #include <sys/types.h>
11637 #include <sys/ipc.h>
11638 #include <sys/sem.h>
11643 if ((union semun *) 0)
11645 if (sizeof (union semun))
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_type_union_semun=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 ac_cv_type_union_semun=no
11680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11682 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
11683 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
11684 if test $ac_cv_type_union_semun = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define HAVE_UNION_SEMUN 1
11693 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
11694 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
11695 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 cat >conftest.$ac_ext <<_ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h. */
11704 #include <sys/types.h>
11705 #ifdef HAVE_SYS_UN_H
11706 #include <sys/un.h>
11713 if ((struct sockaddr_un *) 0)
11715 if (sizeof (struct sockaddr_un))
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1 >conftest.err
11727 cat conftest.err >&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 ac_cv_type_struct_sockaddr_un=yes
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11748 ac_cv_type_struct_sockaddr_un=no
11750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
11753 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
11754 if test $ac_cv_type_struct_sockaddr_un = yes; then
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_STRUCT_SOCKADDR_UN 1
11761 cat >>confdefs.h <<\_ACEOF
11762 #define HAVE_UNIX_SOCKETS 1
11767 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11768 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
11769 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 #include <sys/types.h>
11779 #ifdef HAVE_SYS_SOCKET_H
11780 #include <sys/socket.h>
11787 if ((struct sockaddr_storage *) 0)
11789 if (sizeof (struct sockaddr_storage))
11795 rm -f conftest.$ac_objext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11797 (eval $ac_compile) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try='test -s conftest.$ac_objext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 ac_cv_type_struct_sockaddr_storage=yes
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11822 ac_cv_type_struct_sockaddr_storage=no
11824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11826 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11827 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
11828 if test $ac_cv_type_struct_sockaddr_storage = yes; then
11830 cat >>confdefs.h <<_ACEOF
11831 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11837 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
11838 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
11839 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <sys/types.h>
11849 #ifdef HAVE_SYS_SOCKET_H
11850 #include <sys/socket.h>
11857 static struct sockaddr_storage ac_aggr;
11858 if (ac_aggr.ss_family)
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_c_werror_flag"
11874 || test ! -s conftest.err'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest.$ac_objext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11897 #include <sys/types.h>
11898 #ifdef HAVE_SYS_SOCKET_H
11899 #include <sys/socket.h>
11906 static struct sockaddr_storage ac_aggr;
11907 if (sizeof ac_aggr.ss_family)
11913 rm -f conftest.$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915 (eval $ac_compile) 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest.$ac_objext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_cv_member_struct_sockaddr_storage_ss_family=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_cv_member_struct_sockaddr_storage_ss_family=no
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
11947 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
11948 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11956 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
11957 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
11958 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967 #include <sys/types.h>
11968 #ifdef HAVE_SYS_SOCKET_H
11969 #include <sys/socket.h>
11976 static struct sockaddr_storage ac_aggr;
11977 if (ac_aggr.__ss_family)
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 #include <sys/types.h>
12017 #ifdef HAVE_SYS_SOCKET_H
12018 #include <sys/socket.h>
12025 static struct sockaddr_storage ac_aggr;
12026 if (sizeof ac_aggr.__ss_family)
12032 rm -f conftest.$ac_objext
12033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12034 (eval $ac_compile) 2>conftest.er1
12036 grep -v '^ *+' conftest.er1 >conftest.err
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -z "$ac_c_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest.$ac_objext'
12049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12056 echo "$as_me: failed program was:" >&5
12057 sed 's/^/| /' conftest.$ac_ext >&5
12059 ac_cv_member_struct_sockaddr_storage___ss_family=no
12061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12066 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
12067 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
12069 cat >>confdefs.h <<_ACEOF
12070 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12075 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
12076 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
12077 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <sys/types.h>
12087 #ifdef HAVE_SYS_SOCKET_H
12088 #include <sys/socket.h>
12095 static struct sockaddr_storage ac_aggr;
12096 if (ac_aggr.ss_len)
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12106 grep -v '^ *+' conftest.er1 >conftest.err
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 #include <sys/types.h>
12136 #ifdef HAVE_SYS_SOCKET_H
12137 #include <sys/socket.h>
12144 static struct sockaddr_storage ac_aggr;
12145 if (sizeof ac_aggr.ss_len)
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_member_struct_sockaddr_storage_ss_len=yes
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12178 ac_cv_member_struct_sockaddr_storage_ss_len=no
12180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
12185 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
12186 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12194 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
12195 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
12196 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 #include <sys/types.h>
12206 #ifdef HAVE_SYS_SOCKET_H
12207 #include <sys/socket.h>
12214 static struct sockaddr_storage ac_aggr;
12215 if (ac_aggr.__ss_len)
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag"
12231 || test ! -s conftest.err'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; } &&
12237 { ac_try='test -s conftest.$ac_objext'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12245 echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 #include <sys/types.h>
12255 #ifdef HAVE_SYS_SOCKET_H
12256 #include <sys/socket.h>
12263 static struct sockaddr_storage ac_aggr;
12264 if (sizeof ac_aggr.__ss_len)
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag"
12280 || test ! -s conftest.err'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; } &&
12286 { ac_try='test -s conftest.$ac_objext'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_cv_member_struct_sockaddr_storage___ss_len=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_member_struct_sockaddr_storage___ss_len=no
12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12303 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
12304 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
12305 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12313 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
12314 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
12315 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
12316 echo $ECHO_N "(cached) $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12324 #include <sys/types.h>
12325 #ifdef HAVE_SYS_SOCKET_H
12326 #include <sys/socket.h>
12333 static struct sockaddr ac_aggr;
12334 if (ac_aggr.sa_len)
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12344 grep -v '^ *+' conftest.er1 >conftest.err
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_member_struct_sockaddr_sa_len=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 #include <sys/types.h>
12374 #ifdef HAVE_SYS_SOCKET_H
12375 #include <sys/socket.h>
12382 static struct sockaddr ac_aggr;
12383 if (sizeof ac_aggr.sa_len)
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12393 grep -v '^ *+' conftest.er1 >conftest.err
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_member_struct_sockaddr_sa_len=yes
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12416 ac_cv_member_struct_sockaddr_sa_len=no
12418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
12423 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
12424 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12433 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
12434 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
12435 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12438 cat >conftest.$ac_ext <<_ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444 #include <sys/types.h>
12445 #include <sys/socket.h>
12452 if ((struct addrinfo *) 0)
12454 if (sizeof (struct addrinfo))
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12464 grep -v '^ *+' conftest.er1 >conftest.err
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag"
12470 || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 ac_cv_type_struct_addrinfo=yes
12484 echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 ac_cv_type_struct_addrinfo=no
12489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12491 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
12492 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
12493 if test $ac_cv_type_struct_addrinfo = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define HAVE_STRUCT_ADDRINFO 1
12503 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
12504 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
12505 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #include <sys/param.h>
12515 #include <sys/types.h>
12516 #include <sys/socket.h>
12517 #include <sys/ucred.h>
12522 if ((struct cmsgcred *) 0)
12524 if (sizeof (struct cmsgcred))
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1 >conftest.err
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_type_struct_cmsgcred=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_type_struct_cmsgcred=no
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
12562 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
12563 if test $ac_cv_type_struct_cmsgcred = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_STRUCT_CMSGCRED 1
12571 echo "$as_me:$LINENO: checking for struct fcred" >&5
12572 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
12573 if test "${ac_cv_type_struct_fcred+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <sys/param.h>
12583 #include <sys/types.h>
12584 #include <sys/socket.h>
12585 #include <sys/ucred.h>
12590 if ((struct fcred *) 0)
12592 if (sizeof (struct fcred))
12598 rm -f conftest.$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_type_struct_fcred=yes
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_cv_type_struct_fcred=no
12627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
12630 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
12631 if test $ac_cv_type_struct_fcred = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634 #define HAVE_STRUCT_FCRED 1
12639 echo "$as_me:$LINENO: checking for struct sockcred" >&5
12640 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
12641 if test "${ac_cv_type_struct_sockcred+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 #include <sys/param.h>
12651 #include <sys/types.h>
12652 #include <sys/socket.h>
12653 #include <sys/ucred.h>
12658 if ((struct sockcred *) 0)
12660 if (sizeof (struct sockcred))
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_type_struct_sockcred=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_type_struct_sockcred=no
12695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12697 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
12698 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
12699 if test $ac_cv_type_struct_sockcred = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 #define HAVE_STRUCT_SOCKCRED 1
12709 echo "$as_me:$LINENO: checking for struct option" >&5
12710 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
12711 if test "${ac_cv_type_struct_option+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 #ifdef HAVE_GETOPT_H
12721 #include <getopt.h>
12727 if ((struct option *) 0)
12729 if (sizeof (struct option))
12735 rm -f conftest.$ac_objext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12737 (eval $ac_compile) 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag"
12745 || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_cv_type_struct_option=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_cv_type_struct_option=no
12764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
12767 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
12768 if test $ac_cv_type_struct_option = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define HAVE_STRUCT_OPTION 1
12778 if test "$with_zlib" = yes; then
12779 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12780 # did not). While we could work around the lack of z_streamp, it
12781 # seems unwise to encourage people to use such old zlib versions...
12782 echo "$as_me:$LINENO: checking for z_streamp" >&5
12783 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
12784 if test "${ac_cv_type_z_streamp+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12798 if ((z_streamp *) 0)
12800 if (sizeof (z_streamp))
12806 rm -f conftest.$ac_objext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12808 (eval $ac_compile) 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag"
12816 || test ! -s conftest.err'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } &&
12822 { ac_try='test -s conftest.$ac_objext'
12823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824 (eval $ac_try) 2>&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); }; }; then
12828 ac_cv_type_z_streamp=yes
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.$ac_ext >&5
12833 ac_cv_type_z_streamp=no
12835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
12838 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
12839 if test $ac_cv_type_z_streamp = yes; then
12842 { { echo "$as_me:$LINENO: error: zlib version is too old
12843 Use --without-zlib to disable zlib support." >&5
12844 echo "$as_me: error: zlib version is too old
12845 Use --without-zlib to disable zlib support." >&2;}
12846 { (exit 1); exit 1; }; }
12851 if test "$with_krb5" = yes; then
12852 # Check for differences between MIT and Heimdal (KTH) releases
12853 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
12854 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
12855 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 cat >conftest.$ac_ext <<_ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12869 static krb5_ticket ac_aggr;
12870 if (ac_aggr.enc_part2)
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag"
12886 || test ! -s conftest.err'
12887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); }; } &&
12892 { ac_try='test -s conftest.$ac_objext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_member_krb5_ticket_enc_part2=yes
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12914 static krb5_ticket ac_aggr;
12915 if (sizeof ac_aggr.enc_part2)
12921 rm -f conftest.$ac_objext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_c_werror_flag"
12931 || test ! -s conftest.err'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; } &&
12937 { ac_try='test -s conftest.$ac_objext'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_member_krb5_ticket_enc_part2=yes
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12948 ac_cv_member_krb5_ticket_enc_part2=no
12950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12954 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
12955 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
12956 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_KRB5_TICKET_ENC_PART2 1
12964 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
12965 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
12966 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12969 cat >conftest.$ac_ext <<_ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12980 static krb5_ticket ac_aggr;
12981 if (ac_aggr.client)
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_member_krb5_ticket_client=yes
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13025 static krb5_ticket ac_aggr;
13026 if (sizeof ac_aggr.client)
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -z "$ac_c_werror_flag"
13042 || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_member_krb5_ticket_client=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_member_krb5_ticket_client=no
13061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13065 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
13066 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
13067 if test $ac_cv_member_krb5_ticket_client = yes; then
13069 cat >>confdefs.h <<_ACEOF
13070 #define HAVE_KRB5_TICKET_CLIENT 1
13075 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
13076 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
13077 { (exit 1); exit 1; }; }
13082 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
13083 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
13084 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 cat >conftest.$ac_ext <<_ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13098 static krb5_error ac_aggr;
13099 if (ac_aggr.text.data)
13105 rm -f conftest.$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_cv_member_krb5_error_text_data=yes
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13143 static krb5_error ac_aggr;
13144 if (sizeof ac_aggr.text.data)
13150 rm -f conftest.$ac_objext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>conftest.er1
13154 grep -v '^ *+' conftest.er1 >conftest.err
13156 cat conftest.err >&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -z "$ac_c_werror_flag"
13160 || test ! -s conftest.err'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; } &&
13166 { ac_try='test -s conftest.$ac_objext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13172 ac_cv_member_krb5_error_text_data=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13177 ac_cv_member_krb5_error_text_data=no
13179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
13184 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
13185 if test $ac_cv_member_krb5_error_text_data = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define HAVE_KRB5_ERROR_TEXT_DATA 1
13193 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
13194 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
13195 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13209 static krb5_error ac_aggr;
13210 if (ac_aggr.e_data)
13216 rm -f conftest.$ac_objext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13218 (eval $ac_compile) 2>conftest.er1
13220 grep -v '^ *+' conftest.er1 >conftest.err
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -z "$ac_c_werror_flag"
13226 || test ! -s conftest.err'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; } &&
13232 { ac_try='test -s conftest.$ac_objext'
13233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234 (eval $ac_try) 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_member_krb5_error_e_data=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13254 static krb5_error ac_aggr;
13255 if (sizeof ac_aggr.e_data)
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>conftest.er1
13265 grep -v '^ *+' conftest.er1 >conftest.err
13267 cat conftest.err >&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); } &&
13270 { ac_try='test -z "$ac_c_werror_flag"
13271 || test ! -s conftest.err'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } &&
13277 { ac_try='test -s conftest.$ac_objext'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283 ac_cv_member_krb5_error_e_data=yes
13285 echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13288 ac_cv_member_krb5_error_e_data=no
13290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13294 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
13295 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
13296 if test $ac_cv_member_krb5_error_e_data = yes; then
13298 cat >>confdefs.h <<_ACEOF
13299 #define HAVE_KRB5_ERROR_E_DATA 1
13304 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
13305 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
13306 { (exit 1); exit 1; }; }
13314 ## Functions, global variables
13317 echo "$as_me:$LINENO: checking for int timezone" >&5
13318 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
13319 if test "${pgac_cv_var_int_timezone+set}" = set; then
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 cat >conftest.$ac_ext <<_ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13334 res = timezone / 60;
13336 res = _timezone / 60;
13342 rm -f conftest.$ac_objext conftest$ac_exeext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344 (eval $ac_link) 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag"
13352 || test ! -s conftest.err'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest$ac_exeext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 pgac_cv_var_int_timezone=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 pgac_cv_var_int_timezone=no
13371 rm -f conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13374 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
13375 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
13376 if test x"$pgac_cv_var_int_timezone" = xyes ; then
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_INT_TIMEZONE
13383 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
13384 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
13385 if test "${ac_cv_func_accept_return+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13388 if test "${ac_cv_func_accept_arg1+set}" = set; then
13389 echo $ECHO_N "(cached) $ECHO_C" >&6
13391 if test "${ac_cv_func_accept_arg2+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 if test "${ac_cv_func_accept_arg3+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13397 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
13398 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
13399 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
13400 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13407 #ifdef HAVE_SYS_TYPES_H
13408 #include <sys/types.h>
13410 #ifdef HAVE_SYS_SOCKET_H
13411 #include <sys/socket.h>
13413 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
13422 rm -f conftest.$ac_objext
13423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13424 (eval $ac_compile) 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_c_werror_flag"
13432 || test ! -s conftest.err'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; } &&
13438 { ac_try='test -s conftest.$ac_objext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_not_found=no; break 4
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13456 if test "$ac_not_found" = yes; then
13457 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
13458 echo "$as_me: error: could not determine argument types" >&2;}
13459 { (exit 1); exit 1; }; }
13461 if test "$ac_cv_func_accept_arg3" = "void"; then
13462 ac_cv_func_accept_arg3=int
13472 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
13473 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
13475 cat >>confdefs.h <<_ACEOF
13476 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
13480 cat >>confdefs.h <<_ACEOF
13481 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
13485 cat >>confdefs.h <<_ACEOF
13486 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
13490 cat >>confdefs.h <<_ACEOF
13491 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
13495 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
13496 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
13497 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 cat >conftest.$ac_ext <<_ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 #include <sys/time.h>
13510 struct timeval *tp;
13511 struct timezone *tzp;
13512 gettimeofday(tp,tzp);
13517 rm -f conftest.$ac_objext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519 (eval $ac_compile) 2>conftest.er1
13521 grep -v '^ *+' conftest.er1 >conftest.err
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag"
13527 || test ! -s conftest.err'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; } &&
13533 { ac_try='test -s conftest.$ac_objext'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 pgac_cv_func_gettimeofday_1arg=no
13541 echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 pgac_cv_func_gettimeofday_1arg=yes
13546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13548 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
13549 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
13550 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13552 cat >>confdefs.h <<\_ACEOF
13553 #define GETTIMEOFDAY_1ARG
13579 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
13581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13582 echo "$as_me:$LINENO: checking for $ac_func" >&5
13583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_var+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13595 #define $ac_func innocuous_$ac_func
13597 /* System header to define __stub macros and hopefully few prototypes,
13598 which can conflict with char $ac_func (); below.
13599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600 <limits.h> exists even on freestanding compilers. */
13603 # include <limits.h>
13605 # include <assert.h>
13610 /* Override any gcc2 internal prototype to avoid an error. */
13615 /* We use char because int might match the return type of a gcc2
13616 builtin and then its argument prototype would still apply. */
13618 /* The GNU C library defines this for functions which it implements
13619 to always fail with ENOSYS. Some functions are actually named
13620 something starting with __ and the normal name is an alias. */
13621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13624 char (*f) () = $ac_func;
13633 return f != $ac_func;
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>conftest.er1
13642 grep -v '^ *+' conftest.er1 >conftest.err
13644 cat conftest.err >&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -z "$ac_c_werror_flag"
13648 || test ! -s conftest.err'
13649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650 (eval $ac_try) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; } &&
13654 { ac_try='test -s conftest$ac_exeext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660 eval "$as_ac_var=yes"
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13665 eval "$as_ac_var=no"
13667 rm -f conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
13670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13672 if test `eval echo '${'$as_ac_var'}'` = yes; then
13673 cat >>confdefs.h <<_ACEOF
13674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
13682 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
13683 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 cat >conftest.$ac_ext <<_ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13692 #include <unistd.h>
13698 char *p = (char *) fdatasync;
13705 rm -f conftest.$ac_objext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13707 (eval $ac_compile) 2>conftest.er1
13709 grep -v '^ *+' conftest.er1 >conftest.err
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 ac_cv_have_decl_fdatasync=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 ac_cv_have_decl_fdatasync=no
13734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
13737 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
13738 if test $ac_cv_have_decl_fdatasync = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define HAVE_DECL_FDATASYNC 1
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_DECL_FDATASYNC 0
13756 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13757 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13758 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 $ac_includes_default
13768 #include <netinet/in.h>
13773 if ((struct sockaddr_in6 *) 0)
13775 if (sizeof (struct sockaddr_in6))
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_cv_type_struct_sockaddr_in6=yes
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_cv_type_struct_sockaddr_in6=no
13810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13812 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13813 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13814 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
13816 cat >>confdefs.h <<\_ACEOF
13817 #define HAVE_IPV6 1
13825 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
13826 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
13827 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <machine/vmparam.h>
13837 #include <sys/exec.h>
13842 PS_STRINGS->ps_nargvstr = 1;
13843 PS_STRINGS->ps_argvstr = "foo";
13848 rm -f conftest.$ac_objext conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 (eval $ac_link) 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 pgac_cv_var_PS_STRINGS=yes
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 pgac_cv_var_PS_STRINGS=no
13877 rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13880 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
13881 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
13882 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define HAVE_PS_STRINGS
13891 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13892 # is missing. Yes, there are machines that have only one. We may
13893 # also decide to use snprintf.c if snprintf() is present but does not
13894 # have all the features we need --- see below.
13896 pgac_need_repl_snprintf=no
13898 for ac_func in snprintf
13900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13901 echo "$as_me:$LINENO: checking for $ac_func" >&5
13902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13903 if eval "test \"\${$as_ac_var+set}\" = set"; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13914 #define $ac_func innocuous_$ac_func
13916 /* System header to define __stub macros and hopefully few prototypes,
13917 which can conflict with char $ac_func (); below.
13918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13919 <limits.h> exists even on freestanding compilers. */
13922 # include <limits.h>
13924 # include <assert.h>
13929 /* Override any gcc2 internal prototype to avoid an error. */
13934 /* We use char because int might match the return type of a gcc2
13935 builtin and then its argument prototype would still apply. */
13937 /* The GNU C library defines this for functions which it implements
13938 to always fail with ENOSYS. Some functions are actually named
13939 something starting with __ and the normal name is an alias. */
13940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13943 char (*f) () = $ac_func;
13952 return f != $ac_func;
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13959 (eval $ac_link) 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } &&
13966 { ac_try='test -z "$ac_c_werror_flag"
13967 || test ! -s conftest.err'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; } &&
13973 { ac_try='test -s conftest$ac_exeext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 eval "$as_ac_var=yes"
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13984 eval "$as_ac_var=no"
13986 rm -f conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13991 if test `eval echo '${'$as_ac_var'}'` = yes; then
13992 cat >>confdefs.h <<_ACEOF
13993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13997 pgac_need_repl_snprintf=yes
14002 for ac_func in vsnprintf
14004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14005 echo "$as_me:$LINENO: checking for $ac_func" >&5
14006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_var+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14018 #define $ac_func innocuous_$ac_func
14020 /* System header to define __stub macros and hopefully few prototypes,
14021 which can conflict with char $ac_func (); below.
14022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14023 <limits.h> exists even on freestanding compilers. */
14026 # include <limits.h>
14028 # include <assert.h>
14033 /* Override any gcc2 internal prototype to avoid an error. */
14038 /* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14041 /* The GNU C library defines this for functions which it implements
14042 to always fail with ENOSYS. Some functions are actually named
14043 something starting with __ and the normal name is an alias. */
14044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14047 char (*f) () = $ac_func;
14056 return f != $ac_func;
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>conftest.er1
14065 grep -v '^ *+' conftest.er1 >conftest.err
14067 cat conftest.err >&5
14068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); } &&
14070 { ac_try='test -z "$ac_c_werror_flag"
14071 || test ! -s conftest.err'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; } &&
14077 { ac_try='test -s conftest$ac_exeext'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; }; then
14083 eval "$as_ac_var=yes"
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14088 eval "$as_ac_var=no"
14090 rm -f conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14095 if test `eval echo '${'$as_ac_var'}'` = yes; then
14096 cat >>confdefs.h <<_ACEOF
14097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14101 pgac_need_repl_snprintf=yes
14107 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
14108 # include/c.h will provide declarations. Note this is a separate test
14109 # from whether the functions exist in the C library --- there are
14110 # systems that have the functions but don't bother to declare them :-(
14112 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14113 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14114 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14128 char *p = (char *) snprintf;
14135 rm -f conftest.$ac_objext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14137 (eval $ac_compile) 2>conftest.er1
14139 grep -v '^ *+' conftest.er1 >conftest.err
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -z "$ac_c_werror_flag"
14145 || test ! -s conftest.err'
14146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 ac_cv_have_decl_snprintf=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_have_decl_snprintf=no
14164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14166 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14167 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14168 if test $ac_cv_have_decl_snprintf = yes; then
14170 cat >>confdefs.h <<_ACEOF
14171 #define HAVE_DECL_SNPRINTF 1
14176 cat >>confdefs.h <<_ACEOF
14177 #define HAVE_DECL_SNPRINTF 0
14182 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14183 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14184 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 $ac_includes_default
14198 char *p = (char *) vsnprintf;
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag"
14215 || test ! -s conftest.err'
14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217 (eval $ac_try) 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest.$ac_objext'
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_have_decl_vsnprintf=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_cv_have_decl_vsnprintf=no
14234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14237 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14238 if test $ac_cv_have_decl_vsnprintf = yes; then
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_DECL_VSNPRINTF 1
14246 cat >>confdefs.h <<_ACEOF
14247 #define HAVE_DECL_VSNPRINTF 0
14256 # do this one the hard way in case isinf() is a macro
14257 echo "$as_me:$LINENO: checking for isinf" >&5
14258 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
14259 if test "${ac_cv_func_isinf+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14273 double x = 0.0; int res = isinf(x);
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14280 (eval $ac_link) 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag"
14288 || test ! -s conftest.err'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest$ac_exeext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_cv_func_isinf=yes
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_func_isinf=no
14307 rm -f conftest.err conftest.$ac_objext \
14308 conftest$ac_exeext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14311 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14313 if test $ac_cv_func_isinf = yes ; then
14315 cat >>confdefs.h <<\_ACEOF
14316 #define HAVE_ISINF 1
14321 "isinf.$ac_objext" | \
14322 *" isinf.$ac_objext" | \
14323 "isinf.$ac_objext "* | \
14324 *" isinf.$ac_objext "* ) ;;
14325 *) LIBOBJS="$LIBOBJS isinf.$ac_objext" ;;
14328 # Look for a way to implement a substitute for isinf()
14333 for ac_func in fpclass fp_class fp_class_d class
14335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336 echo "$as_me:$LINENO: checking for $ac_func" >&5
14337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_var+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 cat >conftest.$ac_ext <<_ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14349 #define $ac_func innocuous_$ac_func
14351 /* System header to define __stub macros and hopefully few prototypes,
14352 which can conflict with char $ac_func (); below.
14353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14354 <limits.h> exists even on freestanding compilers. */
14357 # include <limits.h>
14359 # include <assert.h>
14364 /* Override any gcc2 internal prototype to avoid an error. */
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14372 /* The GNU C library defines this for functions which it implements
14373 to always fail with ENOSYS. Some functions are actually named
14374 something starting with __ and the normal name is an alias. */
14375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14378 char (*f) () = $ac_func;
14387 return f != $ac_func;
14392 rm -f conftest.$ac_objext conftest$ac_exeext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14394 (eval $ac_link) 2>conftest.er1
14396 grep -v '^ *+' conftest.er1 >conftest.err
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } &&
14401 { ac_try='test -z "$ac_c_werror_flag"
14402 || test ! -s conftest.err'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; } &&
14408 { ac_try='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 eval "$as_ac_var=yes"
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 eval "$as_ac_var=no"
14421 rm -f conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14426 if test `eval echo '${'$as_ac_var'}'` = yes; then
14427 cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14449 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
14451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14452 echo "$as_me:$LINENO: checking for $ac_func" >&5
14453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14454 if eval "test \"\${$as_ac_var+set}\" = set"; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14465 #define $ac_func innocuous_$ac_func
14467 /* System header to define __stub macros and hopefully few prototypes,
14468 which can conflict with char $ac_func (); below.
14469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14470 <limits.h> exists even on freestanding compilers. */
14473 # include <limits.h>
14475 # include <assert.h>
14480 /* Override any gcc2 internal prototype to avoid an error. */
14485 /* We use char because int might match the return type of a gcc2
14486 builtin and then its argument prototype would still apply. */
14488 /* The GNU C library defines this for functions which it implements
14489 to always fail with ENOSYS. Some functions are actually named
14490 something starting with __ and the normal name is an alias. */
14491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14494 char (*f) () = $ac_func;
14503 return f != $ac_func;
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14510 (eval $ac_link) 2>conftest.er1
14512 grep -v '^ *+' conftest.er1 >conftest.err
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 eval "$as_ac_var=yes"
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 eval "$as_ac_var=no"
14537 rm -f conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14542 if test `eval echo '${'$as_ac_var'}'` = yes; then
14543 cat >>confdefs.h <<_ACEOF
14544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14549 "$ac_func.$ac_objext" | \
14550 *" $ac_func.$ac_objext" | \
14551 "$ac_func.$ac_objext "* | \
14552 *" $ac_func.$ac_objext "* ) ;;
14553 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14561 # System's version of getaddrinfo(), if any, may be used only if we found
14562 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
14563 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
14564 # versions of getaddrinfo don't follow normal C call protocol. This is OK
14565 # because we want to use our own getaddrinfo.c on Windows anyway.)
14566 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
14568 for ac_func in getaddrinfo
14570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571 echo "$as_me:$LINENO: checking for $ac_func" >&5
14572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14573 if eval "test \"\${$as_ac_var+set}\" = set"; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 cat >conftest.$ac_ext <<_ACEOF
14579 cat confdefs.h >>conftest.$ac_ext
14580 cat >>conftest.$ac_ext <<_ACEOF
14581 /* end confdefs.h. */
14582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14584 #define $ac_func innocuous_$ac_func
14586 /* System header to define __stub macros and hopefully few prototypes,
14587 which can conflict with char $ac_func (); below.
14588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14589 <limits.h> exists even on freestanding compilers. */
14592 # include <limits.h>
14594 # include <assert.h>
14599 /* Override any gcc2 internal prototype to avoid an error. */
14604 /* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14607 /* The GNU C library defines this for functions which it implements
14608 to always fail with ENOSYS. Some functions are actually named
14609 something starting with __ and the normal name is an alias. */
14610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14613 char (*f) () = $ac_func;
14622 return f != $ac_func;
14627 rm -f conftest.$ac_objext conftest$ac_exeext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14629 (eval $ac_link) 2>conftest.er1
14631 grep -v '^ *+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -z "$ac_c_werror_flag"
14637 || test ! -s conftest.err'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } &&
14643 { ac_try='test -s conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 eval "$as_ac_var=yes"
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 eval "$as_ac_var=no"
14656 rm -f conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14661 if test `eval echo '${'$as_ac_var'}'` = yes; then
14662 cat >>confdefs.h <<_ACEOF
14663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14668 "$ac_func.$ac_objext" | \
14669 *" $ac_func.$ac_objext" | \
14670 "$ac_func.$ac_objext "* | \
14671 *" $ac_func.$ac_objext "* ) ;;
14672 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14681 "getaddrinfo.$ac_objext" | \
14682 *" getaddrinfo.$ac_objext" | \
14683 "getaddrinfo.$ac_objext "* | \
14684 *" getaddrinfo.$ac_objext "* ) ;;
14685 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
14690 # similarly, use system's getopt_long() only if system provides struct option.
14691 if test x"$ac_cv_type_struct_option" = xyes ; then
14693 for ac_func in getopt_long
14695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14696 echo "$as_me:$LINENO: checking for $ac_func" >&5
14697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14698 if eval "test \"\${$as_ac_var+set}\" = set"; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14709 #define $ac_func innocuous_$ac_func
14711 /* System header to define __stub macros and hopefully few prototypes,
14712 which can conflict with char $ac_func (); below.
14713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14714 <limits.h> exists even on freestanding compilers. */
14717 # include <limits.h>
14719 # include <assert.h>
14724 /* Override any gcc2 internal prototype to avoid an error. */
14729 /* We use char because int might match the return type of a gcc2
14730 builtin and then its argument prototype would still apply. */
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14738 char (*f) () = $ac_func;
14747 return f != $ac_func;
14752 rm -f conftest.$ac_objext conftest$ac_exeext
14753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14754 (eval $ac_link) 2>conftest.er1
14756 grep -v '^ *+' conftest.er1 >conftest.err
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -z "$ac_c_werror_flag"
14762 || test ! -s conftest.err'
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 eval "$as_ac_var=yes"
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 eval "$as_ac_var=no"
14781 rm -f conftest.err conftest.$ac_objext \
14782 conftest$ac_exeext conftest.$ac_ext
14784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14786 if test `eval echo '${'$as_ac_var'}'` = yes; then
14787 cat >>confdefs.h <<_ACEOF
14788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 "$ac_func.$ac_objext" | \
14794 *" $ac_func.$ac_objext" | \
14795 "$ac_func.$ac_objext "* | \
14796 *" $ac_func.$ac_objext "* ) ;;
14797 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
14806 "getopt_long.$ac_objext" | \
14807 *" getopt_long.$ac_objext" | \
14808 "getopt_long.$ac_objext "* | \
14809 *" getopt_long.$ac_objext "* ) ;;
14810 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" ;;
14815 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
14816 # We override the previous test that said fseeko/ftello didn't exist
14817 # OS tests are also done in include/c.h and port/fseeko.c
14818 case $host_os in bsdi*|netbsd*)
14819 ac_cv_func_fseeko=yes
14822 # Solaris has a very slow qsort in certain cases, so we replace it.
14823 if test "$PORTNAME" = "solaris"; then
14825 "qsort.$ac_objext" | \
14826 *" qsort.$ac_objext" | \
14827 "qsort.$ac_objext "* | \
14828 *" qsort.$ac_objext "* ) ;;
14829 *) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
14835 if test "$PORTNAME" = "win32"; then
14837 "gettimeofday.$ac_objext" | \
14838 *" gettimeofday.$ac_objext" | \
14839 "gettimeofday.$ac_objext "* | \
14840 *" gettimeofday.$ac_objext "* ) ;;
14841 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
14845 "kill.$ac_objext" | \
14846 *" kill.$ac_objext" | \
14847 "kill.$ac_objext "* | \
14848 *" kill.$ac_objext "* ) ;;
14849 *) LIBOBJS="$LIBOBJS kill.$ac_objext" ;;
14853 "open.$ac_objext" | \
14854 *" open.$ac_objext" | \
14855 "open.$ac_objext "* | \
14856 *" open.$ac_objext "* ) ;;
14857 *) LIBOBJS="$LIBOBJS open.$ac_objext" ;;
14861 "rand.$ac_objext" | \
14862 *" rand.$ac_objext" | \
14863 "rand.$ac_objext "* | \
14864 *" rand.$ac_objext "* ) ;;
14865 *) LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
14869 cat >>confdefs.h <<\_ACEOF
14870 #define HAVE_SYMLINK 1
14875 if test "$with_readline" = yes; then
14876 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
14877 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 #ifdef HAVE_READLINE_READLINE_H
14886 # include <readline/readline.h>
14887 #elif defined(HAVE_READLINE_H)
14888 # include <readline.h>
14894 rl_completion_append_character = 'x';
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>conftest.er1
14903 grep -v '^ *+' conftest.er1 >conftest.err
14905 cat conftest.err >&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); } &&
14908 { ac_try='test -z "$ac_c_werror_flag"
14909 || test ! -s conftest.err'
14910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 echo "$as_me:$LINENO: result: yes" >&5
14922 echo "${ECHO_T}yes" >&6
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14932 echo "$as_me:$LINENO: result: no" >&5
14933 echo "${ECHO_T}no" >&6
14935 rm -f conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14939 for ac_func in rl_completion_matches rl_filename_completion_function
14941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14942 echo "$as_me:$LINENO: checking for $ac_func" >&5
14943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14944 if eval "test \"\${$as_ac_var+set}\" = set"; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14955 #define $ac_func innocuous_$ac_func
14957 /* System header to define __stub macros and hopefully few prototypes,
14958 which can conflict with char $ac_func (); below.
14959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14960 <limits.h> exists even on freestanding compilers. */
14963 # include <limits.h>
14965 # include <assert.h>
14970 /* Override any gcc2 internal prototype to avoid an error. */
14975 /* We use char because int might match the return type of a gcc2
14976 builtin and then its argument prototype would still apply. */
14978 /* The GNU C library defines this for functions which it implements
14979 to always fail with ENOSYS. Some functions are actually named
14980 something starting with __ and the normal name is an alias. */
14981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14984 char (*f) () = $ac_func;
14993 return f != $ac_func;
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15000 (eval $ac_link) 2>conftest.er1
15002 grep -v '^ *+' conftest.er1 >conftest.err
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag"
15008 || test ! -s conftest.err'
15009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010 (eval $ac_try) 2>&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); }; } &&
15014 { ac_try='test -s conftest$ac_exeext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 eval "$as_ac_var=yes"
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 eval "$as_ac_var=no"
15027 rm -f conftest.err conftest.$ac_objext \
15028 conftest$ac_exeext conftest.$ac_ext
15030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15032 if test `eval echo '${'$as_ac_var'}'` = yes; then
15033 cat >>confdefs.h <<_ACEOF
15034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15041 for ac_func in replace_history_entry
15043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15044 echo "$as_me:$LINENO: checking for $ac_func" >&5
15045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15046 if eval "test \"\${$as_ac_var+set}\" = set"; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15057 #define $ac_func innocuous_$ac_func
15059 /* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char $ac_func (); below.
15061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15062 <limits.h> exists even on freestanding compilers. */
15065 # include <limits.h>
15067 # include <assert.h>
15072 /* Override any gcc2 internal prototype to avoid an error. */
15077 /* We use char because int might match the return type of a gcc2
15078 builtin and then its argument prototype would still apply. */
15080 /* The GNU C library defines this for functions which it implements
15081 to always fail with ENOSYS. Some functions are actually named
15082 something starting with __ and the normal name is an alias. */
15083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15086 char (*f) () = $ac_func;
15095 return f != $ac_func;
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15102 (eval $ac_link) 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 eval "$as_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 eval "$as_ac_var=no"
15129 rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15134 if test `eval echo '${'$as_ac_var'}'` = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15145 echo "$as_me:$LINENO: checking for finite" >&5
15146 echo $ECHO_N "checking for finite... $ECHO_C" >&6
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15157 int dummy=finite(1.0);
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
15171 { ac_try='test -z "$ac_c_werror_flag"
15172 || test ! -s conftest.err'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_FINITE 1
15189 echo "$as_me:$LINENO: result: yes" >&5
15190 echo "${ECHO_T}yes" >&6
15192 echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 echo "$as_me:$LINENO: result: no" >&5
15196 echo "${ECHO_T}no" >&6
15198 rm -f conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15201 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15202 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <setjmp.h>
15213 sigjmp_buf x; sigsetjmp(x, 1);
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>conftest.er1
15222 grep -v '^ *+' conftest.er1 >conftest.err
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -z "$ac_c_werror_flag"
15228 || test ! -s conftest.err'
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15241 cat >>confdefs.h <<\_ACEOF
15242 #define HAVE_SIGSETJMP 1
15245 echo "$as_me:$LINENO: result: yes" >&5
15246 echo "${ECHO_T}yes" >&6
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 echo "$as_me:$LINENO: result: no" >&5
15252 echo "${ECHO_T}no" >&6
15254 rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
15257 echo "$as_me:$LINENO: checking for syslog" >&5
15258 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
15259 if test "${ac_cv_func_syslog+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
15269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15270 #define syslog innocuous_syslog
15272 /* System header to define __stub macros and hopefully few prototypes,
15273 which can conflict with char syslog (); below.
15274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15275 <limits.h> exists even on freestanding compilers. */
15278 # include <limits.h>
15280 # include <assert.h>
15285 /* Override any gcc2 internal prototype to avoid an error. */
15290 /* We use char because int might match the return type of a gcc2
15291 builtin and then its argument prototype would still apply. */
15293 /* The GNU C library defines this for functions which it implements
15294 to always fail with ENOSYS. Some functions are actually named
15295 something starting with __ and the normal name is an alias. */
15296 #if defined (__stub_syslog) || defined (__stub___syslog)
15299 char (*f) () = syslog;
15308 return f != syslog;
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>conftest.er1
15317 grep -v '^ *+' conftest.er1 >conftest.err
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try='test -z "$ac_c_werror_flag"
15323 || test ! -s conftest.err'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; } &&
15329 { ac_try='test -s conftest$ac_exeext'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 ac_cv_func_syslog=yes
15337 echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15340 ac_cv_func_syslog=no
15342 rm -f conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15345 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
15346 echo "${ECHO_T}$ac_cv_func_syslog" >&6
15347 if test $ac_cv_func_syslog = yes; then
15348 if test "${ac_cv_header_syslog_h+set}" = set; then
15349 echo "$as_me:$LINENO: checking for syslog.h" >&5
15350 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15351 if test "${ac_cv_header_syslog_h+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15355 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15357 # Is the header compilable?
15358 echo "$as_me:$LINENO: checking syslog.h usability" >&5
15359 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
15360 cat >conftest.$ac_ext <<_ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 $ac_includes_default
15367 #include <syslog.h>
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371 (eval $ac_compile) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag"
15379 || test ! -s conftest.err'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; } &&
15385 { ac_try='test -s conftest.$ac_objext'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391 ac_header_compiler=yes
15393 echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15396 ac_header_compiler=no
15398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6
15402 # Is the header present?
15403 echo "$as_me:$LINENO: checking syslog.h presence" >&5
15404 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <syslog.h>
15413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } >/dev/null; then
15421 if test -s conftest.err; then
15422 ac_cpp_err=$ac_c_preproc_warn_flag
15423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 if test -z "$ac_cpp_err"; then
15431 ac_header_preproc=yes
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 ac_header_preproc=no
15438 rm -f conftest.err conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15440 echo "${ECHO_T}$ac_header_preproc" >&6
15442 # So? What about this header?
15443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15445 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
15446 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
15448 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
15449 ac_header_preproc=yes
15452 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
15453 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
15455 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
15457 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
15459 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
15461 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
15463 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
15466 ## ---------------------------------------- ##
15467 ## Report this to pgsql-bugs@postgresql.org ##
15468 ## ---------------------------------------- ##
15471 sed "s/^/$as_me: WARNING: /" >&2
15474 echo "$as_me:$LINENO: checking for syslog.h" >&5
15475 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
15476 if test "${ac_cv_header_syslog_h+set}" = set; then
15477 echo $ECHO_N "(cached) $ECHO_C" >&6
15479 ac_cv_header_syslog_h=$ac_header_preproc
15481 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
15482 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
15485 if test $ac_cv_header_syslog_h = yes; then
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_SYSLOG 1
15497 echo "$as_me:$LINENO: checking for optreset" >&5
15498 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
15499 if test "${pgac_cv_var_int_optreset+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15505 cat confdefs.h >>conftest.$ac_ext
15506 cat >>conftest.$ac_ext <<_ACEOF
15507 /* end confdefs.h. */
15508 #include <unistd.h>
15512 extern int optreset; optreset = 1;
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>conftest.er1
15521 grep -v '^ *+' conftest.er1 >conftest.err
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
15526 { ac_try='test -z "$ac_c_werror_flag"
15527 || test ! -s conftest.err'
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; } &&
15533 { ac_try='test -s conftest$ac_exeext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 pgac_cv_var_int_optreset=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 pgac_cv_var_int_optreset=no
15546 rm -f conftest.err conftest.$ac_objext \
15547 conftest$ac_exeext conftest.$ac_ext
15549 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
15550 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
15551 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_INT_OPTRESET 1
15561 for ac_func in strtoll strtoq
15563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15564 echo "$as_me:$LINENO: checking for $ac_func" >&5
15565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15566 if eval "test \"\${$as_ac_var+set}\" = set"; then
15567 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15577 #define $ac_func innocuous_$ac_func
15579 /* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char $ac_func (); below.
15581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582 <limits.h> exists even on freestanding compilers. */
15585 # include <limits.h>
15587 # include <assert.h>
15592 /* Override any gcc2 internal prototype to avoid an error. */
15597 /* We use char because int might match the return type of a gcc2
15598 builtin and then its argument prototype would still apply. */
15600 /* The GNU C library defines this for functions which it implements
15601 to always fail with ENOSYS. Some functions are actually named
15602 something starting with __ and the normal name is an alias. */
15603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15606 char (*f) () = $ac_func;
15615 return f != $ac_func;
15620 rm -f conftest.$ac_objext conftest$ac_exeext
15621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15622 (eval $ac_link) 2>conftest.er1
15624 grep -v '^ *+' conftest.er1 >conftest.err
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try='test -z "$ac_c_werror_flag"
15630 || test ! -s conftest.err'
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 eval "$as_ac_var=yes"
15644 echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15647 eval "$as_ac_var=no"
15649 rm -f conftest.err conftest.$ac_objext \
15650 conftest$ac_exeext conftest.$ac_ext
15652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15654 if test `eval echo '${'$as_ac_var'}'` = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15664 for ac_func in strtoull strtouq
15666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15667 echo "$as_me:$LINENO: checking for $ac_func" >&5
15668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15669 if eval "test \"\${$as_ac_var+set}\" = set"; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15680 #define $ac_func innocuous_$ac_func
15682 /* System header to define __stub macros and hopefully few prototypes,
15683 which can conflict with char $ac_func (); below.
15684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15685 <limits.h> exists even on freestanding compilers. */
15688 # include <limits.h>
15690 # include <assert.h>
15695 /* Override any gcc2 internal prototype to avoid an error. */
15700 /* We use char because int might match the return type of a gcc2
15701 builtin and then its argument prototype would still apply. */
15703 /* The GNU C library defines this for functions which it implements
15704 to always fail with ENOSYS. Some functions are actually named
15705 something starting with __ and the normal name is an alias. */
15706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15709 char (*f) () = $ac_func;
15718 return f != $ac_func;
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest$ac_exeext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 eval "$as_ac_var=yes"
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 eval "$as_ac_var=no"
15752 rm -f conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15757 if test `eval echo '${'$as_ac_var'}'` = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15766 # Check for one of atexit() or on_exit()
15768 for ac_func in atexit
15770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771 echo "$as_me:$LINENO: checking for $ac_func" >&5
15772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15773 if eval "test \"\${$as_ac_var+set}\" = set"; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15784 #define $ac_func innocuous_$ac_func
15786 /* System header to define __stub macros and hopefully few prototypes,
15787 which can conflict with char $ac_func (); below.
15788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789 <limits.h> exists even on freestanding compilers. */
15792 # include <limits.h>
15794 # include <assert.h>
15799 /* Override any gcc2 internal prototype to avoid an error. */
15804 /* We use char because int might match the return type of a gcc2
15805 builtin and then its argument prototype would still apply. */
15807 /* The GNU C library defines this for functions which it implements
15808 to always fail with ENOSYS. Some functions are actually named
15809 something starting with __ and the normal name is an alias. */
15810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15813 char (*f) () = $ac_func;
15822 return f != $ac_func;
15827 rm -f conftest.$ac_objext conftest$ac_exeext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15829 (eval $ac_link) 2>conftest.er1
15831 grep -v '^ *+' conftest.er1 >conftest.err
15833 cat conftest.err >&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest$ac_exeext'
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 eval "$as_ac_var=yes"
15851 echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15854 eval "$as_ac_var=no"
15856 rm -f conftest.err conftest.$ac_objext \
15857 conftest$ac_exeext conftest.$ac_ext
15859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15861 if test `eval echo '${'$as_ac_var'}'` = yes; then
15862 cat >>confdefs.h <<_ACEOF
15863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868 for ac_func in on_exit
15870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15871 echo "$as_me:$LINENO: checking for $ac_func" >&5
15872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15873 if eval "test \"\${$as_ac_var+set}\" = set"; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15884 #define $ac_func innocuous_$ac_func
15886 /* System header to define __stub macros and hopefully few prototypes,
15887 which can conflict with char $ac_func (); below.
15888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15889 <limits.h> exists even on freestanding compilers. */
15892 # include <limits.h>
15894 # include <assert.h>
15899 /* Override any gcc2 internal prototype to avoid an error. */
15904 /* We use char because int might match the return type of a gcc2
15905 builtin and then its argument prototype would still apply. */
15907 /* The GNU C library defines this for functions which it implements
15908 to always fail with ENOSYS. Some functions are actually named
15909 something starting with __ and the normal name is an alias. */
15910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15913 char (*f) () = $ac_func;
15922 return f != $ac_func;
15927 rm -f conftest.$ac_objext conftest$ac_exeext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15929 (eval $ac_link) 2>conftest.er1
15931 grep -v '^ *+' conftest.er1 >conftest.err
15933 cat conftest.err >&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest$ac_exeext'
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 eval "$as_ac_var=yes"
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 eval "$as_ac_var=no"
15956 rm -f conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15961 if test `eval echo '${'$as_ac_var'}'` = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15967 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
15968 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
15969 { (exit 1); exit 1; }; }
15977 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15978 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
15979 if test "${ac_cv_sys_largefile_source+set}" = set; then
15980 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_cv_sys_largefile_source=no
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15999 rm -f conftest.$ac_objext
16000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>conftest.er1
16003 grep -v '^ *+' conftest.er1 >conftest.err
16005 cat conftest.err >&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -z "$ac_c_werror_flag"
16009 || test ! -s conftest.err'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try='test -s conftest.$ac_objext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16034 #define _LARGEFILE_SOURCE 1
16044 rm -f conftest.$ac_objext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>conftest.er1
16048 grep -v '^ *+' conftest.er1 >conftest.err
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag"
16054 || test ! -s conftest.err'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 ac_cv_sys_largefile_source=1; break
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16076 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
16077 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
16078 if test "$ac_cv_sys_largefile_source" != no; then
16080 cat >>confdefs.h <<_ACEOF
16081 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16087 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16088 # in glibc 2.1.3, but that breaks too many other things.
16089 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16090 echo "$as_me:$LINENO: checking for fseeko" >&5
16091 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
16092 if test "${ac_cv_func_fseeko+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 cat >conftest.$ac_ext <<_ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16105 return fseeko && fseeko (stdin, 0, 0);
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112 (eval $ac_link) 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
16119 { ac_try='test -z "$ac_c_werror_flag"
16120 || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest$ac_exeext'
16127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128 (eval $ac_try) 2>&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); }; }; then
16132 ac_cv_func_fseeko=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_cv_func_fseeko=no
16139 rm -f conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16142 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
16143 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
16144 if test $ac_cv_func_fseeko = yes; then
16146 cat >>confdefs.h <<\_ACEOF
16147 #define HAVE_FSEEKO 1
16156 # For each platform, we need to know about any special compile and link
16157 # libraries, and whether the normal C function names are thread-safe.
16158 # See the comment at the top of src/port/thread.c for more information.
16160 if test "$enable_thread_safety" = yes; then
16166 ac_cpp='$CPP $CPPFLAGS'
16167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16173 # We used to check for pthread.h first, but this fails if pthread.h
16174 # requires special compiler flags (e.g. on True64 or Sequent).
16175 # It gets checked for in the link test anyway.
16177 # First of all, check if the user has set any of the PTHREAD_LIBS,
16178 # etcetera environment variables, and if threads linking works using
16180 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16181 save_CFLAGS="$CFLAGS"
16182 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16184 LIBS="$PTHREAD_LIBS $LIBS"
16185 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16186 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
16187 cat >conftest.$ac_ext <<_ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16194 /* Override any gcc2 internal prototype to avoid an error. */
16198 /* We use char because int might match the return type of a gcc2
16199 builtin and then its argument prototype would still apply. */
16200 char pthread_join ();
16209 rm -f conftest.$ac_objext conftest$ac_exeext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16211 (eval $ac_link) 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest$ac_exeext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16237 rm -f conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16240 echo "${ECHO_T}$acx_pthread_ok" >&6
16241 if test x"$acx_pthread_ok" = xno; then
16246 CFLAGS="$save_CFLAGS"
16249 # We must check for the threads library under a number of different
16250 # names; the ordering is very important because some systems
16251 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16252 # libraries is broken (non-POSIX).
16254 # Create a list of thread flags to try. Items starting with a "-" are
16255 # C compiler flags, and other items are library names, except for "none"
16256 # which indicates that we try without any flags at all, and "pthread-config"
16257 # which is a program returning the flags for the Pth emulation library.
16259 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
16261 # The ordering *is* (sometimes) important. Some notes on the
16262 # individual items follow:
16264 # pthreads: AIX (must check this before -lpthread)
16265 # none: in case threads are in libc; should be tried before -Kthread and
16266 # other compiler flags to prevent continual compiler warnings
16267 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16268 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16269 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16270 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16271 # -pthreads: Solaris/gcc
16272 # -mthreads: Mingw32/gcc, Lynx/gcc
16273 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16274 # doesn't hurt to check since this sometimes defines pthreads too;
16275 # also defines -D_REENTRANT)
16276 # pthread: Linux, etcetera
16277 # --thread-safe: KAI C++
16278 # pthread-config: use pthread-config program (for GNU Pth library)
16280 case "${host_cpu}-${host_os}" in
16283 # On Solaris (at least, for some versions), libc contains stubbed
16284 # (non-functional) versions of the pthreads routines, so link-based
16285 # tests will erroneously succeed. (We need to link with -pthread or
16286 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16287 # a function called by this macro, so we could check for that, but
16288 # who knows whether they'll stub that too in a future libc.) So,
16289 # we'll just look for -pthreads and -lpthread first:
16291 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
16295 if test x"$acx_pthread_ok" = xno; then
16296 for flag in $acx_pthread_flags; do
16298 tryPTHREAD_CFLAGS=""
16302 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16303 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
16307 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16308 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
16309 tryPTHREAD_CFLAGS="$flag"
16313 # skip this if we already have flags defined, for PostgreSQL
16314 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
16315 # Extract the first word of "pthread-config", so it can be a program name with args.
16316 set dummy pthread-config; ac_word=$2
16317 echo "$as_me:$LINENO: checking for $ac_word" >&5
16318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16319 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16320 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 if test -n "$acx_pthread_config"; then
16323 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16326 for as_dir in $PATH
16329 test -z "$as_dir" && as_dir=.
16330 for ac_exec_ext in '' $ac_executable_extensions; do
16331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16332 ac_cv_prog_acx_pthread_config="yes"
16333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16339 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16342 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16343 if test -n "$acx_pthread_config"; then
16344 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16345 echo "${ECHO_T}$acx_pthread_config" >&6
16347 echo "$as_me:$LINENO: result: no" >&5
16348 echo "${ECHO_T}no" >&6
16351 if test x"$acx_pthread_config" = xno; then continue; fi
16352 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
16353 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16357 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16358 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
16359 tryPTHREAD_LIBS="-l$flag"
16364 save_CFLAGS="$CFLAGS"
16365 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
16366 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16368 # Check for various functions. We must include pthread.h,
16369 # since some functions may be macros. (On the Sequent, we
16370 # need a special flag -Kthread to make this header compile.)
16371 # We check for pthread_join because it is in -lpthread on IRIX
16372 # while pthread_create is in libc. We check for pthread_attr_init
16373 # due to DEC craziness with -lpthreads. We check for
16374 # pthread_cleanup_push because it is one of the few pthread
16375 # functions on Solaris that doesn't have a non-functional libc stub.
16376 # We try pthread_create on general principles.
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <pthread.h>
16387 pthread_t th; pthread_join(th, 0);
16388 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16389 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16396 (eval $ac_link) 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } &&
16403 { ac_try='test -z "$ac_c_werror_flag"
16404 || test ! -s conftest.err'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest$ac_exeext'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16423 rm -f conftest.err conftest.$ac_objext \
16424 conftest$ac_exeext conftest.$ac_ext
16426 if test "x$acx_pthread_ok" = xyes; then
16427 # Don't use options that are ignored by the compiler.
16428 # We find them by checking stderror.
16429 cat >conftest.$ac_ext <<_ACEOF
16431 main (int argc, char **argv)
16438 rm -f conftest.$ac_objext conftest$ac_exeext
16439 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
16440 # we continue with more flags because Linux needs -lpthread
16441 # for libpq builds on PostgreSQL. The test above only
16442 # tests for building binaries, not shared libraries.
16443 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
16444 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
16445 else acx_pthread_ok=no
16450 CFLAGS="$save_CFLAGS"
16452 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16453 echo "${ECHO_T}$acx_pthread_ok" >&6
16457 # Various other checks:
16458 if test "x$acx_pthread_ok" = xyes; then
16460 LIBS="$PTHREAD_LIBS $LIBS"
16461 save_CFLAGS="$CFLAGS"
16462 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16464 # Detect AIX lossage: threads are created detached by default
16465 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
16466 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16467 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
16468 cat >conftest.$ac_ext <<_ACEOF
16471 cat confdefs.h >>conftest.$ac_ext
16472 cat >>conftest.$ac_ext <<_ACEOF
16473 /* end confdefs.h. */
16474 #include <pthread.h>
16478 int attr=PTHREAD_CREATE_JOINABLE;
16483 rm -f conftest.$ac_objext conftest$ac_exeext
16484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16485 (eval $ac_link) 2>conftest.er1
16487 grep -v '^ *+' conftest.er1 >conftest.err
16489 cat conftest.err >&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } &&
16492 { ac_try='test -z "$ac_c_werror_flag"
16493 || test ! -s conftest.err'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; } &&
16499 { ac_try='test -s conftest$ac_exeext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ok=PTHREAD_CREATE_JOINABLE
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16512 rm -f conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16514 if test x"$ok" = xunknown; then
16515 cat >conftest.$ac_ext <<_ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h. */
16521 #include <pthread.h>
16525 int attr=PTHREAD_CREATE_UNDETACHED;
16530 rm -f conftest.$ac_objext conftest$ac_exeext
16531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16532 (eval $ac_link) 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
16539 { ac_try='test -z "$ac_c_werror_flag"
16540 || test ! -s conftest.err'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest$ac_exeext'
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ok=PTHREAD_CREATE_UNDETACHED
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16559 rm -f conftest.err conftest.$ac_objext \
16560 conftest$ac_exeext conftest.$ac_ext
16562 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
16564 cat >>confdefs.h <<\_ACEOF
16565 #define PTHREAD_CREATE_JOINABLE $ok
16569 echo "$as_me:$LINENO: result: ${ok}" >&5
16570 echo "${ECHO_T}${ok}" >&6
16571 if test x"$ok" = xunknown; then
16572 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
16573 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
16576 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16577 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
16579 # We always add these in PostgreSQL
16580 # case "${host_cpu}-${host_os}" in
16581 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16582 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16584 echo "$as_me:$LINENO: result: ${flag}" >&5
16585 echo "${ECHO_T}${flag}" >&6
16586 if test "x$flag" != xno; then
16587 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16591 CFLAGS="$save_CFLAGS"
16593 # Supporting cc_r would require a special CC in all places that
16594 # use libpq, and that is ugly, so we don't do it. Users can still
16595 # define their compiler as cc_r to do thread builds of everything.
16596 # More AIX lossage: must compile with cc_r
16597 # Extract the first word of "cc_r", so it can be a program name with args.
16598 set dummy cc_r; ac_word=$2
16599 echo "$as_me:$LINENO: checking for $ac_word" >&5
16600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16601 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 if test -n "$PTHREAD_CC"; then
16605 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $PATH
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614 ac_cv_prog_PTHREAD_CC="cc_r"
16615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16621 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
16624 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16625 if test -n "$PTHREAD_CC"; then
16626 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16627 echo "${ECHO_T}$PTHREAD_CC" >&6
16629 echo "$as_me:$LINENO: result: no" >&5
16630 echo "${ECHO_T}no" >&6
16641 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16642 if test x"$acx_pthread_ok" = xyes; then
16644 cat >>confdefs.h <<\_ACEOF
16645 #define HAVE_PTHREAD 1
16654 ac_cpp='$CPP $CPPFLAGS'
16655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16661 # Some platforms use these, so just defineed them. They can't hurt if they
16662 # are not supported.
16663 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
16666 # At this point, we don't want to muck with the compiler name for threading.
16667 # Let's see who fails, perhaps AIX. 2004-04-23
16668 if test "$PTHREAD_CC" != "$CC"; then
16669 { { echo "$as_me:$LINENO: error:
16670 PostgreSQL does not support platforms that require a special
16671 compiler binary for thread-safety.
16673 echo "$as_me: error:
16674 PostgreSQL does not support platforms that require a special
16675 compiler binary for thread-safety.
16677 { (exit 1); exit 1; }; }
16680 if test "$THREAD_SUPPORT" = no; then
16681 { { echo "$as_me:$LINENO: error:
16682 Cannot enable threads on your platform.
16683 Your platform is known to not support thread-safe programs.
16684 For details, compile and run src/bin/pg_thread_test.
16686 echo "$as_me: error:
16687 Cannot enable threads on your platform.
16688 Your platform is known to not support thread-safe programs.
16689 For details, compile and run src/bin/pg_thread_test.
16691 { (exit 1); exit 1; }; }
16694 # Check for *_r functions
16697 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16698 LIBS="$LIBS $PTHREAD_LIBS"
16700 if test "${ac_cv_header_pthread_h+set}" = set; then
16701 echo "$as_me:$LINENO: checking for pthread.h" >&5
16702 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16703 if test "${ac_cv_header_pthread_h+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16706 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16707 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16709 # Is the header compilable?
16710 echo "$as_me:$LINENO: checking pthread.h usability" >&5
16711 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 $ac_includes_default
16719 #include <pthread.h>
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_header_compiler=yes
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_header_compiler=no
16750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16752 echo "${ECHO_T}$ac_header_compiler" >&6
16754 # Is the header present?
16755 echo "$as_me:$LINENO: checking pthread.h presence" >&5
16756 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16760 cat confdefs.h >>conftest.$ac_ext
16761 cat >>conftest.$ac_ext <<_ACEOF
16762 /* end confdefs.h. */
16763 #include <pthread.h>
16765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } >/dev/null; then
16773 if test -s conftest.err; then
16774 ac_cpp_err=$ac_c_preproc_warn_flag
16775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16782 if test -z "$ac_cpp_err"; then
16783 ac_header_preproc=yes
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16788 ac_header_preproc=no
16790 rm -f conftest.err conftest.$ac_ext
16791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16792 echo "${ECHO_T}$ac_header_preproc" >&6
16794 # So? What about this header?
16795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16797 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
16798 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
16800 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
16801 ac_header_preproc=yes
16804 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
16805 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
16807 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
16808 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
16809 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
16811 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
16813 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
16815 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
16818 ## ---------------------------------------- ##
16819 ## Report this to pgsql-bugs@postgresql.org ##
16820 ## ---------------------------------------- ##
16823 sed "s/^/$as_me: WARNING: /" >&2
16826 echo "$as_me:$LINENO: checking for pthread.h" >&5
16827 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
16828 if test "${ac_cv_header_pthread_h+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 ac_cv_header_pthread_h=$ac_header_preproc
16833 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
16834 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
16837 if test $ac_cv_header_pthread_h = yes; then
16840 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
16841 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
16842 { (exit 1); exit 1; }; }
16850 for ac_func in strerror_r getpwuid_r gethostbyname_r
16852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16853 echo "$as_me:$LINENO: checking for $ac_func" >&5
16854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16855 if eval "test \"\${$as_ac_var+set}\" = set"; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16866 #define $ac_func innocuous_$ac_func
16868 /* System header to define __stub macros and hopefully few prototypes,
16869 which can conflict with char $ac_func (); below.
16870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16871 <limits.h> exists even on freestanding compilers. */
16874 # include <limits.h>
16876 # include <assert.h>
16881 /* Override any gcc2 internal prototype to avoid an error. */
16886 /* We use char because int might match the return type of a gcc2
16887 builtin and then its argument prototype would still apply. */
16889 /* The GNU C library defines this for functions which it implements
16890 to always fail with ENOSYS. Some functions are actually named
16891 something starting with __ and the normal name is an alias. */
16892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16895 char (*f) () = $ac_func;
16904 return f != $ac_func;
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911 (eval $ac_link) 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag"
16919 || test ! -s conftest.err'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } &&
16925 { ac_try='test -s conftest$ac_exeext'
16926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927 (eval $ac_try) 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 eval "$as_ac_var=yes"
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 eval "$as_ac_var=no"
16938 rm -f conftest.err conftest.$ac_objext \
16939 conftest$ac_exeext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16943 if test `eval echo '${'$as_ac_var'}'` = yes; then
16944 cat >>confdefs.h <<_ACEOF
16945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16952 # Do test here with the proper thread flags
16953 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
16954 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
16955 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 cat >conftest.$ac_ext <<_ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 #include <sys/types.h>
16970 struct passwd *space;
16973 struct passwd **result;
16974 getpwuid_r(uid, space, buf, bufsize, result);
16979 rm -f conftest.$ac_objext
16980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16981 (eval $ac_compile) 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag"
16989 || test ! -s conftest.err'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } &&
16995 { ac_try='test -s conftest.$ac_objext'
16996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16997 (eval $ac_try) 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; }; then
17001 pgac_func_getpwuid_r_5arg=yes
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 pgac_func_getpwuid_r_5arg=no
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17010 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
17011 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
17012 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
17014 cat >>confdefs.h <<\_ACEOF
17015 #define GETPWUID_R_5ARG
17020 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
17021 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
17022 if test "${pgac_func_strerror_r_int+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 cat >conftest.$ac_ext <<_ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 #include <string.h>
17036 int strerror_r(int, char *, size_t);
17038 /* Older AIX has 'int' for the third argument so we don't test the args. */
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17047 (eval $ac_compile) 2>conftest.er1
17049 grep -v '^ *+' conftest.er1 >conftest.err
17051 cat conftest.err >&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag"
17055 || test ! -s conftest.err'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } &&
17061 { ac_try='test -s conftest.$ac_objext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 pgac_func_strerror_r_int=yes
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 pgac_func_strerror_r_int=no
17074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17076 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
17077 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
17078 if test x"$pgac_func_strerror_r_int" = xyes ; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define STRERROR_R_INT
17091 # do not use values from template file
17100 # This test makes sure that run tests work at all. Sometimes a shared
17101 # library is found by the linker, but the runtime linker can't find it.
17102 # This check should come after all modifications of compiler or linker
17103 # variables, and before any other run tests.
17104 echo "$as_me:$LINENO: checking test program" >&5
17105 echo $ECHO_N "checking test program... $ECHO_C" >&6
17106 if test "$cross_compiling" = yes; then
17107 echo "$as_me:$LINENO: result: cross-compiling" >&5
17108 echo "${ECHO_T}cross-compiling" >&6
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17116 int main() { return 0; }
17118 rm -f conftest$ac_exeext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120 (eval $ac_link) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 echo "$as_me:$LINENO: result: ok" >&5
17130 echo "${ECHO_T}ok" >&6
17132 echo "$as_me: program exited with status $ac_status" >&5
17133 echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ( exit $ac_status )
17137 echo "$as_me:$LINENO: result: failed" >&5
17138 echo "${ECHO_T}failed" >&6
17139 { { echo "$as_me:$LINENO: error:
17140 *** Could not execute a simple test program. This may be a problem
17141 *** related to locating shared libraries. Check the file 'config.log'
17142 *** for the exact reason." >&5
17143 echo "$as_me: error:
17144 *** Could not execute a simple test program. This may be a problem
17145 *** related to locating shared libraries. Check the file 'config.log'
17146 *** for the exact reason." >&2;}
17147 { (exit 1); exit 1; }; }
17149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17153 # Force use of our snprintf if system's doesn't do arg control
17154 # This feature is used by NLS
17155 if test "$enable_nls" = yes &&
17156 test $pgac_need_repl_snprintf = no &&
17157 # On Win32, libintl replaces snprintf() with its own version that
17158 # understands arg control, so we don't need our own. In fact, it
17159 # also uses macros that conflict with ours, so we _can't_ use
17161 test "$PORTNAME" != "win32"; then
17162 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
17163 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
17164 if test "${pgac_cv_printf_arg_control+set}" = set; then
17165 echo $ECHO_N "(cached) $ECHO_C" >&6
17167 if test "$cross_compiling" = yes; then
17168 pgac_cv_printf_arg_control=cross
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17177 #include <string.h>
17183 /* can it swap arguments? */
17184 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
17185 if (strcmp(buf, "4 3") != 0)
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17201 pgac_cv_printf_arg_control=yes
17203 echo "$as_me: program exited with status $ac_status" >&5
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ( exit $ac_status )
17208 pgac_cv_printf_arg_control=no
17210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17214 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
17215 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
17217 if test $pgac_cv_printf_arg_control != yes ; then
17218 pgac_need_repl_snprintf=yes
17224 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
17225 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
17226 if test "${pgac_cv_type_long_int_64+set}" = set; then
17227 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 if test "$cross_compiling" = yes; then
17230 # If cross-compiling, check the size reported by the compiler and
17231 # trust that the arithmetic works.
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17242 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17253 grep -v '^ *+' conftest.er1 >conftest.err
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 pgac_cv_type_long_int_64=yes
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17276 pgac_cv_type_long_int_64=no
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 typedef long int ac_int64;
17289 * These are globals to discourage the compiler from folding all the
17290 * arithmetic tests down to compile-time constants.
17292 ac_int64 a = 20000001;
17293 ac_int64 b = 40000005;
17295 int does_int64_work()
17299 if (sizeof(ac_int64) != 8)
17300 return 0; /* definitely not the right size */
17302 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17310 exit(! does_int64_work());
17313 rm -f conftest$ac_exeext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17315 (eval $ac_link) 2>&5
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 pgac_cv_type_long_int_64=yes
17326 echo "$as_me: program exited with status $ac_status" >&5
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ( exit $ac_status )
17331 pgac_cv_type_long_int_64=no
17333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17336 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
17337 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
17339 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
17340 if test x"$pgac_cv_type_long_int_64" = xyes ; then
17342 cat >>confdefs.h <<\_ACEOF
17343 #define HAVE_LONG_INT_64
17349 if test x"$HAVE_LONG_INT_64" = x"no" ; then
17350 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
17351 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
17352 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 if test "$cross_compiling" = yes; then
17356 # If cross-compiling, check the size reported by the compiler and
17357 # trust that the arithmetic works.
17358 cat >conftest.$ac_ext <<_ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17368 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17375 rm -f conftest.$ac_objext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377 (eval $ac_compile) 2>conftest.er1
17379 grep -v '^ *+' conftest.er1 >conftest.err
17381 cat conftest.err >&5
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
17384 { ac_try='test -z "$ac_c_werror_flag"
17385 || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; }; then
17397 pgac_cv_type_long_long_int_64=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 pgac_cv_type_long_long_int_64=no
17404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 typedef long long int ac_int64;
17415 * These are globals to discourage the compiler from folding all the
17416 * arithmetic tests down to compile-time constants.
17418 ac_int64 a = 20000001;
17419 ac_int64 b = 40000005;
17421 int does_int64_work()
17425 if (sizeof(ac_int64) != 8)
17426 return 0; /* definitely not the right size */
17428 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17436 exit(! does_int64_work());
17439 rm -f conftest$ac_exeext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17441 (eval $ac_link) 2>&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 pgac_cv_type_long_long_int_64=yes
17452 echo "$as_me: program exited with status $ac_status" >&5
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ( exit $ac_status )
17457 pgac_cv_type_long_long_int_64=no
17459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17462 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
17463 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
17465 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
17466 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
17468 cat >>confdefs.h <<\_ACEOF
17469 #define HAVE_LONG_LONG_INT_64
17478 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17486 #define INT64CONST(x) x##LL
17487 long long int foo = INT64CONST(0x1234567890123456);
17497 rm -f conftest.$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1 >conftest.err
17503 cat conftest.err >&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17520 cat >>confdefs.h <<\_ACEOF
17521 #define HAVE_LL_CONSTANTS 1
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17533 # If we found "long int" is 64 bits, assume snprintf handles it. If
17534 # we found we need to use "long long int", better check. We cope with
17535 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
17536 # work, fall back to our own snprintf emulation (which we know uses %lld).
17538 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
17539 if test $pgac_need_repl_snprintf = no; then
17540 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
17541 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
17542 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 for pgac_format in '%lld' '%qd' '%I64d'; do
17546 if test "$cross_compiling" = yes; then
17547 pgac_cv_snprintf_long_long_int_format=cross; break
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17556 typedef long long int ac_int64;
17557 #define INT64_FORMAT "$pgac_format"
17559 ac_int64 a = 20000001;
17560 ac_int64 b = 40000005;
17562 int does_int64_snprintf_work()
17567 if (sizeof(ac_int64) != 8)
17568 return 0; /* doesn't look like the right size */
17571 snprintf(buf, 100, INT64_FORMAT, c);
17572 if (strcmp(buf, "800000140000005") != 0)
17573 return 0; /* either multiply or snprintf is busted */
17577 exit(! does_int64_snprintf_work());
17580 rm -f conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
17593 echo "$as_me: program exited with status $ac_status" >&5
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17603 LONG_LONG_INT_FORMAT=''
17605 case $pgac_cv_snprintf_long_long_int_format in
17606 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
17607 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
17608 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
17609 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
17610 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
17611 *) echo "$as_me:$LINENO: result: none" >&5
17612 echo "${ECHO_T}none" >&6;;
17614 if test "$LONG_LONG_INT_FORMAT" = ""; then
17615 # Force usage of our own snprintf, since system snprintf is broken
17616 pgac_need_repl_snprintf=yes
17617 LONG_LONG_INT_FORMAT='%lld'
17620 # Here if we previously decided we needed to use our own snprintf
17621 LONG_LONG_INT_FORMAT='%lld'
17623 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
17624 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
17625 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
17627 # Here if we are not using 'long long int' at all
17628 INT64_FORMAT='"%ld"'
17629 UINT64_FORMAT='"%lu"'
17633 cat >>confdefs.h <<_ACEOF
17634 #define INT64_FORMAT $INT64_FORMAT
17639 cat >>confdefs.h <<_ACEOF
17640 #define UINT64_FORMAT $UINT64_FORMAT
17644 # Now we have checked all the reasons to replace snprintf
17645 if test $pgac_need_repl_snprintf = yes; then
17647 cat >>confdefs.h <<\_ACEOF
17648 #define USE_SNPRINTF 1
17652 "snprintf.$ac_objext" | \
17653 *" snprintf.$ac_objext" | \
17654 "snprintf.$ac_objext "* | \
17655 *" snprintf.$ac_objext "* ) ;;
17656 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
17661 # Need a #define for the size of Datum (unsigned long)
17662 echo "$as_me:$LINENO: checking for unsigned long" >&5
17663 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
17664 if test "${ac_cv_type_unsigned_long+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17677 if ((unsigned long *) 0)
17679 if (sizeof (unsigned long))
17685 rm -f conftest.$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1 >conftest.err
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try='test -z "$ac_c_werror_flag"
17695 || test ! -s conftest.err'
17696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17697 (eval $ac_try) 2>&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); }; } &&
17701 { ac_try='test -s conftest.$ac_objext'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; }; then
17707 ac_cv_type_unsigned_long=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_cv_type_unsigned_long=no
17714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17716 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
17717 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
17719 echo "$as_me:$LINENO: checking size of unsigned long" >&5
17720 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
17721 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 if test "$ac_cv_type_unsigned_long" = yes; then
17725 # The cast to unsigned long works around a bug in the HP C Compiler
17726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17728 # This bug is HP SR number 8606223364.
17729 if test "$cross_compiling" = yes; then
17730 # Depending upon the size, compute the lo and hi bounds.
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 $ac_includes_default
17741 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750 (eval $ac_compile) 2>conftest.er1
17752 grep -v '^ *+' conftest.er1 >conftest.err
17754 cat conftest.err >&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
17757 { ac_try='test -z "$ac_c_werror_flag"
17758 || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17772 cat >conftest.$ac_ext <<_ACEOF
17775 cat confdefs.h >>conftest.$ac_ext
17776 cat >>conftest.$ac_ext <<_ACEOF
17777 /* end confdefs.h. */
17778 $ac_includes_default
17782 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17789 rm -f conftest.$ac_objext
17790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17791 (eval $ac_compile) 2>conftest.er1
17793 grep -v '^ *+' conftest.er1 >conftest.err
17795 cat conftest.err >&5
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); } &&
17798 { ac_try='test -z "$ac_c_werror_flag"
17799 || test ! -s conftest.err'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } &&
17805 { ac_try='test -s conftest.$ac_objext'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; }; then
17811 ac_hi=$ac_mid; break
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 ac_lo=`expr $ac_mid + 1`
17817 if test $ac_lo -le $ac_mid; then
17821 ac_mid=`expr 2 '*' $ac_mid + 1`
17823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 $ac_includes_default
17839 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
17846 rm -f conftest.$ac_objext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17848 (eval $ac_compile) 2>conftest.er1
17850 grep -v '^ *+' conftest.er1 >conftest.err
17852 cat conftest.err >&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); } &&
17855 { ac_try='test -z "$ac_c_werror_flag"
17856 || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17870 cat >conftest.$ac_ext <<_ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17876 $ac_includes_default
17880 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
17887 rm -f conftest.$ac_objext
17888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17889 (eval $ac_compile) 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -z "$ac_c_werror_flag"
17897 || test ! -s conftest.err'
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909 ac_lo=$ac_mid; break
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17914 ac_hi=`expr '(' $ac_mid ')' - 1`
17915 if test $ac_mid -le $ac_hi; then
17919 ac_mid=`expr 2 '*' $ac_mid`
17921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17932 # Binary search between lo and hi bounds.
17933 while test "x$ac_lo" != "x$ac_hi"; do
17934 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 $ac_includes_default
17945 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
17952 rm -f conftest.$ac_objext
17953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17954 (eval $ac_compile) 2>conftest.er1
17956 grep -v '^ *+' conftest.er1 >conftest.err
17958 cat conftest.err >&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } &&
17961 { ac_try='test -z "$ac_c_werror_flag"
17962 || test ! -s conftest.err'
17963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); }; } &&
17968 { ac_try='test -s conftest.$ac_objext'
17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; }; then
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_lo=`expr '(' $ac_mid ')' + 1`
17981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17984 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17985 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
17986 See \`config.log' for more details." >&5
17987 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
17988 See \`config.log' for more details." >&2;}
17989 { (exit 1); exit 1; }; } ;;
17992 if test "$cross_compiling" = yes; then
17993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17994 See \`config.log' for more details." >&5
17995 echo "$as_me: error: cannot run test program while cross compiling
17996 See \`config.log' for more details." >&2;}
17997 { (exit 1); exit 1; }; }
17999 cat >conftest.$ac_ext <<_ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18005 $ac_includes_default
18006 long longval () { return (long) (sizeof (unsigned long)); }
18007 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
18009 #include <stdlib.h>
18014 FILE *f = fopen ("conftest.val", "w");
18017 if (((long) (sizeof (unsigned long))) < 0)
18019 long i = longval ();
18020 if (i != ((long) (sizeof (unsigned long))))
18022 fprintf (f, "%ld\n", i);
18026 unsigned long i = ulongval ();
18027 if (i != ((long) (sizeof (unsigned long))))
18029 fprintf (f, "%lu\n", i);
18031 exit (ferror (f) || fclose (f) != 0);
18037 rm -f conftest$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>&5
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_sizeof_unsigned_long=`cat conftest.val`
18050 echo "$as_me: program exited with status $ac_status" >&5
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ( exit $ac_status )
18055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
18056 See \`config.log' for more details." >&5
18057 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
18058 See \`config.log' for more details." >&2;}
18059 { (exit 1); exit 1; }; }
18061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18066 ac_cv_sizeof_unsigned_long=0
18069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
18070 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
18071 cat >>confdefs.h <<_ACEOF
18072 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
18077 # And one for the size of size_t (enables tweaks for > 32bit address space)
18078 echo "$as_me:$LINENO: checking for size_t" >&5
18079 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18080 if test "${ac_cv_type_size_t+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 cat >conftest.$ac_ext <<_ACEOF
18086 cat confdefs.h >>conftest.$ac_ext
18087 cat >>conftest.$ac_ext <<_ACEOF
18088 /* end confdefs.h. */
18089 $ac_includes_default
18095 if (sizeof (size_t))
18101 rm -f conftest.$ac_objext
18102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_cv_type_size_t=yes
18125 echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.$ac_ext >&5
18128 ac_cv_type_size_t=no
18130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18132 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18133 echo "${ECHO_T}$ac_cv_type_size_t" >&6
18135 echo "$as_me:$LINENO: checking size of size_t" >&5
18136 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18137 if test "${ac_cv_sizeof_size_t+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 if test "$ac_cv_type_size_t" = yes; then
18141 # The cast to unsigned long works around a bug in the HP C Compiler
18142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18144 # This bug is HP SR number 8606223364.
18145 if test "$cross_compiling" = yes; then
18146 # Depending upon the size, compute the lo and hi bounds.
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 $ac_includes_default
18157 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18164 rm -f conftest.$ac_objext
18165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18166 (eval $ac_compile) 2>conftest.er1
18168 grep -v '^ *+' conftest.er1 >conftest.err
18170 cat conftest.err >&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } &&
18173 { ac_try='test -z "$ac_c_werror_flag"
18174 || test ! -s conftest.err'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; } &&
18180 { ac_try='test -s conftest.$ac_objext'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18188 cat >conftest.$ac_ext <<_ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18194 $ac_includes_default
18198 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18205 rm -f conftest.$ac_objext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18207 (eval $ac_compile) 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } &&
18214 { ac_try='test -z "$ac_c_werror_flag"
18215 || test ! -s conftest.err'
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest.$ac_objext'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_hi=$ac_mid; break
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_lo=`expr $ac_mid + 1`
18233 if test $ac_lo -le $ac_mid; then
18237 ac_mid=`expr 2 '*' $ac_mid + 1`
18239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18242 echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18245 cat >conftest.$ac_ext <<_ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251 $ac_includes_default
18255 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18262 rm -f conftest.$ac_objext
18263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264 (eval $ac_compile) 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag"
18272 || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 $ac_includes_default
18296 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18303 rm -f conftest.$ac_objext
18304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18305 (eval $ac_compile) 2>conftest.er1
18307 grep -v '^ *+' conftest.er1 >conftest.err
18309 cat conftest.err >&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); } &&
18312 { ac_try='test -z "$ac_c_werror_flag"
18313 || test ! -s conftest.err'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_lo=$ac_mid; break
18327 echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_hi=`expr '(' $ac_mid ')' - 1`
18331 if test $ac_mid -le $ac_hi; then
18335 ac_mid=`expr 2 '*' $ac_mid`
18337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18348 # Binary search between lo and hi bounds.
18349 while test "x$ac_lo" != "x$ac_hi"; do
18350 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 $ac_includes_default
18361 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18368 rm -f conftest.$ac_objext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18370 (eval $ac_compile) 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_c_werror_flag"
18378 || test ! -s conftest.err'
18379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18380 (eval $ac_try) 2>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; } &&
18384 { ac_try='test -s conftest.$ac_objext'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_lo=`expr '(' $ac_mid ')' + 1`
18397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18400 ?*) ac_cv_sizeof_size_t=$ac_lo;;
18401 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18402 See \`config.log' for more details." >&5
18403 echo "$as_me: error: cannot compute sizeof (size_t), 77
18404 See \`config.log' for more details." >&2;}
18405 { (exit 1); exit 1; }; } ;;
18408 if test "$cross_compiling" = yes; then
18409 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18410 See \`config.log' for more details." >&5
18411 echo "$as_me: error: cannot run test program while cross compiling
18412 See \`config.log' for more details." >&2;}
18413 { (exit 1); exit 1; }; }
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 $ac_includes_default
18422 long longval () { return (long) (sizeof (size_t)); }
18423 unsigned long ulongval () { return (long) (sizeof (size_t)); }
18425 #include <stdlib.h>
18430 FILE *f = fopen ("conftest.val", "w");
18433 if (((long) (sizeof (size_t))) < 0)
18435 long i = longval ();
18436 if (i != ((long) (sizeof (size_t))))
18438 fprintf (f, "%ld\n", i);
18442 unsigned long i = ulongval ();
18443 if (i != ((long) (sizeof (size_t))))
18445 fprintf (f, "%lu\n", i);
18447 exit (ferror (f) || fclose (f) != 0);
18453 rm -f conftest$ac_exeext
18454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455 (eval $ac_link) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_sizeof_size_t=`cat conftest.val`
18466 echo "$as_me: program exited with status $ac_status" >&5
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 ( exit $ac_status )
18471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18472 See \`config.log' for more details." >&5
18473 echo "$as_me: error: cannot compute sizeof (size_t), 77
18474 See \`config.log' for more details." >&2;}
18475 { (exit 1); exit 1; }; }
18477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18482 ac_cv_sizeof_size_t=0
18485 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18486 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18487 cat >>confdefs.h <<_ACEOF
18488 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18493 # Determine memory alignment requirements for the basic C data types.
18495 echo "$as_me:$LINENO: checking for short" >&5
18496 echo $ECHO_N "checking for short... $ECHO_C" >&6
18497 if test "${ac_cv_type_short+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18506 $ac_includes_default
18512 if (sizeof (short))
18518 rm -f conftest.$ac_objext
18519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18520 (eval $ac_compile) 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag"
18528 || test ! -s conftest.err'
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest.$ac_objext'
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_cv_type_short=yes
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_cv_type_short=no
18547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18549 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18550 echo "${ECHO_T}$ac_cv_type_short" >&6
18552 echo "$as_me:$LINENO: checking alignment of short" >&5
18553 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
18554 if test "${pgac_cv_alignof_short+set}" = set; then
18555 echo $ECHO_N "(cached) $ECHO_C" >&6
18557 if test "$ac_cv_type_short" = yes; then
18558 if test "$cross_compiling" = yes; then
18559 # Depending upon the size, compute the lo and hi bounds.
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 $ac_includes_default
18567 struct { char filler; short field; } pgac_struct;
18571 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18578 rm -f conftest.$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1 >conftest.err
18584 cat conftest.err >&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18602 cat >conftest.$ac_ext <<_ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 $ac_includes_default
18609 struct { char filler; short field; } pgac_struct;
18613 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18620 rm -f conftest.$ac_objext
18621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18622 (eval $ac_compile) 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
18629 { ac_try='test -z "$ac_c_werror_flag"
18630 || test ! -s conftest.err'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; }; then
18642 ac_hi=$ac_mid; break
18644 echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18647 ac_lo=`expr $ac_mid + 1`
18648 if test $ac_lo -le $ac_mid; then
18652 ac_mid=`expr 2 '*' $ac_mid + 1`
18654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 $ac_includes_default
18667 struct { char filler; short field; } pgac_struct;
18671 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
18678 rm -f conftest.$ac_objext
18679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680 (eval $ac_compile) 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } &&
18687 { ac_try='test -z "$ac_c_werror_flag"
18688 || test ! -s conftest.err'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; } &&
18694 { ac_try='test -s conftest.$ac_objext'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; }; then
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 $ac_includes_default
18709 struct { char filler; short field; } pgac_struct;
18713 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
18720 rm -f conftest.$ac_objext
18721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18722 (eval $ac_compile) 2>conftest.er1
18724 grep -v '^ *+' conftest.er1 >conftest.err
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); } &&
18729 { ac_try='test -z "$ac_c_werror_flag"
18730 || test ! -s conftest.err'
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18738 (eval $ac_try) 2>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); }; }; then
18742 ac_lo=$ac_mid; break
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 ac_hi=`expr '(' $ac_mid ')' - 1`
18748 if test $ac_mid -le $ac_hi; then
18752 ac_mid=`expr 2 '*' $ac_mid`
18754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18765 # Binary search between lo and hi bounds.
18766 while test "x$ac_lo" != "x$ac_hi"; do
18767 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18774 $ac_includes_default
18775 struct { char filler; short field; } pgac_struct;
18779 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
18786 rm -f conftest.$ac_objext
18787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18788 (eval $ac_compile) 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } &&
18795 { ac_try='test -z "$ac_c_werror_flag"
18796 || test ! -s conftest.err'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest.$ac_objext'
18803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18804 (eval $ac_try) 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; }; then
18810 echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 ac_lo=`expr '(' $ac_mid ')' + 1`
18815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 ?*) pgac_cv_alignof_short=$ac_lo;;
18819 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18820 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18821 { (exit 1); exit 1; }; } ;;
18824 if test "$cross_compiling" = yes; then
18825 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18826 See \`config.log' for more details." >&5
18827 echo "$as_me: error: cannot run test program while cross compiling
18828 See \`config.log' for more details." >&2;}
18829 { (exit 1); exit 1; }; }
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18838 struct { char filler; short field; } pgac_struct;
18839 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18840 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
18842 #include <stdlib.h>
18847 FILE *f = fopen ("conftest.val", "w");
18850 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
18852 long i = longval ();
18853 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18855 fprintf (f, "%ld\n", i);
18859 unsigned long i = ulongval ();
18860 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
18862 fprintf (f, "%lu\n", i);
18864 exit (ferror (f) || fclose (f) != 0);
18870 rm -f conftest$ac_exeext
18871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 pgac_cv_alignof_short=`cat conftest.val`
18883 echo "$as_me: program exited with status $ac_status" >&5
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ( exit $ac_status )
18888 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
18889 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
18890 { (exit 1); exit 1; }; }
18892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18897 pgac_cv_alignof_short=0
18900 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
18901 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
18902 cat >>confdefs.h <<_ACEOF
18903 #define ALIGNOF_SHORT $pgac_cv_alignof_short
18907 echo "$as_me:$LINENO: checking for int" >&5
18908 echo $ECHO_N "checking for int... $ECHO_C" >&6
18909 if test "${ac_cv_type_int+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 cat >conftest.$ac_ext <<_ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 $ac_includes_default
18930 rm -f conftest.$ac_objext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932 (eval $ac_compile) 2>conftest.er1
18934 grep -v '^ *+' conftest.er1 >conftest.err
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } &&
18939 { ac_try='test -z "$ac_c_werror_flag"
18940 || test ! -s conftest.err'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; } &&
18946 { ac_try='test -s conftest.$ac_objext'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; }; then
18954 echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18961 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18962 echo "${ECHO_T}$ac_cv_type_int" >&6
18964 echo "$as_me:$LINENO: checking alignment of int" >&5
18965 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
18966 if test "${pgac_cv_alignof_int+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 if test "$ac_cv_type_int" = yes; then
18970 if test "$cross_compiling" = yes; then
18971 # Depending upon the size, compute the lo and hi bounds.
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 $ac_includes_default
18979 struct { char filler; int field; } pgac_struct;
18983 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
18990 rm -f conftest.$ac_objext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18992 (eval $ac_compile) 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag"
19000 || test ! -s conftest.err'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest.$ac_objext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 $ac_includes_default
19021 struct { char filler; int field; } pgac_struct;
19025 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19032 rm -f conftest.$ac_objext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>conftest.er1
19036 grep -v '^ *+' conftest.er1 >conftest.err
19038 cat conftest.err >&5
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); } &&
19041 { ac_try='test -z "$ac_c_werror_flag"
19042 || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_hi=$ac_mid; break
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_lo=`expr $ac_mid + 1`
19060 if test $ac_lo -le $ac_mid; then
19064 ac_mid=`expr 2 '*' $ac_mid + 1`
19066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19069 echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 $ac_includes_default
19079 struct { char filler; int field; } pgac_struct;
19083 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19090 rm -f conftest.$ac_objext
19091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19092 (eval $ac_compile) 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } &&
19099 { ac_try='test -z "$ac_c_werror_flag"
19100 || test ! -s conftest.err'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19120 $ac_includes_default
19121 struct { char filler; int field; } pgac_struct;
19125 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19132 rm -f conftest.$ac_objext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19134 (eval $ac_compile) 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag"
19142 || test ! -s conftest.err'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest.$ac_objext'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_lo=$ac_mid; break
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_hi=`expr '(' $ac_mid ')' - 1`
19160 if test $ac_mid -le $ac_hi; then
19164 ac_mid=`expr 2 '*' $ac_mid`
19166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19177 # Binary search between lo and hi bounds.
19178 while test "x$ac_lo" != "x$ac_hi"; do
19179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 $ac_includes_default
19187 struct { char filler; int field; } pgac_struct;
19191 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19198 rm -f conftest.$ac_objext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19200 (eval $ac_compile) 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag"
19208 || test ! -s conftest.err'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_lo=`expr '(' $ac_mid ')' + 1`
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230 ?*) pgac_cv_alignof_int=$ac_lo;;
19231 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19232 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19233 { (exit 1); exit 1; }; } ;;
19236 if test "$cross_compiling" = yes; then
19237 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19238 See \`config.log' for more details." >&5
19239 echo "$as_me: error: cannot run test program while cross compiling
19240 See \`config.log' for more details." >&2;}
19241 { (exit 1); exit 1; }; }
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 $ac_includes_default
19250 struct { char filler; int field; } pgac_struct;
19251 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19252 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19254 #include <stdlib.h>
19259 FILE *f = fopen ("conftest.val", "w");
19262 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19264 long i = longval ();
19265 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19267 fprintf (f, "%ld\n", i);
19271 unsigned long i = ulongval ();
19272 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19274 fprintf (f, "%lu\n", i);
19276 exit (ferror (f) || fclose (f) != 0);
19282 rm -f conftest$ac_exeext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19284 (eval $ac_link) 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 pgac_cv_alignof_int=`cat conftest.val`
19295 echo "$as_me: program exited with status $ac_status" >&5
19296 echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19299 ( exit $ac_status )
19300 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
19301 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
19302 { (exit 1); exit 1; }; }
19304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19309 pgac_cv_alignof_int=0
19312 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
19313 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
19314 cat >>confdefs.h <<_ACEOF
19315 #define ALIGNOF_INT $pgac_cv_alignof_int
19319 echo "$as_me:$LINENO: checking for long" >&5
19320 echo $ECHO_N "checking for long... $ECHO_C" >&6
19321 if test "${ac_cv_type_long+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 $ac_includes_default
19342 rm -f conftest.$ac_objext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344 (eval $ac_compile) 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag"
19352 || test ! -s conftest.err'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; } &&
19358 { ac_try='test -s conftest.$ac_objext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 ac_cv_type_long=yes
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19373 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19374 echo "${ECHO_T}$ac_cv_type_long" >&6
19376 echo "$as_me:$LINENO: checking alignment of long" >&5
19377 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
19378 if test "${pgac_cv_alignof_long+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19381 if test "$ac_cv_type_long" = yes; then
19382 if test "$cross_compiling" = yes; then
19383 # Depending upon the size, compute the lo and hi bounds.
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19390 $ac_includes_default
19391 struct { char filler; long field; } pgac_struct;
19395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19402 rm -f conftest.$ac_objext
19403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19404 (eval $ac_compile) 2>conftest.er1
19406 grep -v '^ *+' conftest.er1 >conftest.err
19408 cat conftest.err >&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
19411 { ac_try='test -z "$ac_c_werror_flag"
19412 || test ! -s conftest.err'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; } &&
19418 { ac_try='test -s conftest.$ac_objext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 $ac_includes_default
19433 struct { char filler; long field; } pgac_struct;
19437 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19444 rm -f conftest.$ac_objext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_hi=$ac_mid; break
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_lo=`expr $ac_mid + 1`
19472 if test $ac_lo -le $ac_mid; then
19476 ac_mid=`expr 2 '*' $ac_mid + 1`
19478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19481 echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 $ac_includes_default
19491 struct { char filler; long field; } pgac_struct;
19495 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19502 rm -f conftest.$ac_objext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19504 (eval $ac_compile) 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest.$ac_objext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19532 $ac_includes_default
19533 struct { char filler; long field; } pgac_struct;
19537 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19544 rm -f conftest.$ac_objext
19545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19546 (eval $ac_compile) 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } &&
19553 { ac_try='test -z "$ac_c_werror_flag"
19554 || test ! -s conftest.err'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; } &&
19560 { ac_try='test -s conftest.$ac_objext'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_lo=$ac_mid; break
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_hi=`expr '(' $ac_mid ')' - 1`
19572 if test $ac_mid -le $ac_hi; then
19576 ac_mid=`expr 2 '*' $ac_mid`
19578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19589 # Binary search between lo and hi bounds.
19590 while test "x$ac_lo" != "x$ac_hi"; do
19591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 $ac_includes_default
19599 struct { char filler; long field; } pgac_struct;
19603 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19610 rm -f conftest.$ac_objext
19611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19612 (eval $ac_compile) 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -z "$ac_c_werror_flag"
19620 || test ! -s conftest.err'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; } &&
19626 { ac_try='test -s conftest.$ac_objext'
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; }; then
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_lo=`expr '(' $ac_mid ')' + 1`
19639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19642 ?*) pgac_cv_alignof_long=$ac_lo;;
19643 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19644 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19645 { (exit 1); exit 1; }; } ;;
19648 if test "$cross_compiling" = yes; then
19649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19650 See \`config.log' for more details." >&5
19651 echo "$as_me: error: cannot run test program while cross compiling
19652 See \`config.log' for more details." >&2;}
19653 { (exit 1); exit 1; }; }
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 $ac_includes_default
19662 struct { char filler; long field; } pgac_struct;
19663 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19664 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
19666 #include <stdlib.h>
19671 FILE *f = fopen ("conftest.val", "w");
19674 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
19676 long i = longval ();
19677 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19679 fprintf (f, "%ld\n", i);
19683 unsigned long i = ulongval ();
19684 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
19686 fprintf (f, "%lu\n", i);
19688 exit (ferror (f) || fclose (f) != 0);
19694 rm -f conftest$ac_exeext
19695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19696 (eval $ac_link) 2>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 pgac_cv_alignof_long=`cat conftest.val`
19707 echo "$as_me: program exited with status $ac_status" >&5
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ( exit $ac_status )
19712 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
19713 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
19714 { (exit 1); exit 1; }; }
19716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19721 pgac_cv_alignof_long=0
19724 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
19725 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
19726 cat >>confdefs.h <<_ACEOF
19727 #define ALIGNOF_LONG $pgac_cv_alignof_long
19731 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
19732 echo "$as_me:$LINENO: checking for long long int" >&5
19733 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
19734 if test "${ac_cv_type_long_long_int+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 $ac_includes_default
19747 if ((long long int *) 0)
19749 if (sizeof (long long int))
19755 rm -f conftest.$ac_objext
19756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19757 (eval $ac_compile) 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
19764 { ac_try='test -z "$ac_c_werror_flag"
19765 || test ! -s conftest.err'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest.$ac_objext'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; }; then
19777 ac_cv_type_long_long_int=yes
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19782 ac_cv_type_long_long_int=no
19784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19786 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
19787 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
19789 echo "$as_me:$LINENO: checking alignment of long long int" >&5
19790 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
19791 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
19792 echo $ECHO_N "(cached) $ECHO_C" >&6
19794 if test "$ac_cv_type_long_long_int" = yes; then
19795 if test "$cross_compiling" = yes; then
19796 # Depending upon the size, compute the lo and hi bounds.
19797 cat >conftest.$ac_ext <<_ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h. */
19803 $ac_includes_default
19804 struct { char filler; long long int field; } pgac_struct;
19808 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
19815 rm -f conftest.$ac_objext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817 (eval $ac_compile) 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_c_werror_flag"
19825 || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 $ac_includes_default
19846 struct { char filler; long long int field; } pgac_struct;
19850 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
19857 rm -f conftest.$ac_objext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19859 (eval $ac_compile) 2>conftest.er1
19861 grep -v '^ *+' conftest.er1 >conftest.err
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
19866 { ac_try='test -z "$ac_c_werror_flag"
19867 || test ! -s conftest.err'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } &&
19873 { ac_try='test -s conftest.$ac_objext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_hi=$ac_mid; break
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_lo=`expr $ac_mid + 1`
19885 if test $ac_lo -le $ac_mid; then
19889 ac_mid=`expr 2 '*' $ac_mid + 1`
19891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19897 cat >conftest.$ac_ext <<_ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h. */
19903 $ac_includes_default
19904 struct { char filler; long long int field; } pgac_struct;
19908 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
19915 rm -f conftest.$ac_objext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19917 (eval $ac_compile) 2>conftest.er1
19919 grep -v '^ *+' conftest.er1 >conftest.err
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19939 cat >conftest.$ac_ext <<_ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 $ac_includes_default
19946 struct { char filler; long long int field; } pgac_struct;
19950 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_lo=$ac_mid; break
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_hi=`expr '(' $ac_mid ')' - 1`
19985 if test $ac_mid -le $ac_hi; then
19989 ac_mid=`expr 2 '*' $ac_mid`
19991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20002 # Binary search between lo and hi bounds.
20003 while test "x$ac_lo" != "x$ac_hi"; do
20004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 $ac_includes_default
20012 struct { char filler; long long int field; } pgac_struct;
20016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20023 rm -f conftest.$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag"
20033 || test ! -s conftest.err'
20034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; }; then
20047 echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_lo=`expr '(' $ac_mid ')' + 1`
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20055 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
20056 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20057 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20058 { (exit 1); exit 1; }; } ;;
20061 if test "$cross_compiling" = yes; then
20062 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20063 See \`config.log' for more details." >&5
20064 echo "$as_me: error: cannot run test program while cross compiling
20065 See \`config.log' for more details." >&2;}
20066 { (exit 1); exit 1; }; }
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 $ac_includes_default
20075 struct { char filler; long long int field; } pgac_struct;
20076 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20077 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20079 #include <stdlib.h>
20084 FILE *f = fopen ("conftest.val", "w");
20087 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20089 long i = longval ();
20090 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20092 fprintf (f, "%ld\n", i);
20096 unsigned long i = ulongval ();
20097 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20099 fprintf (f, "%lu\n", i);
20101 exit (ferror (f) || fclose (f) != 0);
20107 rm -f conftest$ac_exeext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20109 (eval $ac_link) 2>&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114 (eval $ac_try) 2>&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; }; then
20118 pgac_cv_alignof_long_long_int=`cat conftest.val`
20120 echo "$as_me: program exited with status $ac_status" >&5
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 ( exit $ac_status )
20125 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
20126 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
20127 { (exit 1); exit 1; }; }
20129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20134 pgac_cv_alignof_long_long_int=0
20137 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
20138 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
20139 cat >>confdefs.h <<_ACEOF
20140 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
20145 echo "$as_me:$LINENO: checking for double" >&5
20146 echo $ECHO_N "checking for double... $ECHO_C" >&6
20147 if test "${ac_cv_type_double+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 $ac_includes_default
20162 if (sizeof (double))
20168 rm -f conftest.$ac_objext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170 (eval $ac_compile) 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } &&
20177 { ac_try='test -z "$ac_c_werror_flag"
20178 || test ! -s conftest.err'
20179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180 (eval $ac_try) 2>&5
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); }; } &&
20184 { ac_try='test -s conftest.$ac_objext'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; }; then
20190 ac_cv_type_double=yes
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_type_double=no
20197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20199 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
20200 echo "${ECHO_T}$ac_cv_type_double" >&6
20202 echo "$as_me:$LINENO: checking alignment of double" >&5
20203 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
20204 if test "${pgac_cv_alignof_double+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 if test "$ac_cv_type_double" = yes; then
20208 if test "$cross_compiling" = yes; then
20209 # Depending upon the size, compute the lo and hi bounds.
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 $ac_includes_default
20217 struct { char filler; double field; } pgac_struct;
20221 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
20228 rm -f conftest.$ac_objext
20229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20232 grep -v '^ *+' conftest.er1 >conftest.err
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag"
20238 || test ! -s conftest.err'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest.$ac_objext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20258 $ac_includes_default
20259 struct { char filler; double field; } pgac_struct;
20263 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20270 rm -f conftest.$ac_objext
20271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20272 (eval $ac_compile) 2>conftest.er1
20274 grep -v '^ *+' conftest.er1 >conftest.err
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -z "$ac_c_werror_flag"
20280 || test ! -s conftest.err'
20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; } &&
20286 { ac_try='test -s conftest.$ac_objext'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_hi=$ac_mid; break
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_lo=`expr $ac_mid + 1`
20298 if test $ac_lo -le $ac_mid; then
20302 ac_mid=`expr 2 '*' $ac_mid + 1`
20304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20307 echo "$as_me: failed program was:" >&5
20308 sed 's/^/| /' conftest.$ac_ext >&5
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 $ac_includes_default
20317 struct { char filler; double field; } pgac_struct;
20321 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
20328 rm -f conftest.$ac_objext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20330 (eval $ac_compile) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } &&
20337 { ac_try='test -z "$ac_c_werror_flag"
20338 || test ! -s conftest.err'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; } &&
20344 { ac_try='test -s conftest.$ac_objext'
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20352 cat >conftest.$ac_ext <<_ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 $ac_includes_default
20359 struct { char filler; double field; } pgac_struct;
20363 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
20370 rm -f conftest.$ac_objext
20371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>conftest.er1
20374 grep -v '^ *+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
20379 { ac_try='test -z "$ac_c_werror_flag"
20380 || test ! -s conftest.err'
20381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382 (eval $ac_try) 2>&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); }; } &&
20386 { ac_try='test -s conftest.$ac_objext'
20387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388 (eval $ac_try) 2>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); }; }; then
20392 ac_lo=$ac_mid; break
20394 echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20397 ac_hi=`expr '(' $ac_mid ')' - 1`
20398 if test $ac_mid -le $ac_hi; then
20402 ac_mid=`expr 2 '*' $ac_mid`
20404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20407 echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20415 # Binary search between lo and hi bounds.
20416 while test "x$ac_lo" != "x$ac_hi"; do
20417 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 $ac_includes_default
20425 struct { char filler; double field; } pgac_struct;
20429 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
20436 rm -f conftest.$ac_objext
20437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20438 (eval $ac_compile) 2>conftest.er1
20440 grep -v '^ *+' conftest.er1 >conftest.err
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag"
20446 || test ! -s conftest.err'
20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448 (eval $ac_try) 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest.$ac_objext'
20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454 (eval $ac_try) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); }; }; then
20460 echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.$ac_ext >&5
20463 ac_lo=`expr '(' $ac_mid ')' + 1`
20465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20468 ?*) pgac_cv_alignof_double=$ac_lo;;
20469 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20470 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20471 { (exit 1); exit 1; }; } ;;
20474 if test "$cross_compiling" = yes; then
20475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20476 See \`config.log' for more details." >&5
20477 echo "$as_me: error: cannot run test program while cross compiling
20478 See \`config.log' for more details." >&2;}
20479 { (exit 1); exit 1; }; }
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 $ac_includes_default
20488 struct { char filler; double field; } pgac_struct;
20489 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20490 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
20492 #include <stdlib.h>
20497 FILE *f = fopen ("conftest.val", "w");
20500 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
20502 long i = longval ();
20503 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20505 fprintf (f, "%ld\n", i);
20509 unsigned long i = ulongval ();
20510 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
20512 fprintf (f, "%lu\n", i);
20514 exit (ferror (f) || fclose (f) != 0);
20520 rm -f conftest$ac_exeext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20522 (eval $ac_link) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527 (eval $ac_try) 2>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); }; }; then
20531 pgac_cv_alignof_double=`cat conftest.val`
20533 echo "$as_me: program exited with status $ac_status" >&5
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ( exit $ac_status )
20538 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
20539 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
20540 { (exit 1); exit 1; }; }
20542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20547 pgac_cv_alignof_double=0
20550 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
20551 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
20552 cat >>confdefs.h <<_ACEOF
20553 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
20558 # Compute maximum alignment of any basic type.
20559 # We assume long's alignment is at least as strong as char, short, or int;
20560 # but we must check long long (if it exists) and double.
20562 MAX_ALIGNOF=$pgac_cv_alignof_long
20563 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
20564 MAX_ALIGNOF=$pgac_cv_alignof_double
20566 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
20567 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
20570 cat >>confdefs.h <<_ACEOF
20571 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
20576 # Some platforms predefine the types int8, int16, etc. Only check
20577 # a (hopefully) representative subset.
20578 echo "$as_me:$LINENO: checking for int8" >&5
20579 echo $ECHO_N "checking for int8... $ECHO_C" >&6
20580 if test "${ac_cv_type_int8+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20583 cat >conftest.$ac_ext <<_ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h. */
20590 #ifdef HAVE_SUPPORTDEFS_H
20591 #include <SupportDefs.h>
20605 rm -f conftest.$ac_objext
20606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20607 (eval $ac_compile) 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
20614 { ac_try='test -z "$ac_c_werror_flag"
20615 || test ! -s conftest.err'
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 ac_cv_type_int8=yes
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20636 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
20637 echo "${ECHO_T}$ac_cv_type_int8" >&6
20638 if test $ac_cv_type_int8 = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_INT8 1
20646 echo "$as_me:$LINENO: checking for uint8" >&5
20647 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
20648 if test "${ac_cv_type_uint8+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 #ifdef HAVE_SUPPORTDEFS_H
20659 #include <SupportDefs.h>
20667 if (sizeof (uint8))
20673 rm -f conftest.$ac_objext
20674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20675 (eval $ac_compile) 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } &&
20682 { ac_try='test -z "$ac_c_werror_flag"
20683 || test ! -s conftest.err'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; } &&
20689 { ac_try='test -s conftest.$ac_objext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_type_uint8=yes
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 ac_cv_type_uint8=no
20702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
20705 echo "${ECHO_T}$ac_cv_type_uint8" >&6
20706 if test $ac_cv_type_uint8 = yes; then
20708 cat >>confdefs.h <<_ACEOF
20709 #define HAVE_UINT8 1
20714 echo "$as_me:$LINENO: checking for int64" >&5
20715 echo $ECHO_N "checking for int64... $ECHO_C" >&6
20716 if test "${ac_cv_type_int64+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 cat >conftest.$ac_ext <<_ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20726 #ifdef HAVE_SUPPORTDEFS_H
20727 #include <SupportDefs.h>
20735 if (sizeof (int64))
20741 rm -f conftest.$ac_objext
20742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20743 (eval $ac_compile) 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } &&
20750 { ac_try='test -z "$ac_c_werror_flag"
20751 || test ! -s conftest.err'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest.$ac_objext'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 ac_cv_type_int64=yes
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_cv_type_int64=no
20770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20772 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
20773 echo "${ECHO_T}$ac_cv_type_int64" >&6
20774 if test $ac_cv_type_int64 = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define HAVE_INT64 1
20782 echo "$as_me:$LINENO: checking for uint64" >&5
20783 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
20784 if test "${ac_cv_type_uint64+set}" = set; then
20785 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20794 #ifdef HAVE_SUPPORTDEFS_H
20795 #include <SupportDefs.h>
20803 if (sizeof (uint64))
20809 rm -f conftest.$ac_objext
20810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20811 (eval $ac_compile) 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
20818 { ac_try='test -z "$ac_c_werror_flag"
20819 || test ! -s conftest.err'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; } &&
20825 { ac_try='test -s conftest.$ac_objext'
20826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827 (eval $ac_try) 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_cv_type_uint64=yes
20833 echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_type_uint64=no
20838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
20841 echo "${ECHO_T}$ac_cv_type_uint64" >&6
20842 if test $ac_cv_type_uint64 = yes; then
20844 cat >>confdefs.h <<_ACEOF
20845 #define HAVE_UINT64 1
20852 # We also check for sig_atomic_t, which *should* be defined per ANSI
20853 # C, but is missing on some old platforms.
20854 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
20855 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
20856 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 cat >conftest.$ac_ext <<_ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h. */
20865 #include <signal.h>
20870 if ((sig_atomic_t *) 0)
20872 if (sizeof (sig_atomic_t))
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880 (eval $ac_compile) 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
20887 { ac_try='test -z "$ac_c_werror_flag"
20888 || test ! -s conftest.err'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_type_sig_atomic_t=yes
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_type_sig_atomic_t=no
20907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20909 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
20910 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
20911 if test $ac_cv_type_sig_atomic_t = yes; then
20913 cat >>confdefs.h <<_ACEOF
20914 #define HAVE_SIG_ATOMIC_T 1
20922 if test x"$template" != x"win32"
20924 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
20925 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
20926 if test "${pgac_cv_func_posix_signals+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 #include <signal.h>
20940 struct sigaction act, oact;
20941 sigemptyset(&act.sa_mask);
20942 act.sa_flags = SA_RESTART;
20943 sigaction(0, &act, &oact);
20948 rm -f conftest.$ac_objext conftest$ac_exeext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20950 (eval $ac_link) 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } &&
20957 { ac_try='test -z "$ac_c_werror_flag"
20958 || test ! -s conftest.err'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest$ac_exeext'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 pgac_cv_func_posix_signals=yes
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20975 pgac_cv_func_posix_signals=no
20977 rm -f conftest.err conftest.$ac_objext \
20978 conftest$ac_exeext conftest.$ac_ext
20980 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
20981 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
20982 if test x"$pgac_cv_func_posix_signals" = xyes ; then
20984 cat >>confdefs.h <<\_ACEOF
20985 #define HAVE_POSIX_SIGNALS
20989 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
20991 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
20992 { { echo "$as_me:$LINENO: error:
20993 *** Thread-safety requires POSIX signals, which are not supported by your
20994 *** operating system.
20996 echo "$as_me: error:
20997 *** Thread-safety requires POSIX signals, which are not supported by your
20998 *** operating system.
21000 { (exit 1); exit 1; }; }
21004 if test $ac_cv_func_fseeko = yes; then
21005 # Check whether --enable-largefile or --disable-largefile was given.
21006 if test "${enable_largefile+set}" = set; then
21007 enableval="$enable_largefile"
21010 if test "$enable_largefile" != no; then
21012 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
21013 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
21014 if test "${ac_cv_sys_largefile_CC+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 ac_cv_sys_largefile_CC=no
21018 if test "$GCC" != yes; then
21021 # IRIX 6.2 and later do not support large files by default,
21022 # so use the C compiler's -n32 option if that helps.
21023 cat >conftest.$ac_ext <<_ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21029 #include <sys/types.h>
21030 /* Check that off_t can represent 2**63 - 1 correctly.
21031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21032 since some C++ compilers masquerading as C compilers
21033 incorrectly reject 9223372036854775807. */
21034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21036 && LARGE_OFF_T % 2147483647 == 1)
21046 rm -f conftest.$ac_objext
21047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21048 (eval $ac_compile) 2>conftest.er1
21050 grep -v '^ *+' conftest.er1 >conftest.err
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); } &&
21055 { ac_try='test -z "$ac_c_werror_flag"
21056 || test ! -s conftest.err'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; } &&
21062 { ac_try='test -s conftest.$ac_objext'
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21074 rm -f conftest.err conftest.$ac_objext
21076 rm -f conftest.$ac_objext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21078 (eval $ac_compile) 2>conftest.er1
21080 grep -v '^ *+' conftest.er1 >conftest.err
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_c_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest.$ac_objext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_sys_largefile_CC=' -n32'; break
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21104 rm -f conftest.err conftest.$ac_objext
21108 rm -f conftest.$ac_ext
21111 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
21112 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
21113 if test "$ac_cv_sys_largefile_CC" != no; then
21114 CC=$CC$ac_cv_sys_largefile_CC
21117 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21118 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21119 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 ac_cv_sys_file_offset_bits=no
21124 cat >conftest.$ac_ext <<_ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21130 #include <sys/types.h>
21131 /* Check that off_t can represent 2**63 - 1 correctly.
21132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21133 since some C++ compilers masquerading as C compilers
21134 incorrectly reject 9223372036854775807. */
21135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21137 && LARGE_OFF_T % 2147483647 == 1)
21147 rm -f conftest.$ac_objext
21148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21149 (eval $ac_compile) 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } &&
21156 { ac_try='test -z "$ac_c_werror_flag"
21157 || test ! -s conftest.err'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; } &&
21163 { ac_try='test -s conftest.$ac_objext'
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; }; then
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 #define _FILE_OFFSET_BITS 64
21183 #include <sys/types.h>
21184 /* Check that off_t can represent 2**63 - 1 correctly.
21185 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21186 since some C++ compilers masquerading as C compilers
21187 incorrectly reject 9223372036854775807. */
21188 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21189 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21190 && LARGE_OFF_T % 2147483647 == 1)
21200 rm -f conftest.$ac_objext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202 (eval $ac_compile) 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_c_werror_flag"
21210 || test ! -s conftest.err'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest.$ac_objext'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 ac_cv_sys_file_offset_bits=64; break
21224 echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21233 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21234 if test "$ac_cv_sys_file_offset_bits" != no; then
21236 cat >>confdefs.h <<_ACEOF
21237 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21242 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21243 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21244 if test "${ac_cv_sys_large_files+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21248 ac_cv_sys_large_files=no
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <sys/types.h>
21256 /* Check that off_t can represent 2**63 - 1 correctly.
21257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21258 since some C++ compilers masquerading as C compilers
21259 incorrectly reject 9223372036854775807. */
21260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21262 && LARGE_OFF_T % 2147483647 == 1)
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag"
21282 || test ! -s conftest.err'
21283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21284 (eval $ac_try) 2>&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); }; } &&
21288 { ac_try='test -s conftest.$ac_objext'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; }; then
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21301 cat >conftest.$ac_ext <<_ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 #define _LARGE_FILES 1
21308 #include <sys/types.h>
21309 /* Check that off_t can represent 2**63 - 1 correctly.
21310 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21311 since some C++ compilers masquerading as C compilers
21312 incorrectly reject 9223372036854775807. */
21313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21315 && LARGE_OFF_T % 2147483647 == 1)
21325 rm -f conftest.$ac_objext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21327 (eval $ac_compile) 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } &&
21334 { ac_try='test -z "$ac_c_werror_flag"
21335 || test ! -s conftest.err'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest.$ac_objext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_sys_large_files=1; break
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21357 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21358 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21359 if test "$ac_cv_sys_large_files" != no; then
21361 cat >>confdefs.h <<_ACEOF
21362 #define _LARGE_FILES $ac_cv_sys_large_files
21371 # SunOS doesn't handle negative byte comparisons properly with +/- return
21372 echo "$as_me:$LINENO: checking for working memcmp" >&5
21373 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21374 if test "${ac_cv_func_memcmp_working+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 if test "$cross_compiling" = yes; then
21378 ac_cv_func_memcmp_working=no
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21391 /* Some versions of memcmp are not 8-bit clean. */
21392 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21393 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21396 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21397 or more and with at least one buffer not starting on a 4-byte boundary.
21398 William Lewis provided this test program. */
21403 for (i = 0; i < 4; i++)
21407 strcpy (a, "--------01111111");
21408 strcpy (b, "--------10000000");
21409 if (memcmp (a, b, 16) >= 0)
21419 rm -f conftest$ac_exeext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21421 (eval $ac_link) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_func_memcmp_working=yes
21432 echo "$as_me: program exited with status $ac_status" >&5
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ( exit $ac_status )
21437 ac_cv_func_memcmp_working=no
21439 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21442 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21443 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21444 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21445 "memcmp.$ac_objext" | \
21446 *" memcmp.$ac_objext" | \
21447 "memcmp.$ac_objext "* | \
21448 *" memcmp.$ac_objext "* ) ;;
21449 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21455 # Select semaphore implementation type.
21456 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define USE_NAMED_POSIX_SEMAPHORES 1
21462 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21464 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
21466 cat >>confdefs.h <<\_ACEOF
21467 #define USE_UNNAMED_POSIX_SEMAPHORES 1
21470 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
21473 cat >>confdefs.h <<\_ACEOF
21474 #define USE_SYSV_SEMAPHORES 1
21477 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
21482 # Select shared-memory implementation type.
21484 cat >>confdefs.h <<\_ACEOF
21485 #define USE_SYSV_SHARED_MEMORY 1
21488 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
21491 if test "$enable_nls" = yes ; then
21493 echo "$as_me:$LINENO: checking for library containing gettext" >&5
21494 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
21495 if test "${ac_cv_search_gettext+set}" = set; then
21496 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 ac_func_search_save_LIBS=$LIBS
21499 ac_cv_search_gettext=no
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21507 /* Override any gcc2 internal prototype to avoid an error. */
21511 /* We use char because int might match the return type of a gcc2
21512 builtin and then its argument prototype would still apply. */
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21524 (eval $ac_link) 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
21531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest$ac_exeext'
21539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 ac_cv_search_gettext="none required"
21546 echo "$as_me: failed program was:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21550 rm -f conftest.err conftest.$ac_objext \
21551 conftest$ac_exeext conftest.$ac_ext
21552 if test "$ac_cv_search_gettext" = no; then
21553 for ac_lib in intl; do
21554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21562 /* Override any gcc2 internal prototype to avoid an error. */
21566 /* We use char because int might match the return type of a gcc2
21567 builtin and then its argument prototype would still apply. */
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21579 (eval $ac_link) 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } &&
21586 { ac_try='test -z "$ac_c_werror_flag"
21587 || test ! -s conftest.err'
21588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; } &&
21593 { ac_try='test -s conftest$ac_exeext'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 ac_cv_search_gettext="-l$ac_lib"
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21606 rm -f conftest.err conftest.$ac_objext \
21607 conftest$ac_exeext conftest.$ac_ext
21610 LIBS=$ac_func_search_save_LIBS
21612 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
21613 echo "${ECHO_T}$ac_cv_search_gettext" >&6
21614 if test "$ac_cv_search_gettext" != no; then
21615 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
21618 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
21619 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
21620 { (exit 1); exit 1; }; }
21623 if test "${ac_cv_header_libintl_h+set}" = set; then
21624 echo "$as_me:$LINENO: checking for libintl.h" >&5
21625 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21626 if test "${ac_cv_header_libintl_h+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21630 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21632 # Is the header compilable?
21633 echo "$as_me:$LINENO: checking libintl.h usability" >&5
21634 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
21635 cat >conftest.$ac_ext <<_ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 $ac_includes_default
21642 #include <libintl.h>
21644 rm -f conftest.$ac_objext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21646 (eval $ac_compile) 2>conftest.er1
21648 grep -v '^ *+' conftest.er1 >conftest.err
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -z "$ac_c_werror_flag"
21654 || test ! -s conftest.err'
21655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21656 (eval $ac_try) 2>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); }; } &&
21660 { ac_try='test -s conftest.$ac_objext'
21661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21662 (eval $ac_try) 2>&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); }; }; then
21666 ac_header_compiler=yes
21668 echo "$as_me: failed program was:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_compiler=no
21673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21675 echo "${ECHO_T}$ac_header_compiler" >&6
21677 # Is the header present?
21678 echo "$as_me:$LINENO: checking libintl.h presence" >&5
21679 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21686 #include <libintl.h>
21688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21691 grep -v '^ *+' conftest.er1 >conftest.err
21693 cat conftest.err >&5
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); } >/dev/null; then
21696 if test -s conftest.err; then
21697 ac_cpp_err=$ac_c_preproc_warn_flag
21698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21705 if test -z "$ac_cpp_err"; then
21706 ac_header_preproc=yes
21708 echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 ac_header_preproc=no
21713 rm -f conftest.err conftest.$ac_ext
21714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21715 echo "${ECHO_T}$ac_header_preproc" >&6
21717 # So? What about this header?
21718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21720 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
21721 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
21723 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
21724 ac_header_preproc=yes
21727 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
21728 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
21729 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
21730 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
21732 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
21733 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
21734 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
21736 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
21737 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
21738 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
21741 ## ---------------------------------------- ##
21742 ## Report this to pgsql-bugs@postgresql.org ##
21743 ## ---------------------------------------- ##
21746 sed "s/^/$as_me: WARNING: /" >&2
21749 echo "$as_me:$LINENO: checking for libintl.h" >&5
21750 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
21751 if test "${ac_cv_header_libintl_h+set}" = set; then
21752 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 ac_cv_header_libintl_h=$ac_header_preproc
21756 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
21757 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
21760 if test $ac_cv_header_libintl_h = yes; then
21763 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
21764 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
21765 { (exit 1); exit 1; }; }
21769 for ac_prog in msgfmt
21771 # Extract the first word of "$ac_prog", so it can be a program name with args.
21772 set dummy $ac_prog; ac_word=$2
21773 echo "$as_me:$LINENO: checking for $ac_word" >&5
21774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21775 if test "${ac_cv_prog_MSGFMT+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 if test -n "$MSGFMT"; then
21779 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
21781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21782 for as_dir in $PATH
21785 test -z "$as_dir" && as_dir=.
21786 for ac_exec_ext in '' $ac_executable_extensions; do
21787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21788 ac_cv_prog_MSGFMT="$ac_prog"
21789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21797 MSGFMT=$ac_cv_prog_MSGFMT
21798 if test -n "$MSGFMT"; then
21799 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21800 echo "${ECHO_T}$MSGFMT" >&6
21802 echo "$as_me:$LINENO: result: no" >&5
21803 echo "${ECHO_T}no" >&6
21806 test -n "$MSGFMT" && break
21809 if test -z "$MSGFMT"; then
21810 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
21811 echo "$as_me: error: msgfmt is required for NLS" >&2;}
21812 { (exit 1); exit 1; }; }
21814 for ac_prog in msgmerge
21816 # Extract the first word of "$ac_prog", so it can be a program name with args.
21817 set dummy $ac_prog; ac_word=$2
21818 echo "$as_me:$LINENO: checking for $ac_word" >&5
21819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21820 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 if test -n "$MSGMERGE"; then
21824 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21833 ac_cv_prog_MSGMERGE="$ac_prog"
21834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21842 MSGMERGE=$ac_cv_prog_MSGMERGE
21843 if test -n "$MSGMERGE"; then
21844 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21845 echo "${ECHO_T}$MSGMERGE" >&6
21847 echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6
21851 test -n "$MSGMERGE" && break
21854 for ac_prog in xgettext
21856 # Extract the first word of "$ac_prog", so it can be a program name with args.
21857 set dummy $ac_prog; ac_word=$2
21858 echo "$as_me:$LINENO: checking for $ac_word" >&5
21859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21860 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 if test -n "$XGETTEXT"; then
21864 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
21866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21867 for as_dir in $PATH
21870 test -z "$as_dir" && as_dir=.
21871 for ac_exec_ext in '' $ac_executable_extensions; do
21872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21873 ac_cv_prog_XGETTEXT="$ac_prog"
21874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21882 XGETTEXT=$ac_cv_prog_XGETTEXT
21883 if test -n "$XGETTEXT"; then
21884 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21885 echo "${ECHO_T}$XGETTEXT" >&6
21887 echo "$as_me:$LINENO: result: no" >&5
21888 echo "${ECHO_T}no" >&6
21891 test -n "$XGETTEXT" && break
21895 # Note: share/locale is always the default, independent of $datadir
21896 localedir='${prefix}/share/locale'
21897 if test x"$prefix" = x"NONE"; then
21898 exp_localedir="$ac_default_prefix/share/locale"
21900 exp_localedir="$prefix/share/locale"
21905 cat >>confdefs.h <<_ACEOF
21906 #define LOCALEDIR "$exp_localedir"
21912 # Check for Tcl configuration script tclConfig.sh
21913 if test "$with_tcl" = yes; then
21914 for ac_prog in tclsh tcl
21916 # Extract the first word of "$ac_prog", so it can be a program name with args.
21917 set dummy $ac_prog; ac_word=$2
21918 echo "$as_me:$LINENO: checking for $ac_word" >&5
21919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21920 if test "${ac_cv_path_TCLSH+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
21928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21929 for as_dir in $PATH
21932 test -z "$as_dir" && as_dir=.
21933 for ac_exec_ext in '' $ac_executable_extensions; do
21934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21935 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
21936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21945 TCLSH=$ac_cv_path_TCLSH
21947 if test -n "$TCLSH"; then
21948 echo "$as_me:$LINENO: result: $TCLSH" >&5
21949 echo "${ECHO_T}$TCLSH" >&6
21951 echo "$as_me:$LINENO: result: no" >&5
21952 echo "${ECHO_T}no" >&6
21955 test -n "$TCLSH" && break
21958 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
21959 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
21960 # Let user override test
21961 if test -z "$TCL_CONFIG_SH"; then
21962 pgac_test_dirs="$with_tclconfig"
21964 set X $pgac_test_dirs; shift
21965 if test $# -eq 0; then
21966 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
21967 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
21968 { (exit 1); exit 1; }; }
21969 set X `echo 'puts $auto_path' | $TCLSH`; shift
21973 if test -r "$pgac_dir/tclConfig.sh"; then
21974 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
21980 if test -z "$TCL_CONFIG_SH"; then
21981 echo "$as_me:$LINENO: result: no" >&5
21982 echo "${ECHO_T}no" >&6
21983 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
21984 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
21985 { (exit 1); exit 1; }; }
21987 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
21988 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
21994 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
21995 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
21996 eval TCL_LIBS=\"$TCL_LIBS\"
21997 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
21998 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
22000 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
22001 ac_save_CPPFLAGS=$CPPFLAGS
22002 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
22003 if test "${ac_cv_header_tcl_h+set}" = set; then
22004 echo "$as_me:$LINENO: checking for tcl.h" >&5
22005 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22006 if test "${ac_cv_header_tcl_h+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22010 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22012 # Is the header compilable?
22013 echo "$as_me:$LINENO: checking tcl.h usability" >&5
22014 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22021 $ac_includes_default
22024 rm -f conftest.$ac_objext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22026 (eval $ac_compile) 2>conftest.er1
22028 grep -v '^ *+' conftest.er1 >conftest.err
22030 cat conftest.err >&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } &&
22033 { ac_try='test -z "$ac_c_werror_flag"
22034 || test ! -s conftest.err'
22035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22036 (eval $ac_try) 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; } &&
22040 { ac_try='test -s conftest.$ac_objext'
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; }; then
22046 ac_header_compiler=yes
22048 echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22051 ac_header_compiler=no
22053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22055 echo "${ECHO_T}$ac_header_compiler" >&6
22057 # Is the header present?
22058 echo "$as_me:$LINENO: checking tcl.h presence" >&5
22059 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22071 grep -v '^ *+' conftest.er1 >conftest.err
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } >/dev/null; then
22076 if test -s conftest.err; then
22077 ac_cpp_err=$ac_c_preproc_warn_flag
22078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22085 if test -z "$ac_cpp_err"; then
22086 ac_header_preproc=yes
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_header_preproc=no
22093 rm -f conftest.err conftest.$ac_ext
22094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22095 echo "${ECHO_T}$ac_header_preproc" >&6
22097 # So? What about this header?
22098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22100 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22101 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22102 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
22103 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
22104 ac_header_preproc=yes
22107 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
22108 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
22109 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
22110 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
22111 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
22112 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
22113 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
22114 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22115 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
22116 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
22118 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
22121 ## ---------------------------------------- ##
22122 ## Report this to pgsql-bugs@postgresql.org ##
22123 ## ---------------------------------------- ##
22126 sed "s/^/$as_me: WARNING: /" >&2
22129 echo "$as_me:$LINENO: checking for tcl.h" >&5
22130 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
22131 if test "${ac_cv_header_tcl_h+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 ac_cv_header_tcl_h=$ac_header_preproc
22136 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
22137 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
22140 if test $ac_cv_header_tcl_h = yes; then
22143 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
22144 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
22145 { (exit 1); exit 1; }; }
22149 CPPFLAGS=$ac_save_CPPFLAGS
22153 # Check for DocBook and tools
22155 for ac_prog in onsgmls nsgmls
22157 # Extract the first word of "$ac_prog", so it can be a program name with args.
22158 set dummy $ac_prog; ac_word=$2
22159 echo "$as_me:$LINENO: checking for $ac_word" >&5
22160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22161 if test "${ac_cv_prog_NSGMLS+set}" = set; then
22162 echo $ECHO_N "(cached) $ECHO_C" >&6
22164 if test -n "$NSGMLS"; then
22165 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22171 test -z "$as_dir" && as_dir=.
22172 for ac_exec_ext in '' $ac_executable_extensions; do
22173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22174 ac_cv_prog_NSGMLS="$ac_prog"
22175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22183 NSGMLS=$ac_cv_prog_NSGMLS
22184 if test -n "$NSGMLS"; then
22185 echo "$as_me:$LINENO: result: $NSGMLS" >&5
22186 echo "${ECHO_T}$NSGMLS" >&6
22188 echo "$as_me:$LINENO: result: no" >&5
22189 echo "${ECHO_T}no" >&6
22192 test -n "$NSGMLS" && break
22195 for ac_prog in openjade jade
22197 # Extract the first word of "$ac_prog", so it can be a program name with args.
22198 set dummy $ac_prog; ac_word=$2
22199 echo "$as_me:$LINENO: checking for $ac_word" >&5
22200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22201 if test "${ac_cv_prog_JADE+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22204 if test -n "$JADE"; then
22205 ac_cv_prog_JADE="$JADE" # Let the user override the test.
22207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22208 for as_dir in $PATH
22211 test -z "$as_dir" && as_dir=.
22212 for ac_exec_ext in '' $ac_executable_extensions; do
22213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22214 ac_cv_prog_JADE="$ac_prog"
22215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22223 JADE=$ac_cv_prog_JADE
22224 if test -n "$JADE"; then
22225 echo "$as_me:$LINENO: result: $JADE" >&5
22226 echo "${ECHO_T}$JADE" >&6
22228 echo "$as_me:$LINENO: result: no" >&5
22229 echo "${ECHO_T}no" >&6
22232 test -n "$JADE" && break
22236 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
22237 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
22238 if test "${pgac_cv_check_docbook+set}" = set; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.sgml <<EOF
22242 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
22244 <title>test</title>
22246 <title>random</title>
22248 <title>testsect</title>
22255 pgac_cv_check_docbook=no
22257 if test -n "$NSGMLS"; then
22258 $NSGMLS -s conftest.sgml 1>&5 2>&1
22259 if test $? -eq 0; then
22260 pgac_cv_check_docbook=yes
22263 rm -f conftest.sgml
22265 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
22266 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
22268 have_docbook=$pgac_cv_check_docbook
22271 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
22272 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
22273 if test "${pgac_cv_path_stylesheets+set}" = set; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22276 if test -n "$DOCBOOKSTYLE"; then
22277 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
22279 for pgac_prefix in /usr /usr/local /opt; do
22280 for pgac_infix in share lib; do
22281 for pgac_postfix in \
22282 sgml/stylesheets/nwalsh-modular \
22283 sgml/stylesheets/docbook \
22284 sgml/docbook-dsssl \
22285 sgml/docbook/dsssl/modular \
22286 sgml/docbook/stylesheet/dsssl/modular \
22287 sgml/docbook/dsssl-stylesheets
22289 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
22290 if test -r "$pgac_candidate/html/docbook.dsl" \
22291 && test -r "$pgac_candidate/print/docbook.dsl"
22293 pgac_cv_path_stylesheets=$pgac_candidate
22302 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
22304 if test -n "$DOCBOOKSTYLE"; then
22305 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
22306 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
22308 echo "$as_me:$LINENO: result: no" >&5
22309 echo "${ECHO_T}no" >&6
22311 if test -n "$DOCBOOKSTYLE"; then
22312 for ac_prog in collateindex.pl
22314 # Extract the first word of "$ac_prog", so it can be a program name with args.
22315 set dummy $ac_prog; ac_word=$2
22316 echo "$as_me:$LINENO: checking for $ac_word" >&5
22317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22318 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 case $COLLATEINDEX in
22323 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22327 for as_dir in $DOCBOOKSTYLE/bin $PATH
22330 test -z "$as_dir" && as_dir=.
22331 for ac_exec_ext in '' $ac_executable_extensions; do
22332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22333 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22343 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22345 if test -n "$COLLATEINDEX"; then
22346 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22347 echo "${ECHO_T}$COLLATEINDEX" >&6
22349 echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22353 test -n "$COLLATEINDEX" && break
22357 for ac_prog in collateindex.pl
22359 # Extract the first word of "$ac_prog", so it can be a program name with args.
22360 set dummy $ac_prog; ac_word=$2
22361 echo "$as_me:$LINENO: checking for $ac_word" >&5
22362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22363 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22366 case $COLLATEINDEX in
22368 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
22371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22372 for as_dir in $PATH
22375 test -z "$as_dir" && as_dir=.
22376 for ac_exec_ext in '' $ac_executable_extensions; do
22377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22378 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
22379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22388 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
22390 if test -n "$COLLATEINDEX"; then
22391 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
22392 echo "${ECHO_T}$COLLATEINDEX" >&6
22394 echo "$as_me:$LINENO: result: no" >&5
22395 echo "${ECHO_T}no" >&6
22398 test -n "$COLLATEINDEX" && break
22402 for ac_prog in sgmlspl
22404 # Extract the first word of "$ac_prog", so it can be a program name with args.
22405 set dummy $ac_prog; ac_word=$2
22406 echo "$as_me:$LINENO: checking for $ac_word" >&5
22407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22408 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22411 if test -n "$SGMLSPL"; then
22412 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
22414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22415 for as_dir in $PATH
22418 test -z "$as_dir" && as_dir=.
22419 for ac_exec_ext in '' $ac_executable_extensions; do
22420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22421 ac_cv_prog_SGMLSPL="$ac_prog"
22422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22430 SGMLSPL=$ac_cv_prog_SGMLSPL
22431 if test -n "$SGMLSPL"; then
22432 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
22433 echo "${ECHO_T}$SGMLSPL" >&6
22435 echo "$as_me:$LINENO: result: no" >&5
22436 echo "${ECHO_T}no" >&6
22439 test -n "$SGMLSPL" && break
22445 # We have to run the thread test near the end so we have all our symbols
22446 # defined. Cross compiling throws a warning.
22448 if test "$enable_thread_safety_force" = yes; then
22449 if test x"$template" != x"win32"
22451 { echo "$as_me:$LINENO: WARNING:
22452 *** Skipping thread test program. --enable-thread-safety-force was used.
22453 *** Run the program in src/tools/thread on the your machine and add
22454 proper locking function calls to your applications to guarantee thread
22457 echo "$as_me: WARNING:
22458 *** Skipping thread test program. --enable-thread-safety-force was used.
22459 *** Run the program in src/tools/thread on the your machine and add
22460 proper locking function calls to your applications to guarantee thread
22464 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22465 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22467 elif test "$enable_thread_safety" = yes; then
22468 if test x"$template" != x"win32"
22470 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
22471 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
22475 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
22476 LIBS="$LIBS $PTHREAD_LIBS"
22477 if test "$cross_compiling" = yes; then
22478 echo "$as_me:$LINENO: result: maybe" >&5
22479 echo "${ECHO_T}maybe" >&6
22480 { echo "$as_me:$LINENO: WARNING:
22481 *** Skipping thread test program because of cross-compile build.
22482 *** Run the program in src/tools/thread on the target machine.
22484 echo "$as_me: WARNING:
22485 *** Skipping thread test program because of cross-compile build.
22486 *** Run the program in src/tools/thread on the target machine.
22489 cat >conftest.$ac_ext <<_ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22495 #include "$srcdir/src/tools/thread/thread_test.c"
22497 rm -f conftest$ac_exeext
22498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22499 (eval $ac_link) 2>&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22504 (eval $ac_try) 2>&5
22506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507 (exit $ac_status); }; }; then
22508 echo "$as_me:$LINENO: result: yes" >&5
22509 echo "${ECHO_T}yes" >&6
22511 echo "$as_me: program exited with status $ac_status" >&5
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ( exit $ac_status )
22516 echo "$as_me:$LINENO: result: no" >&5
22517 echo "${ECHO_T}no" >&6
22518 { { echo "$as_me:$LINENO: error:
22519 *** Thread test program failed. Your platform is not thread-safe.
22520 *** Check the file 'config.log'for the exact reason.
22522 *** You can use the configure option --enable-thread-safety-force
22523 *** to force threads to be enabled. However, you must then run
22524 *** the program in src/tools/thread and add locking function calls
22525 *** to your applications to guarantee thread safety.
22527 echo "$as_me: error:
22528 *** Thread test program failed. Your platform is not thread-safe.
22529 *** Check the file 'config.log'for the exact reason.
22531 *** You can use the configure option --enable-thread-safety-force
22532 *** to force threads to be enabled. However, you must then run
22533 *** the program in src/tools/thread and add locking function calls
22534 *** to your applications to guarantee thread safety.
22536 { (exit 1); exit 1; }; }
22538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22543 { echo "$as_me:$LINENO: WARNING: *** Skipping thread test on Win32" >&5
22544 echo "$as_me: WARNING: *** Skipping thread test on Win32" >&2;}
22548 # prepare build tree if outside source tree
22549 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
22550 # Note 2: /bin/pwd might be better than shell's built-in at getting
22551 # a symlink-free name.
22552 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
22556 if test "$no_create" != yes; then
22557 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
22558 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
22559 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
22560 || { { echo "$as_me:$LINENO: error: failed" >&5
22561 echo "$as_me: error: failed" >&2;}
22562 { (exit 1); exit 1; }; }
22563 echo "$as_me:$LINENO: result: done" >&5
22564 echo "${ECHO_T}done" >&6
22570 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
22573 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}"
22576 if test "$PORTNAME" = "win32"; then
22577 ac_config_commands="$ac_config_commands check_win32_symlinks"
22581 ac_config_headers="$ac_config_headers src/include/pg_config.h"
22584 cat >confcache <<\_ACEOF
22585 # This file is a shell script that caches the results of configure
22586 # tests run on this system so they can be shared between configure
22587 # scripts and configure runs, see configure's option --config-cache.
22588 # It is not useful on other systems. If it contains results you don't
22589 # want to keep, you may remove or edit it.
22591 # config.status only pays attention to the cache file if you give it
22592 # the --recheck option to rerun configure.
22594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22596 # following values.
22600 # The following way of writing the cache mishandles newlines in values,
22601 # but we know of no workaround that is simple, portable, and efficient.
22602 # So, don't put newlines in cache variables' values.
22603 # Ultrix sh set writes to stderr and can't be redirected directly,
22604 # and sets the high bit in the cache file unless we assign to the vars.
22607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22609 # `set' does not quote correctly, so add quotes (double-quote
22610 # substitution turns \\\\ into \\, and sed turns \\ into \).
22613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22616 # `set' quotes correctly as required by POSIX, so do not add quotes.
22618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22629 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22630 if test -w $cache_file; then
22631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22632 cat confcache >$cache_file
22634 echo "not updating unwritable cache $cache_file"
22639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22640 # Let make expand exec_prefix.
22641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22645 # trailing colons and then remove the whole line if VPATH becomes empty
22646 # (actually we leave an empty line to preserve line numbers).
22647 if test "x$srcdir" = x.; then
22648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22649 s/:*\$(srcdir):*/:/;
22650 s/:*\${srcdir}:*/:/;
22652 s/^\([^=]*=[ ]*\):*/\1/;
22658 DEFS=-DHAVE_CONFIG_H
22662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22663 # 1. Remove the extension, and $U if already installed.
22664 ac_i=`echo "$ac_i" |
22665 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22667 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22668 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22670 LIBOBJS=$ac_libobjs
22672 LTLIBOBJS=$ac_ltlibobjs
22676 : ${CONFIG_STATUS=./config.status}
22677 ac_clean_files_save=$ac_clean_files
22678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22679 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22680 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22681 cat >$CONFIG_STATUS <<_ACEOF
22683 # Generated by $as_me.
22684 # Run this file to recreate the current configuration.
22685 # Compiler output produced by configure, useful for debugging
22686 # configure, is in config.log if it exists.
22689 ac_cs_recheck=false
22691 SHELL=\${CONFIG_SHELL-$SHELL}
22694 cat >>$CONFIG_STATUS <<\_ACEOF
22695 ## --------------------- ##
22696 ## M4sh Initialization. ##
22697 ## --------------------- ##
22699 # Be Bourne compatible
22700 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22703 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22704 # is contrary to our usage. Disable this feature.
22705 alias -g '${1+"$@"}'='"$@"'
22706 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22709 DUALCASE=1; export DUALCASE # for MKS sh
22711 # Support unset when possible.
22712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22719 # Work around bugs in pre-3.0 UWIN ksh.
22720 $as_unset ENV MAIL MAILPATH
22727 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22728 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22729 LC_TELEPHONE LC_TIME
22731 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22732 eval $as_var=C; export $as_var
22738 # Required to use basename.
22739 if expr a : '\(a\)' >/dev/null 2>&1; then
22745 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22746 as_basename=basename
22752 # Name of the executable.
22753 as_me=`$as_basename "$0" ||
22754 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22755 X"$0" : 'X\(//\)$' \| \
22756 X"$0" : 'X\(/\)$' \| \
22757 . : '\(.\)' 2>/dev/null ||
22759 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22760 /^X\/\(\/\/\)$/{ s//\1/; q; }
22761 /^X\/\(\/\).*/{ s//\1/; q; }
22765 # PATH needs CR, and LINENO needs CR and PATH.
22766 # Avoid depending upon Character Ranges.
22767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22770 as_cr_digits='0123456789'
22771 as_cr_alnum=$as_cr_Letters$as_cr_digits
22773 # The user is always right.
22774 if test "${PATH_SEPARATOR+set}" != set; then
22775 echo "#! /bin/sh" >conf$$.sh
22776 echo "exit 0" >>conf$$.sh
22778 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22787 as_lineno_1=$LINENO
22788 as_lineno_2=$LINENO
22789 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22790 test "x$as_lineno_1" != "x$as_lineno_2" &&
22791 test "x$as_lineno_3" = "x$as_lineno_2" || {
22792 # Find who we are. Look in the path if we contain no path at all
22795 *[\\/]* ) as_myself=$0 ;;
22796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22797 for as_dir in $PATH
22800 test -z "$as_dir" && as_dir=.
22801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22806 # We did not find ourselves, most probably we were run as `sh COMMAND'
22807 # in which case we are not to be found in the path.
22808 if test "x$as_myself" = x; then
22811 if test ! -f "$as_myself"; then
22812 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22813 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22814 { (exit 1); exit 1; }; }
22816 case $CONFIG_SHELL in
22818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22819 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22822 test -z "$as_dir" && as_dir=.
22823 for as_base in sh bash ksh sh5; do
22826 if ("$as_dir/$as_base" -c '
22827 as_lineno_1=$LINENO
22828 as_lineno_2=$LINENO
22829 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22830 test "x$as_lineno_1" != "x$as_lineno_2" &&
22831 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22832 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22833 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22834 CONFIG_SHELL=$as_dir/$as_base
22835 export CONFIG_SHELL
22836 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22845 # uniformly replaced by the line number. The first 'sed' inserts a
22846 # line-number line before each line; the second 'sed' does the real
22847 # work. The second script uses 'N' to pair each line-number line
22848 # with the numbered line, and appends trailing '-' during
22849 # substitution so that $LINENO is not a special case at line end.
22850 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22851 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22852 sed '=' <$as_myself |
22857 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22860 s,^['$as_cr_digits']*\n,,
22861 ' >$as_me.lineno &&
22862 chmod +x $as_me.lineno ||
22863 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22864 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22865 { (exit 1); exit 1; }; }
22867 # Don't try to exec as it changes $[0], causing all sort of problems
22868 # (the dirname of $[0] is not the place where we might find the
22869 # original and so on. Autoconf is especially sensible to this).
22871 # Exit status is that of the last command.
22876 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22877 *c*,-n*) ECHO_N= ECHO_C='
22879 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22880 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22883 if expr a : '\(a\)' >/dev/null 2>&1; then
22889 rm -f conf$$ conf$$.exe conf$$.file
22891 if ln -s conf$$.file conf$$ 2>/dev/null; then
22892 # We could just check for DJGPP; but this test a) works b) is more generic
22893 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22894 if test -f conf$$.exe; then
22895 # Don't use ln at all; we don't have any links
22900 elif ln conf$$.file conf$$ 2>/dev/null; then
22905 rm -f conf$$ conf$$.exe conf$$.file
22907 if mkdir -p . 2>/dev/null; then
22910 test -d ./-p && rmdir ./-p
22914 as_executable_p="test -f"
22916 # Sed expression to map a string onto a valid CPP name.
22917 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22919 # Sed expression to map a string onto a valid variable name.
22920 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22924 # We need space, tab and new line, in precisely that order.
22934 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22935 # report actual input values of CONFIG_FILES etc. instead of their
22936 # values after options handling. Logging --version etc. is OK.
22940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22941 ## Running $as_me. ##
22946 This file was extended by PostgreSQL $as_me 8.2devel, which was
22947 generated by GNU Autoconf 2.59. Invocation command line was
22949 CONFIG_FILES = $CONFIG_FILES
22950 CONFIG_HEADERS = $CONFIG_HEADERS
22951 CONFIG_LINKS = $CONFIG_LINKS
22952 CONFIG_COMMANDS = $CONFIG_COMMANDS
22956 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22960 # Files that config.status was made for.
22961 if test -n "$ac_config_files"; then
22962 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22965 if test -n "$ac_config_headers"; then
22966 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22969 if test -n "$ac_config_links"; then
22970 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22973 if test -n "$ac_config_commands"; then
22974 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22977 cat >>$CONFIG_STATUS <<\_ACEOF
22980 \`$as_me' instantiates files from templates according to the
22981 current configuration.
22983 Usage: $0 [OPTIONS] [FILE]...
22985 -h, --help print this help, then exit
22986 -V, --version print version number, then exit
22987 -q, --quiet do not print progress messages
22988 -d, --debug don't remove temporary files
22989 --recheck update $as_me by reconfiguring in the same conditions
22990 --file=FILE[:TEMPLATE]
22991 instantiate the configuration file FILE
22992 --header=FILE[:TEMPLATE]
22993 instantiate the configuration header FILE
22995 Configuration files:
22998 Configuration headers:
23001 Configuration links:
23004 Configuration commands:
23007 Report bugs to <bug-autoconf@gnu.org>."
23010 cat >>$CONFIG_STATUS <<_ACEOF
23012 PostgreSQL config.status 8.2devel
23013 configured by $0, generated by GNU Autoconf 2.59,
23014 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23016 Copyright (C) 2003 Free Software Foundation, Inc.
23017 This config.status script is free software; the Free Software Foundation
23018 gives unlimited permission to copy, distribute and modify it."
23022 cat >>$CONFIG_STATUS <<\_ACEOF
23023 # If no file are specified by the user, then we need to provide default
23024 # value. By we need to know if files were specified by the user.
23030 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23031 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23039 *) # This is not an option, so the user has probably given explicit
23042 ac_need_defaults=false;;
23046 # Handling of the options.
23048 cat >>$CONFIG_STATUS <<\_ACEOF
23049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23051 --version | --vers* | -V )
23052 echo "$ac_cs_version"; exit 0 ;;
23054 # Conflict between --help and --header
23055 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23056 Try \`$0 --help' for more information." >&5
23057 echo "$as_me: error: ambiguous option: $1
23058 Try \`$0 --help' for more information." >&2;}
23059 { (exit 1); exit 1; }; };;
23060 --help | --hel | -h )
23061 echo "$ac_cs_usage"; exit 0 ;;
23062 --debug | --d* | -d )
23064 --file | --fil | --fi | --f )
23066 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23067 ac_need_defaults=false;;
23068 --header | --heade | --head | --hea )
23070 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23071 ac_need_defaults=false;;
23072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23073 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23076 # This is an error.
23077 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23078 Try \`$0 --help' for more information." >&5
23079 echo "$as_me: error: unrecognized option: $1
23080 Try \`$0 --help' for more information." >&2;}
23081 { (exit 1); exit 1; }; } ;;
23083 *) ac_config_targets="$ac_config_targets $1" ;;
23089 ac_configure_extra_args=
23091 if $ac_cs_silent; then
23093 ac_configure_extra_args="$ac_configure_extra_args --silent"
23097 cat >>$CONFIG_STATUS <<_ACEOF
23098 if \$ac_cs_recheck; then
23099 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23100 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23109 cat >>$CONFIG_STATUS <<\_ACEOF
23110 for ac_config_target in $ac_config_targets
23112 case "$ac_config_target" in
23113 # Handling of arguments.
23114 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
23115 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
23116 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
23117 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
23118 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
23119 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
23120 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
23121 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
23122 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
23123 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
23124 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
23125 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23126 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23127 { (exit 1); exit 1; }; };;
23131 # If the user did not use the arguments to specify the items to instantiate,
23132 # then the envvar interface is used. Set only those that are not.
23133 # We use the long form for the default assignment because of an extremely
23134 # bizarre bug on SunOS 4.1.3.
23135 if $ac_need_defaults; then
23136 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23137 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23138 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23142 # Have a temporary directory for convenience. Make it in the build tree
23143 # simply because there is no reason to put it here, and in addition,
23144 # creating and moving files from /tmp can sometimes cause problems.
23145 # Create a temporary directory, and hook for its removal unless debugging.
23148 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23149 trap '{ (exit 1); exit 1; }' 1 2 13 15
23152 # Create a (secure) tmp directory for tmp files.
23155 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23156 test -n "$tmp" && test -d "$tmp"
23159 tmp=./confstat$$-$RANDOM
23160 (umask 077 && mkdir $tmp)
23163 echo "$me: cannot create a temporary directory in ." >&2
23164 { (exit 1); exit 1; }
23169 cat >>$CONFIG_STATUS <<_ACEOF
23172 # CONFIG_FILES section.
23175 # No need to generate the scripts if there are no CONFIG_FILES.
23176 # This happens for instance when ./config.status config.h
23177 if test -n "\$CONFIG_FILES"; then
23178 # Protect against being on the right side of a sed subst in config.status.
23179 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23180 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23181 s,@SHELL@,$SHELL,;t t
23182 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23183 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23184 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23185 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23186 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23187 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23188 s,@exec_prefix@,$exec_prefix,;t t
23189 s,@prefix@,$prefix,;t t
23190 s,@program_transform_name@,$program_transform_name,;t t
23191 s,@bindir@,$bindir,;t t
23192 s,@sbindir@,$sbindir,;t t
23193 s,@libexecdir@,$libexecdir,;t t
23194 s,@datadir@,$datadir,;t t
23195 s,@sysconfdir@,$sysconfdir,;t t
23196 s,@sharedstatedir@,$sharedstatedir,;t t
23197 s,@localstatedir@,$localstatedir,;t t
23198 s,@libdir@,$libdir,;t t
23199 s,@includedir@,$includedir,;t t
23200 s,@oldincludedir@,$oldincludedir,;t t
23201 s,@infodir@,$infodir,;t t
23202 s,@mandir@,$mandir,;t t
23203 s,@build_alias@,$build_alias,;t t
23204 s,@host_alias@,$host_alias,;t t
23205 s,@target_alias@,$target_alias,;t t
23206 s,@DEFS@,$DEFS,;t t
23207 s,@ECHO_C@,$ECHO_C,;t t
23208 s,@ECHO_N@,$ECHO_N,;t t
23209 s,@ECHO_T@,$ECHO_T,;t t
23210 s,@LIBS@,$LIBS,;t t
23211 s,@configure_args@,$configure_args,;t t
23212 s,@build@,$build,;t t
23213 s,@build_cpu@,$build_cpu,;t t
23214 s,@build_vendor@,$build_vendor,;t t
23215 s,@build_os@,$build_os,;t t
23216 s,@host@,$host,;t t
23217 s,@host_cpu@,$host_cpu,;t t
23218 s,@host_vendor@,$host_vendor,;t t
23219 s,@host_os@,$host_os,;t t
23220 s,@PORTNAME@,$PORTNAME,;t t
23221 s,@docdir@,$docdir,;t t
23222 s,@enable_nls@,$enable_nls,;t t
23223 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
23224 s,@default_port@,$default_port,;t t
23225 s,@enable_shared@,$enable_shared,;t t
23226 s,@enable_rpath@,$enable_rpath,;t t
23227 s,@enable_debug@,$enable_debug,;t t
23229 s,@CFLAGS@,$CFLAGS,;t t
23230 s,@LDFLAGS@,$LDFLAGS,;t t
23231 s,@CPPFLAGS@,$CPPFLAGS,;t t
23232 s,@ac_ct_CC@,$ac_ct_CC,;t t
23233 s,@EXEEXT@,$EXEEXT,;t t
23234 s,@OBJEXT@,$OBJEXT,;t t
23238 s,@autodepend@,$autodepend,;t t
23239 s,@INCLUDES@,$INCLUDES,;t t
23240 s,@enable_thread_safety@,$enable_thread_safety,;t t
23241 s,@with_tcl@,$with_tcl,;t t
23242 s,@with_perl@,$with_perl,;t t
23243 s,@with_python@,$with_python,;t t
23244 s,@with_krb5@,$with_krb5,;t t
23245 s,@krb_srvtab@,$krb_srvtab,;t t
23246 s,@with_pam@,$with_pam,;t t
23247 s,@with_bonjour@,$with_bonjour,;t t
23248 s,@with_openssl@,$with_openssl,;t t
23249 s,@with_zlib@,$with_zlib,;t t
23250 s,@EGREP@,$EGREP,;t t
23251 s,@ELF_SYS@,$ELF_SYS,;t t
23252 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
23254 s,@FLEX@,$FLEX,;t t
23255 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
23256 s,@LN_S@,$LN_S,;t t
23258 s,@with_gnu_ld@,$with_gnu_ld,;t t
23259 s,@ld_R_works@,$ld_R_works,;t t
23260 s,@RANLIB@,$RANLIB,;t t
23261 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23262 s,@LORDER@,$LORDER,;t t
23264 s,@STRIP@,$STRIP,;t t
23265 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23266 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
23267 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
23268 s,@YACC@,$YACC,;t t
23269 s,@YFLAGS@,$YFLAGS,;t t
23270 s,@PERL@,$PERL,;t t
23271 s,@perl_archlibexp@,$perl_archlibexp,;t t
23272 s,@perl_privlibexp@,$perl_privlibexp,;t t
23273 s,@perl_useshrplib@,$perl_useshrplib,;t t
23274 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
23275 s,@PYTHON@,$PYTHON,;t t
23276 s,@python_version@,$python_version,;t t
23277 s,@python_configdir@,$python_configdir,;t t
23278 s,@python_includespec@,$python_includespec,;t t
23279 s,@python_libdir@,$python_libdir,;t t
23280 s,@python_libspec@,$python_libspec,;t t
23281 s,@python_additional_libs@,$python_additional_libs,;t t
23282 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
23283 s,@LIBOBJS@,$LIBOBJS,;t t
23284 s,@acx_pthread_config@,$acx_pthread_config,;t t
23285 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
23286 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
23287 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
23288 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
23289 s,@MSGFMT@,$MSGFMT,;t t
23290 s,@MSGMERGE@,$MSGMERGE,;t t
23291 s,@XGETTEXT@,$XGETTEXT,;t t
23292 s,@localedir@,$localedir,;t t
23293 s,@TCLSH@,$TCLSH,;t t
23294 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
23295 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
23296 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
23297 s,@TCL_LIBS@,$TCL_LIBS,;t t
23298 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23299 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
23300 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23301 s,@NSGMLS@,$NSGMLS,;t t
23302 s,@JADE@,$JADE,;t t
23303 s,@have_docbook@,$have_docbook,;t t
23304 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
23305 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
23306 s,@SGMLSPL@,$SGMLSPL,;t t
23307 s,@vpath_build@,$vpath_build,;t t
23308 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23313 cat >>$CONFIG_STATUS <<\_ACEOF
23314 # Split the substitutions into bite-sized pieces for seds with
23315 # small command number limits, like on Digital OSF/1 and HP-UX.
23316 ac_max_sed_lines=48
23317 ac_sed_frag=1 # Number of current file.
23318 ac_beg=1 # First line for current file.
23319 ac_end=$ac_max_sed_lines # Line after last line for current file.
23322 while $ac_more_lines; do
23323 if test $ac_beg -gt 1; then
23324 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23326 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23328 if test ! -s $tmp/subs.frag; then
23329 ac_more_lines=false
23331 # The purpose of the label and of the branching condition is to
23332 # speed up the sed processing (if there are no `@' at all, there
23333 # is no need to browse any of the substitutions).
23334 # These are the two extra sed commands mentioned above.
23336 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23337 if test -z "$ac_sed_cmds"; then
23338 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23340 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23342 ac_sed_frag=`expr $ac_sed_frag + 1`
23344 ac_end=`expr $ac_end + $ac_max_sed_lines`
23347 if test -z "$ac_sed_cmds"; then
23350 fi # test -n "$CONFIG_FILES"
23353 cat >>$CONFIG_STATUS <<\_ACEOF
23354 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23357 - | *:- | *:-:* ) # input from stdin
23359 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23361 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23362 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23363 * ) ac_file_in=$ac_file.in ;;
23366 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23367 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23369 X"$ac_file" : 'X\(//\)[^/]' \| \
23370 X"$ac_file" : 'X\(//\)$' \| \
23371 X"$ac_file" : 'X\(/\)' \| \
23372 . : '\(.\)' 2>/dev/null ||
23374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23376 /^X\(\/\/\)$/{ s//\1/; q; }
23377 /^X\(\/\).*/{ s//\1/; q; }
23379 { if $as_mkdir_p; then
23384 while test ! -d "$as_dir"; do
23385 as_dirs="$as_dir $as_dirs"
23386 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23388 X"$as_dir" : 'X\(//\)[^/]' \| \
23389 X"$as_dir" : 'X\(//\)$' \| \
23390 X"$as_dir" : 'X\(/\)' \| \
23391 . : '\(.\)' 2>/dev/null ||
23393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23395 /^X\(\/\/\)$/{ s//\1/; q; }
23396 /^X\(\/\).*/{ s//\1/; q; }
23399 test ! -n "$as_dirs" || mkdir $as_dirs
23400 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23401 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23402 { (exit 1); exit 1; }; }; }
23406 if test "$ac_dir" != .; then
23407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23408 # A "../" for each directory in $ac_dir_suffix.
23409 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23411 ac_dir_suffix= ac_top_builddir=
23415 .) # No --srcdir option. We are building in place.
23417 if test -z "$ac_top_builddir"; then
23420 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23422 [\\/]* | ?:[\\/]* ) # Absolute path.
23423 ac_srcdir=$srcdir$ac_dir_suffix;
23424 ac_top_srcdir=$srcdir ;;
23425 *) # Relative path.
23426 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23427 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23430 # Do not use `cd foo && pwd` to compute absolute paths, because
23431 # the directories may not exist.
23433 .) ac_abs_builddir="$ac_dir";;
23436 .) ac_abs_builddir=`pwd`;;
23437 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23438 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23441 case $ac_abs_builddir in
23442 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23444 case ${ac_top_builddir}. in
23445 .) ac_abs_top_builddir=$ac_abs_builddir;;
23446 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23447 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23450 case $ac_abs_builddir in
23451 .) ac_abs_srcdir=$ac_srcdir;;
23454 .) ac_abs_srcdir=$ac_abs_builddir;;
23455 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23456 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23459 case $ac_abs_builddir in
23460 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23462 case $ac_top_srcdir in
23463 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23464 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23465 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23471 if test x"$ac_file" != x-; then
23472 { echo "$as_me:$LINENO: creating $ac_file" >&5
23473 echo "$as_me: creating $ac_file" >&6;}
23476 # Let's still pretend it is `configure' which instantiates (i.e., don't
23477 # use $as_me), people would be surprised to read:
23478 # /* config.h. Generated by config.status. */
23479 if test x"$ac_file" = x-; then
23482 configure_input="$ac_file. "
23484 configure_input=$configure_input"Generated from `echo $ac_file_in |
23485 sed 's,.*/,,'` by configure."
23487 # First look for the input files in the build tree, otherwise in the
23489 ac_file_inputs=`IFS=:
23490 for f in $ac_file_in; do
23492 -) echo $tmp/stdin ;;
23494 # Absolute (can't be DOS-style, as IFS=:)
23495 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23496 echo "$as_me: error: cannot find input file: $f" >&2;}
23497 { (exit 1); exit 1; }; }
23500 if test -f "$f"; then
23503 elif test -f "$srcdir/$f"; then
23508 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23509 echo "$as_me: error: cannot find input file: $f" >&2;}
23510 { (exit 1); exit 1; }; }
23513 done` || { (exit 1); exit 1; }
23515 cat >>$CONFIG_STATUS <<_ACEOF
23519 cat >>$CONFIG_STATUS <<\_ACEOF
23521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23522 s,@configure_input@,$configure_input,;t t
23523 s,@srcdir@,$ac_srcdir,;t t
23524 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23525 s,@top_srcdir@,$ac_top_srcdir,;t t
23526 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23527 s,@builddir@,$ac_builddir,;t t
23528 s,@abs_builddir@,$ac_abs_builddir,;t t
23529 s,@top_builddir@,$ac_top_builddir,;t t
23530 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23531 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23533 if test x"$ac_file" != x-; then
23534 mv $tmp/out $ac_file
23542 cat >>$CONFIG_STATUS <<\_ACEOF
23545 # CONFIG_HEADER section.
23548 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23549 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23551 # ac_d sets the value in "#define NAME VALUE" lines.
23552 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23553 ac_dB='[ ].*$,\1#\2'
23556 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23557 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23558 ac_uB='$,\1#\2define\3'
23562 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23565 - | *:- | *:-:* ) # input from stdin
23567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23571 * ) ac_file_in=$ac_file.in ;;
23574 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23575 echo "$as_me: creating $ac_file" >&6;}
23577 # First look for the input files in the build tree, otherwise in the
23579 ac_file_inputs=`IFS=:
23580 for f in $ac_file_in; do
23582 -) echo $tmp/stdin ;;
23584 # Absolute (can't be DOS-style, as IFS=:)
23585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23586 echo "$as_me: error: cannot find input file: $f" >&2;}
23587 { (exit 1); exit 1; }; }
23588 # Do quote $f, to prevent DOS paths from being IFS'd.
23591 if test -f "$f"; then
23594 elif test -f "$srcdir/$f"; then
23599 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23600 echo "$as_me: error: cannot find input file: $f" >&2;}
23601 { (exit 1); exit 1; }; }
23604 done` || { (exit 1); exit 1; }
23605 # Remove the trailing spaces.
23606 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23610 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23611 # `conftest.undefs', that substitutes the proper values into
23612 # config.h.in to produce config.h. The first handles `#define'
23613 # templates, and the second `#undef' templates.
23614 # And first: Protect against being on the right side of a sed subst in
23615 # config.status. Protect against being in an unquoted here document
23616 # in config.status.
23617 rm -f conftest.defines conftest.undefs
23618 # Using a here document instead of a string reduces the quoting nightmare.
23619 # Putting comments in sed scripts is not portable.
23621 # `end' is used to avoid that the second main sed command (meant for
23622 # 0-ary CPP macros) applies to n-ary macro definitions.
23623 # See the Autoconf documentation for `clear'.
23624 cat >confdef2sed.sed <<\_ACEOF
23629 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23631 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23634 # If some macros were called several times there might be several times
23635 # the same #defines, which is useless. Nevertheless, we may not want to
23636 # sort them, since we want the *last* AC-DEFINE to be honored.
23637 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23638 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23639 rm -f confdef2sed.sed
23641 # This sed command replaces #undef with comments. This is necessary, for
23642 # example, in the case of _POSIX_SOURCE, which is predefined and required
23643 # on some systems where configure will not decide to define it.
23644 cat >>conftest.undefs <<\_ACEOF
23645 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23648 # Break up conftest.defines because some shells have a limit on the size
23649 # of here documents, and old seds have small limits too (100 cmds).
23650 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23651 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23652 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23653 echo ' :' >>$CONFIG_STATUS
23654 rm -f conftest.tail
23655 while grep . conftest.defines >/dev/null
23657 # Write a limited-size here document to $tmp/defines.sed.
23658 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23659 # Speed up: don't consider the non `#define' lines.
23660 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23661 # Work around the forget-to-reset-the-flag bug.
23662 echo 't clr' >>$CONFIG_STATUS
23663 echo ': clr' >>$CONFIG_STATUS
23664 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23666 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23668 mv $tmp/out $tmp/in
23670 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23671 rm -f conftest.defines
23672 mv conftest.tail conftest.defines
23674 rm -f conftest.defines
23675 echo ' fi # grep' >>$CONFIG_STATUS
23676 echo >>$CONFIG_STATUS
23678 # Break up conftest.undefs because some shells have a limit on the size
23679 # of here documents, and old seds have small limits too (100 cmds).
23680 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23681 rm -f conftest.tail
23682 while grep . conftest.undefs >/dev/null
23684 # Write a limited-size here document to $tmp/undefs.sed.
23685 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23686 # Speed up: don't consider the non `#undef'
23687 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23688 # Work around the forget-to-reset-the-flag bug.
23689 echo 't clr' >>$CONFIG_STATUS
23690 echo ': clr' >>$CONFIG_STATUS
23691 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23693 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23695 mv $tmp/out $tmp/in
23697 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23698 rm -f conftest.undefs
23699 mv conftest.tail conftest.undefs
23701 rm -f conftest.undefs
23703 cat >>$CONFIG_STATUS <<\_ACEOF
23704 # Let's still pretend it is `configure' which instantiates (i.e., don't
23705 # use $as_me), people would be surprised to read:
23706 # /* config.h. Generated by config.status. */
23707 if test x"$ac_file" = x-; then
23708 echo "/* Generated by configure. */" >$tmp/config.h
23710 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23712 cat $tmp/in >>$tmp/config.h
23714 if test x"$ac_file" != x-; then
23715 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23716 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23717 echo "$as_me: $ac_file is unchanged" >&6;}
23719 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23721 X"$ac_file" : 'X\(//\)[^/]' \| \
23722 X"$ac_file" : 'X\(//\)$' \| \
23723 X"$ac_file" : 'X\(/\)' \| \
23724 . : '\(.\)' 2>/dev/null ||
23726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23728 /^X\(\/\/\)$/{ s//\1/; q; }
23729 /^X\(\/\).*/{ s//\1/; q; }
23731 { if $as_mkdir_p; then
23736 while test ! -d "$as_dir"; do
23737 as_dirs="$as_dir $as_dirs"
23738 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23740 X"$as_dir" : 'X\(//\)[^/]' \| \
23741 X"$as_dir" : 'X\(//\)$' \| \
23742 X"$as_dir" : 'X\(/\)' \| \
23743 . : '\(.\)' 2>/dev/null ||
23745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23747 /^X\(\/\/\)$/{ s//\1/; q; }
23748 /^X\(\/\).*/{ s//\1/; q; }
23751 test ! -n "$as_dirs" || mkdir $as_dirs
23752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23754 { (exit 1); exit 1; }; }; }
23757 mv $tmp/config.h $ac_file
23761 rm -f $tmp/config.h
23763 # Run the commands associated with the file.
23765 src/include/pg_config.h )
23766 # Update timestamp for pg_config.h (see Makefile.global)
23767 echo >src/include/stamp-h
23772 cat >>$CONFIG_STATUS <<\_ACEOF
23775 # CONFIG_LINKS section.
23778 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23779 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23780 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23782 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23783 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23785 if test ! -r $srcdir/$ac_source; then
23786 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23787 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23788 { (exit 1); exit 1; }; }
23792 # Make relative symlinks.
23793 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23794 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23795 X"$ac_dest" : 'X\(//\)[^/]' \| \
23796 X"$ac_dest" : 'X\(//\)$' \| \
23797 X"$ac_dest" : 'X\(/\)' \| \
23798 . : '\(.\)' 2>/dev/null ||
23800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23801 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23802 /^X\(\/\/\)$/{ s//\1/; q; }
23803 /^X\(\/\).*/{ s//\1/; q; }
23805 { if $as_mkdir_p; then
23806 mkdir -p "$ac_dest_dir"
23808 as_dir="$ac_dest_dir"
23810 while test ! -d "$as_dir"; do
23811 as_dirs="$as_dir $as_dirs"
23812 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23814 X"$as_dir" : 'X\(//\)[^/]' \| \
23815 X"$as_dir" : 'X\(//\)$' \| \
23816 X"$as_dir" : 'X\(/\)' \| \
23817 . : '\(.\)' 2>/dev/null ||
23819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23821 /^X\(\/\/\)$/{ s//\1/; q; }
23822 /^X\(\/\).*/{ s//\1/; q; }
23825 test ! -n "$as_dirs" || mkdir $as_dirs
23826 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23827 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23828 { (exit 1); exit 1; }; }; }
23832 if test "$ac_dest_dir" != .; then
23833 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23834 # A "../" for each directory in $ac_dir_suffix.
23835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23837 ac_dir_suffix= ac_top_builddir=
23841 .) # No --srcdir option. We are building in place.
23843 if test -z "$ac_top_builddir"; then
23846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23848 [\\/]* | ?:[\\/]* ) # Absolute path.
23849 ac_srcdir=$srcdir$ac_dir_suffix;
23850 ac_top_srcdir=$srcdir ;;
23851 *) # Relative path.
23852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23856 # Do not use `cd foo && pwd` to compute absolute paths, because
23857 # the directories may not exist.
23859 .) ac_abs_builddir="$ac_dest_dir";;
23861 case "$ac_dest_dir" in
23862 .) ac_abs_builddir=`pwd`;;
23863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
23864 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
23867 case $ac_abs_builddir in
23868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23870 case ${ac_top_builddir}. in
23871 .) ac_abs_top_builddir=$ac_abs_builddir;;
23872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23876 case $ac_abs_builddir in
23877 .) ac_abs_srcdir=$ac_srcdir;;
23880 .) ac_abs_srcdir=$ac_abs_builddir;;
23881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23885 case $ac_abs_builddir in
23886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23888 case $ac_top_srcdir in
23889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23897 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23898 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23901 # Try a symlink, then a hard link, then a copy.
23902 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23903 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23904 cp -p $srcdir/$ac_source $ac_dest ||
23905 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23906 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23907 { (exit 1); exit 1; }; }
23910 cat >>$CONFIG_STATUS <<\_ACEOF
23913 # CONFIG_COMMANDS section.
23915 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23916 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23917 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23918 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23919 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23920 X"$ac_dest" : 'X\(//\)[^/]' \| \
23921 X"$ac_dest" : 'X\(//\)$' \| \
23922 X"$ac_dest" : 'X\(/\)' \| \
23923 . : '\(.\)' 2>/dev/null ||
23925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23927 /^X\(\/\/\)$/{ s//\1/; q; }
23928 /^X\(\/\).*/{ s//\1/; q; }
23930 { if $as_mkdir_p; then
23935 while test ! -d "$as_dir"; do
23936 as_dirs="$as_dir $as_dirs"
23937 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23939 X"$as_dir" : 'X\(//\)[^/]' \| \
23940 X"$as_dir" : 'X\(//\)$' \| \
23941 X"$as_dir" : 'X\(/\)' \| \
23942 . : '\(.\)' 2>/dev/null ||
23944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23946 /^X\(\/\/\)$/{ s//\1/; q; }
23947 /^X\(\/\).*/{ s//\1/; q; }
23950 test ! -n "$as_dirs" || mkdir $as_dirs
23951 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23952 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23953 { (exit 1); exit 1; }; }; }
23957 if test "$ac_dir" != .; then
23958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23959 # A "../" for each directory in $ac_dir_suffix.
23960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23962 ac_dir_suffix= ac_top_builddir=
23966 .) # No --srcdir option. We are building in place.
23968 if test -z "$ac_top_builddir"; then
23971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23973 [\\/]* | ?:[\\/]* ) # Absolute path.
23974 ac_srcdir=$srcdir$ac_dir_suffix;
23975 ac_top_srcdir=$srcdir ;;
23976 *) # Relative path.
23977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23981 # Do not use `cd foo && pwd` to compute absolute paths, because
23982 # the directories may not exist.
23984 .) ac_abs_builddir="$ac_dir";;
23987 .) ac_abs_builddir=`pwd`;;
23988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23992 case $ac_abs_builddir in
23993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23995 case ${ac_top_builddir}. in
23996 .) ac_abs_top_builddir=$ac_abs_builddir;;
23997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24001 case $ac_abs_builddir in
24002 .) ac_abs_srcdir=$ac_srcdir;;
24005 .) ac_abs_srcdir=$ac_abs_builddir;;
24006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24010 case $ac_abs_builddir in
24011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24013 case $ac_top_srcdir in
24014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24021 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24022 echo "$as_me: executing $ac_dest commands" >&6;}
24024 check_win32_symlinks )
24025 # Links sometimes fail undetected on Mingw -
24026 # so here we detect it and warn the user
24027 for FILE in $CONFIG_LINKS
24029 # test -e works for symlinks in the MinGW console
24030 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
24031 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
24038 cat >>$CONFIG_STATUS <<\_ACEOF
24040 { (exit 0); exit 0; }
24042 chmod +x $CONFIG_STATUS
24043 ac_clean_files=$ac_clean_files_save
24046 # configure is writing to config.log, and then calls config.status.
24047 # config.status does its own redirection, appending to config.log.
24048 # Unfortunately, on DOS this fails, as config.log is still kept open
24049 # by configure, so config.status won't be able to write to it; its
24050 # output is simply discarded. So we exec the FD to /dev/null,
24051 # effectively closing config.log, so it can be properly (re)opened and
24052 # appended to by config.status. When coming back to configure, we
24053 # need to make the FD available again.
24054 if test "$no_create" != yes; then
24056 ac_config_status_args=
24057 test "$silent" = yes &&
24058 ac_config_status_args="$ac_config_status_args --quiet"
24060 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24062 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24063 # would make configure fail if this is the last instruction.
24064 $ac_cs_success || { (exit 1); exit 1; }