Clarify error message
[PostgreSQL.git] / configure
blobdd924176d1b1c365d2fd6ab7b336e8ff2fabf6c2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4beta2.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29 esac
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
54 rm -f conf$$.sh
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60 else
61 as_unset=false
65 # IFS
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
72 IFS=" "" $as_nl"
74 # Find who we are. Look in the path if we contain no directory separator.
75 case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91 as_myself=$0
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
106 # NLS nuisances.
107 for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 done
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123 else
124 as_expr=false
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129 else
130 as_basename=false
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
144 /^X\/\(\/\/\)$/{
145 s//\1/
148 /^X\/\(\/\).*/{
149 s//\1/
152 s/.*/./; q'`
154 # CDPATH.
155 $as_unset CDPATH
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161 else
162 as_have_required=no
165 if test $as_have_required = yes && (eval ":
166 (as_func_return () {
167 (exit \$1)
169 as_func_success () {
170 as_func_return 0
172 as_func_failure () {
173 as_func_return 1
175 as_func_ret_success () {
176 return 0
178 as_func_ret_failure () {
179 return 1
182 exitcode=0
183 if as_func_success; then
185 else
186 exitcode=1
187 echo as_func_success failed.
190 if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
197 else
198 exitcode=1
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 else
210 exitcode=1
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
223 else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236 done
237 IFS=$as_save_IFS
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251 else
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254 esac
260 _ASEOF
261 }; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272 else
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275 esac
281 (as_func_return () {
282 (exit $1)
284 as_func_success () {
285 as_func_return 0
287 as_func_failure () {
288 as_func_return 1
290 as_func_ret_success () {
291 return 0
293 as_func_ret_failure () {
294 return 1
297 exitcode=0
298 if as_func_success; then
300 else
301 exitcode=1
302 echo as_func_success failed.
305 if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
312 else
313 exitcode=1
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 else
325 exitcode=1
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
337 _ASEOF
338 }; then
339 break
344 done
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
371 (exit \$1)
373 as_func_success () {
374 as_func_return 0
376 as_func_failure () {
377 as_func_return 1
379 as_func_ret_success () {
380 return 0
382 as_func_ret_failure () {
383 return 1
386 exitcode=0
387 if as_func_success; then
389 else
390 exitcode=1
391 echo as_func_success failed.
394 if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
401 else
402 exitcode=1
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 else
414 exitcode=1
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472 else
473 as_dirname=false
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
484 ECHO_N='-n';;
485 esac
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490 else
491 as_expr=false
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497 else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512 else
513 as_ln_s='cp -p'
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520 else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
525 if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
527 else
528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
556 exec 7<&0 </dev/null 6>&1
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 # Initializations.
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4beta2'
580 PACKAGE_STRING='PostgreSQL 8.4beta2'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 # include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 # include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 PG_MAJORVERSION
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
668 PORTNAME
669 enable_nls
670 WANTED_LANGUAGES
671 default_port
672 enable_shared
673 enable_rpath
674 enable_debug
675 enable_profiling
676 GCOV
677 LCOV
678 GENHTML
679 enable_coverage
680 DTRACE
681 DTRACEFLAGS
682 enable_dtrace
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
690 SUN_STUDIO_CC
694 autodepend
695 INCLUDES
696 enable_thread_safety
697 with_tcl
698 with_perl
699 with_python
700 with_gssapi
701 with_krb5
702 krb_srvtab
703 with_pam
704 with_ldap
705 with_bonjour
706 with_openssl
707 with_ossp_uuid
708 XML2_CONFIG
709 with_libxml
710 with_libxslt
711 with_system_tzdata
712 with_zlib
713 GREP
714 EGREP
715 ELF_SYS
716 LDFLAGS_SL
718 with_gnu_ld
719 ld_R_works
720 RANLIB
721 STRIP
722 STRIP_STATIC_LIB
723 STRIP_SHARED_LIB
725 DLLTOOL
726 DLLWRAP
727 WINDRES
729 LN_S
731 BISON
732 BISONFLAGS
733 FLEX
734 FLEXFLAGS
735 PERL
736 perl_archlibexp
737 perl_privlibexp
738 perl_useshrplib
739 perl_embed_ldflags
740 PYTHON
741 python_version
742 python_configdir
743 python_includespec
744 python_libdir
745 python_libspec
746 python_additional_libs
748 OSSP_UUID_LIBS
749 HAVE_IPV6
750 LIBOBJS
751 acx_pthread_config
752 PTHREAD_CC
753 PTHREAD_LIBS
754 PTHREAD_CFLAGS
755 LDAP_LIBS_FE
756 LDAP_LIBS_BE
757 HAVE_POSIX_SIGNALS
758 MSGFMT
759 MSGMERGE
760 XGETTEXT
761 TCLSH
762 TCL_CONFIG_SH
763 TCL_INCLUDE_SPEC
764 TCL_LIB_FILE
765 TCL_LIBS
766 TCL_LIB_SPEC
767 TCL_SHARED_BUILD
768 TCL_SHLIB_LD_LIBS
769 NSGMLS
770 JADE
771 have_docbook
772 DOCBOOKSTYLE
773 COLLATEINDEX
774 SGMLSPL
775 DOCBOOK2MAN
776 vpath_build
777 LTLIBOBJS'
778 ac_subst_files=''
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
788 LDFLAGS_SL
789 DOCBOOKSTYLE'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
838 ac_prev=
839 ac_dashdash=
840 for ac_option
842 # If the previous option needs an argument, assign it.
843 if test -n "$ac_prev"; then
844 eval $ac_prev=\$ac_option
845 ac_prev=
846 continue
849 case $ac_option in
850 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 *) ac_optarg=yes ;;
852 esac
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
858 ac_dashdash=yes ;;
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
877 --config-cache | -C)
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897 { (exit 1); exit 1; }; }
898 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899 eval enable_$ac_feature=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918 eval enable_$ac_feature=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=\$ac_optarg ;;
1117 -without-* | --without-*)
1118 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146 { (exit 1); exit 1; }; }
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154 { (exit 1); exit 1; }; }
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 { echo "$as_me: error: missing argument to $ac_option" >&2
1172 { (exit 1); exit 1; }; }
1175 # Be sure to have absolute directory names.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 case $ac_val in
1183 [\\/$]* | ?:[\\/]* ) continue;;
1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 esac
1186 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187 { (exit 1); exit 1; }; }
1188 done
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 { echo "$as_me: error: Working directory cannot be determined" >&2
1218 { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 { echo "$as_me: error: pwd does not report name of working directory" >&2
1221 { (exit 1); exit 1; }; }
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$0" : 'X\(//\)[^/]' \| \
1231 X"$0" : 'X\(//\)$' \| \
1232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1242 /^X\(\/\/\)$/{
1243 s//\1/
1246 /^X\(\/\).*/{
1247 s//\1/
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1255 else
1256 ac_srcdir_defaulted=no
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261 { (exit 1); exit 1; }; }
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266 { (exit 1); exit 1; }; }
1267 pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 srcdir=.
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_env_${ac_var}_value=\$${ac_var}
1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1286 # Report the --help message.
1288 if test "$ac_init_help" = "long"; then
1289 # Omit some internal or obsolete options to make the list less imposing.
1290 # This message is too long to be a string in the A/UX 3.1 sh.
1291 cat <<_ACEOF
1292 \`configure' configures PostgreSQL 8.4beta2 to adapt to many kinds of systems.
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE. See below for descriptions of some of the useful variables.
1299 Defaults for the options are specified in brackets.
1301 Configuration:
1302 -h, --help display this help and exit
1303 --help=short display options specific to this package
1304 --help=recursive display the short help of all the included packages
1305 -V, --version display version information and exit
1306 -q, --quiet, --silent do not print \`checking...' messages
1307 --cache-file=FILE cache test results in FILE [disabled]
1308 -C, --config-cache alias for \`--cache-file=config.cache'
1309 -n, --no-create do not create output files
1310 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1312 Installation directories:
1313 --prefix=PREFIX install architecture-independent files in PREFIX
1314 [$ac_default_prefix]
1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 [PREFIX]
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1323 For better control, use the options below.
1325 Fine tuning of the installation directories:
1326 --bindir=DIR user executables [EPREFIX/bin]
1327 --sbindir=DIR system admin executables [EPREFIX/sbin]
1328 --libexecdir=DIR program executables [EPREFIX/libexec]
1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332 --libdir=DIR object code libraries [EPREFIX/lib]
1333 --includedir=DIR C header files [PREFIX/include]
1334 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337 --infodir=DIR info documentation [DATAROOTDIR/info]
1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339 --mandir=DIR man documentation [DATAROOTDIR/man]
1340 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1341 --htmldir=DIR html documentation [DOCDIR]
1342 --dvidir=DIR dvi documentation [DOCDIR]
1343 --pdfdir=DIR pdf documentation [DOCDIR]
1344 --psdir=DIR ps documentation [DOCDIR]
1345 _ACEOF
1347 cat <<\_ACEOF
1349 System types:
1350 --build=BUILD configure for building on BUILD [guessed]
1351 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352 _ACEOF
1355 if test -n "$ac_init_help"; then
1356 case $ac_init_help in
1357 short | recursive ) echo "Configuration of PostgreSQL 8.4beta2:";;
1358 esac
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --disable-integer-datetimes
1365 disable 64-bit integer date/time support
1366 --enable-nls[=LANGUAGES]
1367 enable Native Language Support
1368 --disable-shared do not build shared libraries
1369 --disable-rpath do not embed shared library search path in
1370 executables
1371 --disable-spinlocks do not use spinlocks
1372 --enable-debug build with debugging symbols (-g)
1373 --enable-profiling build with profiling enabled
1374 --enable-coverage build with coverage testing instrumentation
1375 --enable-dtrace build with DTrace support
1376 --enable-depend turn on automatic dependency tracking
1377 --enable-cassert enable assertion checks (for debugging)
1378 --enable-thread-safety make client libraries thread-safe
1379 --enable-thread-safety-force
1380 force thread-safety despite thread test failure
1381 --disable-float4-byval disable float4 passed by value
1382 --disable-float8-byval disable float8 passed by value
1383 --disable-largefile omit support for large files
1385 Optional Packages:
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-template=NAME override operating system template
1389 --with-includes=DIRS look for additional header files in DIRS
1390 --with-libraries=DIRS look for additional libraries in DIRS
1391 --with-libs=DIRS alternative spelling of --with-libraries
1392 --with-pgport=PORTNUM set default port number [5432]
1393 --with-blocksize=BLOCKSIZE
1394 set table block size in kB [8]
1395 --with-segsize=SEGSIZE set table segment size in GB [1]
1396 --with-wal-blocksize=BLOCKSIZE
1397 set WAL block size in kB [8]
1398 --with-wal-segsize=SEGSIZE
1399 set WAL segment size in MB [16]
1400 --with-CC=CMD set compiler (deprecated)
1401 --with-tcl build Tcl modules (PL/Tcl)
1402 --with-tclconfig=DIR tclConfig.sh is in DIR
1403 --with-perl build Perl modules (PL/Perl)
1404 --with-python build Python modules (PL/Python)
1405 --with-gssapi build with GSSAPI support
1406 --with-krb5 build with Kerberos 5 support
1407 --with-krb-srvnam=NAME default service principal name in Kerberos
1408 [postgres]
1409 --with-pam build with PAM support
1410 --with-ldap build with LDAP support
1411 --with-bonjour build with Bonjour support
1412 --with-openssl build with OpenSSL support
1413 --without-readline do not use GNU Readline nor BSD Libedit for editing
1414 --with-libedit-preferred
1415 prefer BSD Libedit over GNU Readline
1416 --with-ossp-uuid use OSSP UUID library when building
1417 contrib/uuid-ossp
1418 --with-libxml build with XML support
1419 --with-libxslt use XSLT support when building contrib/xml2
1420 --with-system-tzdata=DIR
1421 use system time zone data in DIR
1422 --without-zlib do not use Zlib
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1425 Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
1433 CPP C preprocessor
1434 LDFLAGS_SL linker flags for shared library linking
1435 DOCBOOKSTYLE
1436 location of DocBook stylesheets
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1442 _ACEOF
1443 ac_status=$?
1446 if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449 test -d "$ac_dir" || continue
1450 ac_builddir=.
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1468 case $srcdir in
1469 .) # We are building in place.
1470 ac_srcdir=.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1492 else
1493 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1496 done
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501 cat <<\_ACEOF
1502 PostgreSQL configure 8.4beta2
1503 generated by GNU Autoconf 2.61
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1511 _ACEOF
1512 exit
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1518 It was created by PostgreSQL $as_me 8.4beta2, which was
1519 generated by GNU Autoconf 2.61. Invocation command line was
1521 $ $0 $@
1523 _ACEOF
1524 exec 5>>config.log
1526 cat <<_ASUNAME
1527 ## --------- ##
1528 ## Platform. ##
1529 ## --------- ##
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1540 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1541 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1544 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1545 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1546 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1548 _ASUNAME
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 echo "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1559 } >&5
1561 cat >&5 <<_ACEOF
1564 ## ----------- ##
1565 ## Core tests. ##
1566 ## ----------- ##
1568 _ACEOF
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1576 ac_configure_args=
1577 ac_configure_args0=
1578 ac_configure_args1=
1579 ac_must_keep_next=false
1580 for ac_pass in 1 2
1582 for ac_arg
1584 case $ac_arg in
1585 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587 | -silent | --silent | --silen | --sile | --sil)
1588 continue ;;
1589 *\'*)
1590 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 esac
1592 case $ac_pass in
1593 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1595 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596 if test $ac_must_keep_next = true; then
1597 ac_must_keep_next=false # Got value, back to normal.
1598 else
1599 case $ac_arg in
1600 *=* | --config-cache | -C | -disable-* | --disable-* \
1601 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603 | -with-* | --with-* | -without-* | --without-* | --x)
1604 case "$ac_configure_args0 " in
1605 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 esac
1608 -* ) ac_must_keep_next=true ;;
1609 esac
1611 ac_configure_args="$ac_configure_args '$ac_arg'"
1613 esac
1614 done
1615 done
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log. We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625 # Save into config.log some information that might help in debugging.
1627 echo
1629 cat <<\_ASBOX
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1633 _ASBOX
1634 echo
1635 # The following way of writing the cache mishandles newlines in values,
1637 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638 eval ac_val=\$$ac_var
1639 case $ac_val in #(
1640 *${as_nl}*)
1641 case $ac_var in #(
1642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 esac
1645 case $ac_var in #(
1646 _ | IFS | as_nl) ;; #(
1647 *) $as_unset $ac_var ;;
1648 esac ;;
1649 esac
1650 done
1651 (set) 2>&1 |
1652 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653 *${as_nl}ac_space=\ *)
1654 sed -n \
1655 "s/'\''/'\''\\\\'\'''\''/g;
1656 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657 ;; #(
1659 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 esac |
1662 sort
1664 echo
1666 cat <<\_ASBOX
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1670 _ASBOX
1671 echo
1672 for ac_var in $ac_subst_vars
1674 eval ac_val=\$$ac_var
1675 case $ac_val in
1676 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 esac
1678 echo "$ac_var='\''$ac_val'\''"
1679 done | sort
1680 echo
1682 if test -n "$ac_subst_files"; then
1683 cat <<\_ASBOX
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1687 _ASBOX
1688 echo
1689 for ac_var in $ac_subst_files
1691 eval ac_val=\$$ac_var
1692 case $ac_val in
1693 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 esac
1695 echo "$ac_var='\''$ac_val'\''"
1696 done | sort
1697 echo
1700 if test -s confdefs.h; then
1701 cat <<\_ASBOX
1702 ## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##
1705 _ASBOX
1706 echo
1707 cat confdefs.h
1708 echo
1710 test "$ac_signal" != 0 &&
1711 echo "$as_me: caught signal $ac_signal"
1712 echo "$as_me: exit $exit_status"
1713 } >&5
1714 rm -f core *.core core.conftest.* &&
1715 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716 exit $exit_status
1718 for ac_signal in 1 2 13 15; do
1719 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1720 done
1721 ac_signal=0
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1726 # Predefined preprocessor variables.
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1730 _ACEOF
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1740 _ACEOF
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1745 _ACEOF
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1750 _ACEOF
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756 set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 else
1760 set x "$ac_default_prefix/share/config.site" \
1761 "$ac_default_prefix/etc/config.site"
1763 shift
1764 for ac_site_file
1766 if test -r "$ac_site_file"; then
1767 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769 sed 's/^/| /' "$ac_site_file" >&5
1770 . "$ac_site_file"
1772 done
1774 if test -r "$cache_file"; then
1775 # Some versions of bash will fail to source /dev/null (special
1776 # files actually), so we avoid doing that.
1777 if test -f "$cache_file"; then
1778 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1780 case $cache_file in
1781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782 *) . "./$cache_file";;
1783 esac
1785 else
1786 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1788 >$cache_file
1791 # Check that the precious variables saved in the cache have kept the same
1792 # value.
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796 eval ac_new_set=\$ac_env_${ac_var}_set
1797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798 eval ac_new_val=\$ac_env_${ac_var}_value
1799 case $ac_old_set,$ac_new_set in
1800 set,)
1801 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803 ac_cache_corrupted=: ;;
1804 ,set)
1805 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1807 ac_cache_corrupted=: ;;
1808 ,);;
1810 if test "x$ac_old_val" != "x$ac_new_val"; then
1811 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1813 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1814 echo "$as_me: former value: $ac_old_val" >&2;}
1815 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1816 echo "$as_me: current value: $ac_new_val" >&2;}
1817 ac_cache_corrupted=:
1818 fi;;
1819 esac
1820 # Pass precious variables to config.status.
1821 if test "$ac_new_set" = set; then
1822 case $ac_new_val in
1823 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1824 *) ac_arg=$ac_var=$ac_new_val ;;
1825 esac
1826 case " $ac_configure_args " in
1827 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1828 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1829 esac
1831 done
1832 if $ac_cache_corrupted; then
1833 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1834 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1835 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1837 { (exit 1); exit 1; }; }
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 ac_aux_dir=
1876 for ac_dir in config "$srcdir"/config; do
1877 if test -f "$ac_dir/install-sh"; then
1878 ac_aux_dir=$ac_dir
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1880 break
1881 elif test -f "$ac_dir/install.sh"; then
1882 ac_aux_dir=$ac_dir
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1884 break
1885 elif test -f "$ac_dir/shtool"; then
1886 ac_aux_dir=$ac_dir
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1888 break
1890 done
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1907 configure_args=$ac_configure_args
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1913 _ACEOF
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1920 _ACEOF
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 template=
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2012 pgac_args="$pgac_args with_template"
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017 withval=$with_template;
2018 case $withval in
2019 yes)
2020 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022 { (exit 1); exit 1; }; }
2025 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027 { (exit 1); exit 1; }; }
2031 case $withval in
2032 list) echo; ls "$srcdir/src/template"; exit;;
2033 *) if test -f "$srcdir/src/template/$with_template" ; then
2034 template=$withval
2035 else
2036 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038 { (exit 1); exit 1; }; }
2039 fi;;
2040 esac
2043 esac
2045 else
2047 # --with-template not given
2049 case $host_os in
2050 aix*) template=aix ;;
2051 bsdi*) template=bsdi ;;
2052 cygwin*) template=cygwin ;;
2053 darwin*) template=darwin ;;
2054 dgux*) template=dgux ;;
2055 freebsd*) template=freebsd ;;
2056 hpux*) template=hpux ;;
2057 irix*) template=irix ;;
2058 linux*|gnu*|k*bsd*-gnu)
2059 template=linux ;;
2060 mingw*) template=win32 ;;
2061 netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063 openbsd*) template=openbsd ;;
2064 osf*) template=osf ;;
2065 sco*) template=sco ;;
2066 solaris*) template=solaris ;;
2067 sunos*) template=sunos4 ;;
2068 sysv4.2*)
2069 case $host_vendor in
2070 univel) template=univel ;;
2071 esac ;;
2072 sysv4*) template=svr4 ;;
2073 sysv5*) template=unixware ;;
2074 ultrix*) template=ultrix4 ;;
2075 esac
2077 if test x"$template" = x"" ; then
2078 { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2084 Please also contact <pgsql-bugs@postgresql.org> to see about
2085 rectifying this. Include the above 'checking host system type...'
2086 line.
2087 *******************************************************************
2088 " >&5
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2095 Please also contact <pgsql-bugs@postgresql.org> to see about
2096 rectifying this. Include the above 'checking host system type...'
2097 line.
2098 *******************************************************************
2099 " >&2;}
2100 { (exit 1); exit 1; }; }
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2111 PORTNAME=$template
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set). This can be overridden by the template file
2116 # when it's executed.
2117 need_tas=no
2118 tas_file=dummy.s
2123 ## Command line options
2127 # Add non-standard directories to the include path
2130 pgac_args="$pgac_args with_includes"
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135 withval=$with_includes;
2136 case $withval in
2137 yes)
2138 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145 { (exit 1); exit 1; }; }
2150 esac
2158 # Add non-standard directories to the library search path
2161 pgac_args="$pgac_args with_libraries"
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166 withval=$with_libraries;
2167 case $withval in
2168 yes)
2169 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171 { (exit 1); exit 1; }; }
2174 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176 { (exit 1); exit 1; }; }
2179 LIBRARY_DIRS=$withval
2181 esac
2188 pgac_args="$pgac_args with_libs"
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2193 withval=$with_libs;
2194 case $withval in
2195 yes)
2196 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198 { (exit 1); exit 1; }; }
2201 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203 { (exit 1); exit 1; }; }
2206 LIBRARY_DIRS=$withval
2208 esac
2216 # 64-bit integer date/time storage: enabled by default.
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2221 pgac_args="$pgac_args enable_integer_datetimes"
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225 enableval=$enable_integer_datetimes;
2226 case $enableval in
2227 yes)
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2231 _ACEOF
2238 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240 { (exit 1); exit 1; }; }
2242 esac
2244 else
2245 enable_integer_datetimes=yes
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2249 _ACEOF
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2259 # NLS
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2264 pgac_args="$pgac_args enable_nls"
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268 enableval=$enable_nls;
2269 case $enableval in
2270 yes)
2277 enable_nls=yes
2278 WANTED_LANGUAGES=$enableval
2280 esac
2282 else
2283 enable_nls=no
2288 if test "$enable_nls" = yes; then
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2292 _ACEOF
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2302 # Default port number (--with-pgport), default 5432
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2307 pgac_args="$pgac_args with_pgport"
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312 withval=$with_pgport;
2313 case $withval in
2314 yes)
2315 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317 { (exit 1); exit 1; }; }
2320 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322 { (exit 1); exit 1; }; }
2325 default_port=$withval
2327 esac
2329 else
2330 default_port=5432
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2340 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2345 _ACEOF
2350 # Option to disable shared libraries
2353 pgac_args="$pgac_args enable_shared"
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357 enableval=$enable_shared;
2358 case $enableval in
2359 yes)
2366 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368 { (exit 1); exit 1; }; }
2370 esac
2372 else
2373 enable_shared=yes
2381 # '-rpath'-like feature can be disabled
2384 pgac_args="$pgac_args enable_rpath"
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388 enableval=$enable_rpath;
2389 case $enableval in
2390 yes)
2397 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399 { (exit 1); exit 1; }; }
2401 esac
2403 else
2404 enable_rpath=yes
2412 # Spinlocks
2415 pgac_args="$pgac_args enable_spinlocks"
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419 enableval=$enable_spinlocks;
2420 case $enableval in
2421 yes)
2428 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430 { (exit 1); exit 1; }; }
2432 esac
2434 else
2435 enable_spinlocks=yes
2442 # --enable-debug adds -g to compiler flags
2445 pgac_args="$pgac_args enable_debug"
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449 enableval=$enable_debug;
2450 case $enableval in
2451 yes)
2458 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460 { (exit 1); exit 1; }; }
2462 esac
2464 else
2465 enable_debug=no
2473 # --enable-profiling enables gcc profiling
2476 pgac_args="$pgac_args enable_profiling"
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480 enableval=$enable_profiling;
2481 case $enableval in
2482 yes)
2489 { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491 { (exit 1); exit 1; }; }
2493 esac
2495 else
2496 enable_profiling=no
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2507 pgac_args="$pgac_args enable_coverage"
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511 enableval=$enable_coverage;
2512 case $enableval in
2513 yes)
2514 for ac_prog in gcov
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$GCOV"; then
2524 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_GCOV="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2537 done
2538 done
2539 IFS=$as_save_IFS
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545 { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$GCOV" && break
2554 done
2556 if test -z "$GCOV"; then
2557 { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559 { (exit 1); exit 1; }; }
2561 for ac_prog in lcov
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$LCOV"; then
2571 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_LCOV="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592 { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$LCOV" && break
2601 done
2603 if test -z "$LCOV"; then
2604 { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606 { (exit 1); exit 1; }; }
2608 for ac_prog in genhtml
2610 # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617 if test -n "$GENHTML"; then
2618 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_GENHTML="$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 break 2
2631 done
2632 done
2633 IFS=$as_save_IFS
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639 { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2641 else
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$GENHTML" && break
2648 done
2650 if test -z "$GENHTML"; then
2651 { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653 { (exit 1); exit 1; }; }
2660 { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662 { (exit 1); exit 1; }; }
2664 esac
2666 else
2667 enable_coverage=no
2675 # DTrace
2678 pgac_args="$pgac_args enable_dtrace"
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682 enableval=$enable_dtrace;
2683 case $enableval in
2684 yes)
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2688 _ACEOF
2690 for ac_prog in dtrace
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 if test -n "$DTRACE"; then
2700 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_DTRACE="$ac_prog"
2710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2713 done
2714 done
2715 IFS=$as_save_IFS
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721 { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2723 else
2724 { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2729 test -n "$DTRACE" && break
2730 done
2732 if test -z "$DTRACE"; then
2733 { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735 { (exit 1); exit 1; }; }
2743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745 { (exit 1); exit 1; }; }
2747 esac
2749 else
2750 enable_dtrace=no
2758 # Block size
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2763 pgac_args="$pgac_args with_blocksize"
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768 withval=$with_blocksize;
2769 case $withval in
2770 yes)
2771 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773 { (exit 1); exit 1; }; }
2776 { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778 { (exit 1); exit 1; }; }
2781 blocksize=$withval
2783 esac
2785 else
2786 blocksize=8
2790 case ${blocksize} in
2791 1) BLCKSZ=1024;;
2792 2) BLCKSZ=2048;;
2793 4) BLCKSZ=4096;;
2794 8) BLCKSZ=8192;;
2795 16) BLCKSZ=16384;;
2796 32) BLCKSZ=32768;;
2797 *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799 { (exit 1); exit 1; }; }
2800 esac
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2807 _ACEOF
2811 # Relation segment size
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2816 pgac_args="$pgac_args with_segsize"
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821 withval=$with_segsize;
2822 case $withval in
2823 yes)
2824 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826 { (exit 1); exit 1; }; }
2829 { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831 { (exit 1); exit 1; }; }
2834 segsize=$withval
2836 esac
2838 else
2839 segsize=1
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2853 _ACEOF
2857 # WAL block size
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2862 pgac_args="$pgac_args with_wal_blocksize"
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867 withval=$with_wal_blocksize;
2868 case $withval in
2869 yes)
2870 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872 { (exit 1); exit 1; }; }
2875 { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877 { (exit 1); exit 1; }; }
2880 wal_blocksize=$withval
2882 esac
2884 else
2885 wal_blocksize=8
2889 case ${wal_blocksize} in
2890 1) XLOG_BLCKSZ=1024;;
2891 2) XLOG_BLCKSZ=2048;;
2892 4) XLOG_BLCKSZ=4096;;
2893 8) XLOG_BLCKSZ=8192;;
2894 16) XLOG_BLCKSZ=16384;;
2895 32) XLOG_BLCKSZ=32768;;
2896 64) XLOG_BLCKSZ=65536;;
2897 *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899 { (exit 1); exit 1; }; }
2900 esac
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2907 _ACEOF
2911 # WAL segment size
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2916 pgac_args="$pgac_args with_wal_segsize"
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921 withval=$with_wal_segsize;
2922 case $withval in
2923 yes)
2924 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926 { (exit 1); exit 1; }; }
2929 { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931 { (exit 1); exit 1; }; }
2934 wal_segsize=$withval
2936 esac
2938 else
2939 wal_segsize=16
2943 case ${wal_segsize} in
2944 1) ;;
2945 2) ;;
2946 4) ;;
2947 8) ;;
2948 16) ;;
2949 32) ;;
2950 64) ;;
2951 *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953 { (exit 1); exit 1; }; }
2954 esac
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2961 _ACEOF
2965 # C compiler
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2970 # variable.
2972 pgac_args="$pgac_args with_CC"
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2977 withval=$with_CC;
2978 case $withval in
2979 yes)
2980 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982 { (exit 1); exit 1; }; }
2985 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987 { (exit 1); exit 1; }; }
2990 CC=$with_CC
2992 esac
2998 case $template in
2999 aix) pgac_cc_list="gcc xlc";;
3000 irix) pgac_cc_list="cc";; # no gcc
3001 *) pgac_cc_list="gcc cc";;
3002 esac
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 for ac_prog in $pgac_cc_list
3012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3043 else
3044 { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3049 test -n "$CC" && break
3050 done
3052 if test -z "$CC"; then
3053 ac_ct_CC=$CC
3054 for ac_prog in $pgac_cc_list
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$ac_ct_CC"; then
3064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_ac_ct_CC="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3087 else
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3093 test -n "$ac_ct_CC" && break
3094 done
3096 if test "x$ac_ct_CC" = x; then
3097 CC=""
3098 else
3099 case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet. If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109 CC=$ac_ct_CC
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compiler --version >&5") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compiler -v >&5") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_compiler -V >&5") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort. b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions. Remove them first so a
3185 # subsequent execution test works.
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3189 case $ac_file in
3190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 esac
3193 done
3194 rm -f $ac_rmfiles
3196 if { (ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_link_default") 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; then
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3210 # Autoconf.
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3217 [ab].out )
3218 # We found the default executable, but exeext='' is most
3219 # certainly right.
3220 break;;
3221 *.* )
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 then :; else
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3230 # actually working.
3231 break;;
3233 break;;
3234 esac
3235 done
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 else
3239 ac_file=''
3242 { echo "$as_me:$LINENO: result: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252 { (exit 77); exit 77; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264 if { ac_try='./$ac_file'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3274 cross_compiling=no
3275 else
3276 if test "$cross_compiling" = maybe; then
3277 cross_compiling=yes
3278 else
3279 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285 { (exit 1); exit 1; }; }
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run. If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3301 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_link") 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; then
3313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 # `rm'.
3317 for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 break;;
3323 * ) break;;
3324 esac
3325 done
3326 else
3327 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3354 main ()
3358 return 0;
3360 _ACEOF
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; then
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377 break;;
3378 esac
3379 done
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3396 ac_objext=$OBJEXT
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3410 main ()
3412 #ifndef __GNUC__
3413 choke me
3414 #endif
3417 return 0;
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427 (eval "$ac_compile") 2>conftest.er1
3428 ac_status=$?
3429 grep -v '^ *+' conftest.er1 >conftest.err
3430 rm -f conftest.er1
3431 cat conftest.err >&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } && {
3434 test -z "$ac_c_werror_flag" ||
3435 test ! -s conftest.err
3436 } && test -s conftest.$ac_objext; then
3437 ac_compiler_gnu=yes
3438 else
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 ac_compiler_gnu=no
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h. */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compile") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && {
3492 test -z "$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 } && test -s conftest.$ac_objext; then
3495 ac_cv_prog_cc_g=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 CFLAGS=""
3501 cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h. */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h. */
3509 main ()
3513 return 0;
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3534 else
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 CFLAGS="-g"
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h. */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 main ()
3552 return 0;
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_compile") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } && {
3569 test -z "$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 } && test -s conftest.$ac_objext; then
3572 ac_cv_prog_cc_g=yes
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 ac_c_werror_flag=$ac_save_c_werror_flag
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592 CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
3595 CFLAGS="-g -O2"
3596 else
3597 CFLAGS="-g"
3599 else
3600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3630 return p[i];
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3663 main ()
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 return 0;
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_compile") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } && {
3688 test -z "$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 } && test -s conftest.$ac_objext; then
3691 ac_cv_prog_cc_c89=$ac_arg
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3699 rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3706 # AC_CACHE_VAL
3707 case "x$ac_cv_prog_cc_c89" in
3709 { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3711 xno)
3712 { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3715 CC="$CC $ac_cv_prog_cc_c89"
3716 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3718 esac
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own. We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3742 #ifndef __INTEL_COMPILER
3743 choke me
3744 #endif
3746 return 0;
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (ac_try="$ac_compile"
3751 case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3757 ac_status=$?
3758 grep -v '^ *+' conftest.er1 >conftest.err
3759 rm -f conftest.er1
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3766 ICC=yes
3767 else
3768 echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ICC=no
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3786 main ()
3788 #ifndef __SUNPRO_C
3789 choke me
3790 #endif
3792 return 0;
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_compile") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest.$ac_objext; then
3812 SUN_STUDIO_CC=yes
3813 else
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 SUN_STUDIO_CC=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 unset CFLAGS
3827 # Read the template
3829 . "$srcdir/src/template/$template" || exit
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else: If the template file set something, that is used.
3834 # else: If coverage was enabled, don't set anything.
3835 # else: If the compiler is GCC, then we use -O2.
3836 # else: If the compiler is something else, then we use -O, unless debugging.
3838 if test "$ac_env_CFLAGS_set" = set; then
3839 CFLAGS=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841 : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843 : # no optimization by default
3844 elif test "$GCC" = yes; then
3845 CFLAGS="-O2"
3846 else
3847 # if the user selected debug mode, don't use -O
3848 if test "$enable_debug" != yes; then
3849 CFLAGS="-O"
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3856 # but has its own. Also check other compiler-specific flags here.
3858 if test "$GCC" = yes -a "$ICC" = no; then
3859 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3860 # These work in some but not all gcc versions
3861 { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3862 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3863 pgac_save_CFLAGS=$CFLAGS
3864 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3873 main ()
3877 return 0;
3879 _ACEOF
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3888 ac_status=$?
3889 grep -v '^ *+' conftest.er1 >conftest.err
3890 rm -f conftest.er1
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3897 { echo "$as_me:$LINENO: result: yes" >&5
3898 echo "${ECHO_T}yes" >&6; }
3899 else
3900 echo "$as_me: failed program was:" >&5
3901 sed 's/^/| /' conftest.$ac_ext >&5
3903 CFLAGS="$pgac_save_CFLAGS"
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3911 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3912 pgac_save_CFLAGS=$CFLAGS
3913 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3922 main ()
3926 return 0;
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3937 ac_status=$?
3938 grep -v '^ *+' conftest.er1 >conftest.err
3939 rm -f conftest.er1
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest.$ac_objext; then
3946 { echo "$as_me:$LINENO: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6; }
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3952 CFLAGS="$pgac_save_CFLAGS"
3953 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 # Disable strict-aliasing rules; needed for gcc 3.3+
3960 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3961 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3962 pgac_save_CFLAGS=$CFLAGS
3963 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h. */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3972 main ()
3976 return 0;
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_compile") 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } && {
3993 test -z "$ac_c_werror_flag" ||
3994 test ! -s conftest.err
3995 } && test -s conftest.$ac_objext; then
3996 { echo "$as_me:$LINENO: result: yes" >&5
3997 echo "${ECHO_T}yes" >&6; }
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 CFLAGS="$pgac_save_CFLAGS"
4003 { echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6; }
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4010 { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4011 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4012 pgac_save_CFLAGS=$CFLAGS
4013 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4022 main ()
4026 return 0;
4028 _ACEOF
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
4046 { echo "$as_me:$LINENO: result: yes" >&5
4047 echo "${ECHO_T}yes" >&6; }
4048 else
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 CFLAGS="$pgac_save_CFLAGS"
4053 { echo "$as_me:$LINENO: result: no" >&5
4054 echo "${ECHO_T}no" >&6; }
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 elif test "$ICC" = yes; then
4060 # Intel's compiler has a bug/misoptimization in checking for
4061 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4062 { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4063 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4064 pgac_save_CFLAGS=$CFLAGS
4065 CFLAGS="$pgac_save_CFLAGS -mp1"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h. */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4074 main ()
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_c_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4098 { echo "$as_me:$LINENO: result: yes" >&5
4099 echo "${ECHO_T}yes" >&6; }
4100 else
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 CFLAGS="$pgac_save_CFLAGS"
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 # Make sure strict aliasing is off (though this is said to be the default)
4112 { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4113 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4114 pgac_save_CFLAGS=$CFLAGS
4115 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4124 main ()
4128 return 0;
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 { echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6; }
4150 else
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 CFLAGS="$pgac_save_CFLAGS"
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 elif test "$PORTNAME" = "aix"; then
4162 # AIX's xlc has to have strict aliasing turned off too
4163 { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4164 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4165 pgac_save_CFLAGS=$CFLAGS
4166 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4167 cat >conftest.$ac_ext <<_ACEOF
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 rm -f conftest.$ac_objext
4183 if { (ac_try="$ac_compile"
4184 case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_compile") 2>conftest.er1
4190 ac_status=$?
4191 grep -v '^ *+' conftest.er1 >conftest.err
4192 rm -f conftest.er1
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } && {
4196 test -z "$ac_c_werror_flag" ||
4197 test ! -s conftest.err
4198 } && test -s conftest.$ac_objext; then
4199 { echo "$as_me:$LINENO: result: yes" >&5
4200 echo "${ECHO_T}yes" >&6; }
4201 else
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 CFLAGS="$pgac_save_CFLAGS"
4206 { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 # supply -g if --enable-debug
4215 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4216 CFLAGS="$CFLAGS -g"
4219 # enable code coverage if --enable-coverage
4220 if test "$enable_coverage" = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4223 else
4224 { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4225 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4226 { (exit 1); exit 1; }; }
4230 # enable profiling if --enable-profiling
4231 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4232 if test "$GCC" = yes; then
4234 cat >>confdefs.h <<\_ACEOF
4235 #define PROFILE_PID_DIR 1
4236 _ACEOF
4238 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4239 else
4240 { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4241 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4242 { (exit 1); exit 1; }; }
4246 # We already have this in Makefile.win32, but configure needs it too
4247 if test "$PORTNAME" = "win32"; then
4248 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4251 # Check if the compiler still works with the template settings
4252 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4253 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4254 cat >conftest.$ac_ext <<_ACEOF
4255 /* confdefs.h. */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4262 main ()
4264 return 0;
4266 return 0;
4268 _ACEOF
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (ac_try="$ac_link"
4271 case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_link") 2>conftest.er1
4277 ac_status=$?
4278 grep -v '^ *+' conftest.er1 >conftest.err
4279 rm -f conftest.er1
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest$ac_exeext &&
4286 $as_test_x conftest$ac_exeext; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4296 echo "$as_me: error: cannot proceed" >&2;}
4297 { (exit 1); exit 1; }; }
4300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4301 conftest$ac_exeext conftest.$ac_ext
4303 # Defend against gcc -ffast-math
4304 if test "$GCC" = yes; then
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4313 main ()
4315 #ifdef __FAST_MATH__
4316 choke me
4317 #endif
4319 return 0;
4321 _ACEOF
4322 rm -f conftest.$ac_objext
4323 if { (ac_try="$ac_compile"
4324 case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_compile") 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest.$ac_objext; then
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4345 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4346 { (exit 1); exit 1; }; }
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4359 # On Suns, sometimes $CPP names a directory.
4360 if test -n "$CPP" && test -d "$CPP"; then
4361 CPP=
4363 if test -z "$CPP"; then
4364 if test "${ac_cv_prog_CPP+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 # Double quotes because CPP needs to be expanded
4368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 ac_preproc_ok=false
4371 for ac_c_preproc_warn_flag in '' yes
4373 # Use a header file that comes with gcc, so configuring glibc
4374 # with a fresh cross-compiler works.
4375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 # <limits.h> exists even on freestanding compilers.
4377 # On the NeXT, cc -E runs the code through the compiler's parser,
4378 # not just through cpp. "Syntax error" is here to catch this case.
4379 cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h. */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #ifdef __STDC__
4386 # include <limits.h>
4387 #else
4388 # include <assert.h>
4389 #endif
4390 Syntax error
4391 _ACEOF
4392 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } >/dev/null && {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 }; then
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 # Broken: fails on valid input.
4414 continue
4417 rm -f conftest.err conftest.$ac_ext
4419 # OK, works on sane cases. Now check whether nonexistent headers
4420 # can be detected and how.
4421 cat >conftest.$ac_ext <<_ACEOF
4422 /* confdefs.h. */
4423 _ACEOF
4424 cat confdefs.h >>conftest.$ac_ext
4425 cat >>conftest.$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <ac_nonexistent.h>
4428 _ACEOF
4429 if { (ac_try="$ac_cpp conftest.$ac_ext"
4430 case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433 esac
4434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4436 ac_status=$?
4437 grep -v '^ *+' conftest.er1 >conftest.err
4438 rm -f conftest.er1
4439 cat conftest.err >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } >/dev/null && {
4442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4443 test ! -s conftest.err
4444 }; then
4445 # Broken: success on invalid input.
4446 continue
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4456 rm -f conftest.err conftest.$ac_ext
4458 done
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then
4462 break
4465 done
4466 ac_cv_prog_CPP=$CPP
4469 CPP=$ac_cv_prog_CPP
4470 else
4471 ac_cv_prog_CPP=$CPP
4473 { echo "$as_me:$LINENO: result: $CPP" >&5
4474 echo "${ECHO_T}$CPP" >&6; }
4475 ac_preproc_ok=false
4476 for ac_c_preproc_warn_flag in '' yes
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat >conftest.$ac_ext <<_ACEOF
4485 /* confdefs.h. */
4486 _ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495 Syntax error
4496 _ACEOF
4497 if { (ac_try="$ac_cpp conftest.$ac_ext"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null && {
4510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 }; then
4514 else
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 # Broken: fails on valid input.
4519 continue
4522 rm -f conftest.err conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether nonexistent headers
4525 # can be detected and how.
4526 cat >conftest.$ac_ext <<_ACEOF
4527 /* confdefs.h. */
4528 _ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4533 _ACEOF
4534 if { (ac_try="$ac_cpp conftest.$ac_ext"
4535 case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538 esac
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } >/dev/null && {
4547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 }; then
4550 # Broken: success on invalid input.
4551 continue
4552 else
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 # Passes both tests.
4557 ac_preproc_ok=:
4558 break
4561 rm -f conftest.err conftest.$ac_ext
4563 done
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then
4568 else
4569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details." >&2;}
4573 { (exit 1); exit 1; }; }
4576 ac_ext=c
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 # Set up TAS assembly code if needed; the template file has now had its
4587 # chance to request this.
4589 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4592 if test "$need_tas" = yes ; then
4593 TAS=tas.o
4594 else
4595 TAS=""
4601 # Automatic dependency tracking
4604 pgac_args="$pgac_args enable_depend"
4606 # Check whether --enable-depend was given.
4607 if test "${enable_depend+set}" = set; then
4608 enableval=$enable_depend;
4609 case $enableval in
4610 yes)
4611 autodepend=yes
4617 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4618 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4619 { (exit 1); exit 1; }; }
4621 esac
4623 else
4624 enable_depend=no
4633 # Enable assert checks
4636 pgac_args="$pgac_args enable_cassert"
4638 # Check whether --enable-cassert was given.
4639 if test "${enable_cassert+set}" = set; then
4640 enableval=$enable_cassert;
4641 case $enableval in
4642 yes)
4644 cat >>confdefs.h <<\_ACEOF
4645 #define USE_ASSERT_CHECKING 1
4646 _ACEOF
4653 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4654 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4655 { (exit 1); exit 1; }; }
4657 esac
4659 else
4660 enable_cassert=no
4668 # Include directories
4670 ac_save_IFS=$IFS
4671 IFS="${IFS}${PATH_SEPARATOR}"
4672 # SRCH_INC comes from the template file
4673 for dir in $with_includes $SRCH_INC; do
4674 if test -d "$dir"; then
4675 INCLUDES="$INCLUDES -I$dir"
4676 else
4677 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4678 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4680 done
4681 IFS=$ac_save_IFS
4686 # Library directories
4688 ac_save_IFS=$IFS
4689 IFS="${IFS}${PATH_SEPARATOR}"
4690 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4691 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4692 if test -d "$dir"; then
4693 LIBDIRS="$LIBDIRS -L$dir"
4694 else
4695 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4696 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4698 done
4699 IFS=$ac_save_IFS
4702 # Enable thread-safe client libraries
4704 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4705 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4706 if test "$PORTNAME" != "win32"; then
4708 pgac_args="$pgac_args enable_thread_safety"
4710 # Check whether --enable-thread-safety was given.
4711 if test "${enable_thread_safety+set}" = set; then
4712 enableval=$enable_thread_safety;
4713 case $enableval in
4714 yes)
4721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4722 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4723 { (exit 1); exit 1; }; }
4725 esac
4727 else
4728 enable_thread_safety=no
4733 else
4734 # Win32 should always use threads
4736 pgac_args="$pgac_args enable_thread_safety"
4738 # Check whether --enable-thread-safety was given.
4739 if test "${enable_thread_safety+set}" = set; then
4740 enableval=$enable_thread_safety;
4741 case $enableval in
4742 yes)
4749 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4750 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4751 { (exit 1); exit 1; }; }
4753 esac
4755 else
4756 enable_thread_safety=yes
4764 pgac_args="$pgac_args enable_thread_safety_force"
4766 # Check whether --enable-thread-safety-force was given.
4767 if test "${enable_thread_safety_force+set}" = set; then
4768 enableval=$enable_thread_safety_force;
4769 case $enableval in
4770 yes)
4777 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4778 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4779 { (exit 1); exit 1; }; }
4781 esac
4783 else
4784 enable_thread_safety_force=no
4789 if test "$enable_thread_safety" = yes -o \
4790 "$enable_thread_safety_force" = yes; then
4791 enable_thread_safety="yes" # for 'force'
4793 cat >>confdefs.h <<\_ACEOF
4794 #define ENABLE_THREAD_SAFETY 1
4795 _ACEOF
4798 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4799 echo "${ECHO_T}$enable_thread_safety" >&6; }
4803 # Optionally build Tcl modules (PL/Tcl)
4805 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4806 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4808 pgac_args="$pgac_args with_tcl"
4811 # Check whether --with-tcl was given.
4812 if test "${with_tcl+set}" = set; then
4813 withval=$with_tcl;
4814 case $withval in
4815 yes)
4822 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4823 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4824 { (exit 1); exit 1; }; }
4826 esac
4828 else
4829 with_tcl=no
4834 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4835 echo "${ECHO_T}$with_tcl" >&6; }
4838 # We see if the path to the Tcl/Tk configuration scripts is specified.
4839 # This will override the use of tclsh to find the paths to search.
4842 pgac_args="$pgac_args with_tclconfig"
4845 # Check whether --with-tclconfig was given.
4846 if test "${with_tclconfig+set}" = set; then
4847 withval=$with_tclconfig;
4848 case $withval in
4849 yes)
4850 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4851 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4852 { (exit 1); exit 1; }; }
4855 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4856 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4857 { (exit 1); exit 1; }; }
4862 esac
4869 # Optionally build Perl modules (PL/Perl)
4871 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4872 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4874 pgac_args="$pgac_args with_perl"
4877 # Check whether --with-perl was given.
4878 if test "${with_perl+set}" = set; then
4879 withval=$with_perl;
4880 case $withval in
4881 yes)
4888 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4889 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4890 { (exit 1); exit 1; }; }
4892 esac
4894 else
4895 with_perl=no
4900 { echo "$as_me:$LINENO: result: $with_perl" >&5
4901 echo "${ECHO_T}$with_perl" >&6; }
4905 # Optionally build Python modules (PL/Python)
4907 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4908 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4910 pgac_args="$pgac_args with_python"
4913 # Check whether --with-python was given.
4914 if test "${with_python+set}" = set; then
4915 withval=$with_python;
4916 case $withval in
4917 yes)
4924 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4925 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4926 { (exit 1); exit 1; }; }
4928 esac
4930 else
4931 with_python=no
4936 { echo "$as_me:$LINENO: result: $with_python" >&5
4937 echo "${ECHO_T}$with_python" >&6; }
4941 # GSSAPI
4943 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4944 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4946 pgac_args="$pgac_args with_gssapi"
4949 # Check whether --with-gssapi was given.
4950 if test "${with_gssapi+set}" = set; then
4951 withval=$with_gssapi;
4952 case $withval in
4953 yes)
4956 cat >>confdefs.h <<\_ACEOF
4957 #define ENABLE_GSS 1
4958 _ACEOF
4960 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4967 { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4968 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4969 { (exit 1); exit 1; }; }
4971 esac
4973 else
4974 with_gssapi=no
4979 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4980 echo "${ECHO_T}$with_gssapi" >&6; }
4984 # Kerberos 5
4986 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4987 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4989 pgac_args="$pgac_args with_krb5"
4992 # Check whether --with-krb5 was given.
4993 if test "${with_krb5+set}" = set; then
4994 withval=$with_krb5;
4995 case $withval in
4996 yes)
4999 cat >>confdefs.h <<\_ACEOF
5000 #define KRB5 1
5001 _ACEOF
5003 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5010 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5011 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5012 { (exit 1); exit 1; }; }
5014 esac
5016 else
5017 with_krb5=no
5022 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5023 echo "${ECHO_T}$with_krb5" >&6; }
5031 # Kerberos configuration parameters
5034 pgac_args="$pgac_args with_krb_srvnam"
5037 # Check whether --with-krb-srvnam was given.
5038 if test "${with_krb_srvnam+set}" = set; then
5039 withval=$with_krb_srvnam;
5040 case $withval in
5041 yes)
5042 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5043 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5044 { (exit 1); exit 1; }; }
5047 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5048 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5049 { (exit 1); exit 1; }; }
5054 esac
5056 else
5057 with_krb_srvnam="postgres"
5062 cat >>confdefs.h <<_ACEOF
5063 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5064 _ACEOF
5069 # PAM
5071 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5072 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5074 pgac_args="$pgac_args with_pam"
5077 # Check whether --with-pam was given.
5078 if test "${with_pam+set}" = set; then
5079 withval=$with_pam;
5080 case $withval in
5081 yes)
5083 cat >>confdefs.h <<\_ACEOF
5084 #define USE_PAM 1
5085 _ACEOF
5092 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5093 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5094 { (exit 1); exit 1; }; }
5096 esac
5098 else
5099 with_pam=no
5104 { echo "$as_me:$LINENO: result: $with_pam" >&5
5105 echo "${ECHO_T}$with_pam" >&6; }
5110 # LDAP
5112 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5113 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5115 pgac_args="$pgac_args with_ldap"
5118 # Check whether --with-ldap was given.
5119 if test "${with_ldap+set}" = set; then
5120 withval=$with_ldap;
5121 case $withval in
5122 yes)
5124 cat >>confdefs.h <<\_ACEOF
5125 #define USE_LDAP 1
5126 _ACEOF
5133 { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5134 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5135 { (exit 1); exit 1; }; }
5137 esac
5139 else
5140 with_ldap=no
5145 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5146 echo "${ECHO_T}$with_ldap" >&6; }
5151 # Bonjour
5153 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5154 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5156 pgac_args="$pgac_args with_bonjour"
5159 # Check whether --with-bonjour was given.
5160 if test "${with_bonjour+set}" = set; then
5161 withval=$with_bonjour;
5162 case $withval in
5163 yes)
5165 cat >>confdefs.h <<\_ACEOF
5166 #define USE_BONJOUR 1
5167 _ACEOF
5174 { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5175 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5176 { (exit 1); exit 1; }; }
5178 esac
5180 else
5181 with_bonjour=no
5186 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5187 echo "${ECHO_T}$with_bonjour" >&6; }
5192 # OpenSSL
5194 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5195 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5197 pgac_args="$pgac_args with_openssl"
5200 # Check whether --with-openssl was given.
5201 if test "${with_openssl+set}" = set; then
5202 withval=$with_openssl;
5203 case $withval in
5204 yes)
5206 cat >>confdefs.h <<\_ACEOF
5207 #define USE_SSL 1
5208 _ACEOF
5215 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5216 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5217 { (exit 1); exit 1; }; }
5219 esac
5221 else
5222 with_openssl=no
5227 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5228 echo "${ECHO_T}$with_openssl" >&6; }
5233 # Readline
5236 pgac_args="$pgac_args with_readline"
5239 # Check whether --with-readline was given.
5240 if test "${with_readline+set}" = set; then
5241 withval=$with_readline;
5242 case $withval in
5243 yes)
5250 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5251 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5252 { (exit 1); exit 1; }; }
5254 esac
5256 else
5257 with_readline=yes
5262 # readline on MinGW has problems with backslashes in psql and other bugs.
5263 # This is particularly a problem with non-US code pages.
5264 # Therefore disable its use until we understand the cause. 2004-07-20
5265 if test "$PORTNAME" = "win32"; then
5266 if test "$with_readline" = yes; then
5267 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5268 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5269 with_readline=no
5275 # Prefer libedit
5278 pgac_args="$pgac_args with_libedit_preferred"
5281 # Check whether --with-libedit-preferred was given.
5282 if test "${with_libedit_preferred+set}" = set; then
5283 withval=$with_libedit_preferred;
5284 case $withval in
5285 yes)
5292 { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5293 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5294 { (exit 1); exit 1; }; }
5296 esac
5298 else
5299 with_libedit_preferred=no
5307 # OSSP UUID library
5310 pgac_args="$pgac_args with_ossp_uuid"
5313 # Check whether --with-ossp-uuid was given.
5314 if test "${with_ossp_uuid+set}" = set; then
5315 withval=$with_ossp_uuid;
5316 case $withval in
5317 yes)
5324 { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5325 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5326 { (exit 1); exit 1; }; }
5328 esac
5330 else
5331 with_ossp_uuid=no
5340 # XML
5343 pgac_args="$pgac_args with_libxml"
5346 # Check whether --with-libxml was given.
5347 if test "${with_libxml+set}" = set; then
5348 withval=$with_libxml;
5349 case $withval in
5350 yes)
5352 cat >>confdefs.h <<\_ACEOF
5353 #define USE_LIBXML 1
5354 _ACEOF
5361 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5362 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5363 { (exit 1); exit 1; }; }
5365 esac
5367 else
5368 with_libxml=no
5374 if test "$with_libxml" = yes ; then
5375 for ac_prog in xml2-config
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384 if test -n "$XML2_CONFIG"; then
5385 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_XML2_CONFIG="$ac_prog"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5405 if test -n "$XML2_CONFIG"; then
5406 { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5407 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5408 else
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5414 test -n "$XML2_CONFIG" && break
5415 done
5417 if test -n "$XML2_CONFIG"; then
5418 for pgac_option in `$XML2_CONFIG --cflags`; do
5419 case $pgac_option in
5420 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5421 esac
5422 done
5423 for pgac_option in `$XML2_CONFIG --libs`; do
5424 case $pgac_option in
5425 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5426 esac
5427 done
5434 # XSLT
5437 pgac_args="$pgac_args with_libxslt"
5440 # Check whether --with-libxslt was given.
5441 if test "${with_libxslt+set}" = set; then
5442 withval=$with_libxslt;
5443 case $withval in
5444 yes)
5446 cat >>confdefs.h <<\_ACEOF
5447 #define USE_LIBXSLT 1
5448 _ACEOF
5455 { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5456 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5457 { (exit 1); exit 1; }; }
5459 esac
5461 else
5462 with_libxslt=no
5472 # tzdata
5475 pgac_args="$pgac_args with_system_tzdata"
5478 # Check whether --with-system-tzdata was given.
5479 if test "${with_system_tzdata+set}" = set; then
5480 withval=$with_system_tzdata;
5481 case $withval in
5482 yes)
5483 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5484 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5485 { (exit 1); exit 1; }; }
5488 { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5489 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5490 { (exit 1); exit 1; }; }
5495 esac
5503 # Zlib
5506 pgac_args="$pgac_args with_zlib"
5509 # Check whether --with-zlib was given.
5510 if test "${with_zlib+set}" = set; then
5511 withval=$with_zlib;
5512 case $withval in
5513 yes)
5520 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5521 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5522 { (exit 1); exit 1; }; }
5524 esac
5526 else
5527 with_zlib=yes
5535 # Elf
5538 # Assume system is ELF if it predefines __ELF__ as 1,
5539 # otherwise believe host_os based default.
5540 case $host_os in
5541 freebsd1*|freebsd2*) elf=no;;
5542 freebsd3*|freebsd4*) elf=yes;;
5543 esac
5546 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5547 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5548 if test "${ac_cv_path_GREP+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 # Extract the first word of "grep ggrep" to use in msg output
5552 if test -z "$GREP"; then
5553 set dummy grep ggrep; ac_prog_name=$2
5554 if test "${ac_cv_path_GREP+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 ac_path_GREP_found=false
5558 # Loop through the user's path and test for each of PROGNAME-LIST
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562 IFS=$as_save_IFS
5563 test -z "$as_dir" && as_dir=.
5564 for ac_prog in grep ggrep; do
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5568 # Check for GNU ac_path_GREP and select it if it is found.
5569 # Check for GNU $ac_path_GREP
5570 case `"$ac_path_GREP" --version 2>&1` in
5571 *GNU*)
5572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5574 ac_count=0
5575 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5576 while :
5578 cat "conftest.in" "conftest.in" >"conftest.tmp"
5579 mv "conftest.tmp" "conftest.in"
5580 cp "conftest.in" "conftest.nl"
5581 echo 'GREP' >> "conftest.nl"
5582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5584 ac_count=`expr $ac_count + 1`
5585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5586 # Best one so far, save it but keep looking for a better one
5587 ac_cv_path_GREP="$ac_path_GREP"
5588 ac_path_GREP_max=$ac_count
5590 # 10*(2^10) chars as input seems more than enough
5591 test $ac_count -gt 10 && break
5592 done
5593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5594 esac
5597 $ac_path_GREP_found && break 3
5598 done
5599 done
5601 done
5602 IFS=$as_save_IFS
5607 GREP="$ac_cv_path_GREP"
5608 if test -z "$GREP"; then
5609 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5611 { (exit 1); exit 1; }; }
5614 else
5615 ac_cv_path_GREP=$GREP
5620 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5621 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5622 GREP="$ac_cv_path_GREP"
5625 { echo "$as_me:$LINENO: checking for egrep" >&5
5626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5627 if test "${ac_cv_path_EGREP+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5631 then ac_cv_path_EGREP="$GREP -E"
5632 else
5633 # Extract the first word of "egrep" to use in msg output
5634 if test -z "$EGREP"; then
5635 set dummy egrep; ac_prog_name=$2
5636 if test "${ac_cv_path_EGREP+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 ac_path_EGREP_found=false
5640 # Loop through the user's path and test for each of PROGNAME-LIST
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_prog in egrep; do
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5649 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5650 # Check for GNU ac_path_EGREP and select it if it is found.
5651 # Check for GNU $ac_path_EGREP
5652 case `"$ac_path_EGREP" --version 2>&1` in
5653 *GNU*)
5654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5656 ac_count=0
5657 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5658 while :
5660 cat "conftest.in" "conftest.in" >"conftest.tmp"
5661 mv "conftest.tmp" "conftest.in"
5662 cp "conftest.in" "conftest.nl"
5663 echo 'EGREP' >> "conftest.nl"
5664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5666 ac_count=`expr $ac_count + 1`
5667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5668 # Best one so far, save it but keep looking for a better one
5669 ac_cv_path_EGREP="$ac_path_EGREP"
5670 ac_path_EGREP_max=$ac_count
5672 # 10*(2^10) chars as input seems more than enough
5673 test $ac_count -gt 10 && break
5674 done
5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5676 esac
5679 $ac_path_EGREP_found && break 3
5680 done
5681 done
5683 done
5684 IFS=$as_save_IFS
5689 EGREP="$ac_cv_path_EGREP"
5690 if test -z "$EGREP"; then
5691 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5692 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5693 { (exit 1); exit 1; }; }
5696 else
5697 ac_cv_path_EGREP=$EGREP
5703 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5704 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5705 EGREP="$ac_cv_path_EGREP"
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #if __ELF__
5716 #endif
5718 _ACEOF
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720 $EGREP "yes" >/dev/null 2>&1; then
5721 ELF_SYS=true
5722 else
5723 if test "X$elf" = "Xyes" ; then
5724 ELF_SYS=true
5725 else
5726 ELF_SYS=
5729 rm -f conftest*
5734 # Assignments
5737 CPPFLAGS="$CPPFLAGS $INCLUDES"
5738 LDFLAGS="$LDFLAGS $LIBDIRS"
5743 # Check whether --with-gnu-ld was given.
5744 if test "${with_gnu_ld+set}" = set; then
5745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5746 else
5747 with_gnu_ld=no
5750 ac_prog=ld
5751 if test "$GCC" = yes; then
5752 # Check if gcc -print-prog-name=ld gives a path.
5753 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5754 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5755 case $host in
5756 *-*-mingw*)
5757 # gcc leaves a trailing carriage return which upsets mingw
5758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5761 esac
5762 case "$ac_prog" in
5763 # Accept absolute paths.
5764 [\\/]* | [A-Za-z]:[\\/]*)
5765 re_direlt='/[^/][^/]*/\.\./'
5766 # Canonicalize the path of ld
5767 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5768 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5769 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5770 done
5771 test -z "$LD" && LD="$ac_prog"
5774 # If it fails, then pretend we aren't using GCC.
5775 ac_prog=ld
5778 # If it is relative, then search for the first ld in PATH.
5779 with_gnu_ld=unknown
5781 esac
5782 elif test "$with_gnu_ld" = yes; then
5783 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5784 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5785 else
5786 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5787 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5789 if test "${ac_cv_path_LD+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 if test -z "$LD"; then
5793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5794 for ac_dir in $PATH; do
5795 test -z "$ac_dir" && ac_dir=.
5796 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5797 ac_cv_path_LD="$ac_dir/$ac_prog"
5798 # Check to see if the program is GNU ld. I'd rather use --version,
5799 # but apparently some GNU ld's only accept -v.
5800 # Break only if it was the GNU/non-GNU ld that we prefer.
5801 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5802 test "$with_gnu_ld" != no && break
5803 else
5804 test "$with_gnu_ld" != yes && break
5807 done
5808 IFS="$ac_save_ifs"
5809 else
5810 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5814 LD="$ac_cv_path_LD"
5815 if test -n "$LD"; then
5816 { echo "$as_me:$LINENO: result: $LD" >&5
5817 echo "${ECHO_T}$LD" >&6; }
5818 else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6; }
5822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5824 { (exit 1); exit 1; }; }
5825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5827 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5831 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5832 ac_cv_prog_gnu_ld=yes
5833 else
5834 ac_cv_prog_gnu_ld=no
5837 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5838 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5839 with_gnu_ld=$ac_cv_prog_gnu_ld
5844 case $host_os in sysv5*)
5845 { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5846 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5847 if test "${pgac_cv_prog_ld_R+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5851 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5860 main ()
5864 return 0;
5866 _ACEOF
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
5885 pgac_cv_prog_ld_R=yes
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 pgac_cv_prog_ld_R=no
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LDFLAGS=$pgac_save_LDFLAGS
5898 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5899 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5900 ld_R_works=$pgac_cv_prog_ld_R
5902 esac
5903 if test -n "$ac_tool_prefix"; then
5904 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5905 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_RANLIB+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 if test -n "$RANLIB"; then
5912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5925 done
5926 done
5927 IFS=$as_save_IFS
5931 RANLIB=$ac_cv_prog_RANLIB
5932 if test -n "$RANLIB"; then
5933 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5934 echo "${ECHO_T}$RANLIB" >&6; }
5935 else
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5942 if test -z "$ac_cv_prog_RANLIB"; then
5943 ac_ct_RANLIB=$RANLIB
5944 # Extract the first word of "ranlib", so it can be a program name with args.
5945 set dummy ranlib; ac_word=$2
5946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5948 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951 if test -n "$ac_ct_RANLIB"; then
5952 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5961 ac_cv_prog_ac_ct_RANLIB="ranlib"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5965 done
5966 done
5967 IFS=$as_save_IFS
5971 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5972 if test -n "$ac_ct_RANLIB"; then
5973 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5974 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5975 else
5976 { echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6; }
5980 if test "x$ac_ct_RANLIB" = x; then
5981 RANLIB=":"
5982 else
5983 case $cross_compiling:$ac_tool_warned in
5984 yes:)
5985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet. If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&5
5988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5989 whose name does not start with the host triplet. If you think this
5990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 RANLIB=$ac_ct_RANLIB
5995 else
5996 RANLIB="$ac_cv_prog_RANLIB"
6000 if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}strip; ac_word=$2
6003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6005 if test "${ac_cv_prog_STRIP+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 if test -n "$STRIP"; then
6009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020 break 2
6022 done
6023 done
6024 IFS=$as_save_IFS
6028 STRIP=$ac_cv_prog_STRIP
6029 if test -n "$STRIP"; then
6030 { echo "$as_me:$LINENO: result: $STRIP" >&5
6031 echo "${ECHO_T}$STRIP" >&6; }
6032 else
6033 { echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6; }
6039 if test -z "$ac_cv_prog_STRIP"; then
6040 ac_ct_STRIP=$STRIP
6041 # Extract the first word of "strip", so it can be a program name with args.
6042 set dummy strip; ac_word=$2
6043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6045 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 else
6048 if test -n "$ac_ct_STRIP"; then
6049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_STRIP="strip"
6059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060 break 2
6062 done
6063 done
6064 IFS=$as_save_IFS
6068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6069 if test -n "$ac_ct_STRIP"; then
6070 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6071 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6072 else
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6077 if test "x$ac_ct_STRIP" = x; then
6078 STRIP=":"
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081 yes:)
6082 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet. If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&5
6085 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6086 whose name does not start with the host triplet. If you think this
6087 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090 STRIP=$ac_ct_STRIP
6092 else
6093 STRIP="$ac_cv_prog_STRIP"
6097 { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6098 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6099 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6100 STRIP_STATIC_LIB="$STRIP -x"
6101 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6102 { echo "$as_me:$LINENO: result: yes" >&5
6103 echo "${ECHO_T}yes" >&6; }
6104 else
6105 STRIP_STATIC_LIB=:
6106 STRIP_SHARED_LIB=:
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ar; ac_word=$2
6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118 if test "${ac_cv_prog_AR+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 else
6121 if test -n "$AR"; then
6122 ac_cv_prog_AR="$AR" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_AR="${ac_tool_prefix}ar"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 AR=$ac_cv_prog_AR
6142 if test -n "$AR"; then
6143 { echo "$as_me:$LINENO: result: $AR" >&5
6144 echo "${ECHO_T}$AR" >&6; }
6145 else
6146 { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6152 if test -z "$ac_cv_prog_AR"; then
6153 ac_ct_AR=$AR
6154 # Extract the first word of "ar", so it can be a program name with args.
6155 set dummy ar; ac_word=$2
6156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161 if test -n "$ac_ct_AR"; then
6162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_AR="ar"
6172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6182 if test -n "$ac_ct_AR"; then
6183 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6184 echo "${ECHO_T}$ac_ct_AR" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 if test "x$ac_ct_AR" = x; then
6191 AR="ar"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6196 whose name does not start with the host triplet. If you think this
6197 configuration is useful to you, please write to autoconf@gnu.org." >&5
6198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6199 whose name does not start with the host triplet. If you think this
6200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 AR=$ac_ct_AR
6205 else
6206 AR="$ac_cv_prog_AR"
6209 if test "$PORTNAME" = "win32"; then
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 if test -n "$DLLTOOL"; then
6219 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6238 DLLTOOL=$ac_cv_prog_DLLTOOL
6239 if test -n "$DLLTOOL"; then
6240 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6241 echo "${ECHO_T}$DLLTOOL" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6249 if test -z "$ac_cv_prog_DLLTOOL"; then
6250 ac_ct_DLLTOOL=$DLLTOOL
6251 # Extract the first word of "dlltool", so it can be a program name with args.
6252 set dummy dlltool; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 if test -n "$ac_ct_DLLTOOL"; then
6259 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6272 done
6273 done
6274 IFS=$as_save_IFS
6278 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6279 if test -n "$ac_ct_DLLTOOL"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6281 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6282 else
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6287 if test "x$ac_ct_DLLTOOL" = x; then
6288 DLLTOOL="dlltool"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 DLLTOOL=$ac_ct_DLLTOOL
6302 else
6303 DLLTOOL="$ac_cv_prog_DLLTOOL"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$DLLWRAP"; then
6315 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 DLLWRAP=$ac_cv_prog_DLLWRAP
6335 if test -n "$DLLWRAP"; then
6336 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6337 echo "${ECHO_T}$DLLWRAP" >&6; }
6338 else
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6345 if test -z "$ac_cv_prog_DLLWRAP"; then
6346 ac_ct_DLLWRAP=$DLLWRAP
6347 # Extract the first word of "dllwrap", so it can be a program name with args.
6348 set dummy dllwrap; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 if test -n "$ac_ct_DLLWRAP"; then
6355 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6375 if test -n "$ac_ct_DLLWRAP"; then
6376 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6377 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
6378 else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 if test "x$ac_ct_DLLWRAP" = x; then
6384 DLLWRAP="dllwrap"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396 DLLWRAP=$ac_ct_DLLWRAP
6398 else
6399 DLLWRAP="$ac_cv_prog_DLLWRAP"
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}windres; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_prog_WINDRES+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 if test -n "$WINDRES"; then
6411 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6424 done
6425 done
6426 IFS=$as_save_IFS
6430 WINDRES=$ac_cv_prog_WINDRES
6431 if test -n "$WINDRES"; then
6432 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6433 echo "${ECHO_T}$WINDRES" >&6; }
6434 else
6435 { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6441 if test -z "$ac_cv_prog_WINDRES"; then
6442 ac_ct_WINDRES=$WINDRES
6443 # Extract the first word of "windres", so it can be a program name with args.
6444 set dummy windres; ac_word=$2
6445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6447 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 if test -n "$ac_ct_WINDRES"; then
6451 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_WINDRES="windres"
6461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6471 if test -n "$ac_ct_WINDRES"; then
6472 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6473 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
6474 else
6475 { echo "$as_me:$LINENO: result: no" >&5
6476 echo "${ECHO_T}no" >&6; }
6479 if test "x$ac_ct_WINDRES" = x; then
6480 WINDRES="windres"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6485 whose name does not start with the host triplet. If you think this
6486 configuration is useful to you, please write to autoconf@gnu.org." >&5
6487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6488 whose name does not start with the host triplet. If you think this
6489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 WINDRES=$ac_ct_WINDRES
6494 else
6495 WINDRES="$ac_cv_prog_WINDRES"
6500 # Extract the first word of "tar", so it can be a program name with args.
6501 set dummy tar; ac_word=$2
6502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6504 if test "${ac_cv_path_TAR+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 case $TAR in
6508 [\\/]* | ?:[\\/]*)
6509 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6528 esac
6530 TAR=$ac_cv_path_TAR
6531 if test -n "$TAR"; then
6532 { echo "$as_me:$LINENO: result: $TAR" >&5
6533 echo "${ECHO_T}$TAR" >&6; }
6534 else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6540 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6542 LN_S=$as_ln_s
6543 if test "$LN_S" = "ln -s"; then
6544 { echo "$as_me:$LINENO: result: yes" >&5
6545 echo "${ECHO_T}yes" >&6; }
6546 else
6547 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6548 echo "${ECHO_T}no, using $LN_S" >&6; }
6551 for ac_prog in gawk mawk nawk awk
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_AWK+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 if test -n "$AWK"; then
6561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_AWK="$ac_prog"
6571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 break 2
6574 done
6575 done
6576 IFS=$as_save_IFS
6580 AWK=$ac_cv_prog_AWK
6581 if test -n "$AWK"; then
6582 { echo "$as_me:$LINENO: result: $AWK" >&5
6583 echo "${ECHO_T}$AWK" >&6; }
6584 else
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6590 test -n "$AWK" && break
6591 done
6594 # Let the user override the search
6595 if test -z "$BISON"; then
6596 for ac_prog in bison
6598 # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602 if test "${ac_cv_prog_BISON+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 else
6605 if test -n "$BISON"; then
6606 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_BISON="$ac_prog"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6619 done
6620 done
6621 IFS=$as_save_IFS
6625 BISON=$ac_cv_prog_BISON
6626 if test -n "$BISON"; then
6627 { echo "$as_me:$LINENO: result: $BISON" >&5
6628 echo "${ECHO_T}$BISON" >&6; }
6629 else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6635 test -n "$BISON" && break
6636 done
6640 if test "$BISON"; then
6641 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6642 { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6643 echo "$as_me: using $pgac_bison_version" >&6;}
6644 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6645 then
6646 { echo "$as_me:$LINENO: WARNING:
6647 *** The installed version of Bison is too old to use with PostgreSQL.
6648 *** Bison version 1.875 or later is required." >&5
6649 echo "$as_me: WARNING:
6650 *** The installed version of Bison is too old to use with PostgreSQL.
6651 *** Bison version 1.875 or later is required." >&2;}
6652 BISON=""
6656 if test -z "$BISON"; then
6657 { echo "$as_me:$LINENO: WARNING:
6658 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6659 *** change any of the parser definition files. You can obtain Bison from
6660 *** a GNU mirror site. (If you are using the official distribution of
6661 *** PostgreSQL then you do not need to worry about this, because the Bison
6662 *** output is pre-generated.)" >&5
6663 echo "$as_me: WARNING:
6664 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6665 *** change any of the parser definition files. You can obtain Bison from
6666 *** a GNU mirror site. (If you are using the official distribution of
6667 *** PostgreSQL then you do not need to worry about this, because the Bison
6668 *** output is pre-generated.)" >&2;}
6670 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6673 { echo "$as_me:$LINENO: checking for flex" >&5
6674 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6675 if test "${pgac_cv_path_flex+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678 # Let the user override the test
6679 if test -n "$FLEX"; then
6680 pgac_cv_path_flex=$FLEX
6681 else
6682 pgac_save_IFS=$IFS
6683 IFS=$PATH_SEPARATOR
6684 for pgac_dir in $PATH; do
6685 IFS=$pgac_save_IFS
6686 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6687 pgac_dir=`pwd`
6689 for pgac_prog in flex lex; do
6690 pgac_candidate="$pgac_dir/$pgac_prog"
6691 if test -f "$pgac_candidate" \
6692 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6693 then
6694 echo '%%' > conftest.l
6695 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6696 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6697 pgac_broken_flex=$pgac_candidate
6698 continue
6701 pgac_cv_path_flex=$pgac_candidate
6702 break 2
6705 done
6706 done
6707 rm -f conftest.l lex.yy.c
6708 : ${pgac_cv_path_flex=no}
6712 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6713 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6714 if test x"$pgac_cv_path_flex" = x"no"; then
6715 if test -n "$pgac_broken_flex"; then
6716 { echo "$as_me:$LINENO: WARNING:
6717 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6718 *** should get version 2.5.4 or later." >&5
6719 echo "$as_me: WARNING:
6720 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6721 *** should get version 2.5.4 or later." >&2;}
6724 { echo "$as_me:$LINENO: WARNING:
6725 *** Without Flex you will not be able to build PostgreSQL from CVS or
6726 *** change any of the scanner definition files. You can obtain Flex from
6727 *** a GNU mirror site. (If you are using the official distribution of
6728 *** PostgreSQL then you do not need to worry about this because the Flex
6729 *** output is pre-generated.)" >&5
6730 echo "$as_me: WARNING:
6731 *** Without Flex you will not be able to build PostgreSQL from CVS or
6732 *** change any of the scanner definition files. You can obtain Flex from
6733 *** a GNU mirror site. (If you are using the official distribution of
6734 *** PostgreSQL then you do not need to worry about this because the Flex
6735 *** output is pre-generated.)" >&2;}
6737 FLEX=
6738 else
6739 FLEX=$pgac_cv_path_flex
6740 pgac_flex_version=`$FLEX -V 2>/dev/null`
6741 { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6742 echo "$as_me: using $pgac_flex_version" >&6;}
6749 # Extract the first word of "perl", so it can be a program name with args.
6750 set dummy perl; ac_word=$2
6751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6753 if test "${ac_cv_path_PERL+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 case $PERL in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6777 esac
6779 PERL=$ac_cv_path_PERL
6780 if test -n "$PERL"; then
6781 { echo "$as_me:$LINENO: result: $PERL" >&5
6782 echo "${ECHO_T}$PERL" >&6; }
6783 else
6784 { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6789 if test "$with_perl" = yes; then
6791 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6792 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6793 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6794 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6795 echo "${ECHO_T}$perl_archlibexp" >&6; }
6796 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6797 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6798 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6799 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6800 echo "${ECHO_T}$perl_privlibexp" >&6; }
6801 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6802 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6803 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6804 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6805 echo "${ECHO_T}$perl_useshrplib" >&6; }
6807 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6808 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6809 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6810 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6811 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6812 if test -z "$perl_embed_ldflags" ; then
6813 { echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6; }
6815 { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6816 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6817 installed." >&5
6818 echo "$as_me: error: could not determine flags for linking embedded Perl.
6819 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6820 installed." >&2;}
6821 { (exit 1); exit 1; }; }
6822 else
6823 { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6824 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6829 if test "$with_python" = yes; then
6830 # Extract the first word of "python", so it can be a program name with args.
6831 set dummy python; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_PYTHON+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 case $PYTHON in
6838 [\\/]* | ?:[\\/]*)
6839 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6853 done
6854 done
6855 IFS=$as_save_IFS
6858 esac
6860 PYTHON=$ac_cv_path_PYTHON
6861 if test -n "$PYTHON"; then
6862 { echo "$as_me:$LINENO: result: $PYTHON" >&5
6863 echo "${ECHO_T}$PYTHON" >&6; }
6864 else
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 if test x"$PYTHON" = x""; then
6871 { { echo "$as_me:$LINENO: error: Python not found" >&5
6872 echo "$as_me: error: Python not found" >&2;}
6873 { (exit 1); exit 1; }; }
6877 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6878 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6879 if "${PYTHON}" 2>&- -c 'import distutils'
6880 then
6881 { echo "$as_me:$LINENO: result: yes" >&5
6882 echo "${ECHO_T}yes" >&6; }
6883 else
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6887 echo "$as_me: error: distutils module not found" >&2;}
6888 { (exit 1); exit 1; }; }
6890 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6891 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6892 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
6893 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'))"`
6894 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
6896 # This should be enough of a message.
6897 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6898 echo "${ECHO_T}$python_configdir" >&6; }
6901 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6902 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6904 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
6905 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
6906 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
6907 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6909 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6910 then
6911 # New way: use the official shared library
6912 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6913 python_libspec="-L${python_libdir} -l${ldlibrary}"
6914 else
6915 # Old way: use libpython from python_configdir
6916 python_libdir="${python_configdir}"
6917 python_libspec="-L${python_libdir} -lpython${python_version}"
6920 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
6922 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6923 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6926 # threaded python is not supported on bsd's
6927 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6928 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6929 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
6930 if test "$pythreads" = "1"; then
6931 { echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6; }
6933 case $host_os in
6934 openbsd*|freebsd*)
6935 { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6936 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6937 { (exit 1); exit 1; }; }
6939 esac
6940 else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6948 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
6949 # Extract the first word of "zic", so it can be a program name with args.
6950 set dummy zic; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_path_ZIC+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 case $ZIC in
6957 [\\/]* | ?:[\\/]*)
6958 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6972 done
6973 done
6974 IFS=$as_save_IFS
6977 esac
6979 ZIC=$ac_cv_path_ZIC
6980 if test -n "$ZIC"; then
6981 { echo "$as_me:$LINENO: result: $ZIC" >&5
6982 echo "${ECHO_T}$ZIC" >&6; }
6983 else
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6989 if test -z "$ZIC"; then
6990 { { echo "$as_me:$LINENO: error:
6991 When cross-compiling, either use the option --with-system-tzdata to use
6992 existing time-zone data, or set the environment variable ZIC to a zic
6993 program to use during the build." >&5
6994 echo "$as_me: error:
6995 When cross-compiling, either use the option --with-system-tzdata to use
6996 existing time-zone data, or set the environment variable ZIC to a zic
6997 program to use during the build." >&2;}
6998 { (exit 1); exit 1; }; }
7004 ## Libraries
7006 ## Most libraries are included only if they demonstrably provide a function
7007 ## we need, but libm is an exception: always include it, because there are
7008 ## too many compilers that play cute optimization games that will break
7009 ## probes for standard functions such as pow().
7013 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7014 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7015 if test "${ac_cv_lib_m_main+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018 ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lm $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7029 main ()
7031 return main ();
7033 return 0;
7035 _ACEOF
7036 rm -f conftest.$ac_objext conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7038 case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_link") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest$ac_exeext &&
7053 $as_test_x conftest$ac_exeext; then
7054 ac_cv_lib_m_main=yes
7055 else
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.$ac_ext >&5
7059 ac_cv_lib_m_main=no
7062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7066 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7067 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7068 if test $ac_cv_lib_m_main = yes; then
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_LIBM 1
7071 _ACEOF
7073 LIBS="-lm $LIBS"
7077 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7078 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7079 if test "${ac_cv_search_setproctitle+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 ac_func_search_save_LIBS=$LIBS
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 char setproctitle ();
7098 main ()
7100 return setproctitle ();
7102 return 0;
7104 _ACEOF
7105 for ac_lib in '' util; do
7106 if test -z "$ac_lib"; then
7107 ac_res="none required"
7108 else
7109 ac_res=-l$ac_lib
7110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7112 rm -f conftest.$ac_objext conftest$ac_exeext
7113 if { (ac_try="$ac_link"
7114 case "(($ac_try" in
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7117 esac
7118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7119 (eval "$ac_link") 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest$ac_exeext &&
7129 $as_test_x conftest$ac_exeext; then
7130 ac_cv_search_setproctitle=$ac_res
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 conftest$ac_exeext
7140 if test "${ac_cv_search_setproctitle+set}" = set; then
7141 break
7143 done
7144 if test "${ac_cv_search_setproctitle+set}" = set; then
7146 else
7147 ac_cv_search_setproctitle=no
7149 rm conftest.$ac_ext
7150 LIBS=$ac_func_search_save_LIBS
7152 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7153 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7154 ac_res=$ac_cv_search_setproctitle
7155 if test "$ac_res" != no; then
7156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7160 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7161 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7162 if test "${ac_cv_search_dlopen+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_func_search_save_LIBS=$LIBS
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7173 /* Override any GCC internal prototype to avoid an error.
7174 Use char because int might match the return type of a GCC
7175 builtin and then its argument prototype would still apply. */
7176 #ifdef __cplusplus
7177 extern "C"
7178 #endif
7179 char dlopen ();
7181 main ()
7183 return dlopen ();
7185 return 0;
7187 _ACEOF
7188 for ac_lib in '' dl; do
7189 if test -z "$ac_lib"; then
7190 ac_res="none required"
7191 else
7192 ac_res=-l$ac_lib
7193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest$ac_exeext &&
7212 $as_test_x conftest$ac_exeext; then
7213 ac_cv_search_dlopen=$ac_res
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7222 conftest$ac_exeext
7223 if test "${ac_cv_search_dlopen+set}" = set; then
7224 break
7226 done
7227 if test "${ac_cv_search_dlopen+set}" = set; then
7229 else
7230 ac_cv_search_dlopen=no
7232 rm conftest.$ac_ext
7233 LIBS=$ac_func_search_save_LIBS
7235 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7236 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7237 ac_res=$ac_cv_search_dlopen
7238 if test "$ac_res" != no; then
7239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7243 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7244 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7245 if test "${ac_cv_search_socket+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 ac_func_search_save_LIBS=$LIBS
7249 cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h. */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 char socket ();
7264 main ()
7266 return socket ();
7268 return 0;
7270 _ACEOF
7271 for ac_lib in '' socket wsock32; do
7272 if test -z "$ac_lib"; then
7273 ac_res="none required"
7274 else
7275 ac_res=-l$ac_lib
7276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest$ac_exeext &&
7295 $as_test_x conftest$ac_exeext; then
7296 ac_cv_search_socket=$ac_res
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7305 conftest$ac_exeext
7306 if test "${ac_cv_search_socket+set}" = set; then
7307 break
7309 done
7310 if test "${ac_cv_search_socket+set}" = set; then
7312 else
7313 ac_cv_search_socket=no
7315 rm conftest.$ac_ext
7316 LIBS=$ac_func_search_save_LIBS
7318 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7319 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7320 ac_res=$ac_cv_search_socket
7321 if test "$ac_res" != no; then
7322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7326 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7327 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7328 if test "${ac_cv_search_shl_load+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 ac_func_search_save_LIBS=$LIBS
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7339 /* Override any GCC internal prototype to avoid an error.
7340 Use char because int might match the return type of a GCC
7341 builtin and then its argument prototype would still apply. */
7342 #ifdef __cplusplus
7343 extern "C"
7344 #endif
7345 char shl_load ();
7347 main ()
7349 return shl_load ();
7351 return 0;
7353 _ACEOF
7354 for ac_lib in '' dld; do
7355 if test -z "$ac_lib"; then
7356 ac_res="none required"
7357 else
7358 ac_res=-l$ac_lib
7359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (ac_try="$ac_link"
7363 case "(($ac_try" in
7364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7366 esac
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_link") 2>conftest.er1
7369 ac_status=$?
7370 grep -v '^ *+' conftest.er1 >conftest.err
7371 rm -f conftest.er1
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest$ac_exeext &&
7378 $as_test_x conftest$ac_exeext; then
7379 ac_cv_search_shl_load=$ac_res
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7388 conftest$ac_exeext
7389 if test "${ac_cv_search_shl_load+set}" = set; then
7390 break
7392 done
7393 if test "${ac_cv_search_shl_load+set}" = set; then
7395 else
7396 ac_cv_search_shl_load=no
7398 rm conftest.$ac_ext
7399 LIBS=$ac_func_search_save_LIBS
7401 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7402 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
7403 ac_res=$ac_cv_search_shl_load
7404 if test "$ac_res" != no; then
7405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7409 # We only use libld in port/dynloader/aix.c
7410 case $host_os in
7411 aix*)
7412 { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7413 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
7414 if test "${ac_cv_search_ldopen+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 ac_func_search_save_LIBS=$LIBS
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7425 /* Override any GCC internal prototype to avoid an error.
7426 Use char because int might match the return type of a GCC
7427 builtin and then its argument prototype would still apply. */
7428 #ifdef __cplusplus
7429 extern "C"
7430 #endif
7431 char ldopen ();
7433 main ()
7435 return ldopen ();
7437 return 0;
7439 _ACEOF
7440 for ac_lib in '' ld; do
7441 if test -z "$ac_lib"; then
7442 ac_res="none required"
7443 else
7444 ac_res=-l$ac_lib
7445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7447 rm -f conftest.$ac_objext conftest$ac_exeext
7448 if { (ac_try="$ac_link"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_link") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest$ac_exeext &&
7464 $as_test_x conftest$ac_exeext; then
7465 ac_cv_search_ldopen=$ac_res
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7474 conftest$ac_exeext
7475 if test "${ac_cv_search_ldopen+set}" = set; then
7476 break
7478 done
7479 if test "${ac_cv_search_ldopen+set}" = set; then
7481 else
7482 ac_cv_search_ldopen=no
7484 rm conftest.$ac_ext
7485 LIBS=$ac_func_search_save_LIBS
7487 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7488 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7489 ac_res=$ac_cv_search_ldopen
7490 if test "$ac_res" != no; then
7491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7496 esac
7497 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7498 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7499 if test "${ac_cv_search_getopt_long+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 ac_func_search_save_LIBS=$LIBS
7503 cat >conftest.$ac_ext <<_ACEOF
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7513 #ifdef __cplusplus
7514 extern "C"
7515 #endif
7516 char getopt_long ();
7518 main ()
7520 return getopt_long ();
7522 return 0;
7524 _ACEOF
7525 for ac_lib in '' getopt gnugetopt; do
7526 if test -z "$ac_lib"; then
7527 ac_res="none required"
7528 else
7529 ac_res=-l$ac_lib
7530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7532 rm -f conftest.$ac_objext conftest$ac_exeext
7533 if { (ac_try="$ac_link"
7534 case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537 esac
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_link") 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest$ac_exeext &&
7549 $as_test_x conftest$ac_exeext; then
7550 ac_cv_search_getopt_long=$ac_res
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7559 conftest$ac_exeext
7560 if test "${ac_cv_search_getopt_long+set}" = set; then
7561 break
7563 done
7564 if test "${ac_cv_search_getopt_long+set}" = set; then
7566 else
7567 ac_cv_search_getopt_long=no
7569 rm conftest.$ac_ext
7570 LIBS=$ac_func_search_save_LIBS
7572 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7573 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7574 ac_res=$ac_cv_search_getopt_long
7575 if test "$ac_res" != no; then
7576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7580 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7581 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7582 if test "${ac_cv_search_crypt+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7584 else
7585 ac_func_search_save_LIBS=$LIBS
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7593 /* Override any GCC internal prototype to avoid an error.
7594 Use char because int might match the return type of a GCC
7595 builtin and then its argument prototype would still apply. */
7596 #ifdef __cplusplus
7597 extern "C"
7598 #endif
7599 char crypt ();
7601 main ()
7603 return crypt ();
7605 return 0;
7607 _ACEOF
7608 for ac_lib in '' crypt; do
7609 if test -z "$ac_lib"; then
7610 ac_res="none required"
7611 else
7612 ac_res=-l$ac_lib
7613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (ac_try="$ac_link"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_link") 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest$ac_exeext &&
7632 $as_test_x conftest$ac_exeext; then
7633 ac_cv_search_crypt=$ac_res
7634 else
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7642 conftest$ac_exeext
7643 if test "${ac_cv_search_crypt+set}" = set; then
7644 break
7646 done
7647 if test "${ac_cv_search_crypt+set}" = set; then
7649 else
7650 ac_cv_search_crypt=no
7652 rm conftest.$ac_ext
7653 LIBS=$ac_func_search_save_LIBS
7655 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7656 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7657 ac_res=$ac_cv_search_crypt
7658 if test "$ac_res" != no; then
7659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7663 # Solaris:
7664 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7665 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7666 if test "${ac_cv_search_fdatasync+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669 ac_func_search_save_LIBS=$LIBS
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h. */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h. */
7677 /* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680 #ifdef __cplusplus
7681 extern "C"
7682 #endif
7683 char fdatasync ();
7685 main ()
7687 return fdatasync ();
7689 return 0;
7691 _ACEOF
7692 for ac_lib in '' rt posix4; do
7693 if test -z "$ac_lib"; then
7694 ac_res="none required"
7695 else
7696 ac_res=-l$ac_lib
7697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (ac_try="$ac_link"
7701 case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_link") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest$ac_exeext &&
7716 $as_test_x conftest$ac_exeext; then
7717 ac_cv_search_fdatasync=$ac_res
7718 else
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726 conftest$ac_exeext
7727 if test "${ac_cv_search_fdatasync+set}" = set; then
7728 break
7730 done
7731 if test "${ac_cv_search_fdatasync+set}" = set; then
7733 else
7734 ac_cv_search_fdatasync=no
7736 rm conftest.$ac_ext
7737 LIBS=$ac_func_search_save_LIBS
7739 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7740 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7741 ac_res=$ac_cv_search_fdatasync
7742 if test "$ac_res" != no; then
7743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7747 # Required for thread_test.c on Solaris 2.5:
7748 # Other ports use it too (HP-UX) so test unconditionally
7749 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7750 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
7751 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754 ac_func_search_save_LIBS=$LIBS
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any GCC internal prototype to avoid an error.
7763 Use char because int might match the return type of a GCC
7764 builtin and then its argument prototype would still apply. */
7765 #ifdef __cplusplus
7766 extern "C"
7767 #endif
7768 char gethostbyname_r ();
7770 main ()
7772 return gethostbyname_r ();
7774 return 0;
7776 _ACEOF
7777 for ac_lib in '' nsl; do
7778 if test -z "$ac_lib"; then
7779 ac_res="none required"
7780 else
7781 ac_res=-l$ac_lib
7782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7784 rm -f conftest.$ac_objext conftest$ac_exeext
7785 if { (ac_try="$ac_link"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_link") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest$ac_exeext &&
7801 $as_test_x conftest$ac_exeext; then
7802 ac_cv_search_gethostbyname_r=$ac_res
7803 else
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7811 conftest$ac_exeext
7812 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7813 break
7815 done
7816 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7818 else
7819 ac_cv_search_gethostbyname_r=no
7821 rm conftest.$ac_ext
7822 LIBS=$ac_func_search_save_LIBS
7824 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7825 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
7826 ac_res=$ac_cv_search_gethostbyname_r
7827 if test "$ac_res" != no; then
7828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7832 # Cygwin:
7833 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7834 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7835 if test "${ac_cv_search_shmget+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 ac_func_search_save_LIBS=$LIBS
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char shmget ();
7854 main ()
7856 return shmget ();
7858 return 0;
7860 _ACEOF
7861 for ac_lib in '' cygipc; do
7862 if test -z "$ac_lib"; then
7863 ac_res="none required"
7864 else
7865 ac_res=-l$ac_lib
7866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest$ac_exeext &&
7885 $as_test_x conftest$ac_exeext; then
7886 ac_cv_search_shmget=$ac_res
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 conftest$ac_exeext
7896 if test "${ac_cv_search_shmget+set}" = set; then
7897 break
7899 done
7900 if test "${ac_cv_search_shmget+set}" = set; then
7902 else
7903 ac_cv_search_shmget=no
7905 rm conftest.$ac_ext
7906 LIBS=$ac_func_search_save_LIBS
7908 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7909 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7910 ac_res=$ac_cv_search_shmget
7911 if test "$ac_res" != no; then
7912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7917 if test "$with_readline" = yes; then
7920 if test "${pgac_cv_check_readline+set}" = set; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 pgac_cv_check_readline=no
7924 pgac_save_LIBS=$LIBS
7925 if test x"$with_libedit_preferred" != x"yes"
7926 then READLINE_ORDER="-lreadline -ledit"
7927 else READLINE_ORDER="-ledit -lreadline"
7929 for pgac_rllib in $READLINE_ORDER ; do
7930 { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7931 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7932 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7933 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h. */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7941 /* Override any GCC internal prototype to avoid an error.
7942 Use char because int might match the return type of a GCC
7943 builtin and then its argument prototype would still apply. */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 char readline ();
7949 main ()
7951 return readline ();
7953 return 0;
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7958 case "(($ac_try" in
7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960 *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963 (eval "$ac_link") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest$ac_exeext &&
7973 $as_test_x conftest$ac_exeext; then
7975 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7976 # recognize dependent libraries; assume curses is needed if we didn't
7977 # find any dependency.
7978 case $host_os in
7979 netbsd* | openbsd* | irix*)
7980 if test x"$pgac_lib" = x"" ; then
7981 pgac_lib=" -lcurses"
7982 fi ;;
7983 esac
7985 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7986 break
7988 else
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7996 conftest$ac_exeext conftest.$ac_ext
7997 done
7998 if test "$pgac_cv_check_readline" != no ; then
7999 { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8000 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8001 break
8002 else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004 echo "${ECHO_T}no" >&6; }
8006 done
8007 LIBS=$pgac_save_LIBS
8011 if test "$pgac_cv_check_readline" != no ; then
8012 LIBS="$pgac_cv_check_readline $LIBS"
8014 cat >>confdefs.h <<\_ACEOF
8015 #define HAVE_LIBREADLINE 1
8016 _ACEOF
8021 if test x"$pgac_cv_check_readline" = x"no"; then
8022 { { echo "$as_me:$LINENO: error: readline library not found
8023 If you have readline already installed, see config.log for details on the
8024 failure. It is possible the compiler isn't looking in the proper directory.
8025 Use --without-readline to disable readline support." >&5
8026 echo "$as_me: error: readline library not found
8027 If you have readline already installed, see config.log for details on the
8028 failure. It is possible the compiler isn't looking in the proper directory.
8029 Use --without-readline to disable readline support." >&2;}
8030 { (exit 1); exit 1; }; }
8034 if test "$with_zlib" = yes; then
8036 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8037 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8038 if test "${ac_cv_lib_z_inflate+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-lz $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 char inflate ();
8058 main ()
8060 return inflate ();
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (ac_try="$ac_link"
8067 case "(($ac_try" in
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_link") 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest$ac_exeext &&
8082 $as_test_x conftest$ac_exeext; then
8083 ac_cv_lib_z_inflate=yes
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_lib_z_inflate=no
8091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8092 conftest$ac_exeext conftest.$ac_ext
8093 LIBS=$ac_check_lib_save_LIBS
8095 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8096 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8097 if test $ac_cv_lib_z_inflate = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define HAVE_LIBZ 1
8100 _ACEOF
8102 LIBS="-lz $LIBS"
8104 else
8105 { { echo "$as_me:$LINENO: error: zlib library not found
8106 If you have zlib already installed, see config.log for details on the
8107 failure. It is possible the compiler isn't looking in the proper directory.
8108 Use --without-zlib to disable zlib support." >&5
8109 echo "$as_me: error: zlib library not found
8110 If you have zlib already installed, see config.log for details on the
8111 failure. It is possible the compiler isn't looking in the proper directory.
8112 Use --without-zlib to disable zlib support." >&2;}
8113 { (exit 1); exit 1; }; }
8118 if test "$enable_spinlocks" = yes; then
8120 cat >>confdefs.h <<\_ACEOF
8121 #define HAVE_SPINLOCKS 1
8122 _ACEOF
8124 else
8125 { echo "$as_me:$LINENO: WARNING:
8126 *** Not using spinlocks will cause poor performance." >&5
8127 echo "$as_me: WARNING:
8128 *** Not using spinlocks will cause poor performance." >&2;}
8131 if test "$with_gssapi" = yes ; then
8132 if test "$PORTNAME" != "win32"; then
8133 { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8134 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8135 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 ac_func_search_save_LIBS=$LIBS
8139 cat >conftest.$ac_ext <<_ACEOF
8140 /* confdefs.h. */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char gss_init_sec_context ();
8154 main ()
8156 return gss_init_sec_context ();
8158 return 0;
8160 _ACEOF
8161 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8162 if test -z "$ac_lib"; then
8163 ac_res="none required"
8164 else
8165 ac_res=-l$ac_lib
8166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8170 case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_link") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest$ac_exeext &&
8185 $as_test_x conftest$ac_exeext; then
8186 ac_cv_search_gss_init_sec_context=$ac_res
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext
8196 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8197 break
8199 done
8200 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8202 else
8203 ac_cv_search_gss_init_sec_context=no
8205 rm conftest.$ac_ext
8206 LIBS=$ac_func_search_save_LIBS
8208 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8209 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8210 ac_res=$ac_cv_search_gss_init_sec_context
8211 if test "$ac_res" != no; then
8212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8214 else
8215 { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8216 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8217 { (exit 1); exit 1; }; }
8220 else
8221 LIBS="$LIBS -lgssapi32"
8225 if test "$with_krb5" = yes ; then
8226 if test "$PORTNAME" != "win32"; then
8227 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8228 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8229 if test "${ac_cv_search_com_err+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 else
8232 ac_func_search_save_LIBS=$LIBS
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8240 /* Override any GCC internal prototype to avoid an error.
8241 Use char because int might match the return type of a GCC
8242 builtin and then its argument prototype would still apply. */
8243 #ifdef __cplusplus
8244 extern "C"
8245 #endif
8246 char com_err ();
8248 main ()
8250 return com_err ();
8252 return 0;
8254 _ACEOF
8255 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'
8256 com_err 'com_err -lssl -lcrypto'; do
8257 if test -z "$ac_lib"; then
8258 ac_res="none required"
8259 else
8260 ac_res=-l$ac_lib
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 rm -f conftest.$ac_objext conftest$ac_exeext
8264 if { (ac_try="$ac_link"
8265 case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_link") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest$ac_exeext &&
8280 $as_test_x conftest$ac_exeext; then
8281 ac_cv_search_com_err=$ac_res
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8290 conftest$ac_exeext
8291 if test "${ac_cv_search_com_err+set}" = set; then
8292 break
8294 done
8295 if test "${ac_cv_search_com_err+set}" = set; then
8297 else
8298 ac_cv_search_com_err=no
8300 rm conftest.$ac_ext
8301 LIBS=$ac_func_search_save_LIBS
8303 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8304 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8305 ac_res=$ac_cv_search_com_err
8306 if test "$ac_res" != no; then
8307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309 else
8310 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8311 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8312 { (exit 1); exit 1; }; }
8315 { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8316 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8317 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320 ac_func_search_save_LIBS=$LIBS
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8331 #ifdef __cplusplus
8332 extern "C"
8333 #endif
8334 char krb5_sendauth ();
8336 main ()
8338 return krb5_sendauth ();
8340 return 0;
8342 _ACEOF
8343 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8344 if test -z "$ac_lib"; then
8345 ac_res="none required"
8346 else
8347 ac_res=-l$ac_lib
8348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (ac_try="$ac_link"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_link") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } && {
8364 test -z "$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 } && test -s conftest$ac_exeext &&
8367 $as_test_x conftest$ac_exeext; then
8368 ac_cv_search_krb5_sendauth=$ac_res
8369 else
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8377 conftest$ac_exeext
8378 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8379 break
8381 done
8382 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8384 else
8385 ac_cv_search_krb5_sendauth=no
8387 rm conftest.$ac_ext
8388 LIBS=$ac_func_search_save_LIBS
8390 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8391 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8392 ac_res=$ac_cv_search_krb5_sendauth
8393 if test "$ac_res" != no; then
8394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8396 else
8397 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8398 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8399 { (exit 1); exit 1; }; }
8402 else
8403 { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h. */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char com_err ();
8424 main ()
8426 return com_err ();
8428 return 0;
8430 _ACEOF
8431 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8434 else
8435 ac_res=-l$ac_lib
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest$ac_exeext &&
8455 $as_test_x conftest$ac_exeext; then
8456 ac_cv_search_com_err=$ac_res
8457 else
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8465 conftest$ac_exeext
8466 if test "${ac_cv_search_com_err+set}" = set; then
8467 break
8469 done
8470 if test "${ac_cv_search_com_err+set}" = set; then
8472 else
8473 ac_cv_search_com_err=no
8475 rm conftest.$ac_ext
8476 LIBS=$ac_func_search_save_LIBS
8478 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8479 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8480 ac_res=$ac_cv_search_com_err
8481 if test "$ac_res" != no; then
8482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8484 else
8485 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8486 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8487 { (exit 1); exit 1; }; }
8493 if test "$with_openssl" = yes ; then
8494 if test "$PORTNAME" != "win32"; then
8496 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8497 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
8498 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501 ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-lcrypto $LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8510 /* Override any GCC internal prototype to avoid an error.
8511 Use char because int might match the return type of a GCC
8512 builtin and then its argument prototype would still apply. */
8513 #ifdef __cplusplus
8514 extern "C"
8515 #endif
8516 char CRYPTO_new_ex_data ();
8518 main ()
8520 return CRYPTO_new_ex_data ();
8522 return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8527 case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_link") 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest$ac_exeext &&
8542 $as_test_x conftest$ac_exeext; then
8543 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8544 else
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8552 conftest$ac_exeext conftest.$ac_ext
8553 LIBS=$ac_check_lib_save_LIBS
8555 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8556 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8557 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8558 cat >>confdefs.h <<_ACEOF
8559 #define HAVE_LIBCRYPTO 1
8560 _ACEOF
8562 LIBS="-lcrypto $LIBS"
8564 else
8565 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8566 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8567 { (exit 1); exit 1; }; }
8571 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8572 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8573 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576 ac_check_lib_save_LIBS=$LIBS
8577 LIBS="-lssl $LIBS"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8585 /* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8588 #ifdef __cplusplus
8589 extern "C"
8590 #endif
8591 char SSL_library_init ();
8593 main ()
8595 return SSL_library_init ();
8597 return 0;
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8602 case "(($ac_try" in
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_link") 2>conftest.er1
8608 ac_status=$?
8609 grep -v '^ *+' conftest.er1 >conftest.err
8610 rm -f conftest.er1
8611 cat conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest$ac_exeext &&
8617 $as_test_x conftest$ac_exeext; then
8618 ac_cv_lib_ssl_SSL_library_init=yes
8619 else
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8623 ac_cv_lib_ssl_SSL_library_init=no
8626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS=$ac_check_lib_save_LIBS
8630 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8631 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8632 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_LIBSSL 1
8635 _ACEOF
8637 LIBS="-lssl $LIBS"
8639 else
8640 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8641 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8642 { (exit 1); exit 1; }; }
8645 else
8647 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8648 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8649 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652 ac_check_lib_save_LIBS=$LIBS
8653 LIBS="-leay32 $LIBS"
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8661 /* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8664 #ifdef __cplusplus
8665 extern "C"
8666 #endif
8667 char CRYPTO_new_ex_data ();
8669 main ()
8671 return CRYPTO_new_ex_data ();
8673 return 0;
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8678 case "(($ac_try" in
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8681 esac
8682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683 (eval "$ac_link") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest$ac_exeext &&
8693 $as_test_x conftest$ac_exeext; then
8694 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8699 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8706 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8707 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8708 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8709 cat >>confdefs.h <<_ACEOF
8710 #define HAVE_LIBEAY32 1
8711 _ACEOF
8713 LIBS="-leay32 $LIBS"
8715 else
8716 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8717 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8718 { (exit 1); exit 1; }; }
8722 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8723 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727 ac_check_lib_save_LIBS=$LIBS
8728 LIBS="-lssleay32 $LIBS"
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h. */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 /* Override any GCC internal prototype to avoid an error.
8737 Use char because int might match the return type of a GCC
8738 builtin and then its argument prototype would still apply. */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 char SSL_library_init ();
8744 main ()
8746 return SSL_library_init ();
8748 return 0;
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && {
8765 test -z "$ac_c_werror_flag" ||
8766 test ! -s conftest.err
8767 } && test -s conftest$ac_exeext &&
8768 $as_test_x conftest$ac_exeext; then
8769 ac_cv_lib_ssleay32_SSL_library_init=yes
8770 else
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_lib_ssleay32_SSL_library_init=no
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8782 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8783 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8784 cat >>confdefs.h <<_ACEOF
8785 #define HAVE_LIBSSLEAY32 1
8786 _ACEOF
8788 LIBS="-lssleay32 $LIBS"
8790 else
8791 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8792 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8793 { (exit 1); exit 1; }; }
8799 if test "$with_pam" = yes ; then
8801 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8802 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8803 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806 ac_check_lib_save_LIBS=$LIBS
8807 LIBS="-lpam $LIBS"
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h. */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8815 /* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818 #ifdef __cplusplus
8819 extern "C"
8820 #endif
8821 char pam_start ();
8823 main ()
8825 return pam_start ();
8827 return 0;
8829 _ACEOF
8830 rm -f conftest.$ac_objext conftest$ac_exeext
8831 if { (ac_try="$ac_link"
8832 case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
8848 ac_cv_lib_pam_pam_start=yes
8849 else
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 ac_cv_lib_pam_pam_start=no
8856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
8858 LIBS=$ac_check_lib_save_LIBS
8860 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8861 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8862 if test $ac_cv_lib_pam_pam_start = yes; then
8863 cat >>confdefs.h <<_ACEOF
8864 #define HAVE_LIBPAM 1
8865 _ACEOF
8867 LIBS="-lpam $LIBS"
8869 else
8870 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8871 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8872 { (exit 1); exit 1; }; }
8877 if test "$with_libxml" = yes ; then
8879 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8880 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8881 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8882 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884 ac_check_lib_save_LIBS=$LIBS
8885 LIBS="-lxml2 $LIBS"
8886 cat >conftest.$ac_ext <<_ACEOF
8887 /* confdefs.h. */
8888 _ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char xmlSaveToBuffer ();
8901 main ()
8903 return xmlSaveToBuffer ();
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_link") 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } && {
8922 test -z "$ac_c_werror_flag" ||
8923 test ! -s conftest.err
8924 } && test -s conftest$ac_exeext &&
8925 $as_test_x conftest$ac_exeext; then
8926 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8927 else
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_lib_xml2_xmlSaveToBuffer=no
8934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8935 conftest$ac_exeext conftest.$ac_ext
8936 LIBS=$ac_check_lib_save_LIBS
8938 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8939 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8940 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_LIBXML2 1
8943 _ACEOF
8945 LIBS="-lxml2 $LIBS"
8947 else
8948 { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8949 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8950 { (exit 1); exit 1; }; }
8955 if test "$with_libxslt" = yes ; then
8957 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8958 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8959 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8960 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 else
8962 ac_check_lib_save_LIBS=$LIBS
8963 LIBS="-lxslt $LIBS"
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8974 #ifdef __cplusplus
8975 extern "C"
8976 #endif
8977 char xsltCleanupGlobals ();
8979 main ()
8981 return xsltCleanupGlobals ();
8983 return 0;
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (ac_try="$ac_link"
8988 case "(($ac_try" in
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8991 esac
8992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8993 (eval "$ac_link") 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest$ac_exeext &&
9003 $as_test_x conftest$ac_exeext; then
9004 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9005 else
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 ac_cv_lib_xslt_xsltCleanupGlobals=no
9012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9013 conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9017 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9018 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9019 cat >>confdefs.h <<_ACEOF
9020 #define HAVE_LIBXSLT 1
9021 _ACEOF
9023 LIBS="-lxslt $LIBS"
9025 else
9026 { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9027 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9028 { (exit 1); exit 1; }; }
9033 # for contrib/uuid-ossp
9034 if test "$with_ossp_uuid" = yes ; then
9035 { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9036 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9037 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lossp-uuid $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char uuid_export ();
9057 main ()
9059 return uuid_export ();
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (ac_try="$ac_link"
9066 case "(($ac_try" in
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9069 esac
9070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071 (eval "$ac_link") 2>conftest.er1
9072 ac_status=$?
9073 grep -v '^ *+' conftest.er1 >conftest.err
9074 rm -f conftest.er1
9075 cat conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } && {
9078 test -z "$ac_c_werror_flag" ||
9079 test ! -s conftest.err
9080 } && test -s conftest$ac_exeext &&
9081 $as_test_x conftest$ac_exeext; then
9082 ac_cv_lib_ossp_uuid_uuid_export=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_cv_lib_ossp_uuid_uuid_export=no
9090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092 LIBS=$ac_check_lib_save_LIBS
9094 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9095 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9096 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9097 OSSP_UUID_LIBS="-lossp-uuid"
9098 else
9099 { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9100 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9101 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-luuid $LIBS"
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9113 /* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9116 #ifdef __cplusplus
9117 extern "C"
9118 #endif
9119 char uuid_export ();
9121 main ()
9123 return uuid_export ();
9125 return 0;
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9130 case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_link") 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest$ac_exeext &&
9145 $as_test_x conftest$ac_exeext; then
9146 ac_cv_lib_uuid_uuid_export=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_cv_lib_uuid_uuid_export=no
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9159 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9160 if test $ac_cv_lib_uuid_uuid_export = yes; then
9161 OSSP_UUID_LIBS="-luuid"
9162 else
9163 { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9164 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9165 { (exit 1); exit 1; }; }
9175 ## Header files
9178 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9179 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
9180 if test "${ac_cv_header_stdc+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9189 #include <stdlib.h>
9190 #include <stdarg.h>
9191 #include <string.h>
9192 #include <float.h>
9195 main ()
9199 return 0;
9201 _ACEOF
9202 rm -f conftest.$ac_objext
9203 if { (ac_try="$ac_compile"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9219 ac_cv_header_stdc=yes
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_cv_header_stdc=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <string.h>
9239 _ACEOF
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 $EGREP "memchr" >/dev/null 2>&1; then
9243 else
9244 ac_cv_header_stdc=no
9246 rm -f conftest*
9250 if test $ac_cv_header_stdc = yes; then
9251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <stdlib.h>
9260 _ACEOF
9261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9262 $EGREP "free" >/dev/null 2>&1; then
9264 else
9265 ac_cv_header_stdc=no
9267 rm -f conftest*
9271 if test $ac_cv_header_stdc = yes; then
9272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9273 if test "$cross_compiling" = yes; then
9275 else
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 #include <ctype.h>
9283 #include <stdlib.h>
9284 #if ((' ' & 0x0FF) == 0x020)
9285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9287 #else
9288 # define ISLOWER(c) \
9289 (('a' <= (c) && (c) <= 'i') \
9290 || ('j' <= (c) && (c) <= 'r') \
9291 || ('s' <= (c) && (c) <= 'z'))
9292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9293 #endif
9295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9297 main ()
9299 int i;
9300 for (i = 0; i < 256; i++)
9301 if (XOR (islower (i), ISLOWER (i))
9302 || toupper (i) != TOUPPER (i))
9303 return 2;
9304 return 0;
9306 _ACEOF
9307 rm -f conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9309 case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312 esac
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318 { (case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_try") 2>&5
9324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); }; }; then
9328 else
9329 echo "$as_me: program exited with status $ac_status" >&5
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ( exit $ac_status )
9334 ac_cv_header_stdc=no
9336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9343 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
9344 if test $ac_cv_header_stdc = yes; then
9346 cat >>confdefs.h <<\_ACEOF
9347 #define STDC_HEADERS 1
9348 _ACEOF
9352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9363 inttypes.h stdint.h unistd.h
9365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371 cat >conftest.$ac_ext <<_ACEOF
9372 /* confdefs.h. */
9373 _ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9379 #include <$ac_header>
9380 _ACEOF
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 eval "$as_ac_Header=yes"
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 eval "$as_ac_Header=no"
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 ac_res=`eval echo '${'$as_ac_Header'}'`
9409 { echo "$as_me:$LINENO: result: $ac_res" >&5
9410 echo "${ECHO_T}$ac_res" >&6; }
9411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9412 cat >>confdefs.h <<_ACEOF
9413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9414 _ACEOF
9418 done
9448 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 ac_res=`eval echo '${'$as_ac_Header'}'`
9458 { echo "$as_me:$LINENO: result: $ac_res" >&5
9459 echo "${ECHO_T}$ac_res" >&6; }
9460 else
9461 # Is the header compilable?
9462 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9463 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 #include <$ac_header>
9472 _ACEOF
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9475 case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9481 ac_status=$?
9482 grep -v '^ *+' conftest.er1 >conftest.err
9483 rm -f conftest.er1
9484 cat conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.$ac_objext; then
9490 ac_header_compiler=yes
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_header_compiler=no
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9500 echo "${ECHO_T}$ac_header_compiler" >&6; }
9502 # Is the header present?
9503 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9505 cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h. */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 #include <$ac_header>
9512 _ACEOF
9513 if { (ac_try="$ac_cpp conftest.$ac_ext"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } >/dev/null && {
9526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 }; then
9529 ac_header_preproc=yes
9530 else
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9534 ac_header_preproc=no
9537 rm -f conftest.err conftest.$ac_ext
9538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9539 echo "${ECHO_T}$ac_header_preproc" >&6; }
9541 # So? What about this header?
9542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9543 yes:no: )
9544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9548 ac_header_preproc=yes
9550 no:yes:* )
9551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9563 ( cat <<\_ASBOX
9564 ## ---------------------------------------- ##
9565 ## Report this to pgsql-bugs@postgresql.org ##
9566 ## ---------------------------------------- ##
9567 _ASBOX
9568 ) | sed "s/^/$as_me: WARNING: /" >&2
9570 esac
9571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576 eval "$as_ac_Header=\$ac_header_preproc"
9578 ac_res=`eval echo '${'$as_ac_Header'}'`
9579 { echo "$as_me:$LINENO: result: $ac_res" >&5
9580 echo "${ECHO_T}$ac_res" >&6; }
9583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9586 _ACEOF
9590 done
9593 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9594 # netinet/in.h is included first.
9596 for ac_header in netinet/in.h
9598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 ac_res=`eval echo '${'$as_ac_Header'}'`
9606 { echo "$as_me:$LINENO: result: $ac_res" >&5
9607 echo "${ECHO_T}$ac_res" >&6; }
9608 else
9609 # Is the header compilable?
9610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h. */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 $ac_includes_default
9619 #include <$ac_header>
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (ac_try="$ac_compile"
9623 case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626 esac
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.$ac_objext; then
9638 ac_header_compiler=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 ac_header_compiler=no
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9648 echo "${ECHO_T}$ac_header_compiler" >&6; }
9650 # Is the header present?
9651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h. */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 #include <$ac_header>
9660 _ACEOF
9661 if { (ac_try="$ac_cpp conftest.$ac_ext"
9662 case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null && {
9674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 }; then
9677 ac_header_preproc=yes
9678 else
9679 echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9682 ac_header_preproc=no
9685 rm -f conftest.err conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9687 echo "${ECHO_T}$ac_header_preproc" >&6; }
9689 # So? What about this header?
9690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9691 yes:no: )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9696 ac_header_preproc=yes
9698 no:yes:* )
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 ( cat <<\_ASBOX
9712 ## ---------------------------------------- ##
9713 ## Report this to pgsql-bugs@postgresql.org ##
9714 ## ---------------------------------------- ##
9715 _ASBOX
9716 ) | sed "s/^/$as_me: WARNING: /" >&2
9718 esac
9719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 else
9724 eval "$as_ac_Header=\$ac_header_preproc"
9726 ac_res=`eval echo '${'$as_ac_Header'}'`
9727 { echo "$as_me:$LINENO: result: $ac_res" >&5
9728 echo "${ECHO_T}$ac_res" >&6; }
9731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9732 cat >>confdefs.h <<_ACEOF
9733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 _ACEOF
9738 done
9741 for ac_header in netinet/tcp.h
9743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 #ifdef HAVE_NETINET_IN_H
9757 #include <netinet/in.h>
9758 #endif
9761 #include <$ac_header>
9762 _ACEOF
9763 rm -f conftest.$ac_objext
9764 if { (ac_try="$ac_compile"
9765 case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_compile") 2>conftest.er1
9771 ac_status=$?
9772 grep -v '^ *+' conftest.er1 >conftest.err
9773 rm -f conftest.er1
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest.$ac_objext; then
9780 eval "$as_ac_Header=yes"
9781 else
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 eval "$as_ac_Header=no"
9788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 ac_res=`eval echo '${'$as_ac_Header'}'`
9791 { echo "$as_me:$LINENO: result: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9794 cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796 _ACEOF
9800 done
9803 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9805 for ac_header in readline/readline.h
9807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 ac_res=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9817 else
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_compiler=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9869 _ACEOF
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null && {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 }; then
9886 ac_header_preproc=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_header_preproc=no
9894 rm -f conftest.err conftest.$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9900 yes:no: )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc=yes
9907 no:yes:* )
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9920 ( cat <<\_ASBOX
9921 ## ---------------------------------------- ##
9922 ## Report this to pgsql-bugs@postgresql.org ##
9923 ## ---------------------------------------- ##
9924 _ASBOX
9925 ) | sed "s/^/$as_me: WARNING: /" >&2
9927 esac
9928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933 eval "$as_ac_Header=\$ac_header_preproc"
9935 ac_res=`eval echo '${'$as_ac_Header'}'`
9936 { echo "$as_me:$LINENO: result: $ac_res" >&5
9937 echo "${ECHO_T}$ac_res" >&6; }
9940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9943 _ACEOF
9945 else
9947 for ac_header in readline.h
9949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 ac_res=`eval echo '${'$as_ac_Header'}'`
9957 { echo "$as_me:$LINENO: result: $ac_res" >&5
9958 echo "${ECHO_T}$ac_res" >&6; }
9959 else
9960 # Is the header compilable?
9961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h. */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 #include <$ac_header>
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9974 case "(($ac_try" in
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9977 esac
9978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979 (eval "$ac_compile") 2>conftest.er1
9980 ac_status=$?
9981 grep -v '^ *+' conftest.er1 >conftest.err
9982 rm -f conftest.er1
9983 cat conftest.err >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest.$ac_objext; then
9989 ac_header_compiler=yes
9990 else
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_header_compiler=no
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9999 echo "${ECHO_T}$ac_header_compiler" >&6; }
10001 # Is the header present?
10002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10010 #include <$ac_header>
10011 _ACEOF
10012 if { (ac_try="$ac_cpp conftest.$ac_ext"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } >/dev/null && {
10025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 }; then
10028 ac_header_preproc=yes
10029 else
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ac_header_preproc=no
10036 rm -f conftest.err conftest.$ac_ext
10037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10038 echo "${ECHO_T}$ac_header_preproc" >&6; }
10040 # So? What about this header?
10041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10042 yes:no: )
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10047 ac_header_preproc=yes
10049 no:yes:* )
10050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10062 ( cat <<\_ASBOX
10063 ## ---------------------------------------- ##
10064 ## Report this to pgsql-bugs@postgresql.org ##
10065 ## ---------------------------------------- ##
10066 _ASBOX
10067 ) | sed "s/^/$as_me: WARNING: /" >&2
10069 esac
10070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075 eval "$as_ac_Header=\$ac_header_preproc"
10077 ac_res=`eval echo '${'$as_ac_Header'}'`
10078 { echo "$as_me:$LINENO: result: $ac_res" >&5
10079 echo "${ECHO_T}$ac_res" >&6; }
10082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10083 cat >>confdefs.h <<_ACEOF
10084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10085 _ACEOF
10087 else
10088 { { echo "$as_me:$LINENO: error: readline header not found
10089 If you have readline already installed, see config.log for details on the
10090 failure. It is possible the compiler isn't looking in the proper directory.
10091 Use --without-readline to disable readline support." >&5
10092 echo "$as_me: error: readline header not found
10093 If you have readline already installed, see config.log for details on the
10094 failure. It is possible the compiler isn't looking in the proper directory.
10095 Use --without-readline to disable readline support." >&2;}
10096 { (exit 1); exit 1; }; }
10099 done
10103 done
10106 for ac_header in readline/history.h
10108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 ac_res=`eval echo '${'$as_ac_Header'}'`
10116 { echo "$as_me:$LINENO: result: $ac_res" >&5
10117 echo "${ECHO_T}$ac_res" >&6; }
10118 else
10119 # Is the header compilable?
10120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10122 cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h. */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 #include <$ac_header>
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 ac_header_compiler=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_compiler=no
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10158 echo "${ECHO_T}$ac_header_compiler" >&6; }
10160 # Is the header present?
10161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h. */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <$ac_header>
10170 _ACEOF
10171 if { (ac_try="$ac_cpp conftest.$ac_ext"
10172 case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null && {
10184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 }; then
10187 ac_header_preproc=yes
10188 else
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_header_preproc=no
10195 rm -f conftest.err conftest.$ac_ext
10196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 echo "${ECHO_T}$ac_header_preproc" >&6; }
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10201 yes:no: )
10202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc=yes
10208 no:yes:* )
10209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10221 ( cat <<\_ASBOX
10222 ## ---------------------------------------- ##
10223 ## Report this to pgsql-bugs@postgresql.org ##
10224 ## ---------------------------------------- ##
10225 _ASBOX
10226 ) | sed "s/^/$as_me: WARNING: /" >&2
10228 esac
10229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 eval "$as_ac_Header=\$ac_header_preproc"
10236 ac_res=`eval echo '${'$as_ac_Header'}'`
10237 { echo "$as_me:$LINENO: result: $ac_res" >&5
10238 echo "${ECHO_T}$ac_res" >&6; }
10241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10242 cat >>confdefs.h <<_ACEOF
10243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10244 _ACEOF
10246 else
10248 for ac_header in history.h
10250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_res=`eval echo '${'$as_ac_Header'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259 echo "${ECHO_T}$ac_res" >&6; }
10260 else
10261 # Is the header compilable?
10262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 $ac_includes_default
10271 #include <$ac_header>
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_compile") 2>conftest.er1
10281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } && {
10287 test -z "$ac_c_werror_flag" ||
10288 test ! -s conftest.err
10289 } && test -s conftest.$ac_objext; then
10290 ac_header_compiler=yes
10291 else
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_header_compiler=no
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10300 echo "${ECHO_T}$ac_header_compiler" >&6; }
10302 # Is the header present?
10303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 #include <$ac_header>
10312 _ACEOF
10313 if { (ac_try="$ac_cpp conftest.$ac_ext"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317 esac
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } >/dev/null && {
10326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 }; then
10329 ac_header_preproc=yes
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_header_preproc=no
10337 rm -f conftest.err conftest.$ac_ext
10338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10339 echo "${ECHO_T}$ac_header_preproc" >&6; }
10341 # So? What about this header?
10342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10343 yes:no: )
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10348 ac_header_preproc=yes
10350 no:yes:* )
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10363 ( cat <<\_ASBOX
10364 ## ---------------------------------------- ##
10365 ## Report this to pgsql-bugs@postgresql.org ##
10366 ## ---------------------------------------- ##
10367 _ASBOX
10368 ) | sed "s/^/$as_me: WARNING: /" >&2
10370 esac
10371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376 eval "$as_ac_Header=\$ac_header_preproc"
10378 ac_res=`eval echo '${'$as_ac_Header'}'`
10379 { echo "$as_me:$LINENO: result: $ac_res" >&5
10380 echo "${ECHO_T}$ac_res" >&6; }
10383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10384 cat >>confdefs.h <<_ACEOF
10385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386 _ACEOF
10388 else
10389 { { echo "$as_me:$LINENO: error: history header not found
10390 If you have readline already installed, see config.log for details on the
10391 failure. It is possible the compiler isn't looking in the proper directory.
10392 Use --without-readline to disable readline support." >&5
10393 echo "$as_me: error: history header not found
10394 If you have readline already installed, see config.log for details on the
10395 failure. It is possible the compiler isn't looking in the proper directory.
10396 Use --without-readline to disable readline support." >&2;}
10397 { (exit 1); exit 1; }; }
10400 done
10404 done
10408 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10409 # Some installations of libedit usurp /usr/include/readline/, which seems
10410 # bad practice, since in combined installations readline will have its headers
10411 # there. We might have to resort to AC_EGREP checks to make sure we found
10412 # the proper header...
10414 for ac_header in editline/readline.h
10416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 ac_res=`eval echo '${'$as_ac_Header'}'`
10424 { echo "$as_me:$LINENO: result: $ac_res" >&5
10425 echo "${ECHO_T}$ac_res" >&6; }
10426 else
10427 # Is the header compilable?
10428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10431 /* confdefs.h. */
10432 _ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 $ac_includes_default
10437 #include <$ac_header>
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (ac_try="$ac_compile"
10441 case "(($ac_try" in
10442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443 *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446 (eval "$ac_compile") 2>conftest.er1
10447 ac_status=$?
10448 grep -v '^ *+' conftest.er1 >conftest.err
10449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } && {
10453 test -z "$ac_c_werror_flag" ||
10454 test ! -s conftest.err
10455 } && test -s conftest.$ac_objext; then
10456 ac_header_compiler=yes
10457 else
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_header_compiler=no
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10466 echo "${ECHO_T}$ac_header_compiler" >&6; }
10468 # Is the header present?
10469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 #include <$ac_header>
10478 _ACEOF
10479 if { (ac_try="$ac_cpp conftest.$ac_ext"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } >/dev/null && {
10492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 }; then
10495 ac_header_preproc=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_header_preproc=no
10503 rm -f conftest.err conftest.$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10505 echo "${ECHO_T}$ac_header_preproc" >&6; }
10507 # So? What about this header?
10508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10509 yes:no: )
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10514 ac_header_preproc=yes
10516 no:yes:* )
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10529 ( cat <<\_ASBOX
10530 ## ---------------------------------------- ##
10531 ## Report this to pgsql-bugs@postgresql.org ##
10532 ## ---------------------------------------- ##
10533 _ASBOX
10534 ) | sed "s/^/$as_me: WARNING: /" >&2
10536 esac
10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542 eval "$as_ac_Header=\$ac_header_preproc"
10544 ac_res=`eval echo '${'$as_ac_Header'}'`
10545 { echo "$as_me:$LINENO: result: $ac_res" >&5
10546 echo "${ECHO_T}$ac_res" >&6; }
10549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10550 cat >>confdefs.h <<_ACEOF
10551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 _ACEOF
10554 else
10556 for ac_header in readline.h
10558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_res=`eval echo '${'$as_ac_Header'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10568 else
10569 # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <$ac_header>
10580 _ACEOF
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_header_compiler=yes
10599 else
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h. */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <$ac_header>
10620 _ACEOF
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628 ac_status=$?
10629 grep -v '^ *+' conftest.er1 >conftest.err
10630 rm -f conftest.er1
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null && {
10634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10636 }; then
10637 ac_header_preproc=yes
10638 else
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_header_preproc=no
10645 rm -f conftest.err conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6; }
10649 # So? What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651 yes:no: )
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc=yes
10658 no:yes:* )
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10671 ( cat <<\_ASBOX
10672 ## ---------------------------------------- ##
10673 ## Report this to pgsql-bugs@postgresql.org ##
10674 ## ---------------------------------------- ##
10675 _ASBOX
10676 ) | sed "s/^/$as_me: WARNING: /" >&2
10678 esac
10679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 eval "$as_ac_Header=\$ac_header_preproc"
10686 ac_res=`eval echo '${'$as_ac_Header'}'`
10687 { echo "$as_me:$LINENO: result: $ac_res" >&5
10688 echo "${ECHO_T}$ac_res" >&6; }
10691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10692 cat >>confdefs.h <<_ACEOF
10693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10694 _ACEOF
10696 else
10698 for ac_header in readline/readline.h
10700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 ac_res=`eval echo '${'$as_ac_Header'}'`
10708 { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10710 else
10711 # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 #include <$ac_header>
10722 _ACEOF
10723 rm -f conftest.$ac_objext
10724 if { (ac_try="$ac_compile"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10728 esac
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_compile") 2>conftest.er1
10731 ac_status=$?
10732 grep -v '^ *+' conftest.er1 >conftest.err
10733 rm -f conftest.er1
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest.$ac_objext; then
10740 ac_header_compiler=yes
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null && {
10776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 }; then
10779 ac_header_preproc=yes
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_preproc=no
10787 rm -f conftest.err conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10793 yes:no: )
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10800 no:yes:* )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10813 ( cat <<\_ASBOX
10814 ## ---------------------------------------- ##
10815 ## Report this to pgsql-bugs@postgresql.org ##
10816 ## ---------------------------------------- ##
10817 _ASBOX
10818 ) | sed "s/^/$as_me: WARNING: /" >&2
10820 esac
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 eval "$as_ac_Header=\$ac_header_preproc"
10828 ac_res=`eval echo '${'$as_ac_Header'}'`
10829 { echo "$as_me:$LINENO: result: $ac_res" >&5
10830 echo "${ECHO_T}$ac_res" >&6; }
10833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836 _ACEOF
10838 else
10839 { { echo "$as_me:$LINENO: error: readline header not found
10840 If you have libedit already installed, see config.log for details on the
10841 failure. It is possible the compiler isn't looking in the proper directory.
10842 Use --without-readline to disable libedit support." >&5
10843 echo "$as_me: error: readline header not found
10844 If you have libedit already installed, see config.log for details on the
10845 failure. It is possible the compiler isn't looking in the proper directory.
10846 Use --without-readline to disable libedit support." >&2;}
10847 { (exit 1); exit 1; }; }
10850 done
10854 done
10858 done
10860 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10861 # not be there at all. Hence, don't complain if not found. We must check
10862 # though, since in yet other versions it is an independent header.
10864 for ac_header in editline/history.h
10866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_res=`eval echo '${'$as_ac_Header'}'`
10874 { echo "$as_me:$LINENO: result: $ac_res" >&5
10875 echo "${ECHO_T}$ac_res" >&6; }
10876 else
10877 # Is the header compilable?
10878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h. */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 $ac_includes_default
10887 #include <$ac_header>
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10897 ac_status=$?
10898 grep -v '^ *+' conftest.er1 >conftest.err
10899 rm -f conftest.er1
10900 cat conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.$ac_objext; then
10906 ac_header_compiler=yes
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_header_compiler=no
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10916 echo "${ECHO_T}$ac_header_compiler" >&6; }
10918 # Is the header present?
10919 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <$ac_header>
10928 _ACEOF
10929 if { (ac_try="$ac_cpp conftest.$ac_ext"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } >/dev/null && {
10942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 }; then
10945 ac_header_preproc=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_header_preproc=no
10953 rm -f conftest.err conftest.$ac_ext
10954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10955 echo "${ECHO_T}$ac_header_preproc" >&6; }
10957 # So? What about this header?
10958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10959 yes:no: )
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10964 ac_header_preproc=yes
10966 no:yes:* )
10967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10979 ( cat <<\_ASBOX
10980 ## ---------------------------------------- ##
10981 ## Report this to pgsql-bugs@postgresql.org ##
10982 ## ---------------------------------------- ##
10983 _ASBOX
10984 ) | sed "s/^/$as_me: WARNING: /" >&2
10986 esac
10987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 eval "$as_ac_Header=\$ac_header_preproc"
10994 ac_res=`eval echo '${'$as_ac_Header'}'`
10995 { echo "$as_me:$LINENO: result: $ac_res" >&5
10996 echo "${ECHO_T}$ac_res" >&6; }
10999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11000 cat >>confdefs.h <<_ACEOF
11001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11002 _ACEOF
11004 else
11006 for ac_header in history.h
11008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11010 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 ac_res=`eval echo '${'$as_ac_Header'}'`
11016 { echo "$as_me:$LINENO: result: $ac_res" >&5
11017 echo "${ECHO_T}$ac_res" >&6; }
11018 else
11019 # Is the header compilable?
11020 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 #include <$ac_header>
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (ac_try="$ac_compile"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_compile") 2>conftest.er1
11039 ac_status=$?
11040 grep -v '^ *+' conftest.er1 >conftest.err
11041 rm -f conftest.er1
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } && {
11045 test -z "$ac_c_werror_flag" ||
11046 test ! -s conftest.err
11047 } && test -s conftest.$ac_objext; then
11048 ac_header_compiler=yes
11049 else
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11053 ac_header_compiler=no
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11058 echo "${ECHO_T}$ac_header_compiler" >&6; }
11060 # Is the header present?
11061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <$ac_header>
11070 _ACEOF
11071 if { (ac_try="$ac_cpp conftest.$ac_ext"
11072 case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } >/dev/null && {
11084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 }; then
11087 ac_header_preproc=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 ac_header_preproc=no
11095 rm -f conftest.err conftest.$ac_ext
11096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11097 echo "${ECHO_T}$ac_header_preproc" >&6; }
11099 # So? What about this header?
11100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11101 yes:no: )
11102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11106 ac_header_preproc=yes
11108 no:yes:* )
11109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11121 ( cat <<\_ASBOX
11122 ## ---------------------------------------- ##
11123 ## Report this to pgsql-bugs@postgresql.org ##
11124 ## ---------------------------------------- ##
11125 _ASBOX
11126 ) | sed "s/^/$as_me: WARNING: /" >&2
11128 esac
11129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 else
11134 eval "$as_ac_Header=\$ac_header_preproc"
11136 ac_res=`eval echo '${'$as_ac_Header'}'`
11137 { echo "$as_me:$LINENO: result: $ac_res" >&5
11138 echo "${ECHO_T}$ac_res" >&6; }
11141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11142 cat >>confdefs.h <<_ACEOF
11143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11144 _ACEOF
11146 else
11148 for ac_header in readline/history.h
11150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 ac_res=`eval echo '${'$as_ac_Header'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 else
11161 # Is the header compilable?
11162 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11165 /* confdefs.h. */
11166 _ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 $ac_includes_default
11171 #include <$ac_header>
11172 _ACEOF
11173 rm -f conftest.$ac_objext
11174 if { (ac_try="$ac_compile"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178 esac
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.$ac_objext; then
11190 ac_header_compiler=yes
11191 else
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ac_header_compiler=no
11198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 echo "${ECHO_T}$ac_header_compiler" >&6; }
11202 # Is the header present?
11203 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11205 cat >conftest.$ac_ext <<_ACEOF
11206 /* confdefs.h. */
11207 _ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11212 _ACEOF
11213 if { (ac_try="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } >/dev/null && {
11226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11227 test ! -s conftest.err
11228 }; then
11229 ac_header_preproc=yes
11230 else
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_header_preproc=no
11237 rm -f conftest.err conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11239 echo "${ECHO_T}$ac_header_preproc" >&6; }
11241 # So? What about this header?
11242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11243 yes:no: )
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11248 ac_header_preproc=yes
11250 no:yes:* )
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11258 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263 ( cat <<\_ASBOX
11264 ## ---------------------------------------- ##
11265 ## Report this to pgsql-bugs@postgresql.org ##
11266 ## ---------------------------------------- ##
11267 _ASBOX
11268 ) | sed "s/^/$as_me: WARNING: /" >&2
11270 esac
11271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276 eval "$as_ac_Header=\$ac_header_preproc"
11278 ac_res=`eval echo '${'$as_ac_Header'}'`
11279 { echo "$as_me:$LINENO: result: $ac_res" >&5
11280 echo "${ECHO_T}$ac_res" >&6; }
11283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11284 cat >>confdefs.h <<_ACEOF
11285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11286 _ACEOF
11290 done
11294 done
11298 done
11302 if test "$with_zlib" = yes; then
11303 if test "${ac_cv_header_zlib_h+set}" = set; then
11304 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11305 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11306 if test "${ac_cv_header_zlib_h+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11311 else
11312 # Is the header compilable?
11313 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11314 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 #include <zlib.h>
11323 _ACEOF
11324 rm -f conftest.$ac_objext
11325 if { (ac_try="$ac_compile"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest.$ac_objext; then
11341 ac_header_compiler=yes
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ac_header_compiler=no
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11351 echo "${ECHO_T}$ac_header_compiler" >&6; }
11353 # Is the header present?
11354 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11355 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11356 cat >conftest.$ac_ext <<_ACEOF
11357 /* confdefs.h. */
11358 _ACEOF
11359 cat confdefs.h >>conftest.$ac_ext
11360 cat >>conftest.$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11362 #include <zlib.h>
11363 _ACEOF
11364 if { (ac_try="$ac_cpp conftest.$ac_ext"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } >/dev/null && {
11377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 }; then
11380 ac_header_preproc=yes
11381 else
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_preproc=no
11388 rm -f conftest.err conftest.$ac_ext
11389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 echo "${ECHO_T}$ac_header_preproc" >&6; }
11392 # So? What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 yes:no: )
11395 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11396 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11398 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11401 no:yes:* )
11402 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11403 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11405 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11407 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11409 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11411 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11413 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11414 ( cat <<\_ASBOX
11415 ## ---------------------------------------- ##
11416 ## Report this to pgsql-bugs@postgresql.org ##
11417 ## ---------------------------------------- ##
11418 _ASBOX
11419 ) | sed "s/^/$as_me: WARNING: /" >&2
11421 esac
11422 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11423 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11424 if test "${ac_cv_header_zlib_h+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 ac_cv_header_zlib_h=$ac_header_preproc
11429 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11430 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11433 if test $ac_cv_header_zlib_h = yes; then
11435 else
11436 { { echo "$as_me:$LINENO: error: zlib header not found
11437 If you have zlib already installed, see config.log for details on the
11438 failure. It is possible the compiler isn't looking in the proper directory.
11439 Use --without-zlib to disable zlib support." >&5
11440 echo "$as_me: error: zlib header not found
11441 If you have zlib already installed, see config.log for details on the
11442 failure. It is possible the compiler isn't looking in the proper directory.
11443 Use --without-zlib to disable zlib support." >&2;}
11444 { (exit 1); exit 1; }; }
11450 if test "$with_gssapi" = yes ; then
11452 for ac_header in gssapi/gssapi.h
11454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_res=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11464 else
11465 # Is the header compilable?
11466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 $ac_includes_default
11475 #include <$ac_header>
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_compile") 2>conftest.er1
11485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } && {
11491 test -z "$ac_c_werror_flag" ||
11492 test ! -s conftest.err
11493 } && test -s conftest.$ac_objext; then
11494 ac_header_compiler=yes
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 ac_header_compiler=no
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11504 echo "${ECHO_T}$ac_header_compiler" >&6; }
11506 # Is the header present?
11507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11509 cat >conftest.$ac_ext <<_ACEOF
11510 /* confdefs.h. */
11511 _ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <$ac_header>
11516 _ACEOF
11517 if { (ac_try="$ac_cpp conftest.$ac_ext"
11518 case "(($ac_try" in
11519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520 *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } >/dev/null && {
11530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 }; then
11533 ac_header_preproc=yes
11534 else
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11538 ac_header_preproc=no
11541 rm -f conftest.err conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11543 echo "${ECHO_T}$ac_header_preproc" >&6; }
11545 # So? What about this header?
11546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547 yes:no: )
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11552 ac_header_preproc=yes
11554 no:yes:* )
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11567 ( cat <<\_ASBOX
11568 ## ---------------------------------------- ##
11569 ## Report this to pgsql-bugs@postgresql.org ##
11570 ## ---------------------------------------- ##
11571 _ASBOX
11572 ) | sed "s/^/$as_me: WARNING: /" >&2
11574 esac
11575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580 eval "$as_ac_Header=\$ac_header_preproc"
11582 ac_res=`eval echo '${'$as_ac_Header'}'`
11583 { echo "$as_me:$LINENO: result: $ac_res" >&5
11584 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11588 cat >>confdefs.h <<_ACEOF
11589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11590 _ACEOF
11592 else
11594 for ac_header in gssapi.h
11596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 ac_res=`eval echo '${'$as_ac_Header'}'`
11604 { echo "$as_me:$LINENO: result: $ac_res" >&5
11605 echo "${ECHO_T}$ac_res" >&6; }
11606 else
11607 # Is the header compilable?
11608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616 $ac_includes_default
11617 #include <$ac_header>
11618 _ACEOF
11619 rm -f conftest.$ac_objext
11620 if { (ac_try="$ac_compile"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624 esac
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_compile") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest.$ac_objext; then
11636 ac_header_compiler=yes
11637 else
11638 echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11641 ac_header_compiler=no
11644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11646 echo "${ECHO_T}$ac_header_compiler" >&6; }
11648 # Is the header present?
11649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 #include <$ac_header>
11658 _ACEOF
11659 if { (ac_try="$ac_cpp conftest.$ac_ext"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev/null && {
11672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11674 }; then
11675 ac_header_preproc=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_header_preproc=no
11683 rm -f conftest.err conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 echo "${ECHO_T}$ac_header_preproc" >&6; }
11687 # So? What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11689 yes:no: )
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694 ac_header_preproc=yes
11696 no:yes:* )
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11709 ( cat <<\_ASBOX
11710 ## ---------------------------------------- ##
11711 ## Report this to pgsql-bugs@postgresql.org ##
11712 ## ---------------------------------------- ##
11713 _ASBOX
11714 ) | sed "s/^/$as_me: WARNING: /" >&2
11716 esac
11717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 ac_res=`eval echo '${'$as_ac_Header'}'`
11725 { echo "$as_me:$LINENO: result: $ac_res" >&5
11726 echo "${ECHO_T}$ac_res" >&6; }
11729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11732 _ACEOF
11734 else
11735 { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11736 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11737 { (exit 1); exit 1; }; }
11740 done
11744 done
11748 if test "$with_krb5" = yes ; then
11749 if test "${ac_cv_header_krb5_h+set}" = set; then
11750 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11751 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11752 if test "${ac_cv_header_krb5_h+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11756 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11757 else
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11760 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11762 /* confdefs.h. */
11763 _ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <krb5.h>
11769 _ACEOF
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11775 esac
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_header_compiler=yes
11788 else
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_compiler=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 echo "${ECHO_T}$ac_header_compiler" >&6; }
11799 # Is the header present?
11800 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11801 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <krb5.h>
11809 _ACEOF
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null && {
11823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 }; then
11826 ac_header_preproc=yes
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11831 ac_header_preproc=no
11834 rm -f conftest.err conftest.$ac_ext
11835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11836 echo "${ECHO_T}$ac_header_preproc" >&6; }
11838 # So? What about this header?
11839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11840 yes:no: )
11841 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11842 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11844 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11845 ac_header_preproc=yes
11847 no:yes:* )
11848 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11849 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
11851 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11853 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
11855 echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11857 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11859 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11860 ( cat <<\_ASBOX
11861 ## ---------------------------------------- ##
11862 ## Report this to pgsql-bugs@postgresql.org ##
11863 ## ---------------------------------------- ##
11864 _ASBOX
11865 ) | sed "s/^/$as_me: WARNING: /" >&2
11867 esac
11868 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11869 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11870 if test "${ac_cv_header_krb5_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_cv_header_krb5_h=$ac_header_preproc
11875 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11876 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11879 if test $ac_cv_header_krb5_h = yes; then
11881 else
11882 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11883 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11884 { (exit 1); exit 1; }; }
11890 if test "$with_openssl" = yes ; then
11891 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11892 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11893 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11894 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11898 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11899 else
11900 # Is the header compilable?
11901 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11902 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11903 cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h. */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11909 $ac_includes_default
11910 #include <openssl/ssl.h>
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (ac_try="$ac_compile"
11914 case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917 esac
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
11929 ac_header_compiler=yes
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_header_compiler=no
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939 echo "${ECHO_T}$ac_header_compiler" >&6; }
11941 # Is the header present?
11942 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11943 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <openssl/ssl.h>
11951 _ACEOF
11952 if { (ac_try="$ac_cpp conftest.$ac_ext"
11953 case "(($ac_try" in
11954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11956 esac
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } >/dev/null && {
11965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 }; then
11968 ac_header_preproc=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_preproc=no
11976 rm -f conftest.err conftest.$ac_ext
11977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11978 echo "${ECHO_T}$ac_header_preproc" >&6; }
11980 # So? What about this header?
11981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11982 yes:no: )
11983 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11984 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11985 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11986 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11987 ac_header_preproc=yes
11989 no:yes:* )
11990 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11991 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
11993 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11995 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
11997 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11999 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12001 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12002 ( cat <<\_ASBOX
12003 ## ---------------------------------------- ##
12004 ## Report this to pgsql-bugs@postgresql.org ##
12005 ## ---------------------------------------- ##
12006 _ASBOX
12007 ) | sed "s/^/$as_me: WARNING: /" >&2
12009 esac
12010 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12011 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12012 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12017 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12018 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12021 if test $ac_cv_header_openssl_ssl_h = yes; then
12023 else
12024 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12025 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12026 { (exit 1); exit 1; }; }
12030 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12031 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12032 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12033 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12037 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12038 else
12039 # Is the header compilable?
12040 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12041 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12042 cat >conftest.$ac_ext <<_ACEOF
12043 /* confdefs.h. */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12048 $ac_includes_default
12049 #include <openssl/err.h>
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (ac_try="$ac_compile"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12056 esac
12057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12059 ac_status=$?
12060 grep -v '^ *+' conftest.er1 >conftest.err
12061 rm -f conftest.er1
12062 cat conftest.err >&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.$ac_objext; then
12068 ac_header_compiler=yes
12069 else
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ac_header_compiler=no
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 echo "${ECHO_T}$ac_header_compiler" >&6; }
12080 # Is the header present?
12081 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12082 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <openssl/err.h>
12090 _ACEOF
12091 if { (ac_try="$ac_cpp conftest.$ac_ext"
12092 case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095 esac
12096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } >/dev/null && {
12104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 }; then
12107 ac_header_preproc=yes
12108 else
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_header_preproc=no
12115 rm -f conftest.err conftest.$ac_ext
12116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12117 echo "${ECHO_T}$ac_header_preproc" >&6; }
12119 # So? What about this header?
12120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121 yes:no: )
12122 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12123 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12125 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12126 ac_header_preproc=yes
12128 no:yes:* )
12129 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12130 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12131 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12132 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12133 { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12134 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12135 { echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12136 echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12138 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12140 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12141 ( cat <<\_ASBOX
12142 ## ---------------------------------------- ##
12143 ## Report this to pgsql-bugs@postgresql.org ##
12144 ## ---------------------------------------- ##
12145 _ASBOX
12146 ) | sed "s/^/$as_me: WARNING: /" >&2
12148 esac
12149 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12150 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12151 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 ac_cv_header_openssl_err_h=$ac_header_preproc
12156 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12157 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12160 if test $ac_cv_header_openssl_err_h = yes; then
12162 else
12163 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12164 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12165 { (exit 1); exit 1; }; }
12170 for ac_func in ERR_set_mark
12172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h. */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12186 #define $ac_func innocuous_$ac_func
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char $ac_func (); below.
12190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12191 <limits.h> exists even on freestanding compilers. */
12193 #ifdef __STDC__
12194 # include <limits.h>
12195 #else
12196 # include <assert.h>
12197 #endif
12199 #undef $ac_func
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12204 #ifdef __cplusplus
12205 extern "C"
12206 #endif
12207 char $ac_func ();
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined __stub_$ac_func || defined __stub___$ac_func
12212 choke me
12213 #endif
12216 main ()
12218 return $ac_func ();
12220 return 0;
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (ac_try="$ac_link"
12225 case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_link") 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } && {
12237 test -z "$ac_c_werror_flag" ||
12238 test ! -s conftest.err
12239 } && test -s conftest$ac_exeext &&
12240 $as_test_x conftest$ac_exeext; then
12241 eval "$as_ac_var=yes"
12242 else
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12246 eval "$as_ac_var=no"
12249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12250 conftest$ac_exeext conftest.$ac_ext
12252 ac_res=`eval echo '${'$as_ac_var'}'`
12253 { echo "$as_me:$LINENO: result: $ac_res" >&5
12254 echo "${ECHO_T}$ac_res" >&6; }
12255 if test `eval echo '${'$as_ac_var'}'` = yes; then
12256 cat >>confdefs.h <<_ACEOF
12257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12258 _ACEOF
12261 done
12265 if test "$with_pam" = yes ; then
12267 for ac_header in security/pam_appl.h
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_res=`eval echo '${'$as_ac_Header'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278 echo "${ECHO_T}$ac_res" >&6; }
12279 else
12280 # Is the header compilable?
12281 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 $ac_includes_default
12290 #include <$ac_header>
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (ac_try="$ac_compile"
12294 case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.$ac_objext; then
12309 ac_header_compiler=yes
12310 else
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_header_compiler=no
12317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12319 echo "${ECHO_T}$ac_header_compiler" >&6; }
12321 # Is the header present?
12322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h. */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 #include <$ac_header>
12331 _ACEOF
12332 if { (ac_try="$ac_cpp conftest.$ac_ext"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } >/dev/null && {
12345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 }; then
12348 ac_header_preproc=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_header_preproc=no
12356 rm -f conftest.err conftest.$ac_ext
12357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12358 echo "${ECHO_T}$ac_header_preproc" >&6; }
12360 # So? What about this header?
12361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362 yes:no: )
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12367 ac_header_preproc=yes
12369 no:yes:* )
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12382 ( cat <<\_ASBOX
12383 ## ---------------------------------------- ##
12384 ## Report this to pgsql-bugs@postgresql.org ##
12385 ## ---------------------------------------- ##
12386 _ASBOX
12387 ) | sed "s/^/$as_me: WARNING: /" >&2
12389 esac
12390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395 eval "$as_ac_Header=\$ac_header_preproc"
12397 ac_res=`eval echo '${'$as_ac_Header'}'`
12398 { echo "$as_me:$LINENO: result: $ac_res" >&5
12399 echo "${ECHO_T}$ac_res" >&6; }
12402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12405 _ACEOF
12407 else
12409 for ac_header in pam/pam_appl.h
12411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 ac_res=`eval echo '${'$as_ac_Header'}'`
12419 { echo "$as_me:$LINENO: result: $ac_res" >&5
12420 echo "${ECHO_T}$ac_res" >&6; }
12421 else
12422 # Is the header compilable?
12423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12432 #include <$ac_header>
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_compile") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_c_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest.$ac_objext; then
12451 ac_header_compiler=yes
12452 else
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_header_compiler=no
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12461 echo "${ECHO_T}$ac_header_compiler" >&6; }
12463 # Is the header present?
12464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12467 /* confdefs.h. */
12468 _ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 #include <$ac_header>
12473 _ACEOF
12474 if { (ac_try="$ac_cpp conftest.$ac_ext"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } >/dev/null && {
12487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 }; then
12490 ac_header_preproc=yes
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12495 ac_header_preproc=no
12498 rm -f conftest.err conftest.$ac_ext
12499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12500 echo "${ECHO_T}$ac_header_preproc" >&6; }
12502 # So? What about this header?
12503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12504 yes:no: )
12505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12509 ac_header_preproc=yes
12511 no:yes:* )
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12524 ( cat <<\_ASBOX
12525 ## ---------------------------------------- ##
12526 ## Report this to pgsql-bugs@postgresql.org ##
12527 ## ---------------------------------------- ##
12528 _ASBOX
12529 ) | sed "s/^/$as_me: WARNING: /" >&2
12531 esac
12532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 else
12537 eval "$as_ac_Header=\$ac_header_preproc"
12539 ac_res=`eval echo '${'$as_ac_Header'}'`
12540 { echo "$as_me:$LINENO: result: $ac_res" >&5
12541 echo "${ECHO_T}$ac_res" >&6; }
12544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12545 cat >>confdefs.h <<_ACEOF
12546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12547 _ACEOF
12549 else
12550 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12551 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12552 { (exit 1); exit 1; }; }
12555 done
12559 done
12563 if test "$with_libxml" = yes ; then
12564 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12565 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12566 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12567 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12571 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12572 else
12573 # Is the header compilable?
12574 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12575 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 $ac_includes_default
12583 #include <libxml/parser.h>
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590 esac
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_compile") 2>conftest.er1
12593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest.$ac_objext; then
12602 ac_header_compiler=yes
12603 else
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_header_compiler=no
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12612 echo "${ECHO_T}$ac_header_compiler" >&6; }
12614 # Is the header present?
12615 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12616 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include <libxml/parser.h>
12624 _ACEOF
12625 if { (ac_try="$ac_cpp conftest.$ac_ext"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } >/dev/null && {
12638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 }; then
12641 ac_header_preproc=yes
12642 else
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_preproc=no
12649 rm -f conftest.err conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12651 echo "${ECHO_T}$ac_header_preproc" >&6; }
12653 # So? What about this header?
12654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12655 yes:no: )
12656 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12657 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12658 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12659 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12660 ac_header_preproc=yes
12662 no:yes:* )
12663 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12664 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
12666 echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12668 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
12670 echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12672 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12674 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12675 ( cat <<\_ASBOX
12676 ## ---------------------------------------- ##
12677 ## Report this to pgsql-bugs@postgresql.org ##
12678 ## ---------------------------------------- ##
12679 _ASBOX
12680 ) | sed "s/^/$as_me: WARNING: /" >&2
12682 esac
12683 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12684 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12685 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688 ac_cv_header_libxml_parser_h=$ac_header_preproc
12690 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12691 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12694 if test $ac_cv_header_libxml_parser_h = yes; then
12696 else
12697 { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12698 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12699 { (exit 1); exit 1; }; }
12705 if test "$with_libxslt" = yes ; then
12706 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12707 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12708 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12709 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12710 echo $ECHO_N "(cached) $ECHO_C" >&6
12712 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12713 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12714 else
12715 # Is the header compilable?
12716 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12717 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 $ac_includes_default
12725 #include <libxslt/xslt.h>
12726 _ACEOF
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12735 ac_status=$?
12736 grep -v '^ *+' conftest.er1 >conftest.err
12737 rm -f conftest.er1
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.$ac_objext; then
12744 ac_header_compiler=yes
12745 else
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 ac_header_compiler=no
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12754 echo "${ECHO_T}$ac_header_compiler" >&6; }
12756 # Is the header present?
12757 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12758 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 #include <libxslt/xslt.h>
12766 _ACEOF
12767 if { (ac_try="$ac_cpp conftest.$ac_ext"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } >/dev/null && {
12780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 }; then
12783 ac_header_preproc=yes
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_header_preproc=no
12791 rm -f conftest.err conftest.$ac_ext
12792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12793 echo "${ECHO_T}$ac_header_preproc" >&6; }
12795 # So? What about this header?
12796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12797 yes:no: )
12798 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12799 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12800 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12801 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12802 ac_header_preproc=yes
12804 no:yes:* )
12805 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12806 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12807 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
12808 echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12810 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
12812 echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12814 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12816 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12817 ( cat <<\_ASBOX
12818 ## ---------------------------------------- ##
12819 ## Report this to pgsql-bugs@postgresql.org ##
12820 ## ---------------------------------------- ##
12821 _ASBOX
12822 ) | sed "s/^/$as_me: WARNING: /" >&2
12824 esac
12825 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12826 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12827 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12832 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12833 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12836 if test $ac_cv_header_libxslt_xslt_h = yes; then
12838 else
12839 { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12840 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12841 { (exit 1); exit 1; }; }
12847 if test "$with_ldap" = yes ; then
12848 if test "$PORTNAME" != "win32"; then
12850 for ac_header in ldap.h
12852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 ac_res=`eval echo '${'$as_ac_Header'}'`
12860 { echo "$as_me:$LINENO: result: $ac_res" >&5
12861 echo "${ECHO_T}$ac_res" >&6; }
12862 else
12863 # Is the header compilable?
12864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12866 cat >conftest.$ac_ext <<_ACEOF
12867 /* confdefs.h. */
12868 _ACEOF
12869 cat confdefs.h >>conftest.$ac_ext
12870 cat >>conftest.$ac_ext <<_ACEOF
12871 /* end confdefs.h. */
12872 $ac_includes_default
12873 #include <$ac_header>
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest.$ac_objext; then
12892 ac_header_compiler=yes
12893 else
12894 echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12897 ac_header_compiler=no
12900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12902 echo "${ECHO_T}$ac_header_compiler" >&6; }
12904 # Is the header present?
12905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include <$ac_header>
12914 _ACEOF
12915 if { (ac_try="$ac_cpp conftest.$ac_ext"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919 esac
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12922 ac_status=$?
12923 grep -v '^ *+' conftest.er1 >conftest.err
12924 rm -f conftest.er1
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } >/dev/null && {
12928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12929 test ! -s conftest.err
12930 }; then
12931 ac_header_preproc=yes
12932 else
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12936 ac_header_preproc=no
12939 rm -f conftest.err conftest.$ac_ext
12940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12941 echo "${ECHO_T}$ac_header_preproc" >&6; }
12943 # So? What about this header?
12944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12945 yes:no: )
12946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12950 ac_header_preproc=yes
12952 no:yes:* )
12953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12965 ( cat <<\_ASBOX
12966 ## ---------------------------------------- ##
12967 ## Report this to pgsql-bugs@postgresql.org ##
12968 ## ---------------------------------------- ##
12969 _ASBOX
12970 ) | sed "s/^/$as_me: WARNING: /" >&2
12972 esac
12973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12978 eval "$as_ac_Header=\$ac_header_preproc"
12980 ac_res=`eval echo '${'$as_ac_Header'}'`
12981 { echo "$as_me:$LINENO: result: $ac_res" >&5
12982 echo "${ECHO_T}$ac_res" >&6; }
12985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12986 cat >>confdefs.h <<_ACEOF
12987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12988 _ACEOF
12990 else
12991 { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12992 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12993 { (exit 1); exit 1; }; }
12996 done
12998 else
13000 for ac_header in winldap.h
13002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008 cat >conftest.$ac_ext <<_ACEOF
13009 /* confdefs.h. */
13010 _ACEOF
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13015 #include <windows.h>
13018 #include <$ac_header>
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (ac_try="$ac_compile"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025 esac
13026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_compile") 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } && {
13034 test -z "$ac_c_werror_flag" ||
13035 test ! -s conftest.err
13036 } && test -s conftest.$ac_objext; then
13037 eval "$as_ac_Header=yes"
13038 else
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 eval "$as_ac_Header=no"
13045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 ac_res=`eval echo '${'$as_ac_Header'}'`
13048 { echo "$as_me:$LINENO: result: $ac_res" >&5
13049 echo "${ECHO_T}$ac_res" >&6; }
13050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051 cat >>confdefs.h <<_ACEOF
13052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13053 _ACEOF
13055 else
13056 { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13057 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13058 { (exit 1); exit 1; }; }
13061 done
13066 if test "$with_bonjour" = yes ; then
13067 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13068 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13069 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13070 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13073 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13074 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13075 else
13076 # Is the header compilable?
13077 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13078 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 $ac_includes_default
13086 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13087 _ACEOF
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13093 esac
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_compile") 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest.$ac_objext; then
13105 ac_header_compiler=yes
13106 else
13107 echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13110 ac_header_compiler=no
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13115 echo "${ECHO_T}$ac_header_compiler" >&6; }
13117 # Is the header present?
13118 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13119 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h. */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h. */
13126 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13127 _ACEOF
13128 if { (ac_try="$ac_cpp conftest.$ac_ext"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13135 ac_status=$?
13136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } >/dev/null && {
13141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 }; then
13144 ac_header_preproc=yes
13145 else
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 ac_header_preproc=no
13152 rm -f conftest.err conftest.$ac_ext
13153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13154 echo "${ECHO_T}$ac_header_preproc" >&6; }
13156 # So? What about this header?
13157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13158 yes:no: )
13159 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13160 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13161 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13162 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13163 ac_header_preproc=yes
13165 no:yes:* )
13166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13173 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13175 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13177 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13178 ( cat <<\_ASBOX
13179 ## ---------------------------------------- ##
13180 ## Report this to pgsql-bugs@postgresql.org ##
13181 ## ---------------------------------------- ##
13182 _ASBOX
13183 ) | sed "s/^/$as_me: WARNING: /" >&2
13185 esac
13186 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13187 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13188 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13193 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13194 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13197 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13199 else
13200 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13201 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13202 { (exit 1); exit 1; }; }
13208 # for contrib/uuid-ossp
13209 if test "$with_ossp_uuid" = yes ; then
13211 for ac_header in ossp/uuid.h
13213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_res=`eval echo '${'$as_ac_Header'}'`
13221 { echo "$as_me:$LINENO: result: $ac_res" >&5
13222 echo "${ECHO_T}$ac_res" >&6; }
13223 else
13224 # Is the header compilable?
13225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13227 cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h. */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 $ac_includes_default
13234 #include <$ac_header>
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (ac_try="$ac_compile"
13238 case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13241 esac
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_compile") 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && {
13250 test -z "$ac_c_werror_flag" ||
13251 test ! -s conftest.err
13252 } && test -s conftest.$ac_objext; then
13253 ac_header_compiler=yes
13254 else
13255 echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13258 ac_header_compiler=no
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13263 echo "${ECHO_T}$ac_header_compiler" >&6; }
13265 # Is the header present?
13266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <$ac_header>
13275 _ACEOF
13276 if { (ac_try="$ac_cpp conftest.$ac_ext"
13277 case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280 esac
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13283 ac_status=$?
13284 grep -v '^ *+' conftest.er1 >conftest.err
13285 rm -f conftest.er1
13286 cat conftest.err >&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } >/dev/null && {
13289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13290 test ! -s conftest.err
13291 }; then
13292 ac_header_preproc=yes
13293 else
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ac_header_preproc=no
13300 rm -f conftest.err conftest.$ac_ext
13301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13302 echo "${ECHO_T}$ac_header_preproc" >&6; }
13304 # So? What about this header?
13305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13306 yes:no: )
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13311 ac_header_preproc=yes
13313 no:yes:* )
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13317 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13321 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13326 ( cat <<\_ASBOX
13327 ## ---------------------------------------- ##
13328 ## Report this to pgsql-bugs@postgresql.org ##
13329 ## ---------------------------------------- ##
13330 _ASBOX
13331 ) | sed "s/^/$as_me: WARNING: /" >&2
13333 esac
13334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 eval "$as_ac_Header=\$ac_header_preproc"
13341 ac_res=`eval echo '${'$as_ac_Header'}'`
13342 { echo "$as_me:$LINENO: result: $ac_res" >&5
13343 echo "${ECHO_T}$ac_res" >&6; }
13346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13347 cat >>confdefs.h <<_ACEOF
13348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13349 _ACEOF
13351 else
13354 for ac_header in uuid.h
13356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
13363 ac_res=`eval echo '${'$as_ac_Header'}'`
13364 { echo "$as_me:$LINENO: result: $ac_res" >&5
13365 echo "${ECHO_T}$ac_res" >&6; }
13366 else
13367 # Is the header compilable?
13368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h. */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 $ac_includes_default
13377 #include <$ac_header>
13378 _ACEOF
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_compile") 2>conftest.er1
13387 ac_status=$?
13388 grep -v '^ *+' conftest.er1 >conftest.err
13389 rm -f conftest.er1
13390 cat conftest.err >&5
13391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392 (exit $ac_status); } && {
13393 test -z "$ac_c_werror_flag" ||
13394 test ! -s conftest.err
13395 } && test -s conftest.$ac_objext; then
13396 ac_header_compiler=yes
13397 else
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_header_compiler=no
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13406 echo "${ECHO_T}$ac_header_compiler" >&6; }
13408 # Is the header present?
13409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h. */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 #include <$ac_header>
13418 _ACEOF
13419 if { (ac_try="$ac_cpp conftest.$ac_ext"
13420 case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13426 ac_status=$?
13427 grep -v '^ *+' conftest.er1 >conftest.err
13428 rm -f conftest.er1
13429 cat conftest.err >&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); } >/dev/null && {
13432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13433 test ! -s conftest.err
13434 }; then
13435 ac_header_preproc=yes
13436 else
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_header_preproc=no
13443 rm -f conftest.err conftest.$ac_ext
13444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13445 echo "${ECHO_T}$ac_header_preproc" >&6; }
13447 # So? What about this header?
13448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13449 yes:no: )
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13454 ac_header_preproc=yes
13456 no:yes:* )
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13469 ( cat <<\_ASBOX
13470 ## ---------------------------------------- ##
13471 ## Report this to pgsql-bugs@postgresql.org ##
13472 ## ---------------------------------------- ##
13473 _ASBOX
13474 ) | sed "s/^/$as_me: WARNING: /" >&2
13476 esac
13477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 else
13482 eval "$as_ac_Header=\$ac_header_preproc"
13484 ac_res=`eval echo '${'$as_ac_Header'}'`
13485 { echo "$as_me:$LINENO: result: $ac_res" >&5
13486 echo "${ECHO_T}$ac_res" >&6; }
13489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13490 cat >>confdefs.h <<_ACEOF
13491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13492 _ACEOF
13494 else
13495 { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13496 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13497 { (exit 1); exit 1; }; }
13500 done
13504 done
13510 ## Types, structures, compiler characteristics
13513 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13514 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13515 if test "${ac_cv_c_bigendian+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 else
13518 # See if sys/param.h defines the BYTE_ORDER macro.
13519 cat >conftest.$ac_ext <<_ACEOF
13520 /* confdefs.h. */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13526 #include <sys/param.h>
13529 main ()
13531 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13532 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13533 bogus endian macros
13534 #endif
13537 return 0;
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_compile") 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest.$ac_objext; then
13557 # It does; now see whether it defined to BIG_ENDIAN or not.
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 #include <sys/types.h>
13565 #include <sys/param.h>
13568 main ()
13570 #if BYTE_ORDER != BIG_ENDIAN
13571 not big endian
13572 #endif
13575 return 0;
13577 _ACEOF
13578 rm -f conftest.$ac_objext
13579 if { (ac_try="$ac_compile"
13580 case "(($ac_try" in
13581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_compile") 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest.$ac_objext; then
13595 ac_cv_c_bigendian=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 ac_cv_c_bigendian=no
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 # It does not; compile a test program.
13609 if test "$cross_compiling" = yes; then
13610 # try to guess the endianness by grepping values into an object file
13611 ac_cv_c_bigendian=unknown
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13619 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13620 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13621 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13622 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13623 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13625 main ()
13627 _ascii (); _ebcdic ();
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.$ac_objext; then
13649 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13650 ac_cv_c_bigendian=yes
13652 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13653 if test "$ac_cv_c_bigendian" = unknown; then
13654 ac_cv_c_bigendian=no
13655 else
13656 # finding both strings is unlikely to happen, but who knows?
13657 ac_cv_c_bigendian=unknown
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 else
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13677 main ()
13680 /* Are we little or big endian? From Harbison&Steele. */
13681 union
13683 long int l;
13684 char c[sizeof (long int)];
13685 } u;
13686 u.l = 1;
13687 return u.c[sizeof (long int) - 1] == 1;
13690 return 0;
13692 _ACEOF
13693 rm -f conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_c_bigendian=no
13714 else
13715 echo "$as_me: program exited with status $ac_status" >&5
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13719 ( exit $ac_status )
13720 ac_cv_c_bigendian=yes
13722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13731 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13732 case $ac_cv_c_bigendian in
13733 yes)
13735 cat >>confdefs.h <<\_ACEOF
13736 #define WORDS_BIGENDIAN 1
13737 _ACEOF
13742 { { echo "$as_me:$LINENO: error: unknown endianness
13743 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13744 echo "$as_me: error: unknown endianness
13745 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13746 { (exit 1); exit 1; }; } ;;
13747 esac
13749 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13750 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13751 if test "${ac_cv_c_const+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13762 main ()
13764 /* FIXME: Include the comments suggested by Paul. */
13765 #ifndef __cplusplus
13766 /* Ultrix mips cc rejects this. */
13767 typedef int charset[2];
13768 const charset cs;
13769 /* SunOS 4.1.1 cc rejects this. */
13770 char const *const *pcpcc;
13771 char **ppc;
13772 /* NEC SVR4.0.2 mips cc rejects this. */
13773 struct point {int x, y;};
13774 static struct point const zero = {0,0};
13775 /* AIX XL C 1.02.0.0 rejects this.
13776 It does not let you subtract one const X* pointer from another in
13777 an arm of an if-expression whose if-part is not a constant
13778 expression */
13779 const char *g = "string";
13780 pcpcc = &g + (g ? g-g : 0);
13781 /* HPUX 7.0 cc rejects these. */
13782 ++pcpcc;
13783 ppc = (char**) pcpcc;
13784 pcpcc = (char const *const *) ppc;
13785 { /* SCO 3.2v4 cc rejects this. */
13786 char *t;
13787 char const *s = 0 ? (char *) 0 : (char const *) 0;
13789 *t++ = 0;
13790 if (s) return 0;
13792 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13793 int x[] = {25, 17};
13794 const int *foo = &x[0];
13795 ++foo;
13797 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13798 typedef const int *iptr;
13799 iptr p = 0;
13800 ++p;
13802 { /* AIX XL C 1.02.0.0 rejects this saying
13803 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13804 struct s { int j; const int *ap[3]; };
13805 struct s *b; b->j = 5;
13807 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13808 const int foo = 10;
13809 if (!foo) return 0;
13811 return !cs[0] && !zero.x;
13812 #endif
13815 return 0;
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (ac_try="$ac_compile"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
13826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest.$ac_objext; then
13835 ac_cv_c_const=yes
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ac_cv_c_const=no
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13846 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13847 if test $ac_cv_c_const = no; then
13849 cat >>confdefs.h <<\_ACEOF
13850 #define const
13851 _ACEOF
13855 { echo "$as_me:$LINENO: checking for inline" >&5
13856 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13857 if test "${ac_cv_c_inline+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 ac_cv_c_inline=no
13861 for ac_kw in inline __inline__ __inline; do
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h. */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 #ifndef __cplusplus
13869 typedef int foo_t;
13870 static $ac_kw foo_t static_foo () {return 0; }
13871 $ac_kw foo_t foo () {return 0; }
13872 #endif
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest.$ac_objext; then
13892 ac_cv_c_inline=$ac_kw
13893 else
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 test "$ac_cv_c_inline" != no && break
13902 done
13905 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13906 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13909 case $ac_cv_c_inline in
13910 inline | yes) ;;
13912 case $ac_cv_c_inline in
13913 no) ac_val=;;
13914 *) ac_val=$ac_cv_c_inline;;
13915 esac
13916 cat >>confdefs.h <<_ACEOF
13917 #ifndef __cplusplus
13918 #define inline $ac_val
13919 #endif
13920 _ACEOF
13922 esac
13924 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13925 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13926 if test "${ac_cv_c_stringize+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #define x(y) #y
13937 char *s = x(teststring);
13938 _ACEOF
13939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13940 $EGREP "#teststring" >/dev/null 2>&1; then
13941 ac_cv_c_stringize=no
13942 else
13943 ac_cv_c_stringize=yes
13945 rm -f conftest*
13948 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13949 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13950 if test $ac_cv_c_stringize = yes; then
13952 cat >>confdefs.h <<\_ACEOF
13953 #define HAVE_STRINGIZE 1
13954 _ACEOF
13958 { echo "$as_me:$LINENO: checking for signed types" >&5
13959 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13960 if test "${pgac_cv_c_signed+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h. */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13971 main ()
13973 signed char c; signed short s; signed int i;
13975 return 0;
13977 _ACEOF
13978 rm -f conftest.$ac_objext
13979 if { (ac_try="$ac_compile"
13980 case "(($ac_try" in
13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13982 *) ac_try_echo=$ac_try;;
13983 esac
13984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13985 (eval "$ac_compile") 2>conftest.er1
13986 ac_status=$?
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -f conftest.er1
13989 cat conftest.err >&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest.$ac_objext; then
13995 pgac_cv_c_signed=yes
13996 else
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 pgac_cv_c_signed=no
14003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14006 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14007 if test x"$pgac_cv_c_signed" = xno ; then
14009 cat >>confdefs.h <<\_ACEOF
14010 #define signed
14011 _ACEOF
14014 { echo "$as_me:$LINENO: checking for working volatile" >&5
14015 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14016 if test "${ac_cv_c_volatile+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14027 main ()
14030 volatile int x;
14031 int * volatile y = (int *) 0;
14032 return !x && !y;
14034 return 0;
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14042 esac
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_cv_c_volatile=yes
14055 else
14056 echo "$as_me: failed program was:" >&5
14057 sed 's/^/| /' conftest.$ac_ext >&5
14059 ac_cv_c_volatile=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14065 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14066 if test $ac_cv_c_volatile = no; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define volatile
14070 _ACEOF
14074 { echo "$as_me:$LINENO: checking for __func__" >&5
14075 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14076 if test "${pgac_cv_funcname_func_support+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085 #include <stdio.h>
14087 main ()
14089 printf("%s\n", __func__);
14091 return 0;
14093 _ACEOF
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14111 pgac_cv_funcname_func_support=yes
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 pgac_cv_funcname_func_support=no
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14122 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14123 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_FUNCNAME__FUNC 1
14127 _ACEOF
14129 else
14130 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14131 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14132 if test "${pgac_cv_funcname_function_support+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h. */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 #include <stdio.h>
14143 main ()
14145 printf("%s\n", __FUNCTION__);
14147 return 0;
14149 _ACEOF
14150 rm -f conftest.$ac_objext
14151 if { (ac_try="$ac_compile"
14152 case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_compile") 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
14167 pgac_cv_funcname_function_support=yes
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 pgac_cv_funcname_function_support=no
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14178 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14179 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_FUNCNAME__FUNCTION 1
14183 _ACEOF
14187 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14188 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14189 if test "${ac_cv_struct_tm+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h. */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 #include <sys/types.h>
14199 #include <time.h>
14202 main ()
14204 struct tm tm;
14205 int *p = &tm.tm_sec;
14206 return !p;
14208 return 0;
14210 _ACEOF
14211 rm -f conftest.$ac_objext
14212 if { (ac_try="$ac_compile"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216 esac
14217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14218 (eval "$ac_compile") 2>conftest.er1
14219 ac_status=$?
14220 grep -v '^ *+' conftest.er1 >conftest.err
14221 rm -f conftest.er1
14222 cat conftest.err >&5
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); } && {
14225 test -z "$ac_c_werror_flag" ||
14226 test ! -s conftest.err
14227 } && test -s conftest.$ac_objext; then
14228 ac_cv_struct_tm=time.h
14229 else
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14233 ac_cv_struct_tm=sys/time.h
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14239 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14240 if test $ac_cv_struct_tm = sys/time.h; then
14242 cat >>confdefs.h <<\_ACEOF
14243 #define TM_IN_SYS_TIME 1
14244 _ACEOF
14248 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14249 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14250 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 else
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h. */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14259 #include <sys/types.h>
14260 #include <$ac_cv_struct_tm>
14264 main ()
14266 static struct tm ac_aggr;
14267 if (ac_aggr.tm_zone)
14268 return 0;
14270 return 0;
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14278 esac
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
14290 ac_cv_member_struct_tm_tm_zone=yes
14291 else
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 #include <sys/types.h>
14302 #include <$ac_cv_struct_tm>
14306 main ()
14308 static struct tm ac_aggr;
14309 if (sizeof ac_aggr.tm_zone)
14310 return 0;
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_compile") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest.$ac_objext; then
14332 ac_cv_member_struct_tm_tm_zone=yes
14333 else
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_member_struct_tm_tm_zone=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14346 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14347 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_STRUCT_TM_TM_ZONE 1
14351 _ACEOF
14356 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define HAVE_TM_ZONE 1
14360 _ACEOF
14363 { echo "$as_me:$LINENO: checking for tzname" >&5
14364 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14365 if test "${ac_cv_var_tzname+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h. */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <time.h>
14375 #ifndef tzname /* For SGI. */
14376 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14377 #endif
14380 main ()
14382 atoi(*tzname);
14384 return 0;
14386 _ACEOF
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_link") 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } && {
14401 test -z "$ac_c_werror_flag" ||
14402 test ! -s conftest.err
14403 } && test -s conftest$ac_exeext &&
14404 $as_test_x conftest$ac_exeext; then
14405 ac_cv_var_tzname=yes
14406 else
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_var_tzname=no
14413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14414 conftest$ac_exeext conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14417 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14418 if test $ac_cv_var_tzname = yes; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define HAVE_TZNAME 1
14422 _ACEOF
14426 { echo "$as_me:$LINENO: checking for union semun" >&5
14427 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14428 if test "${ac_cv_type_union_semun+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 else
14431 cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h. */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 #include <sys/types.h>
14438 #include <sys/ipc.h>
14439 #include <sys/sem.h>
14441 typedef union semun ac__type_new_;
14443 main ()
14445 if ((ac__type_new_ *) 0)
14446 return 0;
14447 if (sizeof (ac__type_new_))
14448 return 0;
14450 return 0;
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (ac_try="$ac_compile"
14455 case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458 esac
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_compile") 2>conftest.er1
14461 ac_status=$?
14462 grep -v '^ *+' conftest.er1 >conftest.err
14463 rm -f conftest.er1
14464 cat conftest.err >&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest.$ac_objext; then
14470 ac_cv_type_union_semun=yes
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_cv_type_union_semun=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14481 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14482 if test $ac_cv_type_union_semun = yes; then
14484 cat >>confdefs.h <<_ACEOF
14485 #define HAVE_UNION_SEMUN 1
14486 _ACEOF
14491 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14492 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14493 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14496 cat >conftest.$ac_ext <<_ACEOF
14497 /* confdefs.h. */
14498 _ACEOF
14499 cat confdefs.h >>conftest.$ac_ext
14500 cat >>conftest.$ac_ext <<_ACEOF
14501 /* end confdefs.h. */
14502 #include <sys/types.h>
14503 #ifdef HAVE_SYS_UN_H
14504 #include <sys/un.h>
14505 #endif
14508 typedef struct sockaddr_un ac__type_new_;
14510 main ()
14512 if ((ac__type_new_ *) 0)
14513 return 0;
14514 if (sizeof (ac__type_new_))
14515 return 0;
14517 return 0;
14519 _ACEOF
14520 rm -f conftest.$ac_objext
14521 if { (ac_try="$ac_compile"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.$ac_objext; then
14537 ac_cv_type_struct_sockaddr_un=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14542 ac_cv_type_struct_sockaddr_un=no
14545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14548 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14549 if test $ac_cv_type_struct_sockaddr_un = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_STRUCT_SOCKADDR_UN 1
14553 _ACEOF
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_UNIX_SOCKETS 1
14558 _ACEOF
14562 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14563 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14564 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h. */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <sys/types.h>
14574 #ifdef HAVE_SYS_SOCKET_H
14575 #include <sys/socket.h>
14576 #endif
14579 typedef struct sockaddr_storage ac__type_new_;
14581 main ()
14583 if ((ac__type_new_ *) 0)
14584 return 0;
14585 if (sizeof (ac__type_new_))
14586 return 0;
14588 return 0;
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (ac_try="$ac_compile"
14593 case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596 esac
14597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14598 (eval "$ac_compile") 2>conftest.er1
14599 ac_status=$?
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } && {
14605 test -z "$ac_c_werror_flag" ||
14606 test ! -s conftest.err
14607 } && test -s conftest.$ac_objext; then
14608 ac_cv_type_struct_sockaddr_storage=yes
14609 else
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_cv_type_struct_sockaddr_storage=no
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14619 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14620 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14624 _ACEOF
14629 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14630 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14631 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634 cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h. */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 #include <sys/types.h>
14641 #ifdef HAVE_SYS_SOCKET_H
14642 #include <sys/socket.h>
14643 #endif
14647 main ()
14649 static struct sockaddr_storage ac_aggr;
14650 if (ac_aggr.ss_family)
14651 return 0;
14653 return 0;
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14664 ac_status=$?
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 #ifdef HAVE_SYS_SOCKET_H
14686 #include <sys/socket.h>
14687 #endif
14691 main ()
14693 static struct sockaddr_storage ac_aggr;
14694 if (sizeof ac_aggr.ss_family)
14695 return 0;
14697 return 0;
14699 _ACEOF
14700 rm -f conftest.$ac_objext
14701 if { (ac_try="$ac_compile"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14705 esac
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_compile") 2>conftest.er1
14708 ac_status=$?
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -f conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest.$ac_objext; then
14717 ac_cv_member_struct_sockaddr_storage_ss_family=yes
14718 else
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14722 ac_cv_member_struct_sockaddr_storage_ss_family=no
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14731 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14732 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14736 _ACEOF
14740 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14741 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14742 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h. */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <sys/types.h>
14752 #ifdef HAVE_SYS_SOCKET_H
14753 #include <sys/socket.h>
14754 #endif
14758 main ()
14760 static struct sockaddr_storage ac_aggr;
14761 if (ac_aggr.__ss_family)
14762 return 0;
14764 return 0;
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (ac_try="$ac_compile"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772 esac
14773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14774 (eval "$ac_compile") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest.$ac_objext; then
14784 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14785 else
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14789 cat >conftest.$ac_ext <<_ACEOF
14790 /* confdefs.h. */
14791 _ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <sys/types.h>
14796 #ifdef HAVE_SYS_SOCKET_H
14797 #include <sys/socket.h>
14798 #endif
14802 main ()
14804 static struct sockaddr_storage ac_aggr;
14805 if (sizeof ac_aggr.__ss_family)
14806 return 0;
14808 return 0;
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816 esac
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14819 ac_status=$?
14820 grep -v '^ *+' conftest.er1 >conftest.err
14821 rm -f conftest.er1
14822 cat conftest.err >&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest.$ac_objext; then
14828 ac_cv_member_struct_sockaddr_storage___ss_family=yes
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 ac_cv_member_struct_sockaddr_storage___ss_family=no
14836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14841 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14843 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14847 _ACEOF
14851 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14852 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14853 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 else
14856 cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h. */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 #include <sys/types.h>
14863 #ifdef HAVE_SYS_SOCKET_H
14864 #include <sys/socket.h>
14865 #endif
14869 main ()
14871 static struct sockaddr_storage ac_aggr;
14872 if (ac_aggr.ss_len)
14873 return 0;
14875 return 0;
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14896 else
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <sys/types.h>
14907 #ifdef HAVE_SYS_SOCKET_H
14908 #include <sys/socket.h>
14909 #endif
14913 main ()
14915 static struct sockaddr_storage ac_aggr;
14916 if (sizeof ac_aggr.ss_len)
14917 return 0;
14919 return 0;
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (ac_try="$ac_compile"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_compile") 2>conftest.er1
14930 ac_status=$?
14931 grep -v '^ *+' conftest.er1 >conftest.err
14932 rm -f conftest.er1
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } && {
14936 test -z "$ac_c_werror_flag" ||
14937 test ! -s conftest.err
14938 } && test -s conftest.$ac_objext; then
14939 ac_cv_member_struct_sockaddr_storage_ss_len=yes
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_member_struct_sockaddr_storage_ss_len=no
14947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14953 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14954 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14958 _ACEOF
14962 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14963 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14964 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967 cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h. */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/types.h>
14974 #ifdef HAVE_SYS_SOCKET_H
14975 #include <sys/socket.h>
14976 #endif
14980 main ()
14982 static struct sockaddr_storage ac_aggr;
14983 if (ac_aggr.__ss_len)
14984 return 0;
14986 return 0;
14988 _ACEOF
14989 rm -f conftest.$ac_objext
14990 if { (ac_try="$ac_compile"
14991 case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14997 ac_status=$?
14998 grep -v '^ *+' conftest.er1 >conftest.err
14999 rm -f conftest.er1
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } && {
15003 test -z "$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 } && test -s conftest.$ac_objext; then
15006 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15007 else
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 #include <sys/types.h>
15018 #ifdef HAVE_SYS_SOCKET_H
15019 #include <sys/socket.h>
15020 #endif
15024 main ()
15026 static struct sockaddr_storage ac_aggr;
15027 if (sizeof ac_aggr.__ss_len)
15028 return 0;
15030 return 0;
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_compile") 2>conftest.er1
15041 ac_status=$?
15042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest.$ac_objext; then
15050 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15051 else
15052 echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ac_cv_member_struct_sockaddr_storage___ss_len=no
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15064 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15065 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15069 _ACEOF
15073 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15074 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15075 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 else
15078 cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h. */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084 #include <sys/types.h>
15085 #ifdef HAVE_SYS_SOCKET_H
15086 #include <sys/socket.h>
15087 #endif
15091 main ()
15093 static struct sockaddr ac_aggr;
15094 if (ac_aggr.sa_len)
15095 return 0;
15097 return 0;
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (ac_try="$ac_compile"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_compile") 2>conftest.er1
15108 ac_status=$?
15109 grep -v '^ *+' conftest.er1 >conftest.err
15110 rm -f conftest.er1
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); } && {
15114 test -z "$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15116 } && test -s conftest.$ac_objext; then
15117 ac_cv_member_struct_sockaddr_sa_len=yes
15118 else
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h. */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 #include <sys/types.h>
15129 #ifdef HAVE_SYS_SOCKET_H
15130 #include <sys/socket.h>
15131 #endif
15135 main ()
15137 static struct sockaddr ac_aggr;
15138 if (sizeof ac_aggr.sa_len)
15139 return 0;
15141 return 0;
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (ac_try="$ac_compile"
15146 case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_compile") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest.$ac_objext; then
15161 ac_cv_member_struct_sockaddr_sa_len=yes
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 ac_cv_member_struct_sockaddr_sa_len=no
15169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15175 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15176 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15180 _ACEOF
15185 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15186 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15187 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 else
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h. */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 #include <sys/types.h>
15197 #include <sys/socket.h>
15198 #include <netdb.h>
15201 typedef struct addrinfo ac__type_new_;
15203 main ()
15205 if ((ac__type_new_ *) 0)
15206 return 0;
15207 if (sizeof (ac__type_new_))
15208 return 0;
15210 return 0;
15212 _ACEOF
15213 rm -f conftest.$ac_objext
15214 if { (ac_try="$ac_compile"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_compile") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest.$ac_objext; then
15230 ac_cv_type_struct_addrinfo=yes
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_cv_type_struct_addrinfo=no
15238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15241 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15242 if test $ac_cv_type_struct_addrinfo = yes; then
15244 cat >>confdefs.h <<_ACEOF
15245 #define HAVE_STRUCT_ADDRINFO 1
15246 _ACEOF
15252 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15253 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15254 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 #include <sys/param.h>
15264 #include <sys/types.h>
15265 #include <sys/socket.h>
15266 #include <sys/ucred.h>
15268 typedef struct cmsgcred ac__type_new_;
15270 main ()
15272 if ((ac__type_new_ *) 0)
15273 return 0;
15274 if (sizeof (ac__type_new_))
15275 return 0;
15277 return 0;
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (ac_try="$ac_compile"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15285 esac
15286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15287 (eval "$ac_compile") 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } && {
15294 test -z "$ac_c_werror_flag" ||
15295 test ! -s conftest.err
15296 } && test -s conftest.$ac_objext; then
15297 ac_cv_type_struct_cmsgcred=yes
15298 else
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 ac_cv_type_struct_cmsgcred=no
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15308 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15309 if test $ac_cv_type_struct_cmsgcred = yes; then
15311 cat >>confdefs.h <<_ACEOF
15312 #define HAVE_STRUCT_CMSGCRED 1
15313 _ACEOF
15317 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15318 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15319 if test "${ac_cv_type_struct_fcred+set}" = set; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 #include <sys/param.h>
15329 #include <sys/types.h>
15330 #include <sys/socket.h>
15331 #include <sys/ucred.h>
15333 typedef struct fcred ac__type_new_;
15335 main ()
15337 if ((ac__type_new_ *) 0)
15338 return 0;
15339 if (sizeof (ac__type_new_))
15340 return 0;
15342 return 0;
15344 _ACEOF
15345 rm -f conftest.$ac_objext
15346 if { (ac_try="$ac_compile"
15347 case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350 esac
15351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_compile") 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } && {
15359 test -z "$ac_c_werror_flag" ||
15360 test ! -s conftest.err
15361 } && test -s conftest.$ac_objext; then
15362 ac_cv_type_struct_fcred=yes
15363 else
15364 echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15367 ac_cv_type_struct_fcred=no
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15373 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15374 if test $ac_cv_type_struct_fcred = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define HAVE_STRUCT_FCRED 1
15378 _ACEOF
15382 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15383 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15384 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 cat >conftest.$ac_ext <<_ACEOF
15388 /* confdefs.h. */
15389 _ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <sys/param.h>
15394 #include <sys/types.h>
15395 #include <sys/socket.h>
15396 #include <sys/ucred.h>
15398 typedef struct sockcred ac__type_new_;
15400 main ()
15402 if ((ac__type_new_ *) 0)
15403 return 0;
15404 if (sizeof (ac__type_new_))
15405 return 0;
15407 return 0;
15409 _ACEOF
15410 rm -f conftest.$ac_objext
15411 if { (ac_try="$ac_compile"
15412 case "(($ac_try" in
15413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414 *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417 (eval "$ac_compile") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest.$ac_objext; then
15427 ac_cv_type_struct_sockcred=yes
15428 else
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_cv_type_struct_sockcred=no
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15437 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15438 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15439 if test $ac_cv_type_struct_sockcred = yes; then
15441 cat >>confdefs.h <<_ACEOF
15442 #define HAVE_STRUCT_SOCKCRED 1
15443 _ACEOF
15449 { echo "$as_me:$LINENO: checking for struct option" >&5
15450 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15451 if test "${ac_cv_type_struct_option+set}" = set; then
15452 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454 cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h. */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h. */
15460 #ifdef HAVE_GETOPT_H
15461 #include <getopt.h>
15462 #endif
15464 typedef struct option ac__type_new_;
15466 main ()
15468 if ((ac__type_new_ *) 0)
15469 return 0;
15470 if (sizeof (ac__type_new_))
15471 return 0;
15473 return 0;
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } && {
15490 test -z "$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 } && test -s conftest.$ac_objext; then
15493 ac_cv_type_struct_option=yes
15494 else
15495 echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 ac_cv_type_struct_option=no
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15504 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15505 if test $ac_cv_type_struct_option = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define HAVE_STRUCT_OPTION 1
15509 _ACEOF
15515 if test "$with_zlib" = yes; then
15516 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15517 # did not). While we could work around the lack of z_streamp, it
15518 # seems unwise to encourage people to use such old zlib versions...
15519 { echo "$as_me:$LINENO: checking for z_streamp" >&5
15520 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15521 if test "${ac_cv_type_z_streamp+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 else
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h. */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <zlib.h>
15532 typedef z_streamp ac__type_new_;
15534 main ()
15536 if ((ac__type_new_ *) 0)
15537 return 0;
15538 if (sizeof (ac__type_new_))
15539 return 0;
15541 return 0;
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (ac_try="$ac_compile"
15546 case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_compile") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest.$ac_objext; then
15561 ac_cv_type_z_streamp=yes
15562 else
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 ac_cv_type_z_streamp=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15572 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15573 if test $ac_cv_type_z_streamp = yes; then
15575 else
15576 { { echo "$as_me:$LINENO: error: zlib version is too old
15577 Use --without-zlib to disable zlib support." >&5
15578 echo "$as_me: error: zlib version is too old
15579 Use --without-zlib to disable zlib support." >&2;}
15580 { (exit 1); exit 1; }; }
15585 if test "$with_krb5" = yes; then
15586 # Check for differences between MIT and Heimdal (KTH) releases
15587 { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15588 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15589 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592 cat >conftest.$ac_ext <<_ACEOF
15593 /* confdefs.h. */
15594 _ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <krb5.h>
15601 main ()
15603 static krb5_ticket ac_aggr;
15604 if (ac_aggr.enc_part2)
15605 return 0;
15607 return 0;
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest.$ac_objext; then
15627 ac_cv_member_krb5_ticket_enc_part2=yes
15628 else
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #include <krb5.h>
15641 main ()
15643 static krb5_ticket ac_aggr;
15644 if (sizeof ac_aggr.enc_part2)
15645 return 0;
15647 return 0;
15649 _ACEOF
15650 rm -f conftest.$ac_objext
15651 if { (ac_try="$ac_compile"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_compile") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest.$ac_objext; then
15667 ac_cv_member_krb5_ticket_enc_part2=yes
15668 else
15669 echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15672 ac_cv_member_krb5_ticket_enc_part2=no
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15681 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15682 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15684 cat >>confdefs.h <<_ACEOF
15685 #define HAVE_KRB5_TICKET_ENC_PART2 1
15686 _ACEOF
15689 else
15690 { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15691 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15692 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 #include <krb5.h>
15704 main ()
15706 static krb5_ticket ac_aggr;
15707 if (ac_aggr.client)
15708 return 0;
15710 return 0;
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15721 ac_status=$?
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && {
15727 test -z "$ac_c_werror_flag" ||
15728 test ! -s conftest.err
15729 } && test -s conftest.$ac_objext; then
15730 ac_cv_member_krb5_ticket_client=yes
15731 else
15732 echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 cat >conftest.$ac_ext <<_ACEOF
15736 /* confdefs.h. */
15737 _ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <krb5.h>
15744 main ()
15746 static krb5_ticket ac_aggr;
15747 if (sizeof ac_aggr.client)
15748 return 0;
15750 return 0;
15752 _ACEOF
15753 rm -f conftest.$ac_objext
15754 if { (ac_try="$ac_compile"
15755 case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_compile") 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest.$ac_objext; then
15770 ac_cv_member_krb5_ticket_client=yes
15771 else
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 ac_cv_member_krb5_ticket_client=no
15778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15783 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15784 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15785 if test $ac_cv_member_krb5_ticket_client = yes; then
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_KRB5_TICKET_CLIENT 1
15789 _ACEOF
15792 else
15793 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15794 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15795 { (exit 1); exit 1; }; }
15800 { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15801 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15802 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805 cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h. */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 #include <krb5.h>
15814 main ()
15816 static krb5_error ac_aggr;
15817 if (ac_aggr.text.data)
15818 return 0;
15820 return 0;
15822 _ACEOF
15823 rm -f conftest.$ac_objext
15824 if { (ac_try="$ac_compile"
15825 case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15828 esac
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_compile") 2>conftest.er1
15831 ac_status=$?
15832 grep -v '^ *+' conftest.er1 >conftest.err
15833 rm -f conftest.er1
15834 cat conftest.err >&5
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } && {
15837 test -z "$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 } && test -s conftest.$ac_objext; then
15840 ac_cv_member_krb5_error_text_data=yes
15841 else
15842 echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <krb5.h>
15854 main ()
15856 static krb5_error ac_aggr;
15857 if (sizeof ac_aggr.text.data)
15858 return 0;
15860 return 0;
15862 _ACEOF
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868 esac
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_compile") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest.$ac_objext; then
15880 ac_cv_member_krb5_error_text_data=yes
15881 else
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 ac_cv_member_krb5_error_text_data=no
15888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15894 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15895 if test $ac_cv_member_krb5_error_text_data = yes; then
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15899 _ACEOF
15902 else
15903 { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15904 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15905 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <krb5.h>
15917 main ()
15919 static krb5_error ac_aggr;
15920 if (ac_aggr.e_data)
15921 return 0;
15923 return 0;
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_compile") 2>conftest.er1
15934 ac_status=$?
15935 grep -v '^ *+' conftest.er1 >conftest.err
15936 rm -f conftest.er1
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest.$ac_objext; then
15943 ac_cv_member_krb5_error_e_data=yes
15944 else
15945 echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15948 cat >conftest.$ac_ext <<_ACEOF
15949 /* confdefs.h. */
15950 _ACEOF
15951 cat confdefs.h >>conftest.$ac_ext
15952 cat >>conftest.$ac_ext <<_ACEOF
15953 /* end confdefs.h. */
15954 #include <krb5.h>
15957 main ()
15959 static krb5_error ac_aggr;
15960 if (sizeof ac_aggr.e_data)
15961 return 0;
15963 return 0;
15965 _ACEOF
15966 rm -f conftest.$ac_objext
15967 if { (ac_try="$ac_compile"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_compile") 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest.$ac_objext; then
15983 ac_cv_member_krb5_error_e_data=yes
15984 else
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_cv_member_krb5_error_e_data=no
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15997 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15998 if test $ac_cv_member_krb5_error_e_data = yes; then
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_KRB5_ERROR_E_DATA 1
16002 _ACEOF
16005 else
16006 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16007 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16008 { (exit 1); exit 1; }; }
16014 # Win32 requires headers to be loaded for __stdcall, so can't use
16015 # AC_CHECK_FUNCS here.
16016 { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16017 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h. */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 #include <krb5.h>
16026 main ()
16028 krb5_free_unparsed_name(NULL,NULL);
16030 return 0;
16032 _ACEOF
16033 rm -f conftest.$ac_objext conftest$ac_exeext
16034 if { (ac_try="$ac_link"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_link") 2>conftest.er1
16041 ac_status=$?
16042 grep -v '^ *+' conftest.er1 >conftest.err
16043 rm -f conftest.er1
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } && {
16047 test -z "$ac_c_werror_flag" ||
16048 test ! -s conftest.err
16049 } && test -s conftest$ac_exeext &&
16050 $as_test_x conftest$ac_exeext; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16054 _ACEOF
16056 { echo "$as_me:$LINENO: result: yes" >&5
16057 echo "${ECHO_T}yes" >&6; }
16058 else
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 { echo "$as_me:$LINENO: result: no" >&5
16063 echo "${ECHO_T}no" >&6; }
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067 conftest$ac_exeext conftest.$ac_ext
16072 ## Functions, global variables
16075 { echo "$as_me:$LINENO: checking for int timezone" >&5
16076 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16077 if test "${pgac_cv_var_int_timezone+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 else
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h. */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <time.h>
16087 int res;
16089 main ()
16091 #ifndef __CYGWIN__
16092 res = timezone / 60;
16093 #else
16094 res = _timezone / 60;
16095 #endif
16097 return 0;
16099 _ACEOF
16100 rm -f conftest.$ac_objext conftest$ac_exeext
16101 if { (ac_try="$ac_link"
16102 case "(($ac_try" in
16103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104 *) ac_try_echo=$ac_try;;
16105 esac
16106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107 (eval "$ac_link") 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest$ac_exeext &&
16117 $as_test_x conftest$ac_exeext; then
16118 pgac_cv_var_int_timezone=yes
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16123 pgac_cv_var_int_timezone=no
16126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16127 conftest$ac_exeext conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16130 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16131 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE_INT_TIMEZONE
16135 _ACEOF
16138 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16139 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16140 if test "${ac_cv_func_accept_return+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143 if test "${ac_cv_func_accept_arg1+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146 if test "${ac_cv_func_accept_arg2+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 if test "${ac_cv_func_accept_arg3+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 else
16152 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16153 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16154 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16155 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #ifdef HAVE_SYS_TYPES_H
16163 #include <sys/types.h>
16164 #endif
16165 #ifdef HAVE_SYS_SOCKET_H
16166 #include <sys/socket.h>
16167 #endif
16168 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16170 main ()
16174 return 0;
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (ac_try="$ac_compile"
16179 case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16182 esac
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_compile") 2>conftest.er1
16185 ac_status=$?
16186 grep -v '^ *+' conftest.er1 >conftest.err
16187 rm -f conftest.er1
16188 cat conftest.err >&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } && {
16191 test -z "$ac_c_werror_flag" ||
16192 test ! -s conftest.err
16193 } && test -s conftest.$ac_objext; then
16194 ac_not_found=no; break 4
16195 else
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 ac_not_found=yes
16202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16203 done
16204 done
16205 done
16206 done
16207 if test "$ac_not_found" = yes; then
16208 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16209 echo "$as_me: error: could not determine argument types" >&2;}
16210 { (exit 1); exit 1; }; }
16212 if test "$ac_cv_func_accept_arg3" = "void"; then
16213 ac_cv_func_accept_arg3=int
16223 { 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
16224 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16226 cat >>confdefs.h <<_ACEOF
16227 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16228 _ACEOF
16231 cat >>confdefs.h <<_ACEOF
16232 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16233 _ACEOF
16236 cat >>confdefs.h <<_ACEOF
16237 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16238 _ACEOF
16241 cat >>confdefs.h <<_ACEOF
16242 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16243 _ACEOF
16246 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16247 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16248 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 #include <sys/time.h>
16259 main ()
16261 struct timeval *tp;
16262 struct timezone *tzp;
16263 gettimeofday(tp,tzp);
16265 return 0;
16267 _ACEOF
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16273 esac
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_compile") 2>conftest.er1
16276 ac_status=$?
16277 grep -v '^ *+' conftest.er1 >conftest.err
16278 rm -f conftest.er1
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } && {
16282 test -z "$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16284 } && test -s conftest.$ac_objext; then
16285 pgac_cv_func_gettimeofday_1arg=no
16286 else
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 pgac_cv_func_gettimeofday_1arg=yes
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16296 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16297 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16299 cat >>confdefs.h <<\_ACEOF
16300 #define GETTIMEOFDAY_1ARG
16301 _ACEOF
16328 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336 cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h. */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16344 #define $ac_func innocuous_$ac_func
16346 /* System header to define __stub macros and hopefully few prototypes,
16347 which can conflict with char $ac_func (); below.
16348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16349 <limits.h> exists even on freestanding compilers. */
16351 #ifdef __STDC__
16352 # include <limits.h>
16353 #else
16354 # include <assert.h>
16355 #endif
16357 #undef $ac_func
16359 /* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362 #ifdef __cplusplus
16363 extern "C"
16364 #endif
16365 char $ac_func ();
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined __stub_$ac_func || defined __stub___$ac_func
16370 choke me
16371 #endif
16374 main ()
16376 return $ac_func ();
16378 return 0;
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_link") 2>conftest.er1
16389 ac_status=$?
16390 grep -v '^ *+' conftest.er1 >conftest.err
16391 rm -f conftest.er1
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } && {
16395 test -z "$ac_c_werror_flag" ||
16396 test ! -s conftest.err
16397 } && test -s conftest$ac_exeext &&
16398 $as_test_x conftest$ac_exeext; then
16399 eval "$as_ac_var=yes"
16400 else
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 eval "$as_ac_var=no"
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408 conftest$ac_exeext conftest.$ac_ext
16410 ac_res=`eval echo '${'$as_ac_var'}'`
16411 { echo "$as_me:$LINENO: result: $ac_res" >&5
16412 echo "${ECHO_T}$ac_res" >&6; }
16413 if test `eval echo '${'$as_ac_var'}'` = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16416 _ACEOF
16419 done
16422 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16423 # by calling it, 2009-04-02
16424 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16425 if test "$PORTNAME" != "solaris"; then
16427 for ac_func in posix_fadvise
16429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h. */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16443 #define $ac_func innocuous_$ac_func
16445 /* System header to define __stub macros and hopefully few prototypes,
16446 which can conflict with char $ac_func (); below.
16447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16448 <limits.h> exists even on freestanding compilers. */
16450 #ifdef __STDC__
16451 # include <limits.h>
16452 #else
16453 # include <assert.h>
16454 #endif
16456 #undef $ac_func
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16461 #ifdef __cplusplus
16462 extern "C"
16463 #endif
16464 char $ac_func ();
16465 /* The GNU C library defines this for functions which it implements
16466 to always fail with ENOSYS. Some functions are actually named
16467 something starting with __ and the normal name is an alias. */
16468 #if defined __stub_$ac_func || defined __stub___$ac_func
16469 choke me
16470 #endif
16473 main ()
16475 return $ac_func ();
16477 return 0;
16479 _ACEOF
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16488 ac_status=$?
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest$ac_exeext &&
16497 $as_test_x conftest$ac_exeext; then
16498 eval "$as_ac_var=yes"
16499 else
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 eval "$as_ac_var=no"
16506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16507 conftest$ac_exeext conftest.$ac_ext
16509 ac_res=`eval echo '${'$as_ac_var'}'`
16510 { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16512 if test `eval echo '${'$as_ac_var'}'` = yes; then
16513 cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16515 _ACEOF
16518 done
16520 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16521 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16522 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 #include <fcntl.h>
16534 main ()
16536 #ifndef posix_fadvise
16537 (void) posix_fadvise;
16538 #endif
16541 return 0;
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_compile") 2>conftest.er1
16552 ac_status=$?
16553 grep -v '^ *+' conftest.er1 >conftest.err
16554 rm -f conftest.er1
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest.$ac_objext; then
16561 ac_cv_have_decl_posix_fadvise=yes
16562 else
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_have_decl_posix_fadvise=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16572 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16573 if test $ac_cv_have_decl_posix_fadvise = yes; then
16575 cat >>confdefs.h <<_ACEOF
16576 #define HAVE_DECL_POSIX_FADVISE 1
16577 _ACEOF
16580 else
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_DECL_POSIX_FADVISE 0
16583 _ACEOF
16591 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16592 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16593 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16594 echo $ECHO_N "(cached) $ECHO_C" >&6
16595 else
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <unistd.h>
16605 main ()
16607 #ifndef fdatasync
16608 (void) fdatasync;
16609 #endif
16612 return 0;
16614 _ACEOF
16615 rm -f conftest.$ac_objext
16616 if { (ac_try="$ac_compile"
16617 case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620 esac
16621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_compile") 2>conftest.er1
16623 ac_status=$?
16624 grep -v '^ *+' conftest.er1 >conftest.err
16625 rm -f conftest.er1
16626 cat conftest.err >&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); } && {
16629 test -z "$ac_c_werror_flag" ||
16630 test ! -s conftest.err
16631 } && test -s conftest.$ac_objext; then
16632 ac_cv_have_decl_fdatasync=yes
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16637 ac_cv_have_decl_fdatasync=no
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16643 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16644 if test $ac_cv_have_decl_fdatasync = yes; then
16646 cat >>confdefs.h <<_ACEOF
16647 #define HAVE_DECL_FDATASYNC 1
16648 _ACEOF
16651 else
16652 cat >>confdefs.h <<_ACEOF
16653 #define HAVE_DECL_FDATASYNC 0
16654 _ACEOF
16660 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16661 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16662 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 else
16665 cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h. */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h. */
16671 $ac_includes_default
16673 main ()
16675 #ifndef strlcat
16676 (void) strlcat;
16677 #endif
16680 return 0;
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (ac_try="$ac_compile"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688 esac
16689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16691 ac_status=$?
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && {
16697 test -z "$ac_c_werror_flag" ||
16698 test ! -s conftest.err
16699 } && test -s conftest.$ac_objext; then
16700 ac_cv_have_decl_strlcat=yes
16701 else
16702 echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_have_decl_strlcat=no
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16711 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16712 if test $ac_cv_have_decl_strlcat = yes; then
16714 cat >>confdefs.h <<_ACEOF
16715 #define HAVE_DECL_STRLCAT 1
16716 _ACEOF
16719 else
16720 cat >>confdefs.h <<_ACEOF
16721 #define HAVE_DECL_STRLCAT 0
16722 _ACEOF
16726 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16727 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16728 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731 cat >conftest.$ac_ext <<_ACEOF
16732 /* confdefs.h. */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16737 $ac_includes_default
16739 main ()
16741 #ifndef strlcpy
16742 (void) strlcpy;
16743 #endif
16746 return 0;
16748 _ACEOF
16749 rm -f conftest.$ac_objext
16750 if { (ac_try="$ac_compile"
16751 case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754 esac
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_compile") 2>conftest.er1
16757 ac_status=$?
16758 grep -v '^ *+' conftest.er1 >conftest.err
16759 rm -f conftest.er1
16760 cat conftest.err >&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); } && {
16763 test -z "$ac_c_werror_flag" ||
16764 test ! -s conftest.err
16765 } && test -s conftest.$ac_objext; then
16766 ac_cv_have_decl_strlcpy=yes
16767 else
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 ac_cv_have_decl_strlcpy=no
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16777 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16778 if test $ac_cv_have_decl_strlcpy = yes; then
16780 cat >>confdefs.h <<_ACEOF
16781 #define HAVE_DECL_STRLCPY 1
16782 _ACEOF
16785 else
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_DECL_STRLCPY 0
16788 _ACEOF
16794 # This is probably only present on Darwin, but may as well check always
16795 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16796 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16797 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 else
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h. */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 #include <fcntl.h>
16809 main ()
16811 #ifndef F_FULLFSYNC
16812 (void) F_FULLFSYNC;
16813 #endif
16816 return 0;
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824 esac
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.$ac_objext; then
16836 ac_cv_have_decl_F_FULLFSYNC=yes
16837 else
16838 echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16841 ac_cv_have_decl_F_FULLFSYNC=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16847 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16848 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16850 cat >>confdefs.h <<_ACEOF
16851 #define HAVE_DECL_F_FULLFSYNC 1
16852 _ACEOF
16855 else
16856 cat >>confdefs.h <<_ACEOF
16857 #define HAVE_DECL_F_FULLFSYNC 0
16858 _ACEOF
16865 HAVE_IPV6=no
16866 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16867 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16868 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16870 else
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h. */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #include <netinet/in.h>
16880 typedef struct sockaddr_in6 ac__type_new_;
16882 main ()
16884 if ((ac__type_new_ *) 0)
16885 return 0;
16886 if (sizeof (ac__type_new_))
16887 return 0;
16889 return 0;
16891 _ACEOF
16892 rm -f conftest.$ac_objext
16893 if { (ac_try="$ac_compile"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest.$ac_objext; then
16909 ac_cv_type_struct_sockaddr_in6=yes
16910 else
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 ac_cv_type_struct_sockaddr_in6=no
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16920 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16921 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16923 cat >>confdefs.h <<\_ACEOF
16924 #define HAVE_IPV6 1
16925 _ACEOF
16927 HAVE_IPV6=yes
16932 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16933 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16934 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 else
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16943 #include <machine/vmparam.h>
16944 #include <sys/exec.h>
16947 main ()
16949 PS_STRINGS->ps_nargvstr = 1;
16950 PS_STRINGS->ps_argvstr = "foo";
16952 return 0;
16954 _ACEOF
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (ac_try="$ac_link"
16957 case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16960 esac
16961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_link") 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest$ac_exeext &&
16972 $as_test_x conftest$ac_exeext; then
16973 pgac_cv_var_PS_STRINGS=yes
16974 else
16975 echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16978 pgac_cv_var_PS_STRINGS=no
16981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16982 conftest$ac_exeext conftest.$ac_ext
16984 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16985 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16986 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16988 cat >>confdefs.h <<\_ACEOF
16989 #define HAVE_PS_STRINGS
16990 _ACEOF
16995 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16996 # is missing. Yes, there are machines that have only one. We may
16997 # also decide to use snprintf.c if snprintf() is present but does not
16998 # have all the features we need --- see below.
17000 if test "$PORTNAME" = "win32"; then
17001 # Win32 gets snprintf.c built unconditionally.
17003 # To properly translate all NLS languages strings, we must support the
17004 # *printf() %$ format, which allows *printf() arguments to be selected
17005 # by position in the translated string.
17007 # libintl versions < 0.13 use the native *printf() functions, and Win32
17008 # *printf() doesn't understand %$, so we must use our /port versions,
17009 # which do understand %$. libintl versions >= 0.13 include their own
17010 # *printf versions on Win32. The libintl 0.13 release note text is:
17012 # C format strings with positions, as they arise when a translator
17013 # needs to reorder a sentence, are now supported on all platforms.
17014 # On those few platforms (NetBSD and Woe32) for which the native
17015 # printf()/fprintf()/... functions don't support such format
17016 # strings, replacements are provided through <libintl.h>.
17018 # We could use libintl >= 0.13's *printf() if we were sure that we had
17019 # a litint >= 0.13 at runtime, but seeing that there is no clean way
17020 # to guarantee that, it is best to just use our own, so we are sure to
17021 # get %$ support. In include/port.h we disable the *printf() macros
17022 # that might have been defined by libintl.
17024 # We do this unconditionally whether NLS is used or not so we are sure
17025 # that all Win32 libraries and binaries behave the same.
17026 pgac_need_repl_snprintf=yes
17027 else
17028 pgac_need_repl_snprintf=no
17030 for ac_func in snprintf
17032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17046 #define $ac_func innocuous_$ac_func
17048 /* System header to define __stub macros and hopefully few prototypes,
17049 which can conflict with char $ac_func (); below.
17050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17051 <limits.h> exists even on freestanding compilers. */
17053 #ifdef __STDC__
17054 # include <limits.h>
17055 #else
17056 # include <assert.h>
17057 #endif
17059 #undef $ac_func
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17064 #ifdef __cplusplus
17065 extern "C"
17066 #endif
17067 char $ac_func ();
17068 /* The GNU C library defines this for functions which it implements
17069 to always fail with ENOSYS. Some functions are actually named
17070 something starting with __ and the normal name is an alias. */
17071 #if defined __stub_$ac_func || defined __stub___$ac_func
17072 choke me
17073 #endif
17076 main ()
17078 return $ac_func ();
17080 return 0;
17082 _ACEOF
17083 rm -f conftest.$ac_objext conftest$ac_exeext
17084 if { (ac_try="$ac_link"
17085 case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088 esac
17089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
17091 ac_status=$?
17092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && {
17097 test -z "$ac_c_werror_flag" ||
17098 test ! -s conftest.err
17099 } && test -s conftest$ac_exeext &&
17100 $as_test_x conftest$ac_exeext; then
17101 eval "$as_ac_var=yes"
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17106 eval "$as_ac_var=no"
17109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17110 conftest$ac_exeext conftest.$ac_ext
17112 ac_res=`eval echo '${'$as_ac_var'}'`
17113 { echo "$as_me:$LINENO: result: $ac_res" >&5
17114 echo "${ECHO_T}$ac_res" >&6; }
17115 if test `eval echo '${'$as_ac_var'}'` = yes; then
17116 cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17118 _ACEOF
17120 else
17121 pgac_need_repl_snprintf=yes
17123 done
17126 for ac_func in vsnprintf
17128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134 cat >conftest.$ac_ext <<_ACEOF
17135 /* confdefs.h. */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h. */
17140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17142 #define $ac_func innocuous_$ac_func
17144 /* System header to define __stub macros and hopefully few prototypes,
17145 which can conflict with char $ac_func (); below.
17146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17147 <limits.h> exists even on freestanding compilers. */
17149 #ifdef __STDC__
17150 # include <limits.h>
17151 #else
17152 # include <assert.h>
17153 #endif
17155 #undef $ac_func
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17160 #ifdef __cplusplus
17161 extern "C"
17162 #endif
17163 char $ac_func ();
17164 /* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167 #if defined __stub_$ac_func || defined __stub___$ac_func
17168 choke me
17169 #endif
17172 main ()
17174 return $ac_func ();
17176 return 0;
17178 _ACEOF
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (ac_try="$ac_link"
17181 case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184 esac
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_link") 2>conftest.er1
17187 ac_status=$?
17188 grep -v '^ *+' conftest.er1 >conftest.err
17189 rm -f conftest.er1
17190 cat conftest.err >&5
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); } && {
17193 test -z "$ac_c_werror_flag" ||
17194 test ! -s conftest.err
17195 } && test -s conftest$ac_exeext &&
17196 $as_test_x conftest$ac_exeext; then
17197 eval "$as_ac_var=yes"
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 eval "$as_ac_var=no"
17205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17206 conftest$ac_exeext conftest.$ac_ext
17208 ac_res=`eval echo '${'$as_ac_var'}'`
17209 { echo "$as_me:$LINENO: result: $ac_res" >&5
17210 echo "${ECHO_T}$ac_res" >&6; }
17211 if test `eval echo '${'$as_ac_var'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17214 _ACEOF
17216 else
17217 pgac_need_repl_snprintf=yes
17219 done
17224 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17225 # include/c.h will provide declarations. Note this is a separate test
17226 # from whether the functions exist in the C library --- there are
17227 # systems that have the functions but don't bother to declare them :-(
17229 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17230 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17231 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233 else
17234 cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240 $ac_includes_default
17242 main ()
17244 #ifndef snprintf
17245 (void) snprintf;
17246 #endif
17249 return 0;
17251 _ACEOF
17252 rm -f conftest.$ac_objext
17253 if { (ac_try="$ac_compile"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17260 ac_status=$?
17261 grep -v '^ *+' conftest.er1 >conftest.err
17262 rm -f conftest.er1
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 ac_cv_have_decl_snprintf=yes
17270 else
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 ac_cv_have_decl_snprintf=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17280 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17281 if test $ac_cv_have_decl_snprintf = yes; then
17283 cat >>confdefs.h <<_ACEOF
17284 #define HAVE_DECL_SNPRINTF 1
17285 _ACEOF
17288 else
17289 cat >>confdefs.h <<_ACEOF
17290 #define HAVE_DECL_SNPRINTF 0
17291 _ACEOF
17295 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17296 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17297 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17298 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300 cat >conftest.$ac_ext <<_ACEOF
17301 /* confdefs.h. */
17302 _ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17306 $ac_includes_default
17308 main ()
17310 #ifndef vsnprintf
17311 (void) vsnprintf;
17312 #endif
17315 return 0;
17317 _ACEOF
17318 rm -f conftest.$ac_objext
17319 if { (ac_try="$ac_compile"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_compile") 2>conftest.er1
17326 ac_status=$?
17327 grep -v '^ *+' conftest.er1 >conftest.err
17328 rm -f conftest.er1
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest.$ac_objext; then
17335 ac_cv_have_decl_vsnprintf=yes
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 ac_cv_have_decl_vsnprintf=no
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17346 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17347 if test $ac_cv_have_decl_vsnprintf = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define HAVE_DECL_VSNPRINTF 1
17351 _ACEOF
17354 else
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_DECL_VSNPRINTF 0
17357 _ACEOF
17365 { echo "$as_me:$LINENO: checking for isinf" >&5
17366 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_isinf+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 #include <math.h>
17378 double glob_double;
17381 main ()
17383 return isinf(glob_double) ? 0 : 1;
17385 return 0;
17387 _ACEOF
17388 rm -f conftest.$ac_objext conftest$ac_exeext
17389 if { (ac_try="$ac_link"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17395 (eval "$ac_link") 2>conftest.er1
17396 ac_status=$?
17397 grep -v '^ *+' conftest.er1 >conftest.err
17398 rm -f conftest.er1
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } && {
17402 test -z "$ac_c_werror_flag" ||
17403 test ! -s conftest.err
17404 } && test -s conftest$ac_exeext &&
17405 $as_test_x conftest$ac_exeext; then
17406 ac_cv_func_isinf=yes
17407 else
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_func_isinf=no
17414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17415 conftest$ac_exeext conftest.$ac_ext
17417 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17418 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17420 if test $ac_cv_func_isinf = yes ; then
17422 cat >>confdefs.h <<\_ACEOF
17423 #define HAVE_ISINF 1
17424 _ACEOF
17426 else
17427 case " $LIBOBJS " in
17428 *" isinf.$ac_objext "* ) ;;
17429 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17431 esac
17433 # Look for a way to implement a substitute for isinf()
17438 for ac_func in fpclass fp_class fp_class_d class
17440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446 cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h. */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17454 #define $ac_func innocuous_$ac_func
17456 /* System header to define __stub macros and hopefully few prototypes,
17457 which can conflict with char $ac_func (); below.
17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17459 <limits.h> exists even on freestanding compilers. */
17461 #ifdef __STDC__
17462 # include <limits.h>
17463 #else
17464 # include <assert.h>
17465 #endif
17467 #undef $ac_func
17469 /* Override any GCC internal prototype to avoid an error.
17470 Use char because int might match the return type of a GCC
17471 builtin and then its argument prototype would still apply. */
17472 #ifdef __cplusplus
17473 extern "C"
17474 #endif
17475 char $ac_func ();
17476 /* The GNU C library defines this for functions which it implements
17477 to always fail with ENOSYS. Some functions are actually named
17478 something starting with __ and the normal name is an alias. */
17479 #if defined __stub_$ac_func || defined __stub___$ac_func
17480 choke me
17481 #endif
17484 main ()
17486 return $ac_func ();
17488 return 0;
17490 _ACEOF
17491 rm -f conftest.$ac_objext conftest$ac_exeext
17492 if { (ac_try="$ac_link"
17493 case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_link") 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } && {
17505 test -z "$ac_c_werror_flag" ||
17506 test ! -s conftest.err
17507 } && test -s conftest$ac_exeext &&
17508 $as_test_x conftest$ac_exeext; then
17509 eval "$as_ac_var=yes"
17510 else
17511 echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17514 eval "$as_ac_var=no"
17517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17518 conftest$ac_exeext conftest.$ac_ext
17520 ac_res=`eval echo '${'$as_ac_var'}'`
17521 { echo "$as_me:$LINENO: result: $ac_res" >&5
17522 echo "${ECHO_T}$ac_res" >&6; }
17523 if test `eval echo '${'$as_ac_var'}'` = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17526 _ACEOF
17527 break
17529 done
17533 # Some versions of libedit contain strlcpy(); so disregard that library while
17534 # checking for these standard libc functions.
17535 pgac_save_LIBS="$LIBS"
17536 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17551 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
17553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17554 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17556 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17557 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 else
17559 cat >conftest.$ac_ext <<_ACEOF
17560 /* confdefs.h. */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17567 #define $ac_func innocuous_$ac_func
17569 /* System header to define __stub macros and hopefully few prototypes,
17570 which can conflict with char $ac_func (); below.
17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17572 <limits.h> exists even on freestanding compilers. */
17574 #ifdef __STDC__
17575 # include <limits.h>
17576 #else
17577 # include <assert.h>
17578 #endif
17580 #undef $ac_func
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 char $ac_func ();
17589 /* The GNU C library defines this for functions which it implements
17590 to always fail with ENOSYS. Some functions are actually named
17591 something starting with __ and the normal name is an alias. */
17592 #if defined __stub_$ac_func || defined __stub___$ac_func
17593 choke me
17594 #endif
17597 main ()
17599 return $ac_func ();
17601 return 0;
17603 _ACEOF
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_link") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext &&
17621 $as_test_x conftest$ac_exeext; then
17622 eval "$as_ac_var=yes"
17623 else
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17631 conftest$ac_exeext conftest.$ac_ext
17633 ac_res=`eval echo '${'$as_ac_var'}'`
17634 { echo "$as_me:$LINENO: result: $ac_res" >&5
17635 echo "${ECHO_T}$ac_res" >&6; }
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17639 _ACEOF
17641 else
17642 case " $LIBOBJS " in
17643 *" $ac_func.$ac_objext "* ) ;;
17644 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17646 esac
17649 done
17653 case $host_os in
17655 # Windows uses a specialised env handler
17656 mingw*)
17658 cat >>confdefs.h <<\_ACEOF
17659 #define HAVE_UNSETENV 1
17660 _ACEOF
17662 ac_cv_func_unsetenv=yes;;
17665 for ac_func in unsetenv
17667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 else
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17681 #define $ac_func innocuous_$ac_func
17683 /* System header to define __stub macros and hopefully few prototypes,
17684 which can conflict with char $ac_func (); below.
17685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17686 <limits.h> exists even on freestanding compilers. */
17688 #ifdef __STDC__
17689 # include <limits.h>
17690 #else
17691 # include <assert.h>
17692 #endif
17694 #undef $ac_func
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char $ac_func ();
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined __stub_$ac_func || defined __stub___$ac_func
17707 choke me
17708 #endif
17711 main ()
17713 return $ac_func ();
17715 return 0;
17717 _ACEOF
17718 rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest$ac_exeext &&
17735 $as_test_x conftest$ac_exeext; then
17736 eval "$as_ac_var=yes"
17737 else
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 eval "$as_ac_var=no"
17744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17745 conftest$ac_exeext conftest.$ac_ext
17747 ac_res=`eval echo '${'$as_ac_var'}'`
17748 { echo "$as_me:$LINENO: result: $ac_res" >&5
17749 echo "${ECHO_T}$ac_res" >&6; }
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17753 _ACEOF
17755 else
17756 case " $LIBOBJS " in
17757 *" $ac_func.$ac_objext "* ) ;;
17758 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17760 esac
17763 done
17767 esac
17770 LIBS="$pgac_save_LIBS"
17772 # System's version of getaddrinfo(), if any, may be used only if we found
17773 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17774 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17775 # versions of getaddrinfo don't follow normal C call protocol. This is OK
17776 # because we want to use our own getaddrinfo.c on Windows anyway.)
17777 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17779 for ac_func in getaddrinfo
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17808 #undef $ac_func
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char $ac_func ();
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17821 choke me
17822 #endif
17825 main ()
17827 return $ac_func ();
17829 return 0;
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 eval "$as_ac_var=yes"
17851 else
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 eval "$as_ac_var=no"
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17867 _ACEOF
17869 else
17870 case " $LIBOBJS " in
17871 *" $ac_func.$ac_objext "* ) ;;
17872 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17874 esac
17877 done
17880 else
17881 case " $LIBOBJS " in
17882 *" getaddrinfo.$ac_objext "* ) ;;
17883 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17885 esac
17889 # Similarly, use system's getopt_long() only if system provides struct option.
17890 if test x"$ac_cv_type_struct_option" = xyes ; then
17892 for ac_func in getopt_long
17894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899 else
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17915 #ifdef __STDC__
17916 # include <limits.h>
17917 #else
17918 # include <assert.h>
17919 #endif
17921 #undef $ac_func
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17926 #ifdef __cplusplus
17927 extern "C"
17928 #endif
17929 char $ac_func ();
17930 /* The GNU C library defines this for functions which it implements
17931 to always fail with ENOSYS. Some functions are actually named
17932 something starting with __ and the normal name is an alias. */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17934 choke me
17935 #endif
17938 main ()
17940 return $ac_func ();
17942 return 0;
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (ac_try="$ac_link"
17947 case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_link") 2>conftest.er1
17953 ac_status=$?
17954 grep -v '^ *+' conftest.er1 >conftest.err
17955 rm -f conftest.er1
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext &&
17962 $as_test_x conftest$ac_exeext; then
17963 eval "$as_ac_var=yes"
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17980 _ACEOF
17982 else
17983 case " $LIBOBJS " in
17984 *" $ac_func.$ac_objext "* ) ;;
17985 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17987 esac
17990 done
17993 else
17994 case " $LIBOBJS " in
17995 *" getopt_long.$ac_objext "* ) ;;
17996 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17998 esac
18002 # Solaris' getopt() doesn't do what we want for long options, so always use
18003 # our version on that platform.
18004 if test "$PORTNAME" = "solaris"; then
18005 case " $LIBOBJS " in
18006 *" getopt.$ac_objext "* ) ;;
18007 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18009 esac
18013 # Win32 support
18014 if test "$PORTNAME" = "win32"; then
18016 for ac_func in gettimeofday
18018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18023 else
18024 cat >conftest.$ac_ext <<_ACEOF
18025 /* confdefs.h. */
18026 _ACEOF
18027 cat confdefs.h >>conftest.$ac_ext
18028 cat >>conftest.$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define $ac_func innocuous_$ac_func
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18039 #ifdef __STDC__
18040 # include <limits.h>
18041 #else
18042 # include <assert.h>
18043 #endif
18045 #undef $ac_func
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 #ifdef __cplusplus
18051 extern "C"
18052 #endif
18053 char $ac_func ();
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18058 choke me
18059 #endif
18062 main ()
18064 return $ac_func ();
18066 return 0;
18068 _ACEOF
18069 rm -f conftest.$ac_objext conftest$ac_exeext
18070 if { (ac_try="$ac_link"
18071 case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18074 esac
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest$ac_exeext &&
18086 $as_test_x conftest$ac_exeext; then
18087 eval "$as_ac_var=yes"
18088 else
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18092 eval "$as_ac_var=no"
18095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 conftest$ac_exeext conftest.$ac_ext
18098 ac_res=`eval echo '${'$as_ac_var'}'`
18099 { echo "$as_me:$LINENO: result: $ac_res" >&5
18100 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_var'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18104 _ACEOF
18106 else
18107 case " $LIBOBJS " in
18108 *" $ac_func.$ac_objext "* ) ;;
18109 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18111 esac
18114 done
18117 case " $LIBOBJS " in
18118 *" kill.$ac_objext "* ) ;;
18119 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
18121 esac
18123 case " $LIBOBJS " in
18124 *" open.$ac_objext "* ) ;;
18125 *) LIBOBJS="$LIBOBJS open.$ac_objext"
18127 esac
18129 case " $LIBOBJS " in
18130 *" rand.$ac_objext "* ) ;;
18131 *) LIBOBJS="$LIBOBJS rand.$ac_objext"
18133 esac
18135 case " $LIBOBJS " in
18136 *" win32env.$ac_objext "* ) ;;
18137 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
18139 esac
18141 case " $LIBOBJS " in
18142 *" win32error.$ac_objext "* ) ;;
18143 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
18145 esac
18148 cat >>confdefs.h <<\_ACEOF
18149 #define HAVE_SYMLINK 1
18150 _ACEOF
18154 if test "$with_readline" = yes; then
18155 { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
18156 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
18157 cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h. */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 #include <stdio.h>
18164 #ifdef HAVE_READLINE_READLINE_H
18165 # include <readline/readline.h>
18166 #elif defined(HAVE_READLINE_H)
18167 # include <readline.h>
18168 #endif
18171 main ()
18173 rl_completion_append_character = 'x';
18175 return 0;
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (ac_try="$ac_link"
18180 case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183 esac
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_link") 2>conftest.er1
18186 ac_status=$?
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } && {
18192 test -z "$ac_c_werror_flag" ||
18193 test ! -s conftest.err
18194 } && test -s conftest$ac_exeext &&
18195 $as_test_x conftest$ac_exeext; then
18196 { echo "$as_me:$LINENO: result: yes" >&5
18197 echo "${ECHO_T}yes" >&6; }
18199 cat >>confdefs.h <<\_ACEOF
18200 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
18201 _ACEOF
18203 else
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.$ac_ext >&5
18207 { echo "$as_me:$LINENO: result: no" >&5
18208 echo "${ECHO_T}no" >&6; }
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212 conftest$ac_exeext conftest.$ac_ext
18215 for ac_func in rl_completion_matches rl_filename_completion_function
18217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222 else
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18231 #define $ac_func innocuous_$ac_func
18233 /* System header to define __stub macros and hopefully few prototypes,
18234 which can conflict with char $ac_func (); below.
18235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18236 <limits.h> exists even on freestanding compilers. */
18238 #ifdef __STDC__
18239 # include <limits.h>
18240 #else
18241 # include <assert.h>
18242 #endif
18244 #undef $ac_func
18246 /* Override any GCC internal prototype to avoid an error.
18247 Use char because int might match the return type of a GCC
18248 builtin and then its argument prototype would still apply. */
18249 #ifdef __cplusplus
18250 extern "C"
18251 #endif
18252 char $ac_func ();
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined __stub_$ac_func || defined __stub___$ac_func
18257 choke me
18258 #endif
18261 main ()
18263 return $ac_func ();
18265 return 0;
18267 _ACEOF
18268 rm -f conftest.$ac_objext conftest$ac_exeext
18269 if { (ac_try="$ac_link"
18270 case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
18276 ac_status=$?
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } && {
18282 test -z "$ac_c_werror_flag" ||
18283 test ! -s conftest.err
18284 } && test -s conftest$ac_exeext &&
18285 $as_test_x conftest$ac_exeext; then
18286 eval "$as_ac_var=yes"
18287 else
18288 echo "$as_me: failed program was:" >&5
18289 sed 's/^/| /' conftest.$ac_ext >&5
18291 eval "$as_ac_var=no"
18294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18295 conftest$ac_exeext conftest.$ac_ext
18297 ac_res=`eval echo '${'$as_ac_var'}'`
18298 { echo "$as_me:$LINENO: result: $ac_res" >&5
18299 echo "${ECHO_T}$ac_res" >&6; }
18300 if test `eval echo '${'$as_ac_var'}'` = yes; then
18301 cat >>confdefs.h <<_ACEOF
18302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18303 _ACEOF
18306 done
18309 for ac_func in replace_history_entry
18311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317 cat >conftest.$ac_ext <<_ACEOF
18318 /* confdefs.h. */
18319 _ACEOF
18320 cat confdefs.h >>conftest.$ac_ext
18321 cat >>conftest.$ac_ext <<_ACEOF
18322 /* end confdefs.h. */
18323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18325 #define $ac_func innocuous_$ac_func
18327 /* System header to define __stub macros and hopefully few prototypes,
18328 which can conflict with char $ac_func (); below.
18329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18330 <limits.h> exists even on freestanding compilers. */
18332 #ifdef __STDC__
18333 # include <limits.h>
18334 #else
18335 # include <assert.h>
18336 #endif
18338 #undef $ac_func
18340 /* Override any GCC internal prototype to avoid an error.
18341 Use char because int might match the return type of a GCC
18342 builtin and then its argument prototype would still apply. */
18343 #ifdef __cplusplus
18344 extern "C"
18345 #endif
18346 char $ac_func ();
18347 /* The GNU C library defines this for functions which it implements
18348 to always fail with ENOSYS. Some functions are actually named
18349 something starting with __ and the normal name is an alias. */
18350 #if defined __stub_$ac_func || defined __stub___$ac_func
18351 choke me
18352 #endif
18355 main ()
18357 return $ac_func ();
18359 return 0;
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest$ac_exeext &&
18379 $as_test_x conftest$ac_exeext; then
18380 eval "$as_ac_var=yes"
18381 else
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 eval "$as_ac_var=no"
18388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389 conftest$ac_exeext conftest.$ac_ext
18391 ac_res=`eval echo '${'$as_ac_var'}'`
18392 { echo "$as_me:$LINENO: result: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18394 if test `eval echo '${'$as_ac_var'}'` = yes; then
18395 cat >>confdefs.h <<_ACEOF
18396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18397 _ACEOF
18400 done
18405 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18406 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <setjmp.h>
18415 main ()
18417 sigjmp_buf x; sigsetjmp(x, 1);
18419 return 0;
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427 esac
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18430 ac_status=$?
18431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest$ac_exeext &&
18439 $as_test_x conftest$ac_exeext; then
18441 cat >>confdefs.h <<\_ACEOF
18442 #define HAVE_SIGSETJMP 1
18443 _ACEOF
18445 { echo "$as_me:$LINENO: result: yes" >&5
18446 echo "${ECHO_T}yes" >&6; }
18447 else
18448 echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18451 { echo "$as_me:$LINENO: result: no" >&5
18452 echo "${ECHO_T}no" >&6; }
18455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18456 conftest$ac_exeext conftest.$ac_ext
18458 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18459 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18460 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <signal.h>
18470 /* NetBSD declares sys_siglist in unistd.h. */
18471 #ifdef HAVE_UNISTD_H
18472 # include <unistd.h>
18473 #endif
18477 main ()
18479 #ifndef sys_siglist
18480 (void) sys_siglist;
18481 #endif
18484 return 0;
18486 _ACEOF
18487 rm -f conftest.$ac_objext
18488 if { (ac_try="$ac_compile"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_compile") 2>conftest.er1
18495 ac_status=$?
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest.$ac_objext; then
18504 ac_cv_have_decl_sys_siglist=yes
18505 else
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_have_decl_sys_siglist=no
18512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18514 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18515 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18516 if test $ac_cv_have_decl_sys_siglist = yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define HAVE_DECL_SYS_SIGLIST 1
18520 _ACEOF
18523 else
18524 cat >>confdefs.h <<_ACEOF
18525 #define HAVE_DECL_SYS_SIGLIST 0
18526 _ACEOF
18534 { echo "$as_me:$LINENO: checking for syslog" >&5
18535 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18536 if test "${ac_cv_func_syslog+set}" = set; then
18537 echo $ECHO_N "(cached) $ECHO_C" >&6
18538 else
18539 cat >conftest.$ac_ext <<_ACEOF
18540 /* confdefs.h. */
18541 _ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18547 #define syslog innocuous_syslog
18549 /* System header to define __stub macros and hopefully few prototypes,
18550 which can conflict with char syslog (); below.
18551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18552 <limits.h> exists even on freestanding compilers. */
18554 #ifdef __STDC__
18555 # include <limits.h>
18556 #else
18557 # include <assert.h>
18558 #endif
18560 #undef syslog
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 char syslog ();
18569 /* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572 #if defined __stub_syslog || defined __stub___syslog
18573 choke me
18574 #endif
18577 main ()
18579 return syslog ();
18581 return 0;
18583 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18592 ac_status=$?
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && {
18598 test -z "$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 } && test -s conftest$ac_exeext &&
18601 $as_test_x conftest$ac_exeext; then
18602 ac_cv_func_syslog=yes
18603 else
18604 echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_func_syslog=no
18610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18611 conftest$ac_exeext conftest.$ac_ext
18613 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18614 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18615 if test $ac_cv_func_syslog = yes; then
18616 if test "${ac_cv_header_syslog_h+set}" = set; then
18617 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18618 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18619 if test "${ac_cv_header_syslog_h+set}" = set; then
18620 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18623 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18624 else
18625 # Is the header compilable?
18626 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18627 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18628 cat >conftest.$ac_ext <<_ACEOF
18629 /* confdefs.h. */
18630 _ACEOF
18631 cat confdefs.h >>conftest.$ac_ext
18632 cat >>conftest.$ac_ext <<_ACEOF
18633 /* end confdefs.h. */
18634 $ac_includes_default
18635 #include <syslog.h>
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_compile") 2>conftest.er1
18645 ac_status=$?
18646 grep -v '^ *+' conftest.er1 >conftest.err
18647 rm -f conftest.er1
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest.$ac_objext; then
18654 ac_header_compiler=yes
18655 else
18656 echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18659 ac_header_compiler=no
18662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18664 echo "${ECHO_T}$ac_header_compiler" >&6; }
18666 # Is the header present?
18667 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18668 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include <syslog.h>
18676 _ACEOF
18677 if { (ac_try="$ac_cpp conftest.$ac_ext"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18684 ac_status=$?
18685 grep -v '^ *+' conftest.er1 >conftest.err
18686 rm -f conftest.er1
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } >/dev/null && {
18690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18691 test ! -s conftest.err
18692 }; then
18693 ac_header_preproc=yes
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_header_preproc=no
18701 rm -f conftest.err conftest.$ac_ext
18702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18703 echo "${ECHO_T}$ac_header_preproc" >&6; }
18705 # So? What about this header?
18706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18707 yes:no: )
18708 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18709 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18710 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18711 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18712 ac_header_preproc=yes
18714 no:yes:* )
18715 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18716 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
18718 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18720 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
18722 echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18724 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18725 { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18726 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18727 ( cat <<\_ASBOX
18728 ## ---------------------------------------- ##
18729 ## Report this to pgsql-bugs@postgresql.org ##
18730 ## ---------------------------------------- ##
18731 _ASBOX
18732 ) | sed "s/^/$as_me: WARNING: /" >&2
18734 esac
18735 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18736 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18737 if test "${ac_cv_header_syslog_h+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 else
18740 ac_cv_header_syslog_h=$ac_header_preproc
18742 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18743 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18746 if test $ac_cv_header_syslog_h = yes; then
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE_SYSLOG 1
18750 _ACEOF
18758 { echo "$as_me:$LINENO: checking for opterr" >&5
18759 echo $ECHO_N "checking for opterr... $ECHO_C" >&6; }
18760 if test "${pgac_cv_var_int_opterr+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769 #include <unistd.h>
18771 main ()
18773 extern int opterr; opterr = 1;
18775 return 0;
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest$ac_exeext &&
18795 $as_test_x conftest$ac_exeext; then
18796 pgac_cv_var_int_opterr=yes
18797 else
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18801 pgac_cv_var_int_opterr=no
18804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18805 conftest$ac_exeext conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
18808 echo "${ECHO_T}$pgac_cv_var_int_opterr" >&6; }
18809 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_INT_OPTERR 1
18813 _ACEOF
18817 { echo "$as_me:$LINENO: checking for optreset" >&5
18818 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18819 if test "${pgac_cv_var_int_optreset+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822 cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h. */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 #include <unistd.h>
18830 main ()
18832 extern int optreset; optreset = 1;
18834 return 0;
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842 esac
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_link") 2>conftest.er1
18845 ac_status=$?
18846 grep -v '^ *+' conftest.er1 >conftest.err
18847 rm -f conftest.er1
18848 cat conftest.err >&5
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } && {
18851 test -z "$ac_c_werror_flag" ||
18852 test ! -s conftest.err
18853 } && test -s conftest$ac_exeext &&
18854 $as_test_x conftest$ac_exeext; then
18855 pgac_cv_var_int_optreset=yes
18856 else
18857 echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 pgac_cv_var_int_optreset=no
18863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18864 conftest$ac_exeext conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18867 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18868 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_INT_OPTRESET 1
18872 _ACEOF
18878 for ac_func in strtoll strtoq
18880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886 cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h. */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18894 #define $ac_func innocuous_$ac_func
18896 /* System header to define __stub macros and hopefully few prototypes,
18897 which can conflict with char $ac_func (); below.
18898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18899 <limits.h> exists even on freestanding compilers. */
18901 #ifdef __STDC__
18902 # include <limits.h>
18903 #else
18904 # include <assert.h>
18905 #endif
18907 #undef $ac_func
18909 /* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18912 #ifdef __cplusplus
18913 extern "C"
18914 #endif
18915 char $ac_func ();
18916 /* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919 #if defined __stub_$ac_func || defined __stub___$ac_func
18920 choke me
18921 #endif
18924 main ()
18926 return $ac_func ();
18928 return 0;
18930 _ACEOF
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_link") 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } && {
18945 test -z "$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 } && test -s conftest$ac_exeext &&
18948 $as_test_x conftest$ac_exeext; then
18949 eval "$as_ac_var=yes"
18950 else
18951 echo "$as_me: failed program was:" >&5
18952 sed 's/^/| /' conftest.$ac_ext >&5
18954 eval "$as_ac_var=no"
18957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18958 conftest$ac_exeext conftest.$ac_ext
18960 ac_res=`eval echo '${'$as_ac_var'}'`
18961 { echo "$as_me:$LINENO: result: $ac_res" >&5
18962 echo "${ECHO_T}$ac_res" >&6; }
18963 if test `eval echo '${'$as_ac_var'}'` = yes; then
18964 cat >>confdefs.h <<_ACEOF
18965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18966 _ACEOF
18967 break
18969 done
18973 for ac_func in strtoull strtouq
18975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981 cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h. */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h. */
18987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18989 #define $ac_func innocuous_$ac_func
18991 /* System header to define __stub macros and hopefully few prototypes,
18992 which can conflict with char $ac_func (); below.
18993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18994 <limits.h> exists even on freestanding compilers. */
18996 #ifdef __STDC__
18997 # include <limits.h>
18998 #else
18999 # include <assert.h>
19000 #endif
19002 #undef $ac_func
19004 /* Override any GCC internal prototype to avoid an error.
19005 Use char because int might match the return type of a GCC
19006 builtin and then its argument prototype would still apply. */
19007 #ifdef __cplusplus
19008 extern "C"
19009 #endif
19010 char $ac_func ();
19011 /* The GNU C library defines this for functions which it implements
19012 to always fail with ENOSYS. Some functions are actually named
19013 something starting with __ and the normal name is an alias. */
19014 #if defined __stub_$ac_func || defined __stub___$ac_func
19015 choke me
19016 #endif
19019 main ()
19021 return $ac_func ();
19023 return 0;
19025 _ACEOF
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (ac_try="$ac_link"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_link") 2>conftest.er1
19034 ac_status=$?
19035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && {
19040 test -z "$ac_c_werror_flag" ||
19041 test ! -s conftest.err
19042 } && test -s conftest$ac_exeext &&
19043 $as_test_x conftest$ac_exeext; then
19044 eval "$as_ac_var=yes"
19045 else
19046 echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19049 eval "$as_ac_var=no"
19052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19053 conftest$ac_exeext conftest.$ac_ext
19055 ac_res=`eval echo '${'$as_ac_var'}'`
19056 { echo "$as_me:$LINENO: result: $ac_res" >&5
19057 echo "${ECHO_T}$ac_res" >&6; }
19058 if test `eval echo '${'$as_ac_var'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19061 _ACEOF
19062 break
19064 done
19067 # Check for one of atexit() or on_exit()
19069 for ac_func in atexit
19071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19085 #define $ac_func innocuous_$ac_func
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below.
19089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090 <limits.h> exists even on freestanding compilers. */
19092 #ifdef __STDC__
19093 # include <limits.h>
19094 #else
19095 # include <assert.h>
19096 #endif
19098 #undef $ac_func
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19103 #ifdef __cplusplus
19104 extern "C"
19105 #endif
19106 char $ac_func ();
19107 /* The GNU C library defines this for functions which it implements
19108 to always fail with ENOSYS. Some functions are actually named
19109 something starting with __ and the normal name is an alias. */
19110 #if defined __stub_$ac_func || defined __stub___$ac_func
19111 choke me
19112 #endif
19115 main ()
19117 return $ac_func ();
19119 return 0;
19121 _ACEOF
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19129 (eval "$ac_link") 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest$ac_exeext &&
19139 $as_test_x conftest$ac_exeext; then
19140 eval "$as_ac_var=yes"
19141 else
19142 echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 eval "$as_ac_var=no"
19148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19149 conftest$ac_exeext conftest.$ac_ext
19151 ac_res=`eval echo '${'$as_ac_var'}'`
19152 { echo "$as_me:$LINENO: result: $ac_res" >&5
19153 echo "${ECHO_T}$ac_res" >&6; }
19154 if test `eval echo '${'$as_ac_var'}'` = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19157 _ACEOF
19159 else
19161 for ac_func in on_exit
19163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 cat >conftest.$ac_ext <<_ACEOF
19170 /* confdefs.h. */
19171 _ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19177 #define $ac_func innocuous_$ac_func
19179 /* System header to define __stub macros and hopefully few prototypes,
19180 which can conflict with char $ac_func (); below.
19181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19182 <limits.h> exists even on freestanding compilers. */
19184 #ifdef __STDC__
19185 # include <limits.h>
19186 #else
19187 # include <assert.h>
19188 #endif
19190 #undef $ac_func
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char $ac_func ();
19199 /* The GNU C library defines this for functions which it implements
19200 to always fail with ENOSYS. Some functions are actually named
19201 something starting with __ and the normal name is an alias. */
19202 #if defined __stub_$ac_func || defined __stub___$ac_func
19203 choke me
19204 #endif
19207 main ()
19209 return $ac_func ();
19211 return 0;
19213 _ACEOF
19214 rm -f conftest.$ac_objext conftest$ac_exeext
19215 if { (ac_try="$ac_link"
19216 case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221 (eval "$ac_link") 2>conftest.er1
19222 ac_status=$?
19223 grep -v '^ *+' conftest.er1 >conftest.err
19224 rm -f conftest.er1
19225 cat conftest.err >&5
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); } && {
19228 test -z "$ac_c_werror_flag" ||
19229 test ! -s conftest.err
19230 } && test -s conftest$ac_exeext &&
19231 $as_test_x conftest$ac_exeext; then
19232 eval "$as_ac_var=yes"
19233 else
19234 echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19237 eval "$as_ac_var=no"
19240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19241 conftest$ac_exeext conftest.$ac_ext
19243 ac_res=`eval echo '${'$as_ac_var'}'`
19244 { echo "$as_me:$LINENO: result: $ac_res" >&5
19245 echo "${ECHO_T}$ac_res" >&6; }
19246 if test `eval echo '${'$as_ac_var'}'` = yes; then
19247 cat >>confdefs.h <<_ACEOF
19248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19249 _ACEOF
19251 else
19252 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
19253 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
19254 { (exit 1); exit 1; }; }
19256 done
19259 done
19263 for ac_func in fseeko
19265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19266 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19269 echo $ECHO_N "(cached) $ECHO_C" >&6
19270 else
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19279 #define $ac_func innocuous_$ac_func
19281 /* System header to define __stub macros and hopefully few prototypes,
19282 which can conflict with char $ac_func (); below.
19283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19284 <limits.h> exists even on freestanding compilers. */
19286 #ifdef __STDC__
19287 # include <limits.h>
19288 #else
19289 # include <assert.h>
19290 #endif
19292 #undef $ac_func
19294 /* Override any GCC internal prototype to avoid an error.
19295 Use char because int might match the return type of a GCC
19296 builtin and then its argument prototype would still apply. */
19297 #ifdef __cplusplus
19298 extern "C"
19299 #endif
19300 char $ac_func ();
19301 /* The GNU C library defines this for functions which it implements
19302 to always fail with ENOSYS. Some functions are actually named
19303 something starting with __ and the normal name is an alias. */
19304 #if defined __stub_$ac_func || defined __stub___$ac_func
19305 choke me
19306 #endif
19309 main ()
19311 return $ac_func ();
19313 return 0;
19315 _ACEOF
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } && {
19330 test -z "$ac_c_werror_flag" ||
19331 test ! -s conftest.err
19332 } && test -s conftest$ac_exeext &&
19333 $as_test_x conftest$ac_exeext; then
19334 eval "$as_ac_var=yes"
19335 else
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 eval "$as_ac_var=no"
19342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19343 conftest$ac_exeext conftest.$ac_ext
19345 ac_res=`eval echo '${'$as_ac_var'}'`
19346 { echo "$as_me:$LINENO: result: $ac_res" >&5
19347 echo "${ECHO_T}$ac_res" >&6; }
19348 if test `eval echo '${'$as_ac_var'}'` = yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19351 _ACEOF
19353 else
19354 case " $LIBOBJS " in
19355 *" $ac_func.$ac_objext "* ) ;;
19356 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19358 esac
19361 done
19364 case $host_os in
19365 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19366 # Mingw uses macros to access Win32 API calls
19367 bsdi*|netbsd*|mingw*)
19369 cat >>confdefs.h <<\_ACEOF
19370 #define HAVE_FSEEKO 1
19371 _ACEOF
19373 ac_cv_func_fseeko=yes;;
19375 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19376 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19377 if test "${ac_cv_sys_largefile_source+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380 while :; do
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19387 #include <sys/types.h> /* for off_t */
19388 #include <stdio.h>
19390 main ()
19392 int (*fp) (FILE *, off_t, int) = fseeko;
19393 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19395 return 0;
19397 _ACEOF
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_link") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest$ac_exeext &&
19415 $as_test_x conftest$ac_exeext; then
19416 ac_cv_sys_largefile_source=no; break
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425 conftest$ac_exeext conftest.$ac_ext
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h. */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19432 #define _LARGEFILE_SOURCE 1
19433 #include <sys/types.h> /* for off_t */
19434 #include <stdio.h>
19436 main ()
19438 int (*fp) (FILE *, off_t, int) = fseeko;
19439 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19441 return 0;
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (ac_try="$ac_link"
19446 case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19449 esac
19450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_link") 2>conftest.er1
19452 ac_status=$?
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } && {
19458 test -z "$ac_c_werror_flag" ||
19459 test ! -s conftest.err
19460 } && test -s conftest$ac_exeext &&
19461 $as_test_x conftest$ac_exeext; then
19462 ac_cv_sys_largefile_source=1; break
19463 else
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19471 conftest$ac_exeext conftest.$ac_ext
19472 ac_cv_sys_largefile_source=unknown
19473 break
19474 done
19476 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19477 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19478 case $ac_cv_sys_largefile_source in #(
19479 no | unknown) ;;
19481 cat >>confdefs.h <<_ACEOF
19482 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19483 _ACEOF
19485 esac
19486 rm -f conftest*
19488 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19489 # in glibc 2.1.3, but that breaks too many other things.
19490 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19491 if test $ac_cv_sys_largefile_source != unknown; then
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_FSEEKO 1
19495 _ACEOF
19499 esac
19503 # Pthreads
19505 # For each platform, we need to know about any special compile and link
19506 # libraries, and whether the normal C function names are thread-safe.
19507 # See the comment at the top of src/port/thread.c for more information.
19508 # WIN32 doesn't need the pthread tests; it always uses threads
19509 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19513 ac_ext=c
19514 ac_cpp='$CPP $CPPFLAGS'
19515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19519 acx_pthread_ok=no
19521 # We used to check for pthread.h first, but this fails if pthread.h
19522 # requires special compiler flags (e.g. on True64 or Sequent).
19523 # It gets checked for in the link test anyway.
19525 # First of all, check if the user has set any of the PTHREAD_LIBS,
19526 # etcetera environment variables, and if threads linking works using
19527 # them:
19528 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19529 save_CFLAGS="$CFLAGS"
19530 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19531 save_LIBS="$LIBS"
19532 LIBS="$PTHREAD_LIBS $LIBS"
19533 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19534 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19535 cat >conftest.$ac_ext <<_ACEOF
19536 /* confdefs.h. */
19537 _ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19542 /* Override any GCC internal prototype to avoid an error.
19543 Use char because int might match the return type of a GCC
19544 builtin and then its argument prototype would still apply. */
19545 #ifdef __cplusplus
19546 extern "C"
19547 #endif
19548 char pthread_join ();
19550 main ()
19552 return pthread_join ();
19554 return 0;
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (ac_try="$ac_link"
19559 case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19562 esac
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_link") 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest$ac_exeext &&
19574 $as_test_x conftest$ac_exeext; then
19575 acx_pthread_ok=yes
19576 else
19577 echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19584 conftest$ac_exeext conftest.$ac_ext
19585 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19586 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19587 if test x"$acx_pthread_ok" = xno; then
19588 PTHREAD_LIBS=""
19589 PTHREAD_CFLAGS=""
19591 LIBS="$save_LIBS"
19592 CFLAGS="$save_CFLAGS"
19595 # We must check for the threads library under a number of different
19596 # names; the ordering is very important because some systems
19597 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19598 # libraries is broken (non-POSIX).
19600 # Create a list of thread flags to try. Items starting with a "-" are
19601 # C compiler flags, and other items are library names, except for "none"
19602 # which indicates that we try without any flags at all, and "pthread-config"
19603 # which is a program returning the flags for the Pth emulation library.
19605 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19607 # The ordering *is* (sometimes) important. Some notes on the
19608 # individual items follow:
19610 # pthreads: AIX (must check this before -lpthread)
19611 # none: in case threads are in libc; should be tried before -Kthread and
19612 # other compiler flags to prevent continual compiler warnings
19613 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19614 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19615 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19616 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19617 # -pthreads: Solaris/gcc
19618 # -mthreads: Mingw32/gcc, Lynx/gcc
19619 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19620 # doesn't hurt to check since this sometimes defines pthreads too;
19621 # also defines -D_REENTRANT)
19622 # pthread: Linux, etcetera
19623 # --thread-safe: KAI C++
19624 # pthread-config: use pthread-config program (for GNU Pth library)
19626 case "${host_cpu}-${host_os}" in
19627 *solaris*)
19629 # On Solaris (at least, for some versions), libc contains stubbed
19630 # (non-functional) versions of the pthreads routines, so link-based
19631 # tests will erroneously succeed. (We need to link with -pthread or
19632 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19633 # a function called by this macro, so we could check for that, but
19634 # who knows whether they'll stub that too in a future libc.) So,
19635 # we'll just look for -pthreads and -lpthread first:
19637 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19639 esac
19641 if test x"$acx_pthread_ok" = xno; then
19642 for flag in $acx_pthread_flags; do
19644 tryPTHREAD_CFLAGS=""
19645 tryPTHREAD_LIBS=""
19646 case $flag in
19647 none)
19648 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19649 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19653 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19654 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19655 tryPTHREAD_CFLAGS="$flag"
19658 pthread-config)
19659 # skip this if we already have flags defined, for PostgreSQL
19660 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19661 # Extract the first word of "pthread-config", so it can be a program name with args.
19662 set dummy pthread-config; ac_word=$2
19663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19665 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668 if test -n "$acx_pthread_config"; then
19669 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19670 else
19671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19672 for as_dir in $PATH
19674 IFS=$as_save_IFS
19675 test -z "$as_dir" && as_dir=.
19676 for ac_exec_ext in '' $ac_executable_extensions; do
19677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19678 ac_cv_prog_acx_pthread_config="yes"
19679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19680 break 2
19682 done
19683 done
19684 IFS=$as_save_IFS
19686 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19689 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19690 if test -n "$acx_pthread_config"; then
19691 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19692 echo "${ECHO_T}$acx_pthread_config" >&6; }
19693 else
19694 { echo "$as_me:$LINENO: result: no" >&5
19695 echo "${ECHO_T}no" >&6; }
19699 if test x"$acx_pthread_config" = xno; then continue; fi
19700 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19701 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19705 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19706 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19707 tryPTHREAD_LIBS="-l$flag"
19709 esac
19711 save_LIBS="$LIBS"
19712 save_CFLAGS="$CFLAGS"
19713 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19714 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19716 # Check for various functions. We must include pthread.h,
19717 # since some functions may be macros. (On the Sequent, we
19718 # need a special flag -Kthread to make this header compile.)
19719 # We check for pthread_join because it is in -lpthread on IRIX
19720 # while pthread_create is in libc. We check for pthread_attr_init
19721 # due to DEC craziness with -lpthreads. We check for
19722 # pthread_cleanup_push because it is one of the few pthread
19723 # functions on Solaris that doesn't have a non-functional libc stub.
19724 # We try pthread_create on general principles.
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <pthread.h>
19733 main ()
19735 pthread_t th; pthread_join(th, 0);
19736 pthread_attr_init(0); pthread_cleanup_push(0, 0);
19737 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19739 return 0;
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_link") 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest$ac_exeext &&
19759 $as_test_x conftest$ac_exeext; then
19760 acx_pthread_ok=yes
19761 else
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 acx_pthread_ok=no
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769 conftest$ac_exeext conftest.$ac_ext
19771 if test "x$acx_pthread_ok" = xyes; then
19772 # Don't use options that are ignored by the compiler.
19773 # We find them by checking stderror.
19774 cat >conftest.$ac_ext <<_ACEOF
19776 main (int argc, char **argv)
19778 (void) argc;
19779 (void) argv;
19780 return 0;
19782 _ACEOF
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19785 # we continue with more flags because Linux needs -lpthread
19786 # for libpq builds on PostgreSQL. The test above only
19787 # tests for building binaries, not shared libraries.
19788 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19789 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19790 else acx_pthread_ok=no
19794 LIBS="$save_LIBS"
19795 CFLAGS="$save_CFLAGS"
19797 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19798 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19799 done
19802 # Various other checks:
19803 if test "x$acx_pthread_ok" = xyes; then
19804 save_LIBS="$LIBS"
19805 LIBS="$PTHREAD_LIBS $LIBS"
19806 save_CFLAGS="$CFLAGS"
19807 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19809 # Detect AIX lossage: threads are created detached by default
19810 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19811 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19812 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 #include <pthread.h>
19821 main ()
19823 int attr=PTHREAD_CREATE_JOINABLE;
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 ok=PTHREAD_CREATE_JOINABLE
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ok=unknown
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19856 if test x"$ok" = xunknown; then
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h. */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 #include <pthread.h>
19865 main ()
19867 int attr=PTHREAD_CREATE_UNDETACHED;
19869 return 0;
19871 _ACEOF
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } && {
19886 test -z "$ac_c_werror_flag" ||
19887 test ! -s conftest.err
19888 } && test -s conftest$ac_exeext &&
19889 $as_test_x conftest$ac_exeext; then
19890 ok=PTHREAD_CREATE_UNDETACHED
19891 else
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ok=unknown
19898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19899 conftest$ac_exeext conftest.$ac_ext
19901 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19903 cat >>confdefs.h <<\_ACEOF
19904 #define PTHREAD_CREATE_JOINABLE $ok
19905 _ACEOF
19908 { echo "$as_me:$LINENO: result: ${ok}" >&5
19909 echo "${ECHO_T}${ok}" >&6; }
19910 if test x"$ok" = xunknown; then
19911 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19912 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19915 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19916 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19917 flag=no
19918 # We always add these in PostgreSQL
19919 # case "${host_cpu}-${host_os}" in
19920 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19921 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19922 # esac
19923 { echo "$as_me:$LINENO: result: ${flag}" >&5
19924 echo "${ECHO_T}${flag}" >&6; }
19925 if test "x$flag" != xno; then
19926 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19929 LIBS="$save_LIBS"
19930 CFLAGS="$save_CFLAGS"
19932 # Supporting cc_r would require a special CC in all places that
19933 # use libpq, and that is ugly, so we don't do it. Users can still
19934 # define their compiler as cc_r to do thread builds of everything.
19935 # More AIX lossage: must compile with cc_r
19936 # Extract the first word of "cc_r", so it can be a program name with args.
19937 set dummy cc_r; ac_word=$2
19938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19940 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 else
19943 if test -n "$PTHREAD_CC"; then
19944 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19945 else
19946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19947 for as_dir in $PATH
19949 IFS=$as_save_IFS
19950 test -z "$as_dir" && as_dir=.
19951 for ac_exec_ext in '' $ac_executable_extensions; do
19952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19953 ac_cv_prog_PTHREAD_CC="cc_r"
19954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19955 break 2
19957 done
19958 done
19959 IFS=$as_save_IFS
19961 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19964 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19965 if test -n "$PTHREAD_CC"; then
19966 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19967 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19968 else
19969 { echo "$as_me:$LINENO: result: no" >&5
19970 echo "${ECHO_T}no" >&6; }
19974 else
19975 PTHREAD_CC="$CC"
19982 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19983 if test x"$acx_pthread_ok" = xyes; then
19985 cat >>confdefs.h <<\_ACEOF
19986 #define HAVE_PTHREAD 1
19987 _ACEOF
19990 else
19991 acx_pthread_ok=no
19994 ac_ext=c
19995 ac_cpp='$CPP $CPPFLAGS'
19996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20000 # set thread flags
20002 # Some platforms use these, so just define them. They can't hurt if they
20003 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
20004 # enables 5-arg getpwuid_r, among other things.
20005 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
20008 # At this point, we don't want to muck with the compiler name for threading.
20009 # Let's see who fails, perhaps AIX. 2004-04-23
20010 if test "$PTHREAD_CC" != "$CC"; then
20011 { { echo "$as_me:$LINENO: error:
20012 PostgreSQL does not support platforms that require a special compiler
20013 for thread safety." >&5
20014 echo "$as_me: error:
20015 PostgreSQL does not support platforms that require a special compiler
20016 for thread safety." >&2;}
20017 { (exit 1); exit 1; }; }
20020 if test "$THREAD_SUPPORT" = no; then
20021 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
20022 This platform is known to not support thread-safe programs. For details,
20023 compile and run src/bin/pg_thread_test." >&5
20024 echo "$as_me: error: cannot enable threads on this platform
20025 This platform is known to not support thread-safe programs. For details,
20026 compile and run src/bin/pg_thread_test." >&2;}
20027 { (exit 1); exit 1; }; }
20030 # Check for *_r functions
20031 _CFLAGS="$CFLAGS"
20032 _LIBS="$LIBS"
20033 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20034 LIBS="$LIBS $PTHREAD_LIBS"
20036 if test "$PORTNAME" != "win32"; then
20037 if test "${ac_cv_header_pthread_h+set}" = set; then
20038 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20039 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20040 if test "${ac_cv_header_pthread_h+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20044 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20045 else
20046 # Is the header compilable?
20047 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
20048 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
20049 cat >conftest.$ac_ext <<_ACEOF
20050 /* confdefs.h. */
20051 _ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 $ac_includes_default
20056 #include <pthread.h>
20057 _ACEOF
20058 rm -f conftest.$ac_objext
20059 if { (ac_try="$ac_compile"
20060 case "(($ac_try" in
20061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062 *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065 (eval "$ac_compile") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest.$ac_objext; then
20075 ac_header_compiler=yes
20076 else
20077 echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_header_compiler=no
20083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20085 echo "${ECHO_T}$ac_header_compiler" >&6; }
20087 # Is the header present?
20088 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
20089 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
20090 cat >conftest.$ac_ext <<_ACEOF
20091 /* confdefs.h. */
20092 _ACEOF
20093 cat confdefs.h >>conftest.$ac_ext
20094 cat >>conftest.$ac_ext <<_ACEOF
20095 /* end confdefs.h. */
20096 #include <pthread.h>
20097 _ACEOF
20098 if { (ac_try="$ac_cpp conftest.$ac_ext"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20105 ac_status=$?
20106 grep -v '^ *+' conftest.er1 >conftest.err
20107 rm -f conftest.er1
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } >/dev/null && {
20111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 }; then
20114 ac_header_preproc=yes
20115 else
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_header_preproc=no
20122 rm -f conftest.err conftest.$ac_ext
20123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20124 echo "${ECHO_T}$ac_header_preproc" >&6; }
20126 # So? What about this header?
20127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20128 yes:no: )
20129 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
20130 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
20132 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
20133 ac_header_preproc=yes
20135 no:yes:* )
20136 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
20137 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
20138 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
20139 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
20140 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
20141 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
20142 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
20143 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
20144 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
20145 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
20146 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
20147 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
20148 ( cat <<\_ASBOX
20149 ## ---------------------------------------- ##
20150 ## Report this to pgsql-bugs@postgresql.org ##
20151 ## ---------------------------------------- ##
20152 _ASBOX
20153 ) | sed "s/^/$as_me: WARNING: /" >&2
20155 esac
20156 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20157 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20158 if test "${ac_cv_header_pthread_h+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 ac_cv_header_pthread_h=$ac_header_preproc
20163 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20164 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20167 if test $ac_cv_header_pthread_h = yes; then
20169 else
20170 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
20171 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
20172 { (exit 1); exit 1; }; }
20181 for ac_func in strerror_r getpwuid_r gethostbyname_r
20183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20184 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20186 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20187 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189 cat >conftest.$ac_ext <<_ACEOF
20190 /* confdefs.h. */
20191 _ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20197 #define $ac_func innocuous_$ac_func
20199 /* System header to define __stub macros and hopefully few prototypes,
20200 which can conflict with char $ac_func (); below.
20201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20202 <limits.h> exists even on freestanding compilers. */
20204 #ifdef __STDC__
20205 # include <limits.h>
20206 #else
20207 # include <assert.h>
20208 #endif
20210 #undef $ac_func
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char $ac_func ();
20219 /* The GNU C library defines this for functions which it implements
20220 to always fail with ENOSYS. Some functions are actually named
20221 something starting with __ and the normal name is an alias. */
20222 #if defined __stub_$ac_func || defined __stub___$ac_func
20223 choke me
20224 #endif
20227 main ()
20229 return $ac_func ();
20231 return 0;
20233 _ACEOF
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20242 ac_status=$?
20243 grep -v '^ *+' conftest.er1 >conftest.err
20244 rm -f conftest.er1
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest$ac_exeext &&
20251 $as_test_x conftest$ac_exeext; then
20252 eval "$as_ac_var=yes"
20253 else
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 eval "$as_ac_var=no"
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20263 ac_res=`eval echo '${'$as_ac_var'}'`
20264 { echo "$as_me:$LINENO: result: $ac_res" >&5
20265 echo "${ECHO_T}$ac_res" >&6; }
20266 if test `eval echo '${'$as_ac_var'}'` = yes; then
20267 cat >>confdefs.h <<_ACEOF
20268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20269 _ACEOF
20272 done
20275 # Do test here with the proper thread flags
20276 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20277 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20278 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20279 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 else
20281 cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h. */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h. */
20287 #include <sys/types.h>
20288 #include <pwd.h>
20290 main ()
20292 uid_t uid;
20293 struct passwd *space;
20294 char *buf;
20295 size_t bufsize;
20296 struct passwd **result;
20297 getpwuid_r(uid, space, buf, bufsize, result);
20299 return 0;
20301 _ACEOF
20302 rm -f conftest.$ac_objext
20303 if { (ac_try="$ac_compile"
20304 case "(($ac_try" in
20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306 *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 pgac_cv_func_getpwuid_r_5arg=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 pgac_cv_func_getpwuid_r_5arg=no
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20329 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20330 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20331 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define GETPWUID_R_5ARG
20335 _ACEOF
20339 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20340 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20341 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <string.h>
20352 main ()
20354 #ifndef _AIX
20355 int strerror_r(int, char *, size_t);
20356 #else
20357 /* Older AIX has 'int' for the third argument so we don't test the args. */
20358 int strerror_r();
20359 #endif
20361 return 0;
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (ac_try="$ac_compile"
20366 case "(($ac_try" in
20367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20368 *) ac_try_echo=$ac_try;;
20369 esac
20370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20371 (eval "$ac_compile") 2>conftest.er1
20372 ac_status=$?
20373 grep -v '^ *+' conftest.er1 >conftest.err
20374 rm -f conftest.er1
20375 cat conftest.err >&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && {
20378 test -z "$ac_c_werror_flag" ||
20379 test ! -s conftest.err
20380 } && test -s conftest.$ac_objext; then
20381 pgac_cv_func_strerror_r_int=yes
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 pgac_cv_func_strerror_r_int=no
20389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20392 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20393 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20395 cat >>confdefs.h <<\_ACEOF
20396 #define STRERROR_R_INT
20397 _ACEOF
20402 CFLAGS="$_CFLAGS"
20403 LIBS="$_LIBS"
20405 else
20406 # do not use values from template file
20407 PTHREAD_CFLAGS=
20408 PTHREAD_LIBS=
20415 # We can test for libldap_r only after we know PTHREAD_LIBS
20416 if test "$with_ldap" = yes ; then
20417 _LIBS="$LIBS"
20418 if test "$PORTNAME" != "win32"; then
20420 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20421 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20422 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 else
20425 ac_check_lib_save_LIBS=$LIBS
20426 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h. */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20437 #ifdef __cplusplus
20438 extern "C"
20439 #endif
20440 char ldap_bind ();
20442 main ()
20444 return ldap_bind ();
20446 return 0;
20448 _ACEOF
20449 rm -f conftest.$ac_objext conftest$ac_exeext
20450 if { (ac_try="$ac_link"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_link") 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest$ac_exeext &&
20466 $as_test_x conftest$ac_exeext; then
20467 ac_cv_lib_ldap_ldap_bind=yes
20468 else
20469 echo "$as_me: failed program was:" >&5
20470 sed 's/^/| /' conftest.$ac_ext >&5
20472 ac_cv_lib_ldap_ldap_bind=no
20475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20476 conftest$ac_exeext conftest.$ac_ext
20477 LIBS=$ac_check_lib_save_LIBS
20479 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20480 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20481 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_LIBLDAP 1
20484 _ACEOF
20486 LIBS="-lldap $LIBS"
20488 else
20489 { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20490 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20491 { (exit 1); exit 1; }; }
20494 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20495 if test "$enable_thread_safety" = yes; then
20496 # on some platforms ldap_r fails to link without PTHREAD_LIBS
20498 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20499 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20500 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 else
20503 ac_check_lib_save_LIBS=$LIBS
20504 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h. */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20512 /* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
20515 #ifdef __cplusplus
20516 extern "C"
20517 #endif
20518 char ldap_simple_bind ();
20520 main ()
20522 return ldap_simple_bind ();
20524 return 0;
20526 _ACEOF
20527 rm -f conftest.$ac_objext conftest$ac_exeext
20528 if { (ac_try="$ac_link"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20532 esac
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_link") 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest$ac_exeext &&
20544 $as_test_x conftest$ac_exeext; then
20545 ac_cv_lib_ldap_r_ldap_simple_bind=yes
20546 else
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ac_cv_lib_ldap_r_ldap_simple_bind=no
20553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20554 conftest$ac_exeext conftest.$ac_ext
20555 LIBS=$ac_check_lib_save_LIBS
20557 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20558 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20559 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20560 cat >>confdefs.h <<_ACEOF
20561 #define HAVE_LIBLDAP_R 1
20562 _ACEOF
20564 LIBS="-lldap_r $LIBS"
20566 else
20567 { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20568 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20569 { (exit 1); exit 1; }; }
20572 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20573 else
20574 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20576 else
20578 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20579 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20580 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 else
20583 ac_check_lib_save_LIBS=$LIBS
20584 LIBS="-lwldap32 $LIBS"
20585 cat >conftest.$ac_ext <<_ACEOF
20586 /* confdefs.h. */
20587 _ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 char ldap_bind ();
20600 main ()
20602 return ldap_bind ();
20604 return 0;
20606 _ACEOF
20607 rm -f conftest.$ac_objext conftest$ac_exeext
20608 if { (ac_try="$ac_link"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20612 esac
20613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20614 (eval "$ac_link") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext &&
20624 $as_test_x conftest$ac_exeext; then
20625 ac_cv_lib_wldap32_ldap_bind=yes
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_cv_lib_wldap32_ldap_bind=no
20633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20637 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20638 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20639 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define HAVE_LIBWLDAP32 1
20642 _ACEOF
20644 LIBS="-lwldap32 $LIBS"
20646 else
20647 { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20648 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20649 { (exit 1); exit 1; }; }
20652 LDAP_LIBS_FE="-lwldap32"
20653 LDAP_LIBS_BE="-lwldap32"
20655 LIBS="$_LIBS"
20661 # This test makes sure that run tests work at all. Sometimes a shared
20662 # library is found by the linker, but the runtime linker can't find it.
20663 # This check should come after all modifications of compiler or linker
20664 # variables, and before any other run tests.
20665 { echo "$as_me:$LINENO: checking test program" >&5
20666 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20667 if test "$cross_compiling" = yes; then
20668 { echo "$as_me:$LINENO: result: cross-compiling" >&5
20669 echo "${ECHO_T}cross-compiling" >&6; }
20670 else
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h. */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 int main() { return 0; }
20678 _ACEOF
20679 rm -f conftest$ac_exeext
20680 if { (ac_try="$ac_link"
20681 case "(($ac_try" in
20682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683 *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686 (eval "$ac_link") 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20690 { (case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_try") 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 { echo "$as_me:$LINENO: result: ok" >&5
20700 echo "${ECHO_T}ok" >&6; }
20701 else
20702 echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ( exit $ac_status )
20707 { echo "$as_me:$LINENO: result: failed" >&5
20708 echo "${ECHO_T}failed" >&6; }
20709 { { echo "$as_me:$LINENO: error:
20710 Could not execute a simple test program. This may be a problem
20711 related to locating shared libraries. Check the file 'config.log'
20712 for the exact reason." >&5
20713 echo "$as_me: error:
20714 Could not execute a simple test program. This may be a problem
20715 related to locating shared libraries. Check the file 'config.log'
20716 for the exact reason." >&2;}
20717 { (exit 1); exit 1; }; }
20719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20724 # --------------------
20725 # Run tests below here
20726 # --------------------
20728 # Force use of our snprintf if system's doesn't do arg control
20729 # See comment above at snprintf test for details.
20730 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20731 { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20732 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20733 if test "${pgac_cv_printf_arg_control+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736 if test "$cross_compiling" = yes; then
20737 pgac_cv_printf_arg_control=cross
20738 else
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h. */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 #include <stdio.h>
20746 #include <string.h>
20748 int main()
20750 char buf[100];
20752 /* can it swap arguments? */
20753 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20754 if (strcmp(buf, "4 3") != 0)
20755 return 1;
20756 return 0;
20758 _ACEOF
20759 rm -f conftest$ac_exeext
20760 if { (ac_try="$ac_link"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_link") 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20770 { (case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_try") 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 pgac_cv_printf_arg_control=yes
20780 else
20781 echo "$as_me: program exited with status $ac_status" >&5
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ( exit $ac_status )
20786 pgac_cv_printf_arg_control=no
20788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20794 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20795 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20797 if test $pgac_cv_printf_arg_control != yes ; then
20798 pgac_need_repl_snprintf=yes
20804 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20805 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20806 if test "${pgac_cv_type_long_int_64+set}" = set; then
20807 echo $ECHO_N "(cached) $ECHO_C" >&6
20808 else
20809 if test "$cross_compiling" = yes; then
20810 # If cross-compiling, check the size reported by the compiler and
20811 # trust that the arithmetic works.
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h. */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h. */
20820 main ()
20822 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20823 test_array [0] = 0
20826 return 0;
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (ac_try="$ac_compile"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_compile") 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest.$ac_objext; then
20846 pgac_cv_type_long_int_64=yes
20847 else
20848 echo "$as_me: failed program was:" >&5
20849 sed 's/^/| /' conftest.$ac_ext >&5
20851 pgac_cv_type_long_int_64=no
20854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 else
20856 cat >conftest.$ac_ext <<_ACEOF
20857 /* confdefs.h. */
20858 _ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20862 typedef long int ac_int64;
20865 * These are globals to discourage the compiler from folding all the
20866 * arithmetic tests down to compile-time constants.
20868 ac_int64 a = 20000001;
20869 ac_int64 b = 40000005;
20871 int does_int64_work()
20873 ac_int64 c,d;
20875 if (sizeof(ac_int64) != 8)
20876 return 0; /* definitely not the right size */
20878 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20879 c = a * b;
20880 d = (c + b) / b;
20881 if (d != a+1)
20882 return 0;
20883 return 1;
20885 main() {
20886 exit(! does_int64_work());
20888 _ACEOF
20889 rm -f conftest$ac_exeext
20890 if { (ac_try="$ac_link"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_link") 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20900 { (case "(($ac_try" in
20901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902 *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905 (eval "$ac_try") 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 pgac_cv_type_long_int_64=yes
20910 else
20911 echo "$as_me: program exited with status $ac_status" >&5
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ( exit $ac_status )
20916 pgac_cv_type_long_int_64=no
20918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20924 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20926 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20927 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20929 cat >>confdefs.h <<\_ACEOF
20930 #define HAVE_LONG_INT_64 1
20931 _ACEOF
20936 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20937 { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20938 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20939 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20940 echo $ECHO_N "(cached) $ECHO_C" >&6
20941 else
20942 if test "$cross_compiling" = yes; then
20943 # If cross-compiling, check the size reported by the compiler and
20944 # trust that the arithmetic works.
20945 cat >conftest.$ac_ext <<_ACEOF
20946 /* confdefs.h. */
20947 _ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20953 main ()
20955 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20956 test_array [0] = 0
20959 return 0;
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (ac_try="$ac_compile"
20964 case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_compile") 2>conftest.er1
20970 ac_status=$?
20971 grep -v '^ *+' conftest.er1 >conftest.err
20972 rm -f conftest.er1
20973 cat conftest.err >&5
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); } && {
20976 test -z "$ac_c_werror_flag" ||
20977 test ! -s conftest.err
20978 } && test -s conftest.$ac_objext; then
20979 pgac_cv_type_long_long_int_64=yes
20980 else
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20984 pgac_cv_type_long_long_int_64=no
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988 else
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 typedef long long int ac_int64;
20998 * These are globals to discourage the compiler from folding all the
20999 * arithmetic tests down to compile-time constants.
21001 ac_int64 a = 20000001;
21002 ac_int64 b = 40000005;
21004 int does_int64_work()
21006 ac_int64 c,d;
21008 if (sizeof(ac_int64) != 8)
21009 return 0; /* definitely not the right size */
21011 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
21012 c = a * b;
21013 d = (c + b) / b;
21014 if (d != a+1)
21015 return 0;
21016 return 1;
21018 main() {
21019 exit(! does_int64_work());
21021 _ACEOF
21022 rm -f conftest$ac_exeext
21023 if { (ac_try="$ac_link"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_link") 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21033 { (case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_try") 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 pgac_cv_type_long_long_int_64=yes
21043 else
21044 echo "$as_me: program exited with status $ac_status" >&5
21045 echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ( exit $ac_status )
21049 pgac_cv_type_long_long_int_64=no
21051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21056 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
21057 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
21059 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
21060 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
21062 cat >>confdefs.h <<\_ACEOF
21063 #define HAVE_LONG_LONG_INT_64 1
21064 _ACEOF
21072 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21080 #define INT64CONST(x) x##LL
21081 long long int foo = INT64CONST(0x1234567890123456);
21084 main ()
21088 return 0;
21090 _ACEOF
21091 rm -f conftest.$ac_objext
21092 if { (ac_try="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21099 ac_status=$?
21100 grep -v '^ *+' conftest.er1 >conftest.err
21101 rm -f conftest.er1
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.$ac_objext; then
21109 cat >>confdefs.h <<\_ACEOF
21110 #define HAVE_LL_CONSTANTS 1
21111 _ACEOF
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 # If we found "long int" is 64 bits, assume snprintf handles it. If
21125 # we found we need to use "long long int", better check. We cope with
21126 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
21127 # work, fall back to our own snprintf emulation (which we know uses %lld).
21129 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
21130 if test $pgac_need_repl_snprintf = no; then
21131 { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
21132 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
21133 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
21134 echo $ECHO_N "(cached) $ECHO_C" >&6
21135 else
21136 for pgac_format in '%lld' '%qd' '%I64d'; do
21137 if test "$cross_compiling" = yes; then
21138 pgac_cv_snprintf_long_long_int_format=cross; break
21139 else
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 #include <stdio.h>
21147 typedef long long int ac_int64;
21148 #define INT64_FORMAT "$pgac_format"
21150 ac_int64 a = 20000001;
21151 ac_int64 b = 40000005;
21153 int does_int64_snprintf_work()
21155 ac_int64 c;
21156 char buf[100];
21158 if (sizeof(ac_int64) != 8)
21159 return 0; /* doesn't look like the right size */
21161 c = a * b;
21162 snprintf(buf, 100, INT64_FORMAT, c);
21163 if (strcmp(buf, "800000140000005") != 0)
21164 return 0; /* either multiply or snprintf is busted */
21165 return 1;
21167 main() {
21168 exit(! does_int64_snprintf_work());
21170 _ACEOF
21171 rm -f conftest$ac_exeext
21172 if { (ac_try="$ac_link"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_link") 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21185 esac
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21191 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
21192 else
21193 echo "$as_me: program exited with status $ac_status" >&5
21194 echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21202 done
21205 LONG_LONG_INT_FORMAT=''
21207 case $pgac_cv_snprintf_long_long_int_format in
21208 cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
21209 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
21210 ?*) { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
21211 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
21212 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
21213 *) { echo "$as_me:$LINENO: result: none" >&5
21214 echo "${ECHO_T}none" >&6; };;
21215 esac
21216 if test "$LONG_LONG_INT_FORMAT" = ""; then
21217 # Force usage of our own snprintf, since system snprintf is broken
21218 pgac_need_repl_snprintf=yes
21219 LONG_LONG_INT_FORMAT='%lld'
21221 else
21222 # Here if we previously decided we needed to use our own snprintf
21223 LONG_LONG_INT_FORMAT='%lld'
21225 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
21226 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
21227 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
21228 else
21229 # Here if we are not using 'long long int' at all
21230 INT64_FORMAT='"%ld"'
21231 UINT64_FORMAT='"%lu"'
21235 cat >>confdefs.h <<_ACEOF
21236 #define INT64_FORMAT $INT64_FORMAT
21237 _ACEOF
21241 cat >>confdefs.h <<_ACEOF
21242 #define UINT64_FORMAT $UINT64_FORMAT
21243 _ACEOF
21246 # Now we have checked all the reasons to replace snprintf
21247 if test $pgac_need_repl_snprintf = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define USE_REPL_SNPRINTF 1
21251 _ACEOF
21253 case " $LIBOBJS " in
21254 *" snprintf.$ac_objext "* ) ;;
21255 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21257 esac
21261 # Need a #define for the size of Datum (unsigned long)
21262 { echo "$as_me:$LINENO: checking for unsigned long" >&5
21263 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
21264 if test "${ac_cv_type_unsigned_long+set}" = set; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21274 typedef unsigned long ac__type_new_;
21276 main ()
21278 if ((ac__type_new_ *) 0)
21279 return 0;
21280 if (sizeof (ac__type_new_))
21281 return 0;
21283 return 0;
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21294 ac_status=$?
21295 grep -v '^ *+' conftest.er1 >conftest.err
21296 rm -f conftest.er1
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_cv_type_unsigned_long=yes
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_cv_type_unsigned_long=no
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21314 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21316 # The cast to long int works around a bug in the HP C Compiler
21317 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21318 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21319 # This bug is HP SR number 8606223364.
21320 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21321 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21322 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 else
21325 if test "$cross_compiling" = yes; then
21326 # Depending upon the size, compute the lo and hi bounds.
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 $ac_includes_default
21334 typedef unsigned long ac__type_sizeof_;
21336 main ()
21338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21339 test_array [0] = 0
21342 return 0;
21344 _ACEOF
21345 rm -f conftest.$ac_objext
21346 if { (ac_try="$ac_compile"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352 (eval "$ac_compile") 2>conftest.er1
21353 ac_status=$?
21354 grep -v '^ *+' conftest.er1 >conftest.err
21355 rm -f conftest.er1
21356 cat conftest.err >&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && {
21359 test -z "$ac_c_werror_flag" ||
21360 test ! -s conftest.err
21361 } && test -s conftest.$ac_objext; then
21362 ac_lo=0 ac_mid=0
21363 while :; do
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h. */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 typedef unsigned long ac__type_sizeof_;
21373 main ()
21375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21376 test_array [0] = 0
21379 return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_hi=$ac_mid; break
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_lo=`expr $ac_mid + 1`
21405 if test $ac_lo -le $ac_mid; then
21406 ac_lo= ac_hi=
21407 break
21409 ac_mid=`expr 2 '*' $ac_mid + 1`
21412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21413 done
21414 else
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 $ac_includes_default
21425 typedef unsigned long ac__type_sizeof_;
21427 main ()
21429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21430 test_array [0] = 0
21433 return 0;
21435 _ACEOF
21436 rm -f conftest.$ac_objext
21437 if { (ac_try="$ac_compile"
21438 case "(($ac_try" in
21439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440 *) ac_try_echo=$ac_try;;
21441 esac
21442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21443 (eval "$ac_compile") 2>conftest.er1
21444 ac_status=$?
21445 grep -v '^ *+' conftest.er1 >conftest.err
21446 rm -f conftest.er1
21447 cat conftest.err >&5
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); } && {
21450 test -z "$ac_c_werror_flag" ||
21451 test ! -s conftest.err
21452 } && test -s conftest.$ac_objext; then
21453 ac_hi=-1 ac_mid=-1
21454 while :; do
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21462 typedef unsigned long ac__type_sizeof_;
21464 main ()
21466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21467 test_array [0] = 0
21470 return 0;
21472 _ACEOF
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_compile") 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } && {
21487 test -z "$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 } && test -s conftest.$ac_objext; then
21490 ac_lo=$ac_mid; break
21491 else
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_hi=`expr '(' $ac_mid ')' - 1`
21496 if test $ac_mid -le $ac_hi; then
21497 ac_lo= ac_hi=
21498 break
21500 ac_mid=`expr 2 '*' $ac_mid`
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 done
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ac_lo= ac_hi=
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 # Binary search between lo and hi bounds.
21517 while test "x$ac_lo" != "x$ac_hi"; do
21518 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h. */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 $ac_includes_default
21526 typedef unsigned long ac__type_sizeof_;
21528 main ()
21530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21531 test_array [0] = 0
21534 return 0;
21536 _ACEOF
21537 rm -f conftest.$ac_objext
21538 if { (ac_try="$ac_compile"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_compile") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest.$ac_objext; then
21554 ac_hi=$ac_mid
21555 else
21556 echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_lo=`expr '(' $ac_mid ')' + 1`
21562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21563 done
21564 case $ac_lo in
21565 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21566 '') if test "$ac_cv_type_unsigned_long" = yes; then
21567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21568 See \`config.log' for more details." >&5
21569 echo "$as_me: error: cannot compute sizeof (unsigned long)
21570 See \`config.log' for more details." >&2;}
21571 { (exit 77); exit 77; }; }
21572 else
21573 ac_cv_sizeof_unsigned_long=0
21574 fi ;;
21575 esac
21576 else
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 $ac_includes_default
21584 typedef unsigned long ac__type_sizeof_;
21585 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21586 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21587 #include <stdio.h>
21588 #include <stdlib.h>
21590 main ()
21593 FILE *f = fopen ("conftest.val", "w");
21594 if (! f)
21595 return 1;
21596 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21598 long int i = longval ();
21599 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21600 return 1;
21601 fprintf (f, "%ld\n", i);
21603 else
21605 unsigned long int i = ulongval ();
21606 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21607 return 1;
21608 fprintf (f, "%lu\n", i);
21610 return ferror (f) || fclose (f) != 0;
21613 return 0;
21615 _ACEOF
21616 rm -f conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_link") 2>&5
21624 ac_status=$?
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21627 { (case "(($ac_try" in
21628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629 *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632 (eval "$ac_try") 2>&5
21633 ac_status=$?
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; }; then
21636 ac_cv_sizeof_unsigned_long=`cat conftest.val`
21637 else
21638 echo "$as_me: program exited with status $ac_status" >&5
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 ( exit $ac_status )
21643 if test "$ac_cv_type_unsigned_long" = yes; then
21644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21645 See \`config.log' for more details." >&5
21646 echo "$as_me: error: cannot compute sizeof (unsigned long)
21647 See \`config.log' for more details." >&2;}
21648 { (exit 77); exit 77; }; }
21649 else
21650 ac_cv_sizeof_unsigned_long=0
21653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21655 rm -f conftest.val
21657 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21658 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21662 cat >>confdefs.h <<_ACEOF
21663 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21664 _ACEOF
21668 # And check size of void *, size_t (enables tweaks for > 32bit address space)
21669 { echo "$as_me:$LINENO: checking for void *" >&5
21670 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21671 if test "${ac_cv_type_void_p+set}" = set; then
21672 echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 typedef void * ac__type_new_;
21683 main ()
21685 if ((ac__type_new_ *) 0)
21686 return 0;
21687 if (sizeof (ac__type_new_))
21688 return 0;
21690 return 0;
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21701 ac_status=$?
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_cv_type_void_p=yes
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_cv_type_void_p=no
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21721 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21723 # The cast to long int works around a bug in the HP C Compiler
21724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21726 # This bug is HP SR number 8606223364.
21727 { echo "$as_me:$LINENO: checking size of void *" >&5
21728 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21729 if test "${ac_cv_sizeof_void_p+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 else
21732 if test "$cross_compiling" = yes; then
21733 # Depending upon the size, compute the lo and hi bounds.
21734 cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h. */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 $ac_includes_default
21741 typedef void * ac__type_sizeof_;
21743 main ()
21745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21746 test_array [0] = 0
21749 return 0;
21751 _ACEOF
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21769 ac_lo=0 ac_mid=0
21770 while :; do
21771 cat >conftest.$ac_ext <<_ACEOF
21772 /* confdefs.h. */
21773 _ACEOF
21774 cat confdefs.h >>conftest.$ac_ext
21775 cat >>conftest.$ac_ext <<_ACEOF
21776 /* end confdefs.h. */
21777 $ac_includes_default
21778 typedef void * ac__type_sizeof_;
21780 main ()
21782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21783 test_array [0] = 0
21786 return 0;
21788 _ACEOF
21789 rm -f conftest.$ac_objext
21790 if { (ac_try="$ac_compile"
21791 case "(($ac_try" in
21792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21793 *) ac_try_echo=$ac_try;;
21794 esac
21795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21796 (eval "$ac_compile") 2>conftest.er1
21797 ac_status=$?
21798 grep -v '^ *+' conftest.er1 >conftest.err
21799 rm -f conftest.er1
21800 cat conftest.err >&5
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest.$ac_objext; then
21806 ac_hi=$ac_mid; break
21807 else
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_lo=`expr $ac_mid + 1`
21812 if test $ac_lo -le $ac_mid; then
21813 ac_lo= ac_hi=
21814 break
21816 ac_mid=`expr 2 '*' $ac_mid + 1`
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 done
21821 else
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 $ac_includes_default
21832 typedef void * ac__type_sizeof_;
21834 main ()
21836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21837 test_array [0] = 0
21840 return 0;
21842 _ACEOF
21843 rm -f conftest.$ac_objext
21844 if { (ac_try="$ac_compile"
21845 case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848 esac
21849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest.$ac_objext; then
21860 ac_hi=-1 ac_mid=-1
21861 while :; do
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 $ac_includes_default
21869 typedef void * ac__type_sizeof_;
21871 main ()
21873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21874 test_array [0] = 0
21877 return 0;
21879 _ACEOF
21880 rm -f conftest.$ac_objext
21881 if { (ac_try="$ac_compile"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21885 esac
21886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_compile") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest.$ac_objext; then
21897 ac_lo=$ac_mid; break
21898 else
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ac_hi=`expr '(' $ac_mid ')' - 1`
21903 if test $ac_mid -le $ac_hi; then
21904 ac_lo= ac_hi=
21905 break
21907 ac_mid=`expr 2 '*' $ac_mid`
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21911 done
21912 else
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_lo= ac_hi=
21919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 # Binary search between lo and hi bounds.
21924 while test "x$ac_lo" != "x$ac_hi"; do
21925 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21926 cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h. */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 $ac_includes_default
21933 typedef void * ac__type_sizeof_;
21935 main ()
21937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21938 test_array [0] = 0
21941 return 0;
21943 _ACEOF
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21952 ac_status=$?
21953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_hi=$ac_mid
21962 else
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_lo=`expr '(' $ac_mid ')' + 1`
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 done
21971 case $ac_lo in
21972 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21973 '') if test "$ac_cv_type_void_p" = yes; then
21974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21975 See \`config.log' for more details." >&5
21976 echo "$as_me: error: cannot compute sizeof (void *)
21977 See \`config.log' for more details." >&2;}
21978 { (exit 77); exit 77; }; }
21979 else
21980 ac_cv_sizeof_void_p=0
21981 fi ;;
21982 esac
21983 else
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h. */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21991 typedef void * ac__type_sizeof_;
21992 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21993 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21994 #include <stdio.h>
21995 #include <stdlib.h>
21997 main ()
22000 FILE *f = fopen ("conftest.val", "w");
22001 if (! f)
22002 return 1;
22003 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22005 long int i = longval ();
22006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22007 return 1;
22008 fprintf (f, "%ld\n", i);
22010 else
22012 unsigned long int i = ulongval ();
22013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22014 return 1;
22015 fprintf (f, "%lu\n", i);
22017 return ferror (f) || fclose (f) != 0;
22020 return 0;
22022 _ACEOF
22023 rm -f conftest$ac_exeext
22024 if { (ac_try="$ac_link"
22025 case "(($ac_try" in
22026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027 *) ac_try_echo=$ac_try;;
22028 esac
22029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22030 (eval "$ac_link") 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22034 { (case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_try") 2>&5
22040 ac_status=$?
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 ac_cv_sizeof_void_p=`cat conftest.val`
22044 else
22045 echo "$as_me: program exited with status $ac_status" >&5
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ( exit $ac_status )
22050 if test "$ac_cv_type_void_p" = yes; then
22051 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22052 See \`config.log' for more details." >&5
22053 echo "$as_me: error: cannot compute sizeof (void *)
22054 See \`config.log' for more details." >&2;}
22055 { (exit 77); exit 77; }; }
22056 else
22057 ac_cv_sizeof_void_p=0
22060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22062 rm -f conftest.val
22064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22065 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22069 cat >>confdefs.h <<_ACEOF
22070 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22071 _ACEOF
22074 { echo "$as_me:$LINENO: checking for size_t" >&5
22075 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22076 if test "${ac_cv_type_size_t+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079 cat >conftest.$ac_ext <<_ACEOF
22080 /* confdefs.h. */
22081 _ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 $ac_includes_default
22086 typedef size_t ac__type_new_;
22088 main ()
22090 if ((ac__type_new_ *) 0)
22091 return 0;
22092 if (sizeof (ac__type_new_))
22093 return 0;
22095 return 0;
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_compile") 2>conftest.er1
22106 ac_status=$?
22107 grep -v '^ *+' conftest.er1 >conftest.err
22108 rm -f conftest.er1
22109 cat conftest.err >&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); } && {
22112 test -z "$ac_c_werror_flag" ||
22113 test ! -s conftest.err
22114 } && test -s conftest.$ac_objext; then
22115 ac_cv_type_size_t=yes
22116 else
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22120 ac_cv_type_size_t=no
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22126 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22128 # The cast to long int works around a bug in the HP C Compiler
22129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22131 # This bug is HP SR number 8606223364.
22132 { echo "$as_me:$LINENO: checking size of size_t" >&5
22133 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22134 if test "${ac_cv_sizeof_size_t+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 if test "$cross_compiling" = yes; then
22138 # Depending upon the size, compute the lo and hi bounds.
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 $ac_includes_default
22146 typedef size_t ac__type_sizeof_;
22148 main ()
22150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22151 test_array [0] = 0
22154 return 0;
22156 _ACEOF
22157 rm -f conftest.$ac_objext
22158 if { (ac_try="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162 esac
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22165 ac_status=$?
22166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22174 ac_lo=0 ac_mid=0
22175 while :; do
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 $ac_includes_default
22183 typedef size_t ac__type_sizeof_;
22185 main ()
22187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22188 test_array [0] = 0
22191 return 0;
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_compile") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } && {
22208 test -z "$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 } && test -s conftest.$ac_objext; then
22211 ac_hi=$ac_mid; break
22212 else
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22216 ac_lo=`expr $ac_mid + 1`
22217 if test $ac_lo -le $ac_mid; then
22218 ac_lo= ac_hi=
22219 break
22221 ac_mid=`expr 2 '*' $ac_mid + 1`
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 done
22226 else
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 $ac_includes_default
22237 typedef size_t ac__type_sizeof_;
22239 main ()
22241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22242 test_array [0] = 0
22245 return 0;
22247 _ACEOF
22248 rm -f conftest.$ac_objext
22249 if { (ac_try="$ac_compile"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_compile") 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest.$ac_objext; then
22265 ac_hi=-1 ac_mid=-1
22266 while :; do
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h. */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 $ac_includes_default
22274 typedef size_t ac__type_sizeof_;
22276 main ()
22278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22279 test_array [0] = 0
22282 return 0;
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (ac_try="$ac_compile"
22287 case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_compile") 2>conftest.er1
22293 ac_status=$?
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && {
22299 test -z "$ac_c_werror_flag" ||
22300 test ! -s conftest.err
22301 } && test -s conftest.$ac_objext; then
22302 ac_lo=$ac_mid; break
22303 else
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 ac_hi=`expr '(' $ac_mid ')' - 1`
22308 if test $ac_mid -le $ac_hi; then
22309 ac_lo= ac_hi=
22310 break
22312 ac_mid=`expr 2 '*' $ac_mid`
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 done
22317 else
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_lo= ac_hi=
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328 # Binary search between lo and hi bounds.
22329 while test "x$ac_lo" != "x$ac_hi"; do
22330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22331 cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h. */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 $ac_includes_default
22338 typedef size_t ac__type_sizeof_;
22340 main ()
22342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22343 test_array [0] = 0
22346 return 0;
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22357 ac_status=$?
22358 grep -v '^ *+' conftest.er1 >conftest.err
22359 rm -f conftest.er1
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_hi=$ac_mid
22367 else
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 ac_lo=`expr '(' $ac_mid ')' + 1`
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 done
22376 case $ac_lo in
22377 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22378 '') if test "$ac_cv_type_size_t" = yes; then
22379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22380 See \`config.log' for more details." >&5
22381 echo "$as_me: error: cannot compute sizeof (size_t)
22382 See \`config.log' for more details." >&2;}
22383 { (exit 77); exit 77; }; }
22384 else
22385 ac_cv_sizeof_size_t=0
22386 fi ;;
22387 esac
22388 else
22389 cat >conftest.$ac_ext <<_ACEOF
22390 /* confdefs.h. */
22391 _ACEOF
22392 cat confdefs.h >>conftest.$ac_ext
22393 cat >>conftest.$ac_ext <<_ACEOF
22394 /* end confdefs.h. */
22395 $ac_includes_default
22396 typedef size_t ac__type_sizeof_;
22397 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22398 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22399 #include <stdio.h>
22400 #include <stdlib.h>
22402 main ()
22405 FILE *f = fopen ("conftest.val", "w");
22406 if (! f)
22407 return 1;
22408 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22410 long int i = longval ();
22411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22412 return 1;
22413 fprintf (f, "%ld\n", i);
22415 else
22417 unsigned long int i = ulongval ();
22418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22419 return 1;
22420 fprintf (f, "%lu\n", i);
22422 return ferror (f) || fclose (f) != 0;
22425 return 0;
22427 _ACEOF
22428 rm -f conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22439 { (case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22442 esac
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444 (eval "$ac_try") 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; }; then
22448 ac_cv_sizeof_size_t=`cat conftest.val`
22449 else
22450 echo "$as_me: program exited with status $ac_status" >&5
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22454 ( exit $ac_status )
22455 if test "$ac_cv_type_size_t" = yes; then
22456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22457 See \`config.log' for more details." >&5
22458 echo "$as_me: error: cannot compute sizeof (size_t)
22459 See \`config.log' for more details." >&2;}
22460 { (exit 77); exit 77; }; }
22461 else
22462 ac_cv_sizeof_size_t=0
22465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 rm -f conftest.val
22469 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22470 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22474 cat >>confdefs.h <<_ACEOF
22475 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22476 _ACEOF
22480 # Decide whether float4 is passed by value: user-selectable, enabled by default
22481 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22482 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22484 pgac_args="$pgac_args enable_float4_byval"
22486 # Check whether --enable-float4-byval was given.
22487 if test "${enable_float4_byval+set}" = set; then
22488 enableval=$enable_float4_byval;
22489 case $enableval in
22490 yes)
22492 cat >>confdefs.h <<\_ACEOF
22493 #define USE_FLOAT4_BYVAL 1
22494 _ACEOF
22496 float4passbyval=true
22499 float4passbyval=false
22502 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22503 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22504 { (exit 1); exit 1; }; }
22506 esac
22508 else
22509 enable_float4_byval=yes
22511 cat >>confdefs.h <<\_ACEOF
22512 #define USE_FLOAT4_BYVAL 1
22513 _ACEOF
22515 float4passbyval=true
22519 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22520 echo "${ECHO_T}$enable_float4_byval" >&6; }
22522 cat >>confdefs.h <<_ACEOF
22523 #define FLOAT4PASSBYVAL $float4passbyval
22524 _ACEOF
22527 # Decide whether float8 is passed by value.
22528 # Note: this setting also controls int8 and related types such as timestamp.
22529 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22530 # If not, trying to select it is an error.
22531 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22532 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22533 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22535 pgac_args="$pgac_args enable_float8_byval"
22537 # Check whether --enable-float8-byval was given.
22538 if test "${enable_float8_byval+set}" = set; then
22539 enableval=$enable_float8_byval;
22540 case $enableval in
22541 yes)
22548 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22549 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22550 { (exit 1); exit 1; }; }
22552 esac
22554 else
22555 enable_float8_byval=yes
22560 else
22562 pgac_args="$pgac_args enable_float8_byval"
22564 # Check whether --enable-float8-byval was given.
22565 if test "${enable_float8_byval+set}" = set; then
22566 enableval=$enable_float8_byval;
22567 case $enableval in
22568 yes)
22575 { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22576 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22577 { (exit 1); exit 1; }; }
22579 esac
22581 else
22582 enable_float8_byval=no
22587 if test "$enable_float8_byval" = yes ; then
22588 { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22589 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22590 { (exit 1); exit 1; }; }
22593 if test "$enable_float8_byval" = yes ; then
22595 cat >>confdefs.h <<\_ACEOF
22596 #define USE_FLOAT8_BYVAL 1
22597 _ACEOF
22599 float8passbyval=true
22600 else
22601 float8passbyval=false
22603 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22604 echo "${ECHO_T}$enable_float8_byval" >&6; }
22606 cat >>confdefs.h <<_ACEOF
22607 #define FLOAT8PASSBYVAL $float8passbyval
22608 _ACEOF
22611 # Determine memory alignment requirements for the basic C data types.
22613 { echo "$as_me:$LINENO: checking for short" >&5
22614 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22615 if test "${ac_cv_type_short+set}" = set; then
22616 echo $ECHO_N "(cached) $ECHO_C" >&6
22617 else
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 $ac_includes_default
22625 typedef short ac__type_new_;
22627 main ()
22629 if ((ac__type_new_ *) 0)
22630 return 0;
22631 if (sizeof (ac__type_new_))
22632 return 0;
22634 return 0;
22636 _ACEOF
22637 rm -f conftest.$ac_objext
22638 if { (ac_try="$ac_compile"
22639 case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642 esac
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_compile") 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest.$ac_objext; then
22654 ac_cv_type_short=yes
22655 else
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22659 ac_cv_type_short=no
22662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22664 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22665 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22667 # The cast to long int works around a bug in the HP C Compiler,
22668 # see AC_CHECK_SIZEOF for more information.
22669 { echo "$as_me:$LINENO: checking alignment of short" >&5
22670 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22671 if test "${ac_cv_alignof_short+set}" = set; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673 else
22674 if test "$cross_compiling" = yes; then
22675 # Depending upon the size, compute the lo and hi bounds.
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22683 #ifndef offsetof
22684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22685 #endif
22686 typedef struct { char x; short y; } ac__type_alignof_;
22688 main ()
22690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22691 test_array [0] = 0
22694 return 0;
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_lo=0 ac_mid=0
22715 while :; do
22716 cat >conftest.$ac_ext <<_ACEOF
22717 /* confdefs.h. */
22718 _ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 #ifndef offsetof
22724 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22725 #endif
22726 typedef struct { char x; short y; } ac__type_alignof_;
22728 main ()
22730 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22731 test_array [0] = 0
22734 return 0;
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_hi=$ac_mid; break
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_lo=`expr $ac_mid + 1`
22760 if test $ac_lo -le $ac_mid; then
22761 ac_lo= ac_hi=
22762 break
22764 ac_mid=`expr 2 '*' $ac_mid + 1`
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768 done
22769 else
22770 echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.$ac_ext >&5
22773 cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h. */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 $ac_includes_default
22780 #ifndef offsetof
22781 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22782 #endif
22783 typedef struct { char x; short y; } ac__type_alignof_;
22785 main ()
22787 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22788 test_array [0] = 0
22791 return 0;
22793 _ACEOF
22794 rm -f conftest.$ac_objext
22795 if { (ac_try="$ac_compile"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22801 (eval "$ac_compile") 2>conftest.er1
22802 ac_status=$?
22803 grep -v '^ *+' conftest.er1 >conftest.err
22804 rm -f conftest.er1
22805 cat conftest.err >&5
22806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807 (exit $ac_status); } && {
22808 test -z "$ac_c_werror_flag" ||
22809 test ! -s conftest.err
22810 } && test -s conftest.$ac_objext; then
22811 ac_hi=-1 ac_mid=-1
22812 while :; do
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 $ac_includes_default
22820 #ifndef offsetof
22821 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22822 #endif
22823 typedef struct { char x; short y; } ac__type_alignof_;
22825 main ()
22827 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22828 test_array [0] = 0
22831 return 0;
22833 _ACEOF
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22842 ac_status=$?
22843 grep -v '^ *+' conftest.er1 >conftest.err
22844 rm -f conftest.er1
22845 cat conftest.err >&5
22846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && {
22848 test -z "$ac_c_werror_flag" ||
22849 test ! -s conftest.err
22850 } && test -s conftest.$ac_objext; then
22851 ac_lo=$ac_mid; break
22852 else
22853 echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22856 ac_hi=`expr '(' $ac_mid ')' - 1`
22857 if test $ac_mid -le $ac_hi; then
22858 ac_lo= ac_hi=
22859 break
22861 ac_mid=`expr 2 '*' $ac_mid`
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22865 done
22866 else
22867 echo "$as_me: failed program was:" >&5
22868 sed 's/^/| /' conftest.$ac_ext >&5
22870 ac_lo= ac_hi=
22873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 # Binary search between lo and hi bounds.
22878 while test "x$ac_lo" != "x$ac_hi"; do
22879 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 #ifndef offsetof
22888 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22889 #endif
22890 typedef struct { char x; short y; } ac__type_alignof_;
22892 main ()
22894 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22895 test_array [0] = 0
22898 return 0;
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22909 ac_status=$?
22910 grep -v '^ *+' conftest.er1 >conftest.err
22911 rm -f conftest.er1
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22918 ac_hi=$ac_mid
22919 else
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_lo=`expr '(' $ac_mid ')' + 1`
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 done
22928 case $ac_lo in
22929 ?*) ac_cv_alignof_short=$ac_lo;;
22930 '') if test "$ac_cv_type_short" = yes; then
22931 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22932 See \`config.log' for more details." >&5
22933 echo "$as_me: error: cannot compute alignment of short
22934 See \`config.log' for more details." >&2;}
22935 { (exit 77); exit 77; }; }
22936 else
22937 ac_cv_alignof_short=0
22938 fi ;;
22939 esac
22940 else
22941 cat >conftest.$ac_ext <<_ACEOF
22942 /* confdefs.h. */
22943 _ACEOF
22944 cat confdefs.h >>conftest.$ac_ext
22945 cat >>conftest.$ac_ext <<_ACEOF
22946 /* end confdefs.h. */
22947 $ac_includes_default
22948 #ifndef offsetof
22949 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22950 #endif
22951 typedef struct { char x; short y; } ac__type_alignof_;
22952 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22953 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22954 #include <stdio.h>
22955 #include <stdlib.h>
22957 main ()
22960 FILE *f = fopen ("conftest.val", "w");
22961 if (! f)
22962 return 1;
22963 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22965 long int i = longval ();
22966 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22967 return 1;
22968 fprintf (f, "%ld\n", i);
22970 else
22972 unsigned long int i = ulongval ();
22973 if (i != ((long int) offsetof (ac__type_alignof_, y)))
22974 return 1;
22975 fprintf (f, "%lu\n", i);
22977 return ferror (f) || fclose (f) != 0;
22980 return 0;
22982 _ACEOF
22983 rm -f conftest$ac_exeext
22984 if { (ac_try="$ac_link"
22985 case "(($ac_try" in
22986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987 *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990 (eval "$ac_link") 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22994 { (case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_try") 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; }; then
23003 ac_cv_alignof_short=`cat conftest.val`
23004 else
23005 echo "$as_me: program exited with status $ac_status" >&5
23006 echo "$as_me: failed program was:" >&5
23007 sed 's/^/| /' conftest.$ac_ext >&5
23009 ( exit $ac_status )
23010 if test "$ac_cv_type_short" = yes; then
23011 { { echo "$as_me:$LINENO: error: cannot compute alignment of short
23012 See \`config.log' for more details." >&5
23013 echo "$as_me: error: cannot compute alignment of short
23014 See \`config.log' for more details." >&2;}
23015 { (exit 77); exit 77; }; }
23016 else
23017 ac_cv_alignof_short=0
23020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23022 rm -f conftest.val
23024 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
23025 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
23029 cat >>confdefs.h <<_ACEOF
23030 #define ALIGNOF_SHORT $ac_cv_alignof_short
23031 _ACEOF
23034 { echo "$as_me:$LINENO: checking for int" >&5
23035 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23036 if test "${ac_cv_type_int+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 typedef int ac__type_new_;
23048 main ()
23050 if ((ac__type_new_ *) 0)
23051 return 0;
23052 if (sizeof (ac__type_new_))
23053 return 0;
23055 return 0;
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23066 ac_status=$?
23067 grep -v '^ *+' conftest.er1 >conftest.err
23068 rm -f conftest.er1
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_cv_type_int=yes
23076 else
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 ac_cv_type_int=no
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23086 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23088 # The cast to long int works around a bug in the HP C Compiler,
23089 # see AC_CHECK_SIZEOF for more information.
23090 { echo "$as_me:$LINENO: checking alignment of int" >&5
23091 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
23092 if test "${ac_cv_alignof_int+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095 if test "$cross_compiling" = yes; then
23096 # Depending upon the size, compute the lo and hi bounds.
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 $ac_includes_default
23104 #ifndef offsetof
23105 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23106 #endif
23107 typedef struct { char x; int y; } ac__type_alignof_;
23109 main ()
23111 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23112 test_array [0] = 0
23115 return 0;
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_lo=0 ac_mid=0
23136 while :; do
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 $ac_includes_default
23144 #ifndef offsetof
23145 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23146 #endif
23147 typedef struct { char x; int y; } ac__type_alignof_;
23149 main ()
23151 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23152 test_array [0] = 0
23155 return 0;
23157 _ACEOF
23158 rm -f conftest.$ac_objext
23159 if { (ac_try="$ac_compile"
23160 case "(($ac_try" in
23161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162 *) ac_try_echo=$ac_try;;
23163 esac
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165 (eval "$ac_compile") 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } && {
23172 test -z "$ac_c_werror_flag" ||
23173 test ! -s conftest.err
23174 } && test -s conftest.$ac_objext; then
23175 ac_hi=$ac_mid; break
23176 else
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ac_lo=`expr $ac_mid + 1`
23181 if test $ac_lo -le $ac_mid; then
23182 ac_lo= ac_hi=
23183 break
23185 ac_mid=`expr 2 '*' $ac_mid + 1`
23188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189 done
23190 else
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23194 cat >conftest.$ac_ext <<_ACEOF
23195 /* confdefs.h. */
23196 _ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23200 $ac_includes_default
23201 #ifndef offsetof
23202 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23203 #endif
23204 typedef struct { char x; int y; } ac__type_alignof_;
23206 main ()
23208 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23209 test_array [0] = 0
23212 return 0;
23214 _ACEOF
23215 rm -f conftest.$ac_objext
23216 if { (ac_try="$ac_compile"
23217 case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_compile") 2>conftest.er1
23223 ac_status=$?
23224 grep -v '^ *+' conftest.er1 >conftest.err
23225 rm -f conftest.er1
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } && {
23229 test -z "$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23231 } && test -s conftest.$ac_objext; then
23232 ac_hi=-1 ac_mid=-1
23233 while :; do
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h. */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23240 $ac_includes_default
23241 #ifndef offsetof
23242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23243 #endif
23244 typedef struct { char x; int y; } ac__type_alignof_;
23246 main ()
23248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23249 test_array [0] = 0
23252 return 0;
23254 _ACEOF
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23260 esac
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23263 ac_status=$?
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_lo=$ac_mid; break
23273 else
23274 echo "$as_me: failed program was:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_hi=`expr '(' $ac_mid ')' - 1`
23278 if test $ac_mid -le $ac_hi; then
23279 ac_lo= ac_hi=
23280 break
23282 ac_mid=`expr 2 '*' $ac_mid`
23285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23286 done
23287 else
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23291 ac_lo= ac_hi=
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23298 # Binary search between lo and hi bounds.
23299 while test "x$ac_lo" != "x$ac_hi"; do
23300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23301 cat >conftest.$ac_ext <<_ACEOF
23302 /* confdefs.h. */
23303 _ACEOF
23304 cat confdefs.h >>conftest.$ac_ext
23305 cat >>conftest.$ac_ext <<_ACEOF
23306 /* end confdefs.h. */
23307 $ac_includes_default
23308 #ifndef offsetof
23309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23310 #endif
23311 typedef struct { char x; int y; } ac__type_alignof_;
23313 main ()
23315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23316 test_array [0] = 0
23319 return 0;
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23339 ac_hi=$ac_mid
23340 else
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_lo=`expr '(' $ac_mid ')' + 1`
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 done
23349 case $ac_lo in
23350 ?*) ac_cv_alignof_int=$ac_lo;;
23351 '') if test "$ac_cv_type_int" = yes; then
23352 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23353 See \`config.log' for more details." >&5
23354 echo "$as_me: error: cannot compute alignment of int
23355 See \`config.log' for more details." >&2;}
23356 { (exit 77); exit 77; }; }
23357 else
23358 ac_cv_alignof_int=0
23359 fi ;;
23360 esac
23361 else
23362 cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h. */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h. */
23368 $ac_includes_default
23369 #ifndef offsetof
23370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23371 #endif
23372 typedef struct { char x; int y; } ac__type_alignof_;
23373 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23374 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23375 #include <stdio.h>
23376 #include <stdlib.h>
23378 main ()
23381 FILE *f = fopen ("conftest.val", "w");
23382 if (! f)
23383 return 1;
23384 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23386 long int i = longval ();
23387 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23388 return 1;
23389 fprintf (f, "%ld\n", i);
23391 else
23393 unsigned long int i = ulongval ();
23394 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23395 return 1;
23396 fprintf (f, "%lu\n", i);
23398 return ferror (f) || fclose (f) != 0;
23401 return 0;
23403 _ACEOF
23404 rm -f conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23409 esac
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_link") 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23415 { (case "(($ac_try" in
23416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417 *) ac_try_echo=$ac_try;;
23418 esac
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420 (eval "$ac_try") 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; }; then
23424 ac_cv_alignof_int=`cat conftest.val`
23425 else
23426 echo "$as_me: program exited with status $ac_status" >&5
23427 echo "$as_me: failed program was:" >&5
23428 sed 's/^/| /' conftest.$ac_ext >&5
23430 ( exit $ac_status )
23431 if test "$ac_cv_type_int" = yes; then
23432 { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23433 See \`config.log' for more details." >&5
23434 echo "$as_me: error: cannot compute alignment of int
23435 See \`config.log' for more details." >&2;}
23436 { (exit 77); exit 77; }; }
23437 else
23438 ac_cv_alignof_int=0
23441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23443 rm -f conftest.val
23445 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23446 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23450 cat >>confdefs.h <<_ACEOF
23451 #define ALIGNOF_INT $ac_cv_alignof_int
23452 _ACEOF
23455 { echo "$as_me:$LINENO: checking for long" >&5
23456 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23457 if test "${ac_cv_type_long+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 typedef long ac__type_new_;
23469 main ()
23471 if ((ac__type_new_ *) 0)
23472 return 0;
23473 if (sizeof (ac__type_new_))
23474 return 0;
23476 return 0;
23478 _ACEOF
23479 rm -f conftest.$ac_objext
23480 if { (ac_try="$ac_compile"
23481 case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23484 esac
23485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_compile") 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest.$ac_objext; then
23496 ac_cv_type_long=yes
23497 else
23498 echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 ac_cv_type_long=no
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23507 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23509 # The cast to long int works around a bug in the HP C Compiler,
23510 # see AC_CHECK_SIZEOF for more information.
23511 { echo "$as_me:$LINENO: checking alignment of long" >&5
23512 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23513 if test "${ac_cv_alignof_long+set}" = set; then
23514 echo $ECHO_N "(cached) $ECHO_C" >&6
23515 else
23516 if test "$cross_compiling" = yes; then
23517 # Depending upon the size, compute the lo and hi bounds.
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 #ifndef offsetof
23526 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23527 #endif
23528 typedef struct { char x; long y; } ac__type_alignof_;
23530 main ()
23532 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23533 test_array [0] = 0
23536 return 0;
23538 _ACEOF
23539 rm -f conftest.$ac_objext
23540 if { (ac_try="$ac_compile"
23541 case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_compile") 2>conftest.er1
23547 ac_status=$?
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && {
23553 test -z "$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 } && test -s conftest.$ac_objext; then
23556 ac_lo=0 ac_mid=0
23557 while :; do
23558 cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h. */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 $ac_includes_default
23565 #ifndef offsetof
23566 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23567 #endif
23568 typedef struct { char x; long y; } ac__type_alignof_;
23570 main ()
23572 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23573 test_array [0] = 0
23576 return 0;
23578 _ACEOF
23579 rm -f conftest.$ac_objext
23580 if { (ac_try="$ac_compile"
23581 case "(($ac_try" in
23582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23583 *) ac_try_echo=$ac_try;;
23584 esac
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_compile") 2>conftest.er1
23587 ac_status=$?
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } && {
23593 test -z "$ac_c_werror_flag" ||
23594 test ! -s conftest.err
23595 } && test -s conftest.$ac_objext; then
23596 ac_hi=$ac_mid; break
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_lo=`expr $ac_mid + 1`
23602 if test $ac_lo -le $ac_mid; then
23603 ac_lo= ac_hi=
23604 break
23606 ac_mid=`expr 2 '*' $ac_mid + 1`
23609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 done
23611 else
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23622 #ifndef offsetof
23623 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23624 #endif
23625 typedef struct { char x; long y; } ac__type_alignof_;
23627 main ()
23629 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23630 test_array [0] = 0
23633 return 0;
23635 _ACEOF
23636 rm -f conftest.$ac_objext
23637 if { (ac_try="$ac_compile"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 ac_hi=-1 ac_mid=-1
23654 while :; do
23655 cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h. */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 $ac_includes_default
23662 #ifndef offsetof
23663 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23664 #endif
23665 typedef struct { char x; long y; } ac__type_alignof_;
23667 main ()
23669 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23670 test_array [0] = 0
23673 return 0;
23675 _ACEOF
23676 rm -f conftest.$ac_objext
23677 if { (ac_try="$ac_compile"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 ac_lo=$ac_mid; break
23694 else
23695 echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23698 ac_hi=`expr '(' $ac_mid ')' - 1`
23699 if test $ac_mid -le $ac_hi; then
23700 ac_lo= ac_hi=
23701 break
23703 ac_mid=`expr 2 '*' $ac_mid`
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 done
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 ac_lo= ac_hi=
23715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23719 # Binary search between lo and hi bounds.
23720 while test "x$ac_lo" != "x$ac_hi"; do
23721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h. */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h. */
23728 $ac_includes_default
23729 #ifndef offsetof
23730 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23731 #endif
23732 typedef struct { char x; long y; } ac__type_alignof_;
23734 main ()
23736 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23737 test_array [0] = 0
23740 return 0;
23742 _ACEOF
23743 rm -f conftest.$ac_objext
23744 if { (ac_try="$ac_compile"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23748 esac
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_compile") 2>conftest.er1
23751 ac_status=$?
23752 grep -v '^ *+' conftest.er1 >conftest.err
23753 rm -f conftest.er1
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest.$ac_objext; then
23760 ac_hi=$ac_mid
23761 else
23762 echo "$as_me: failed program was:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ac_lo=`expr '(' $ac_mid ')' + 1`
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 done
23770 case $ac_lo in
23771 ?*) ac_cv_alignof_long=$ac_lo;;
23772 '') if test "$ac_cv_type_long" = yes; then
23773 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23774 See \`config.log' for more details." >&5
23775 echo "$as_me: error: cannot compute alignment of long
23776 See \`config.log' for more details." >&2;}
23777 { (exit 77); exit 77; }; }
23778 else
23779 ac_cv_alignof_long=0
23780 fi ;;
23781 esac
23782 else
23783 cat >conftest.$ac_ext <<_ACEOF
23784 /* confdefs.h. */
23785 _ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23789 $ac_includes_default
23790 #ifndef offsetof
23791 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23792 #endif
23793 typedef struct { char x; long y; } ac__type_alignof_;
23794 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23795 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23796 #include <stdio.h>
23797 #include <stdlib.h>
23799 main ()
23802 FILE *f = fopen ("conftest.val", "w");
23803 if (! f)
23804 return 1;
23805 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23807 long int i = longval ();
23808 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23809 return 1;
23810 fprintf (f, "%ld\n", i);
23812 else
23814 unsigned long int i = ulongval ();
23815 if (i != ((long int) offsetof (ac__type_alignof_, y)))
23816 return 1;
23817 fprintf (f, "%lu\n", i);
23819 return ferror (f) || fclose (f) != 0;
23822 return 0;
23824 _ACEOF
23825 rm -f conftest$ac_exeext
23826 if { (ac_try="$ac_link"
23827 case "(($ac_try" in
23828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23829 *) ac_try_echo=$ac_try;;
23830 esac
23831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23832 (eval "$ac_link") 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23836 { (case "(($ac_try" in
23837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838 *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_try") 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; }; then
23845 ac_cv_alignof_long=`cat conftest.val`
23846 else
23847 echo "$as_me: program exited with status $ac_status" >&5
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.$ac_ext >&5
23851 ( exit $ac_status )
23852 if test "$ac_cv_type_long" = yes; then
23853 { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23854 See \`config.log' for more details." >&5
23855 echo "$as_me: error: cannot compute alignment of long
23856 See \`config.log' for more details." >&2;}
23857 { (exit 77); exit 77; }; }
23858 else
23859 ac_cv_alignof_long=0
23862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23864 rm -f conftest.val
23866 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23867 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23871 cat >>confdefs.h <<_ACEOF
23872 #define ALIGNOF_LONG $ac_cv_alignof_long
23873 _ACEOF
23876 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23877 { echo "$as_me:$LINENO: checking for long long int" >&5
23878 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23879 if test "${ac_cv_type_long_long_int+set}" = set; then
23880 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 else
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23889 typedef long long int ac__type_new_;
23891 main ()
23893 if ((ac__type_new_ *) 0)
23894 return 0;
23895 if (sizeof (ac__type_new_))
23896 return 0;
23898 return 0;
23900 _ACEOF
23901 rm -f conftest.$ac_objext
23902 if { (ac_try="$ac_compile"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23906 esac
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23909 ac_status=$?
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 ac_cv_type_long_long_int=yes
23919 else
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23923 ac_cv_type_long_long_int=no
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23929 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23931 # The cast to long int works around a bug in the HP C Compiler,
23932 # see AC_CHECK_SIZEOF for more information.
23933 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23934 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23935 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937 else
23938 if test "$cross_compiling" = yes; then
23939 # Depending upon the size, compute the lo and hi bounds.
23940 cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h. */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 $ac_includes_default
23947 #ifndef offsetof
23948 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23949 #endif
23950 typedef struct { char x; long long int y; } ac__type_alignof_;
23952 main ()
23954 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23955 test_array [0] = 0
23958 return 0;
23960 _ACEOF
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_compile") 2>conftest.er1
23969 ac_status=$?
23970 grep -v '^ *+' conftest.er1 >conftest.err
23971 rm -f conftest.er1
23972 cat conftest.err >&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); } && {
23975 test -z "$ac_c_werror_flag" ||
23976 test ! -s conftest.err
23977 } && test -s conftest.$ac_objext; then
23978 ac_lo=0 ac_mid=0
23979 while :; do
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23987 #ifndef offsetof
23988 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23989 #endif
23990 typedef struct { char x; long long int y; } ac__type_alignof_;
23992 main ()
23994 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23995 test_array [0] = 0
23998 return 0;
24000 _ACEOF
24001 rm -f conftest.$ac_objext
24002 if { (ac_try="$ac_compile"
24003 case "(($ac_try" in
24004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24006 esac
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_compile") 2>conftest.er1
24009 ac_status=$?
24010 grep -v '^ *+' conftest.er1 >conftest.err
24011 rm -f conftest.er1
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest.$ac_objext; then
24018 ac_hi=$ac_mid; break
24019 else
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ac_lo=`expr $ac_mid + 1`
24024 if test $ac_lo -le $ac_mid; then
24025 ac_lo= ac_hi=
24026 break
24028 ac_mid=`expr 2 '*' $ac_mid + 1`
24031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24032 done
24033 else
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24037 cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h. */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 $ac_includes_default
24044 #ifndef offsetof
24045 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24046 #endif
24047 typedef struct { char x; long long int y; } ac__type_alignof_;
24049 main ()
24051 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24052 test_array [0] = 0
24055 return 0;
24057 _ACEOF
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24066 ac_status=$?
24067 grep -v '^ *+' conftest.er1 >conftest.err
24068 rm -f conftest.er1
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24075 ac_hi=-1 ac_mid=-1
24076 while :; do
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 #ifndef offsetof
24085 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24086 #endif
24087 typedef struct { char x; long long int y; } ac__type_alignof_;
24089 main ()
24091 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24092 test_array [0] = 0
24095 return 0;
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24106 ac_status=$?
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 ac_lo=$ac_mid; break
24116 else
24117 echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24120 ac_hi=`expr '(' $ac_mid ')' - 1`
24121 if test $ac_mid -le $ac_hi; then
24122 ac_lo= ac_hi=
24123 break
24125 ac_mid=`expr 2 '*' $ac_mid`
24128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129 done
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 ac_lo= ac_hi=
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 # Binary search between lo and hi bounds.
24142 while test "x$ac_lo" != "x$ac_hi"; do
24143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24144 cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h. */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24150 $ac_includes_default
24151 #ifndef offsetof
24152 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24153 #endif
24154 typedef struct { char x; long long int y; } ac__type_alignof_;
24156 main ()
24158 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24159 test_array [0] = 0
24162 return 0;
24164 _ACEOF
24165 rm -f conftest.$ac_objext
24166 if { (ac_try="$ac_compile"
24167 case "(($ac_try" in
24168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169 *) ac_try_echo=$ac_try;;
24170 esac
24171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172 (eval "$ac_compile") 2>conftest.er1
24173 ac_status=$?
24174 grep -v '^ *+' conftest.er1 >conftest.err
24175 rm -f conftest.er1
24176 cat conftest.err >&5
24177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178 (exit $ac_status); } && {
24179 test -z "$ac_c_werror_flag" ||
24180 test ! -s conftest.err
24181 } && test -s conftest.$ac_objext; then
24182 ac_hi=$ac_mid
24183 else
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_lo=`expr '(' $ac_mid ')' + 1`
24190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24191 done
24192 case $ac_lo in
24193 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
24194 '') if test "$ac_cv_type_long_long_int" = yes; then
24195 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24196 See \`config.log' for more details." >&5
24197 echo "$as_me: error: cannot compute alignment of long long int
24198 See \`config.log' for more details." >&2;}
24199 { (exit 77); exit 77; }; }
24200 else
24201 ac_cv_alignof_long_long_int=0
24202 fi ;;
24203 esac
24204 else
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h. */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h. */
24211 $ac_includes_default
24212 #ifndef offsetof
24213 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24214 #endif
24215 typedef struct { char x; long long int y; } ac__type_alignof_;
24216 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24217 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24218 #include <stdio.h>
24219 #include <stdlib.h>
24221 main ()
24224 FILE *f = fopen ("conftest.val", "w");
24225 if (! f)
24226 return 1;
24227 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24229 long int i = longval ();
24230 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24231 return 1;
24232 fprintf (f, "%ld\n", i);
24234 else
24236 unsigned long int i = ulongval ();
24237 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24238 return 1;
24239 fprintf (f, "%lu\n", i);
24241 return ferror (f) || fclose (f) != 0;
24244 return 0;
24246 _ACEOF
24247 rm -f conftest$ac_exeext
24248 if { (ac_try="$ac_link"
24249 case "(($ac_try" in
24250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251 *) ac_try_echo=$ac_try;;
24252 esac
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254 (eval "$ac_link") 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24258 { (case "(($ac_try" in
24259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260 *) ac_try_echo=$ac_try;;
24261 esac
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263 (eval "$ac_try") 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_alignof_long_long_int=`cat conftest.val`
24268 else
24269 echo "$as_me: program exited with status $ac_status" >&5
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 ( exit $ac_status )
24274 if test "$ac_cv_type_long_long_int" = yes; then
24275 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
24276 See \`config.log' for more details." >&5
24277 echo "$as_me: error: cannot compute alignment of long long int
24278 See \`config.log' for more details." >&2;}
24279 { (exit 77); exit 77; }; }
24280 else
24281 ac_cv_alignof_long_long_int=0
24284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24286 rm -f conftest.val
24288 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
24289 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
24293 cat >>confdefs.h <<_ACEOF
24294 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
24295 _ACEOF
24299 { echo "$as_me:$LINENO: checking for double" >&5
24300 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
24301 if test "${ac_cv_type_double+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h. */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 $ac_includes_default
24311 typedef double ac__type_new_;
24313 main ()
24315 if ((ac__type_new_ *) 0)
24316 return 0;
24317 if (sizeof (ac__type_new_))
24318 return 0;
24320 return 0;
24322 _ACEOF
24323 rm -f conftest.$ac_objext
24324 if { (ac_try="$ac_compile"
24325 case "(($ac_try" in
24326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24328 esac
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_compile") 2>conftest.er1
24331 ac_status=$?
24332 grep -v '^ *+' conftest.er1 >conftest.err
24333 rm -f conftest.er1
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } && {
24337 test -z "$ac_c_werror_flag" ||
24338 test ! -s conftest.err
24339 } && test -s conftest.$ac_objext; then
24340 ac_cv_type_double=yes
24341 else
24342 echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_cv_type_double=no
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24350 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24351 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24353 # The cast to long int works around a bug in the HP C Compiler,
24354 # see AC_CHECK_SIZEOF for more information.
24355 { echo "$as_me:$LINENO: checking alignment of double" >&5
24356 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24357 if test "${ac_cv_alignof_double+set}" = set; then
24358 echo $ECHO_N "(cached) $ECHO_C" >&6
24359 else
24360 if test "$cross_compiling" = yes; then
24361 # Depending upon the size, compute the lo and hi bounds.
24362 cat >conftest.$ac_ext <<_ACEOF
24363 /* confdefs.h. */
24364 _ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24368 $ac_includes_default
24369 #ifndef offsetof
24370 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24371 #endif
24372 typedef struct { char x; double y; } ac__type_alignof_;
24374 main ()
24376 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24377 test_array [0] = 0
24380 return 0;
24382 _ACEOF
24383 rm -f conftest.$ac_objext
24384 if { (ac_try="$ac_compile"
24385 case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
24391 ac_status=$?
24392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
24400 ac_lo=0 ac_mid=0
24401 while :; do
24402 cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h. */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 $ac_includes_default
24409 #ifndef offsetof
24410 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24411 #endif
24412 typedef struct { char x; double y; } ac__type_alignof_;
24414 main ()
24416 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24417 test_array [0] = 0
24420 return 0;
24422 _ACEOF
24423 rm -f conftest.$ac_objext
24424 if { (ac_try="$ac_compile"
24425 case "(($ac_try" in
24426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24427 *) ac_try_echo=$ac_try;;
24428 esac
24429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24430 (eval "$ac_compile") 2>conftest.er1
24431 ac_status=$?
24432 grep -v '^ *+' conftest.er1 >conftest.err
24433 rm -f conftest.er1
24434 cat conftest.err >&5
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); } && {
24437 test -z "$ac_c_werror_flag" ||
24438 test ! -s conftest.err
24439 } && test -s conftest.$ac_objext; then
24440 ac_hi=$ac_mid; break
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_lo=`expr $ac_mid + 1`
24446 if test $ac_lo -le $ac_mid; then
24447 ac_lo= ac_hi=
24448 break
24450 ac_mid=`expr 2 '*' $ac_mid + 1`
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24454 done
24455 else
24456 echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 cat >conftest.$ac_ext <<_ACEOF
24460 /* confdefs.h. */
24461 _ACEOF
24462 cat confdefs.h >>conftest.$ac_ext
24463 cat >>conftest.$ac_ext <<_ACEOF
24464 /* end confdefs.h. */
24465 $ac_includes_default
24466 #ifndef offsetof
24467 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24468 #endif
24469 typedef struct { char x; double y; } ac__type_alignof_;
24471 main ()
24473 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24474 test_array [0] = 0
24477 return 0;
24479 _ACEOF
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484 *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487 (eval "$ac_compile") 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } && {
24494 test -z "$ac_c_werror_flag" ||
24495 test ! -s conftest.err
24496 } && test -s conftest.$ac_objext; then
24497 ac_hi=-1 ac_mid=-1
24498 while :; do
24499 cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h. */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24505 $ac_includes_default
24506 #ifndef offsetof
24507 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24508 #endif
24509 typedef struct { char x; double y; } ac__type_alignof_;
24511 main ()
24513 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24514 test_array [0] = 0
24517 return 0;
24519 _ACEOF
24520 rm -f conftest.$ac_objext
24521 if { (ac_try="$ac_compile"
24522 case "(($ac_try" in
24523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24524 *) ac_try_echo=$ac_try;;
24525 esac
24526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24528 ac_status=$?
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_lo=$ac_mid; break
24538 else
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_hi=`expr '(' $ac_mid ')' - 1`
24543 if test $ac_mid -le $ac_hi; then
24544 ac_lo= ac_hi=
24545 break
24547 ac_mid=`expr 2 '*' $ac_mid`
24550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24551 done
24552 else
24553 echo "$as_me: failed program was:" >&5
24554 sed 's/^/| /' conftest.$ac_ext >&5
24556 ac_lo= ac_hi=
24559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24563 # Binary search between lo and hi bounds.
24564 while test "x$ac_lo" != "x$ac_hi"; do
24565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24566 cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h. */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h. */
24572 $ac_includes_default
24573 #ifndef offsetof
24574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24575 #endif
24576 typedef struct { char x; double y; } ac__type_alignof_;
24578 main ()
24580 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24581 test_array [0] = 0
24584 return 0;
24586 _ACEOF
24587 rm -f conftest.$ac_objext
24588 if { (ac_try="$ac_compile"
24589 case "(($ac_try" in
24590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24592 esac
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_hi=$ac_mid
24605 else
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ac_lo=`expr '(' $ac_mid ')' + 1`
24612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24613 done
24614 case $ac_lo in
24615 ?*) ac_cv_alignof_double=$ac_lo;;
24616 '') if test "$ac_cv_type_double" = yes; then
24617 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24618 See \`config.log' for more details." >&5
24619 echo "$as_me: error: cannot compute alignment of double
24620 See \`config.log' for more details." >&2;}
24621 { (exit 77); exit 77; }; }
24622 else
24623 ac_cv_alignof_double=0
24624 fi ;;
24625 esac
24626 else
24627 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h. */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h. */
24633 $ac_includes_default
24634 #ifndef offsetof
24635 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24636 #endif
24637 typedef struct { char x; double y; } ac__type_alignof_;
24638 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24639 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24640 #include <stdio.h>
24641 #include <stdlib.h>
24643 main ()
24646 FILE *f = fopen ("conftest.val", "w");
24647 if (! f)
24648 return 1;
24649 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24651 long int i = longval ();
24652 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24653 return 1;
24654 fprintf (f, "%ld\n", i);
24656 else
24658 unsigned long int i = ulongval ();
24659 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24660 return 1;
24661 fprintf (f, "%lu\n", i);
24663 return ferror (f) || fclose (f) != 0;
24666 return 0;
24668 _ACEOF
24669 rm -f conftest$ac_exeext
24670 if { (ac_try="$ac_link"
24671 case "(($ac_try" in
24672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673 *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676 (eval "$ac_link") 2>&5
24677 ac_status=$?
24678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24680 { (case "(($ac_try" in
24681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682 *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_try") 2>&5
24686 ac_status=$?
24687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688 (exit $ac_status); }; }; then
24689 ac_cv_alignof_double=`cat conftest.val`
24690 else
24691 echo "$as_me: program exited with status $ac_status" >&5
24692 echo "$as_me: failed program was:" >&5
24693 sed 's/^/| /' conftest.$ac_ext >&5
24695 ( exit $ac_status )
24696 if test "$ac_cv_type_double" = yes; then
24697 { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24698 See \`config.log' for more details." >&5
24699 echo "$as_me: error: cannot compute alignment of double
24700 See \`config.log' for more details." >&2;}
24701 { (exit 77); exit 77; }; }
24702 else
24703 ac_cv_alignof_double=0
24706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24708 rm -f conftest.val
24710 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24711 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24715 cat >>confdefs.h <<_ACEOF
24716 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24717 _ACEOF
24721 # Compute maximum alignment of any basic type.
24722 # We assume long's alignment is at least as strong as char, short, or int;
24723 # but we must check long long (if it exists) and double.
24725 MAX_ALIGNOF=$ac_cv_alignof_long
24726 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24727 MAX_ALIGNOF=$ac_cv_alignof_double
24729 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24730 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24733 cat >>confdefs.h <<_ACEOF
24734 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24735 _ACEOF
24739 # Some platforms predefine the types int8, int16, etc. Only check
24740 # a (hopefully) representative subset.
24741 { echo "$as_me:$LINENO: checking for int8" >&5
24742 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24743 if test "${ac_cv_type_int8+set}" = set; then
24744 echo $ECHO_N "(cached) $ECHO_C" >&6
24745 else
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h. */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 #include <stdio.h>
24753 #ifdef HAVE_SUPPORTDEFS_H
24754 #include <SupportDefs.h>
24755 #endif
24757 typedef int8 ac__type_new_;
24759 main ()
24761 if ((ac__type_new_ *) 0)
24762 return 0;
24763 if (sizeof (ac__type_new_))
24764 return 0;
24766 return 0;
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (ac_try="$ac_compile"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_compile") 2>conftest.er1
24777 ac_status=$?
24778 grep -v '^ *+' conftest.er1 >conftest.err
24779 rm -f conftest.er1
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest.$ac_objext; then
24786 ac_cv_type_int8=yes
24787 else
24788 echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.$ac_ext >&5
24791 ac_cv_type_int8=no
24794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24797 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24798 if test $ac_cv_type_int8 = yes; then
24800 cat >>confdefs.h <<_ACEOF
24801 #define HAVE_INT8 1
24802 _ACEOF
24806 { echo "$as_me:$LINENO: checking for uint8" >&5
24807 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24808 if test "${ac_cv_type_uint8+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24810 else
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h. */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 #include <stdio.h>
24818 #ifdef HAVE_SUPPORTDEFS_H
24819 #include <SupportDefs.h>
24820 #endif
24822 typedef uint8 ac__type_new_;
24824 main ()
24826 if ((ac__type_new_ *) 0)
24827 return 0;
24828 if (sizeof (ac__type_new_))
24829 return 0;
24831 return 0;
24833 _ACEOF
24834 rm -f conftest.$ac_objext
24835 if { (ac_try="$ac_compile"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24839 esac
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841 (eval "$ac_compile") 2>conftest.er1
24842 ac_status=$?
24843 grep -v '^ *+' conftest.er1 >conftest.err
24844 rm -f conftest.er1
24845 cat conftest.err >&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } && {
24848 test -z "$ac_c_werror_flag" ||
24849 test ! -s conftest.err
24850 } && test -s conftest.$ac_objext; then
24851 ac_cv_type_uint8=yes
24852 else
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24856 ac_cv_type_uint8=no
24859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24861 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24862 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24863 if test $ac_cv_type_uint8 = yes; then
24865 cat >>confdefs.h <<_ACEOF
24866 #define HAVE_UINT8 1
24867 _ACEOF
24871 { echo "$as_me:$LINENO: checking for int64" >&5
24872 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24873 if test "${ac_cv_type_int64+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h. */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 #include <stdio.h>
24883 #ifdef HAVE_SUPPORTDEFS_H
24884 #include <SupportDefs.h>
24885 #endif
24887 typedef int64 ac__type_new_;
24889 main ()
24891 if ((ac__type_new_ *) 0)
24892 return 0;
24893 if (sizeof (ac__type_new_))
24894 return 0;
24896 return 0;
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906 (eval "$ac_compile") 2>conftest.er1
24907 ac_status=$?
24908 grep -v '^ *+' conftest.er1 >conftest.err
24909 rm -f conftest.er1
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } && {
24913 test -z "$ac_c_werror_flag" ||
24914 test ! -s conftest.err
24915 } && test -s conftest.$ac_objext; then
24916 ac_cv_type_int64=yes
24917 else
24918 echo "$as_me: failed program was:" >&5
24919 sed 's/^/| /' conftest.$ac_ext >&5
24921 ac_cv_type_int64=no
24924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24926 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24927 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24928 if test $ac_cv_type_int64 = yes; then
24930 cat >>confdefs.h <<_ACEOF
24931 #define HAVE_INT64 1
24932 _ACEOF
24936 { echo "$as_me:$LINENO: checking for uint64" >&5
24937 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24938 if test "${ac_cv_type_uint64+set}" = set; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 else
24941 cat >conftest.$ac_ext <<_ACEOF
24942 /* confdefs.h. */
24943 _ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24947 #include <stdio.h>
24948 #ifdef HAVE_SUPPORTDEFS_H
24949 #include <SupportDefs.h>
24950 #endif
24952 typedef uint64 ac__type_new_;
24954 main ()
24956 if ((ac__type_new_ *) 0)
24957 return 0;
24958 if (sizeof (ac__type_new_))
24959 return 0;
24961 return 0;
24963 _ACEOF
24964 rm -f conftest.$ac_objext
24965 if { (ac_try="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24972 ac_status=$?
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24981 ac_cv_type_uint64=yes
24982 else
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.$ac_ext >&5
24986 ac_cv_type_uint64=no
24989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24991 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24992 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24993 if test $ac_cv_type_uint64 = yes; then
24995 cat >>confdefs.h <<_ACEOF
24996 #define HAVE_UINT64 1
24997 _ACEOF
25003 # We also check for sig_atomic_t, which *should* be defined per ANSI
25004 # C, but is missing on some old platforms.
25005 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
25006 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
25007 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
25008 echo $ECHO_N "(cached) $ECHO_C" >&6
25009 else
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h. */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h. */
25016 #include <signal.h>
25018 typedef sig_atomic_t ac__type_new_;
25020 main ()
25022 if ((ac__type_new_ *) 0)
25023 return 0;
25024 if (sizeof (ac__type_new_))
25025 return 0;
25027 return 0;
25029 _ACEOF
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25038 ac_status=$?
25039 grep -v '^ *+' conftest.er1 >conftest.err
25040 rm -f conftest.er1
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25047 ac_cv_type_sig_atomic_t=yes
25048 else
25049 echo "$as_me: failed program was:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ac_cv_type_sig_atomic_t=no
25055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
25058 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
25059 if test $ac_cv_type_sig_atomic_t = yes; then
25061 cat >>confdefs.h <<_ACEOF
25062 #define HAVE_SIG_ATOMIC_T 1
25063 _ACEOF
25070 # If the user did not disable integer datetimes, check that
25071 # there is a working 64-bit integral type to use.
25072 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
25073 test x"$HAVE_LONG_INT_64" = x"no" &&
25074 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
25075 test x"$HAVE_INT64" = x"no" ; then
25076 { { echo "$as_me:$LINENO: error:
25077 Integer-based datetime support requires a 64-bit integer type,
25078 but no such type could be found. The --disable-integer-datetimes
25079 configure option can be used to disable integer-based storage
25080 of datetime values." >&5
25081 echo "$as_me: error:
25082 Integer-based datetime support requires a 64-bit integer type,
25083 but no such type could be found. The --disable-integer-datetimes
25084 configure option can be used to disable integer-based storage
25085 of datetime values." >&2;}
25086 { (exit 1); exit 1; }; }
25090 if test "$PORTNAME" != "win32"
25091 then
25092 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
25093 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
25094 if test "${pgac_cv_func_posix_signals+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
25096 else
25097 cat >conftest.$ac_ext <<_ACEOF
25098 /* confdefs.h. */
25099 _ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <signal.h>
25106 main ()
25108 struct sigaction act, oact;
25109 sigemptyset(&act.sa_mask);
25110 act.sa_flags = SA_RESTART;
25111 sigaction(0, &act, &oact);
25113 return 0;
25115 _ACEOF
25116 rm -f conftest.$ac_objext conftest$ac_exeext
25117 if { (ac_try="$ac_link"
25118 case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25121 esac
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_link") 2>conftest.er1
25124 ac_status=$?
25125 grep -v '^ *+' conftest.er1 >conftest.err
25126 rm -f conftest.er1
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest$ac_exeext &&
25133 $as_test_x conftest$ac_exeext; then
25134 pgac_cv_func_posix_signals=yes
25135 else
25136 echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.$ac_ext >&5
25139 pgac_cv_func_posix_signals=no
25142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25143 conftest$ac_exeext conftest.$ac_ext
25145 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
25146 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
25147 if test x"$pgac_cv_func_posix_signals" = xyes ; then
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_POSIX_SIGNALS
25151 _ACEOF
25154 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
25156 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
25157 { { echo "$as_me:$LINENO: error:
25158 Thread-safety requires POSIX signals, which are not supported by this
25159 operating system." >&5
25160 echo "$as_me: error:
25161 Thread-safety requires POSIX signals, which are not supported by this
25162 operating system." >&2;}
25163 { (exit 1); exit 1; }; }
25167 if test $ac_cv_func_fseeko = yes; then
25168 # Check whether --enable-largefile was given.
25169 if test "${enable_largefile+set}" = set; then
25170 enableval=$enable_largefile;
25173 if test "$enable_largefile" != no; then
25175 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
25176 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
25177 if test "${ac_cv_sys_largefile_CC+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25179 else
25180 ac_cv_sys_largefile_CC=no
25181 if test "$GCC" != yes; then
25182 ac_save_CC=$CC
25183 while :; do
25184 # IRIX 6.2 and later do not support large files by default,
25185 # so use the C compiler's -n32 option if that helps.
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h. */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 #include <sys/types.h>
25193 /* Check that off_t can represent 2**63 - 1 correctly.
25194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25195 since some C++ compilers masquerading as C compilers
25196 incorrectly reject 9223372036854775807. */
25197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25199 && LARGE_OFF_T % 2147483647 == 1)
25200 ? 1 : -1];
25202 main ()
25206 return 0;
25208 _ACEOF
25209 rm -f conftest.$ac_objext
25210 if { (ac_try="$ac_compile"
25211 case "(($ac_try" in
25212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213 *) ac_try_echo=$ac_try;;
25214 esac
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25217 ac_status=$?
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 break
25227 else
25228 echo "$as_me: failed program was:" >&5
25229 sed 's/^/| /' conftest.$ac_ext >&5
25234 rm -f core conftest.err conftest.$ac_objext
25235 CC="$CC -n32"
25236 rm -f conftest.$ac_objext
25237 if { (ac_try="$ac_compile"
25238 case "(($ac_try" in
25239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240 *) ac_try_echo=$ac_try;;
25241 esac
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243 (eval "$ac_compile") 2>conftest.er1
25244 ac_status=$?
25245 grep -v '^ *+' conftest.er1 >conftest.err
25246 rm -f conftest.er1
25247 cat conftest.err >&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); } && {
25250 test -z "$ac_c_werror_flag" ||
25251 test ! -s conftest.err
25252 } && test -s conftest.$ac_objext; then
25253 ac_cv_sys_largefile_CC=' -n32'; break
25254 else
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25261 rm -f core conftest.err conftest.$ac_objext
25262 break
25263 done
25264 CC=$ac_save_CC
25265 rm -f conftest.$ac_ext
25268 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
25269 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
25270 if test "$ac_cv_sys_largefile_CC" != no; then
25271 CC=$CC$ac_cv_sys_largefile_CC
25274 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25275 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25276 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25278 else
25279 while :; do
25280 cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h. */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 #include <sys/types.h>
25287 /* Check that off_t can represent 2**63 - 1 correctly.
25288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25289 since some C++ compilers masquerading as C compilers
25290 incorrectly reject 9223372036854775807. */
25291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25293 && LARGE_OFF_T % 2147483647 == 1)
25294 ? 1 : -1];
25296 main ()
25300 return 0;
25302 _ACEOF
25303 rm -f conftest.$ac_objext
25304 if { (ac_try="$ac_compile"
25305 case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25308 esac
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25311 ac_status=$?
25312 grep -v '^ *+' conftest.er1 >conftest.err
25313 rm -f conftest.er1
25314 cat conftest.err >&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.$ac_objext; then
25320 ac_cv_sys_file_offset_bits=no; break
25321 else
25322 echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25329 cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h. */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h. */
25335 #define _FILE_OFFSET_BITS 64
25336 #include <sys/types.h>
25337 /* Check that off_t can represent 2**63 - 1 correctly.
25338 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25339 since some C++ compilers masquerading as C compilers
25340 incorrectly reject 9223372036854775807. */
25341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25343 && LARGE_OFF_T % 2147483647 == 1)
25344 ? 1 : -1];
25346 main ()
25350 return 0;
25352 _ACEOF
25353 rm -f conftest.$ac_objext
25354 if { (ac_try="$ac_compile"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25358 esac
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360 (eval "$ac_compile") 2>conftest.er1
25361 ac_status=$?
25362 grep -v '^ *+' conftest.er1 >conftest.err
25363 rm -f conftest.er1
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && {
25367 test -z "$ac_c_werror_flag" ||
25368 test ! -s conftest.err
25369 } && test -s conftest.$ac_objext; then
25370 ac_cv_sys_file_offset_bits=64; break
25371 else
25372 echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379 ac_cv_sys_file_offset_bits=unknown
25380 break
25381 done
25383 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25384 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25385 case $ac_cv_sys_file_offset_bits in #(
25386 no | unknown) ;;
25388 cat >>confdefs.h <<_ACEOF
25389 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25390 _ACEOF
25392 esac
25393 rm -f conftest*
25394 if test $ac_cv_sys_file_offset_bits = unknown; then
25395 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25396 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25397 if test "${ac_cv_sys_large_files+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400 while :; do
25401 cat >conftest.$ac_ext <<_ACEOF
25402 /* confdefs.h. */
25403 _ACEOF
25404 cat confdefs.h >>conftest.$ac_ext
25405 cat >>conftest.$ac_ext <<_ACEOF
25406 /* end confdefs.h. */
25407 #include <sys/types.h>
25408 /* Check that off_t can represent 2**63 - 1 correctly.
25409 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25410 since some C++ compilers masquerading as C compilers
25411 incorrectly reject 9223372036854775807. */
25412 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25413 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25414 && LARGE_OFF_T % 2147483647 == 1)
25415 ? 1 : -1];
25417 main ()
25421 return 0;
25423 _ACEOF
25424 rm -f conftest.$ac_objext
25425 if { (ac_try="$ac_compile"
25426 case "(($ac_try" in
25427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25428 *) ac_try_echo=$ac_try;;
25429 esac
25430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25431 (eval "$ac_compile") 2>conftest.er1
25432 ac_status=$?
25433 grep -v '^ *+' conftest.er1 >conftest.err
25434 rm -f conftest.er1
25435 cat conftest.err >&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } && {
25438 test -z "$ac_c_werror_flag" ||
25439 test ! -s conftest.err
25440 } && test -s conftest.$ac_objext; then
25441 ac_cv_sys_large_files=no; break
25442 else
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h. */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 #define _LARGE_FILES 1
25457 #include <sys/types.h>
25458 /* Check that off_t can represent 2**63 - 1 correctly.
25459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
25460 since some C++ compilers masquerading as C compilers
25461 incorrectly reject 9223372036854775807. */
25462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25464 && LARGE_OFF_T % 2147483647 == 1)
25465 ? 1 : -1];
25467 main ()
25471 return 0;
25473 _ACEOF
25474 rm -f conftest.$ac_objext
25475 if { (ac_try="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25479 esac
25480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25481 (eval "$ac_compile") 2>conftest.er1
25482 ac_status=$?
25483 grep -v '^ *+' conftest.er1 >conftest.err
25484 rm -f conftest.er1
25485 cat conftest.err >&5
25486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487 (exit $ac_status); } && {
25488 test -z "$ac_c_werror_flag" ||
25489 test ! -s conftest.err
25490 } && test -s conftest.$ac_objext; then
25491 ac_cv_sys_large_files=1; break
25492 else
25493 echo "$as_me: failed program was:" >&5
25494 sed 's/^/| /' conftest.$ac_ext >&5
25499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25500 ac_cv_sys_large_files=unknown
25501 break
25502 done
25504 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25505 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25506 case $ac_cv_sys_large_files in #(
25507 no | unknown) ;;
25509 cat >>confdefs.h <<_ACEOF
25510 #define _LARGE_FILES $ac_cv_sys_large_files
25511 _ACEOF
25513 esac
25514 rm -f conftest*
25520 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25521 { echo "$as_me:$LINENO: checking for off_t" >&5
25522 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25523 if test "${ac_cv_type_off_t+set}" = set; then
25524 echo $ECHO_N "(cached) $ECHO_C" >&6
25525 else
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h. */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h. */
25532 $ac_includes_default
25533 typedef off_t ac__type_new_;
25535 main ()
25537 if ((ac__type_new_ *) 0)
25538 return 0;
25539 if (sizeof (ac__type_new_))
25540 return 0;
25542 return 0;
25544 _ACEOF
25545 rm -f conftest.$ac_objext
25546 if { (ac_try="$ac_compile"
25547 case "(($ac_try" in
25548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549 *) ac_try_echo=$ac_try;;
25550 esac
25551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552 (eval "$ac_compile") 2>conftest.er1
25553 ac_status=$?
25554 grep -v '^ *+' conftest.er1 >conftest.err
25555 rm -f conftest.er1
25556 cat conftest.err >&5
25557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558 (exit $ac_status); } && {
25559 test -z "$ac_c_werror_flag" ||
25560 test ! -s conftest.err
25561 } && test -s conftest.$ac_objext; then
25562 ac_cv_type_off_t=yes
25563 else
25564 echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25567 ac_cv_type_off_t=no
25570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25572 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25573 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25575 # The cast to long int works around a bug in the HP C Compiler
25576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25578 # This bug is HP SR number 8606223364.
25579 { echo "$as_me:$LINENO: checking size of off_t" >&5
25580 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25581 if test "${ac_cv_sizeof_off_t+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583 else
25584 if test "$cross_compiling" = yes; then
25585 # Depending upon the size, compute the lo and hi bounds.
25586 cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h. */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h. */
25592 $ac_includes_default
25593 typedef off_t ac__type_sizeof_;
25595 main ()
25597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25598 test_array [0] = 0
25601 return 0;
25603 _ACEOF
25604 rm -f conftest.$ac_objext
25605 if { (ac_try="$ac_compile"
25606 case "(($ac_try" in
25607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25608 *) ac_try_echo=$ac_try;;
25609 esac
25610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25611 (eval "$ac_compile") 2>conftest.er1
25612 ac_status=$?
25613 grep -v '^ *+' conftest.er1 >conftest.err
25614 rm -f conftest.er1
25615 cat conftest.err >&5
25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); } && {
25618 test -z "$ac_c_werror_flag" ||
25619 test ! -s conftest.err
25620 } && test -s conftest.$ac_objext; then
25621 ac_lo=0 ac_mid=0
25622 while :; do
25623 cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h. */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h. */
25629 $ac_includes_default
25630 typedef off_t ac__type_sizeof_;
25632 main ()
25634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25635 test_array [0] = 0
25638 return 0;
25640 _ACEOF
25641 rm -f conftest.$ac_objext
25642 if { (ac_try="$ac_compile"
25643 case "(($ac_try" in
25644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645 *) ac_try_echo=$ac_try;;
25646 esac
25647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25648 (eval "$ac_compile") 2>conftest.er1
25649 ac_status=$?
25650 grep -v '^ *+' conftest.er1 >conftest.err
25651 rm -f conftest.er1
25652 cat conftest.err >&5
25653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && {
25655 test -z "$ac_c_werror_flag" ||
25656 test ! -s conftest.err
25657 } && test -s conftest.$ac_objext; then
25658 ac_hi=$ac_mid; break
25659 else
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25663 ac_lo=`expr $ac_mid + 1`
25664 if test $ac_lo -le $ac_mid; then
25665 ac_lo= ac_hi=
25666 break
25668 ac_mid=`expr 2 '*' $ac_mid + 1`
25671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672 done
25673 else
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25677 cat >conftest.$ac_ext <<_ACEOF
25678 /* confdefs.h. */
25679 _ACEOF
25680 cat confdefs.h >>conftest.$ac_ext
25681 cat >>conftest.$ac_ext <<_ACEOF
25682 /* end confdefs.h. */
25683 $ac_includes_default
25684 typedef off_t ac__type_sizeof_;
25686 main ()
25688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25689 test_array [0] = 0
25692 return 0;
25694 _ACEOF
25695 rm -f conftest.$ac_objext
25696 if { (ac_try="$ac_compile"
25697 case "(($ac_try" in
25698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25699 *) ac_try_echo=$ac_try;;
25700 esac
25701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25702 (eval "$ac_compile") 2>conftest.er1
25703 ac_status=$?
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } && {
25709 test -z "$ac_c_werror_flag" ||
25710 test ! -s conftest.err
25711 } && test -s conftest.$ac_objext; then
25712 ac_hi=-1 ac_mid=-1
25713 while :; do
25714 cat >conftest.$ac_ext <<_ACEOF
25715 /* confdefs.h. */
25716 _ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 $ac_includes_default
25721 typedef off_t ac__type_sizeof_;
25723 main ()
25725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25726 test_array [0] = 0
25729 return 0;
25731 _ACEOF
25732 rm -f conftest.$ac_objext
25733 if { (ac_try="$ac_compile"
25734 case "(($ac_try" in
25735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25736 *) ac_try_echo=$ac_try;;
25737 esac
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739 (eval "$ac_compile") 2>conftest.er1
25740 ac_status=$?
25741 grep -v '^ *+' conftest.er1 >conftest.err
25742 rm -f conftest.er1
25743 cat conftest.err >&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } && {
25746 test -z "$ac_c_werror_flag" ||
25747 test ! -s conftest.err
25748 } && test -s conftest.$ac_objext; then
25749 ac_lo=$ac_mid; break
25750 else
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25754 ac_hi=`expr '(' $ac_mid ')' - 1`
25755 if test $ac_mid -le $ac_hi; then
25756 ac_lo= ac_hi=
25757 break
25759 ac_mid=`expr 2 '*' $ac_mid`
25762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25763 done
25764 else
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25768 ac_lo= ac_hi=
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775 # Binary search between lo and hi bounds.
25776 while test "x$ac_lo" != "x$ac_hi"; do
25777 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25778 cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h. */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 $ac_includes_default
25785 typedef off_t ac__type_sizeof_;
25787 main ()
25789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25790 test_array [0] = 0
25793 return 0;
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (ac_try="$ac_compile"
25798 case "(($ac_try" in
25799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800 *) ac_try_echo=$ac_try;;
25801 esac
25802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25803 (eval "$ac_compile") 2>conftest.er1
25804 ac_status=$?
25805 grep -v '^ *+' conftest.er1 >conftest.err
25806 rm -f conftest.er1
25807 cat conftest.err >&5
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && {
25810 test -z "$ac_c_werror_flag" ||
25811 test ! -s conftest.err
25812 } && test -s conftest.$ac_objext; then
25813 ac_hi=$ac_mid
25814 else
25815 echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25818 ac_lo=`expr '(' $ac_mid ')' + 1`
25821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 done
25823 case $ac_lo in
25824 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25825 '') if test "$ac_cv_type_off_t" = yes; then
25826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25827 See \`config.log' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (off_t)
25829 See \`config.log' for more details." >&2;}
25830 { (exit 77); exit 77; }; }
25831 else
25832 ac_cv_sizeof_off_t=0
25833 fi ;;
25834 esac
25835 else
25836 cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h. */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25842 $ac_includes_default
25843 typedef off_t ac__type_sizeof_;
25844 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25845 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25846 #include <stdio.h>
25847 #include <stdlib.h>
25849 main ()
25852 FILE *f = fopen ("conftest.val", "w");
25853 if (! f)
25854 return 1;
25855 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25857 long int i = longval ();
25858 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25859 return 1;
25860 fprintf (f, "%ld\n", i);
25862 else
25864 unsigned long int i = ulongval ();
25865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25866 return 1;
25867 fprintf (f, "%lu\n", i);
25869 return ferror (f) || fclose (f) != 0;
25872 return 0;
25874 _ACEOF
25875 rm -f conftest$ac_exeext
25876 if { (ac_try="$ac_link"
25877 case "(($ac_try" in
25878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879 *) ac_try_echo=$ac_try;;
25880 esac
25881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882 (eval "$ac_link") 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25886 { (case "(($ac_try" in
25887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888 *) ac_try_echo=$ac_try;;
25889 esac
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891 (eval "$ac_try") 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25895 ac_cv_sizeof_off_t=`cat conftest.val`
25896 else
25897 echo "$as_me: program exited with status $ac_status" >&5
25898 echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25901 ( exit $ac_status )
25902 if test "$ac_cv_type_off_t" = yes; then
25903 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25904 See \`config.log' for more details." >&5
25905 echo "$as_me: error: cannot compute sizeof (off_t)
25906 See \`config.log' for more details." >&2;}
25907 { (exit 77); exit 77; }; }
25908 else
25909 ac_cv_sizeof_off_t=0
25912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25914 rm -f conftest.val
25916 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25917 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25921 cat >>confdefs.h <<_ACEOF
25922 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25923 _ACEOF
25927 # If we don't have largefile support, can't handle segsize >= 2GB.
25928 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25929 { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25930 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25931 { (exit 1); exit 1; }; }
25934 # SunOS doesn't handle negative byte comparisons properly with +/- return
25935 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25936 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25937 if test "${ac_cv_func_memcmp_working+set}" = set; then
25938 echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940 if test "$cross_compiling" = yes; then
25941 ac_cv_func_memcmp_working=no
25942 else
25943 cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h. */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h. */
25949 $ac_includes_default
25951 main ()
25954 /* Some versions of memcmp are not 8-bit clean. */
25955 char c0 = '\100', c1 = '\200', c2 = '\201';
25956 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25957 return 1;
25959 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25960 or more and with at least one buffer not starting on a 4-byte boundary.
25961 William Lewis provided this test program. */
25963 char foo[21];
25964 char bar[21];
25965 int i;
25966 for (i = 0; i < 4; i++)
25968 char *a = foo + i;
25969 char *b = bar + i;
25970 strcpy (a, "--------01111111");
25971 strcpy (b, "--------10000000");
25972 if (memcmp (a, b, 16) >= 0)
25973 return 1;
25975 return 0;
25979 return 0;
25981 _ACEOF
25982 rm -f conftest$ac_exeext
25983 if { (ac_try="$ac_link"
25984 case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_link") 2>&5
25990 ac_status=$?
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25993 { (case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25996 esac
25997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25998 (eval "$ac_try") 2>&5
25999 ac_status=$?
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); }; }; then
26002 ac_cv_func_memcmp_working=yes
26003 else
26004 echo "$as_me: program exited with status $ac_status" >&5
26005 echo "$as_me: failed program was:" >&5
26006 sed 's/^/| /' conftest.$ac_ext >&5
26008 ( exit $ac_status )
26009 ac_cv_func_memcmp_working=no
26011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26016 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
26017 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
26018 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26019 *" memcmp.$ac_objext "* ) ;;
26020 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26022 esac
26027 # Select semaphore implementation type.
26028 if test "$PORTNAME" != "win32"; then
26029 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
26031 cat >>confdefs.h <<\_ACEOF
26032 #define USE_NAMED_POSIX_SEMAPHORES 1
26033 _ACEOF
26035 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
26036 else
26037 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
26039 cat >>confdefs.h <<\_ACEOF
26040 #define USE_UNNAMED_POSIX_SEMAPHORES 1
26041 _ACEOF
26043 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
26044 else
26046 cat >>confdefs.h <<\_ACEOF
26047 #define USE_SYSV_SEMAPHORES 1
26048 _ACEOF
26050 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
26053 else
26055 cat >>confdefs.h <<\_ACEOF
26056 #define USE_WIN32_SEMAPHORES 1
26057 _ACEOF
26059 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
26063 # Select shared-memory implementation type.
26064 if test "$PORTNAME" != "win32"; then
26066 cat >>confdefs.h <<\_ACEOF
26067 #define USE_SYSV_SHARED_MEMORY 1
26068 _ACEOF
26070 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
26071 else
26073 cat >>confdefs.h <<\_ACEOF
26074 #define USE_WIN32_SHARED_MEMORY 1
26075 _ACEOF
26077 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
26080 # If not set in template file, set bytes to use libc memset()
26081 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
26082 MEMSET_LOOP_LIMIT=1024
26085 cat >>confdefs.h <<_ACEOF
26086 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
26087 _ACEOF
26091 if test "$enable_nls" = yes ; then
26093 { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
26094 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
26095 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26096 echo $ECHO_N "(cached) $ECHO_C" >&6
26097 else
26098 ac_func_search_save_LIBS=$LIBS
26099 cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h. */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26106 /* Override any GCC internal prototype to avoid an error.
26107 Use char because int might match the return type of a GCC
26108 builtin and then its argument prototype would still apply. */
26109 #ifdef __cplusplus
26110 extern "C"
26111 #endif
26112 char bind_textdomain_codeset ();
26114 main ()
26116 return bind_textdomain_codeset ();
26118 return 0;
26120 _ACEOF
26121 for ac_lib in '' intl; do
26122 if test -z "$ac_lib"; then
26123 ac_res="none required"
26124 else
26125 ac_res=-l$ac_lib
26126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26128 rm -f conftest.$ac_objext conftest$ac_exeext
26129 if { (ac_try="$ac_link"
26130 case "(($ac_try" in
26131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26132 *) ac_try_echo=$ac_try;;
26133 esac
26134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26135 (eval "$ac_link") 2>conftest.er1
26136 ac_status=$?
26137 grep -v '^ *+' conftest.er1 >conftest.err
26138 rm -f conftest.er1
26139 cat conftest.err >&5
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } && {
26142 test -z "$ac_c_werror_flag" ||
26143 test ! -s conftest.err
26144 } && test -s conftest$ac_exeext &&
26145 $as_test_x conftest$ac_exeext; then
26146 ac_cv_search_bind_textdomain_codeset=$ac_res
26147 else
26148 echo "$as_me: failed program was:" >&5
26149 sed 's/^/| /' conftest.$ac_ext >&5
26154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26155 conftest$ac_exeext
26156 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26157 break
26159 done
26160 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
26162 else
26163 ac_cv_search_bind_textdomain_codeset=no
26165 rm conftest.$ac_ext
26166 LIBS=$ac_func_search_save_LIBS
26168 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
26169 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
26170 ac_res=$ac_cv_search_bind_textdomain_codeset
26171 if test "$ac_res" != no; then
26172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26174 else
26175 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
26176 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
26177 { (exit 1); exit 1; }; }
26180 if test "${ac_cv_header_libintl_h+set}" = set; then
26181 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26182 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26183 if test "${ac_cv_header_libintl_h+set}" = set; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26186 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26187 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26188 else
26189 # Is the header compilable?
26190 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
26191 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h. */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198 $ac_includes_default
26199 #include <libintl.h>
26200 _ACEOF
26201 rm -f conftest.$ac_objext
26202 if { (ac_try="$ac_compile"
26203 case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26206 esac
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_compile") 2>conftest.er1
26209 ac_status=$?
26210 grep -v '^ *+' conftest.er1 >conftest.err
26211 rm -f conftest.er1
26212 cat conftest.err >&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest.$ac_objext; then
26218 ac_header_compiler=yes
26219 else
26220 echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_header_compiler=no
26226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26228 echo "${ECHO_T}$ac_header_compiler" >&6; }
26230 # Is the header present?
26231 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
26232 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
26233 cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h. */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h. */
26239 #include <libintl.h>
26240 _ACEOF
26241 if { (ac_try="$ac_cpp conftest.$ac_ext"
26242 case "(($ac_try" in
26243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26244 *) ac_try_echo=$ac_try;;
26245 esac
26246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26248 ac_status=$?
26249 grep -v '^ *+' conftest.er1 >conftest.err
26250 rm -f conftest.er1
26251 cat conftest.err >&5
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } >/dev/null && {
26254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26255 test ! -s conftest.err
26256 }; then
26257 ac_header_preproc=yes
26258 else
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26262 ac_header_preproc=no
26265 rm -f conftest.err conftest.$ac_ext
26266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26267 echo "${ECHO_T}$ac_header_preproc" >&6; }
26269 # So? What about this header?
26270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26271 yes:no: )
26272 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26273 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
26275 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
26276 ac_header_preproc=yes
26278 no:yes:* )
26279 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
26280 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
26282 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
26284 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
26285 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
26286 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26287 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
26288 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
26289 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
26290 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
26291 ( cat <<\_ASBOX
26292 ## ---------------------------------------- ##
26293 ## Report this to pgsql-bugs@postgresql.org ##
26294 ## ---------------------------------------- ##
26295 _ASBOX
26296 ) | sed "s/^/$as_me: WARNING: /" >&2
26298 esac
26299 { echo "$as_me:$LINENO: checking for libintl.h" >&5
26300 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
26301 if test "${ac_cv_header_libintl_h+set}" = set; then
26302 echo $ECHO_N "(cached) $ECHO_C" >&6
26303 else
26304 ac_cv_header_libintl_h=$ac_header_preproc
26306 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
26307 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
26310 if test $ac_cv_header_libintl_h = yes; then
26312 else
26313 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
26314 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
26315 { (exit 1); exit 1; }; }
26319 for ac_prog in msgfmt
26321 # Extract the first word of "$ac_prog", so it can be a program name with args.
26322 set dummy $ac_prog; ac_word=$2
26323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26325 if test "${ac_cv_prog_MSGFMT+set}" = set; then
26326 echo $ECHO_N "(cached) $ECHO_C" >&6
26327 else
26328 if test -n "$MSGFMT"; then
26329 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
26330 else
26331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26332 for as_dir in $PATH
26334 IFS=$as_save_IFS
26335 test -z "$as_dir" && as_dir=.
26336 for ac_exec_ext in '' $ac_executable_extensions; do
26337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26338 ac_cv_prog_MSGFMT="$ac_prog"
26339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26340 break 2
26342 done
26343 done
26344 IFS=$as_save_IFS
26348 MSGFMT=$ac_cv_prog_MSGFMT
26349 if test -n "$MSGFMT"; then
26350 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26351 echo "${ECHO_T}$MSGFMT" >&6; }
26352 else
26353 { echo "$as_me:$LINENO: result: no" >&5
26354 echo "${ECHO_T}no" >&6; }
26358 test -n "$MSGFMT" && break
26359 done
26361 if test -z "$MSGFMT"; then
26362 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26363 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26364 { (exit 1); exit 1; }; }
26366 for ac_prog in msgmerge
26368 # Extract the first word of "$ac_prog", so it can be a program name with args.
26369 set dummy $ac_prog; ac_word=$2
26370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26372 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26373 echo $ECHO_N "(cached) $ECHO_C" >&6
26374 else
26375 if test -n "$MSGMERGE"; then
26376 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26377 else
26378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26379 for as_dir in $PATH
26381 IFS=$as_save_IFS
26382 test -z "$as_dir" && as_dir=.
26383 for ac_exec_ext in '' $ac_executable_extensions; do
26384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26385 ac_cv_prog_MSGMERGE="$ac_prog"
26386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26387 break 2
26389 done
26390 done
26391 IFS=$as_save_IFS
26395 MSGMERGE=$ac_cv_prog_MSGMERGE
26396 if test -n "$MSGMERGE"; then
26397 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26398 echo "${ECHO_T}$MSGMERGE" >&6; }
26399 else
26400 { echo "$as_me:$LINENO: result: no" >&5
26401 echo "${ECHO_T}no" >&6; }
26405 test -n "$MSGMERGE" && break
26406 done
26408 for ac_prog in xgettext
26410 # Extract the first word of "$ac_prog", so it can be a program name with args.
26411 set dummy $ac_prog; ac_word=$2
26412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26414 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417 if test -n "$XGETTEXT"; then
26418 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26419 else
26420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26421 for as_dir in $PATH
26423 IFS=$as_save_IFS
26424 test -z "$as_dir" && as_dir=.
26425 for ac_exec_ext in '' $ac_executable_extensions; do
26426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26427 ac_cv_prog_XGETTEXT="$ac_prog"
26428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26429 break 2
26431 done
26432 done
26433 IFS=$as_save_IFS
26437 XGETTEXT=$ac_cv_prog_XGETTEXT
26438 if test -n "$XGETTEXT"; then
26439 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26440 echo "${ECHO_T}$XGETTEXT" >&6; }
26441 else
26442 { echo "$as_me:$LINENO: result: no" >&5
26443 echo "${ECHO_T}no" >&6; }
26447 test -n "$XGETTEXT" && break
26448 done
26453 # Check for Tcl configuration script tclConfig.sh
26454 if test "$with_tcl" = yes; then
26455 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
26457 # Extract the first word of "$ac_prog", so it can be a program name with args.
26458 set dummy $ac_prog; ac_word=$2
26459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26461 if test "${ac_cv_path_TCLSH+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26463 else
26464 case $TCLSH in
26465 [\\/]* | ?:[\\/]*)
26466 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26470 for as_dir in $PATH
26472 IFS=$as_save_IFS
26473 test -z "$as_dir" && as_dir=.
26474 for ac_exec_ext in '' $ac_executable_extensions; do
26475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26476 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26478 break 2
26480 done
26481 done
26482 IFS=$as_save_IFS
26485 esac
26487 TCLSH=$ac_cv_path_TCLSH
26488 if test -n "$TCLSH"; then
26489 { echo "$as_me:$LINENO: result: $TCLSH" >&5
26490 echo "${ECHO_T}$TCLSH" >&6; }
26491 else
26492 { echo "$as_me:$LINENO: result: no" >&5
26493 echo "${ECHO_T}no" >&6; }
26497 test -n "$TCLSH" && break
26498 done
26500 if test x"$TCLSH" = x""; then
26501 { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26502 echo "$as_me: error: Tcl shell not found" >&2;}
26503 { (exit 1); exit 1; }; }
26506 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26507 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26508 # Let user override test
26509 if test -z "$TCL_CONFIG_SH"; then
26510 pgac_test_dirs="$with_tclconfig"
26512 set X $pgac_test_dirs; shift
26513 if test $# -eq 0; then
26514 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26515 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26516 { (exit 1); exit 1; }; }
26517 set X `echo 'puts $auto_path' | $TCLSH`; shift
26520 for pgac_dir do
26521 if test -r "$pgac_dir/tclConfig.sh"; then
26522 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26523 break
26525 done
26528 if test -z "$TCL_CONFIG_SH"; then
26529 { echo "$as_me:$LINENO: result: no" >&5
26530 echo "${ECHO_T}no" >&6; }
26531 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26532 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26533 { (exit 1); exit 1; }; }
26534 else
26535 { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26536 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26541 . "$TCL_CONFIG_SH"
26542 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26543 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26544 eval TCL_LIBS=\"$TCL_LIBS\"
26545 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26546 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26548 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26549 ac_save_CPPFLAGS=$CPPFLAGS
26550 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26551 if test "${ac_cv_header_tcl_h+set}" = set; then
26552 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26553 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26554 if test "${ac_cv_header_tcl_h+set}" = set; then
26555 echo $ECHO_N "(cached) $ECHO_C" >&6
26557 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26558 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26559 else
26560 # Is the header compilable?
26561 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26562 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h. */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 $ac_includes_default
26570 #include <tcl.h>
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.$ac_objext; then
26589 ac_header_compiler=yes
26590 else
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 ac_header_compiler=no
26597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26599 echo "${ECHO_T}$ac_header_compiler" >&6; }
26601 # Is the header present?
26602 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26603 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26604 cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h. */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h. */
26610 #include <tcl.h>
26611 _ACEOF
26612 if { (ac_try="$ac_cpp conftest.$ac_ext"
26613 case "(($ac_try" in
26614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26615 *) ac_try_echo=$ac_try;;
26616 esac
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26619 ac_status=$?
26620 grep -v '^ *+' conftest.er1 >conftest.err
26621 rm -f conftest.er1
26622 cat conftest.err >&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); } >/dev/null && {
26625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26626 test ! -s conftest.err
26627 }; then
26628 ac_header_preproc=yes
26629 else
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_header_preproc=no
26636 rm -f conftest.err conftest.$ac_ext
26637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26638 echo "${ECHO_T}$ac_header_preproc" >&6; }
26640 # So? What about this header?
26641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26642 yes:no: )
26643 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26644 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26646 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26647 ac_header_preproc=yes
26649 no:yes:* )
26650 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26651 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26652 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
26653 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
26654 { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26655 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26656 { echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
26657 echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26659 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26661 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26662 ( cat <<\_ASBOX
26663 ## ---------------------------------------- ##
26664 ## Report this to pgsql-bugs@postgresql.org ##
26665 ## ---------------------------------------- ##
26666 _ASBOX
26667 ) | sed "s/^/$as_me: WARNING: /" >&2
26669 esac
26670 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26671 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26672 if test "${ac_cv_header_tcl_h+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675 ac_cv_header_tcl_h=$ac_header_preproc
26677 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26678 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26681 if test $ac_cv_header_tcl_h = yes; then
26683 else
26684 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26685 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26686 { (exit 1); exit 1; }; }
26690 CPPFLAGS=$ac_save_CPPFLAGS
26694 # Check for DocBook and tools
26696 for ac_prog in onsgmls nsgmls
26698 # Extract the first word of "$ac_prog", so it can be a program name with args.
26699 set dummy $ac_prog; ac_word=$2
26700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26702 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705 if test -n "$NSGMLS"; then
26706 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26707 else
26708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26709 for as_dir in $PATH
26711 IFS=$as_save_IFS
26712 test -z "$as_dir" && as_dir=.
26713 for ac_exec_ext in '' $ac_executable_extensions; do
26714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26715 ac_cv_prog_NSGMLS="$ac_prog"
26716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26717 break 2
26719 done
26720 done
26721 IFS=$as_save_IFS
26725 NSGMLS=$ac_cv_prog_NSGMLS
26726 if test -n "$NSGMLS"; then
26727 { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26728 echo "${ECHO_T}$NSGMLS" >&6; }
26729 else
26730 { echo "$as_me:$LINENO: result: no" >&5
26731 echo "${ECHO_T}no" >&6; }
26735 test -n "$NSGMLS" && break
26736 done
26738 for ac_prog in openjade jade
26740 # Extract the first word of "$ac_prog", so it can be a program name with args.
26741 set dummy $ac_prog; ac_word=$2
26742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26744 if test "${ac_cv_prog_JADE+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 else
26747 if test -n "$JADE"; then
26748 ac_cv_prog_JADE="$JADE" # Let the user override the test.
26749 else
26750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26751 for as_dir in $PATH
26753 IFS=$as_save_IFS
26754 test -z "$as_dir" && as_dir=.
26755 for ac_exec_ext in '' $ac_executable_extensions; do
26756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26757 ac_cv_prog_JADE="$ac_prog"
26758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26759 break 2
26761 done
26762 done
26763 IFS=$as_save_IFS
26767 JADE=$ac_cv_prog_JADE
26768 if test -n "$JADE"; then
26769 { echo "$as_me:$LINENO: result: $JADE" >&5
26770 echo "${ECHO_T}$JADE" >&6; }
26771 else
26772 { echo "$as_me:$LINENO: result: no" >&5
26773 echo "${ECHO_T}no" >&6; }
26777 test -n "$JADE" && break
26778 done
26781 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26782 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26783 if test "${pgac_cv_check_docbook+set}" = set; then
26784 echo $ECHO_N "(cached) $ECHO_C" >&6
26785 else
26786 cat >conftest.sgml <<EOF
26787 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26788 <book>
26789 <title>test</title>
26790 <chapter>
26791 <title>random</title>
26792 <sect1>
26793 <title>testsect</title>
26794 <para>text</para>
26795 </sect1>
26796 </chapter>
26797 </book>
26800 pgac_cv_check_docbook=no
26802 if test -n "$NSGMLS"; then
26803 $NSGMLS -s conftest.sgml 1>&5 2>&1
26804 if test $? -eq 0; then
26805 pgac_cv_check_docbook=yes
26808 rm -f conftest.sgml
26810 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26811 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26813 have_docbook=$pgac_cv_check_docbook
26816 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26817 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26818 if test "${pgac_cv_path_stylesheets+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26820 else
26821 if test -n "$DOCBOOKSTYLE"; then
26822 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26823 else
26824 for pgac_prefix in /usr /usr/local /opt /sw; do
26825 for pgac_infix in share lib; do
26826 for pgac_postfix in \
26827 sgml/stylesheets/nwalsh-modular \
26828 sgml/stylesheets/docbook \
26829 sgml/stylesheets/dsssl/docbook \
26830 sgml/docbook-dsssl \
26831 sgml/docbook/dsssl/modular \
26832 sgml/docbook/stylesheet/dsssl/modular \
26833 sgml/docbook/dsssl-stylesheets \
26834 sgml/dsssl/docbook-dsssl-nwalsh
26836 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26837 if test -r "$pgac_candidate/html/docbook.dsl" \
26838 && test -r "$pgac_candidate/print/docbook.dsl"
26839 then
26840 pgac_cv_path_stylesheets=$pgac_candidate
26841 break 3
26843 done
26844 done
26845 done
26849 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26851 if test -n "$DOCBOOKSTYLE"; then
26852 { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26853 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26854 else
26855 { echo "$as_me:$LINENO: result: no" >&5
26856 echo "${ECHO_T}no" >&6; }
26858 if test -n "$DOCBOOKSTYLE"; then
26859 for ac_prog in collateindex.pl
26861 # Extract the first word of "$ac_prog", so it can be a program name with args.
26862 set dummy $ac_prog; ac_word=$2
26863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26865 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867 else
26868 case $COLLATEINDEX in
26869 [\\/]* | ?:[\\/]*)
26870 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26874 for as_dir in $DOCBOOKSTYLE/bin $PATH
26876 IFS=$as_save_IFS
26877 test -z "$as_dir" && as_dir=.
26878 for ac_exec_ext in '' $ac_executable_extensions; do
26879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26880 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26882 break 2
26884 done
26885 done
26886 IFS=$as_save_IFS
26889 esac
26891 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26892 if test -n "$COLLATEINDEX"; then
26893 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26894 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26895 else
26896 { echo "$as_me:$LINENO: result: no" >&5
26897 echo "${ECHO_T}no" >&6; }
26901 test -n "$COLLATEINDEX" && break
26902 done
26904 else
26905 for ac_prog in collateindex.pl
26907 # Extract the first word of "$ac_prog", so it can be a program name with args.
26908 set dummy $ac_prog; ac_word=$2
26909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26911 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26913 else
26914 case $COLLATEINDEX in
26915 [\\/]* | ?:[\\/]*)
26916 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26920 for as_dir in $PATH
26922 IFS=$as_save_IFS
26923 test -z "$as_dir" && as_dir=.
26924 for ac_exec_ext in '' $ac_executable_extensions; do
26925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26926 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26928 break 2
26930 done
26931 done
26932 IFS=$as_save_IFS
26935 esac
26937 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26938 if test -n "$COLLATEINDEX"; then
26939 { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26940 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26941 else
26942 { echo "$as_me:$LINENO: result: no" >&5
26943 echo "${ECHO_T}no" >&6; }
26947 test -n "$COLLATEINDEX" && break
26948 done
26951 for ac_prog in sgmlspl
26953 # Extract the first word of "$ac_prog", so it can be a program name with args.
26954 set dummy $ac_prog; ac_word=$2
26955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26957 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960 if test -n "$SGMLSPL"; then
26961 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26962 else
26963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26964 for as_dir in $PATH
26966 IFS=$as_save_IFS
26967 test -z "$as_dir" && as_dir=.
26968 for ac_exec_ext in '' $ac_executable_extensions; do
26969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26970 ac_cv_prog_SGMLSPL="$ac_prog"
26971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26972 break 2
26974 done
26975 done
26976 IFS=$as_save_IFS
26980 SGMLSPL=$ac_cv_prog_SGMLSPL
26981 if test -n "$SGMLSPL"; then
26982 { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26983 echo "${ECHO_T}$SGMLSPL" >&6; }
26984 else
26985 { echo "$as_me:$LINENO: result: no" >&5
26986 echo "${ECHO_T}no" >&6; }
26990 test -n "$SGMLSPL" && break
26991 done
26993 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26994 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26995 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26996 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 else
26998 if test -z "$DOCBOOK2MAN"; then
26999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27000 for as_dir in $PATH
27002 IFS=$as_save_IFS
27003 test -z "$as_dir" && as_dir=.
27004 for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
27005 ac_path="$as_dir/$ac_prog"
27006 { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
27007 if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
27008 ac_cv_path_DOCBOOK2MAN=$ac_path
27009 break
27011 done
27012 done
27013 IFS=$as_save_IFS
27015 else
27016 ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
27019 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
27020 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
27021 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
27025 # Thread testing
27027 # We have to run the thread test near the end so we have all our symbols
27028 # defined. Cross compiling throws a warning.
27030 if test "$enable_thread_safety_force" = yes; then
27031 if test "$PORTNAME" != "win32"
27032 then
27033 { echo "$as_me:$LINENO: WARNING:
27034 *** Skipping thread test program. --enable-thread-safety-force was used.
27035 *** Run the program in src/test/thread on the your machine and add proper
27036 *** locking function calls to your applications to guarantee thread safety.
27037 " >&5
27038 echo "$as_me: WARNING:
27039 *** Skipping thread test program. --enable-thread-safety-force was used.
27040 *** Run the program in src/test/thread on the your machine and add proper
27041 *** locking function calls to your applications to guarantee thread safety.
27042 " >&2;}
27043 else
27044 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
27045 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
27047 elif test "$enable_thread_safety" = yes; then
27048 if test "$PORTNAME" != "win32"
27049 then
27050 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
27051 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
27053 _CFLAGS="$CFLAGS"
27054 _LIBS="$LIBS"
27055 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
27056 LIBS="$LIBS $PTHREAD_LIBS"
27057 if test "$cross_compiling" = yes; then
27058 { echo "$as_me:$LINENO: result: maybe" >&5
27059 echo "${ECHO_T}maybe" >&6; }
27060 { echo "$as_me:$LINENO: WARNING:
27061 *** Skipping thread test program because of cross-compile build.
27062 *** Run the program in src/test/thread on the target machine.
27063 " >&5
27064 echo "$as_me: WARNING:
27065 *** Skipping thread test program because of cross-compile build.
27066 *** Run the program in src/test/thread on the target machine.
27067 " >&2;}
27068 else
27069 cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h. */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h. */
27075 #include "$srcdir/src/test/thread/thread_test.c"
27076 _ACEOF
27077 rm -f conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27082 esac
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27088 { (case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27091 esac
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
27094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; }; then
27097 { echo "$as_me:$LINENO: result: yes" >&5
27098 echo "${ECHO_T}yes" >&6; }
27099 else
27100 echo "$as_me: program exited with status $ac_status" >&5
27101 echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27104 ( exit $ac_status )
27105 { echo "$as_me:$LINENO: result: no" >&5
27106 echo "${ECHO_T}no" >&6; }
27107 { { echo "$as_me:$LINENO: error: thread test program failed
27108 This platform is not thread-safe. Check the file 'config.log' for the
27109 exact reason.
27111 You can use the configure option --enable-thread-safety-force to force
27112 threads to be enabled. But you must then run the program in
27113 src/test/thread and add locking function calls to your applications to
27114 guarantee thread safety." >&5
27115 echo "$as_me: error: thread test program failed
27116 This platform is not thread-safe. Check the file 'config.log' for the
27117 exact reason.
27119 You can use the configure option --enable-thread-safety-force to force
27120 threads to be enabled. But you must then run the program in
27121 src/test/thread and add locking function calls to your applications to
27122 guarantee thread safety." >&2;}
27123 { (exit 1); exit 1; }; }
27125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27129 CFLAGS="$_CFLAGS"
27130 LIBS="$_LIBS"
27131 else
27132 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
27133 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
27137 # If compiler will take -Wl,--as-needed (or various platform-specific
27138 # spellings thereof) then add that to LDFLAGS. This is much easier than
27139 # trying to filter LIBS to the minimum for each executable.
27140 # (Note that shared library links won't use this switch, though.)
27141 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
27142 # libreadline; therefore we postpone testing it until we know what library
27143 # dependencies readline has. The test code will try to link with $LIBS.
27144 if test "$with_readline" = yes; then
27145 link_test_func=readline
27146 else
27147 link_test_func=exit
27150 if test "$PORTNAME" = "darwin"; then
27151 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
27152 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
27153 pgac_save_LDFLAGS=$LDFLAGS
27154 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
27155 if test "$cross_compiling" = yes; then
27156 LDFLAGS="$pgac_save_LDFLAGS"
27157 { echo "$as_me:$LINENO: result: assuming no" >&5
27158 echo "${ECHO_T}assuming no" >&6; }
27159 else
27160 cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h. */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27168 main ()
27172 return 0;
27174 _ACEOF
27175 rm -f conftest$ac_exeext
27176 if { (ac_try="$ac_link"
27177 case "(($ac_try" in
27178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179 *) ac_try_echo=$ac_try;;
27180 esac
27181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27182 (eval "$ac_link") 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27186 { (case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27189 esac
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27192 ac_status=$?
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; }; then
27195 { echo "$as_me:$LINENO: result: yes" >&5
27196 echo "${ECHO_T}yes" >&6; }
27197 else
27198 echo "$as_me: program exited with status $ac_status" >&5
27199 echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27202 ( exit $ac_status )
27203 LDFLAGS="$pgac_save_LDFLAGS"
27204 { echo "$as_me:$LINENO: result: no" >&5
27205 echo "${ECHO_T}no" >&6; }
27207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27212 elif test "$PORTNAME" = "openbsd"; then
27213 { echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
27214 echo $ECHO_N "checking if $CC supports -Wl,-Bdynamic... $ECHO_C" >&6; }
27215 pgac_save_LDFLAGS=$LDFLAGS
27216 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
27217 if test "$cross_compiling" = yes; then
27218 LDFLAGS="$pgac_save_LDFLAGS"
27219 { echo "$as_me:$LINENO: result: assuming no" >&5
27220 echo "${ECHO_T}assuming no" >&6; }
27221 else
27222 cat >conftest.$ac_ext <<_ACEOF
27223 /* confdefs.h. */
27224 _ACEOF
27225 cat confdefs.h >>conftest.$ac_ext
27226 cat >>conftest.$ac_ext <<_ACEOF
27227 /* end confdefs.h. */
27228 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27230 main ()
27234 return 0;
27236 _ACEOF
27237 rm -f conftest$ac_exeext
27238 if { (ac_try="$ac_link"
27239 case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_link") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251 esac
27252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27254 ac_status=$?
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
27257 { echo "$as_me:$LINENO: result: yes" >&5
27258 echo "${ECHO_T}yes" >&6; }
27259 else
27260 echo "$as_me: program exited with status $ac_status" >&5
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27264 ( exit $ac_status )
27265 LDFLAGS="$pgac_save_LDFLAGS"
27266 { echo "$as_me:$LINENO: result: no" >&5
27267 echo "${ECHO_T}no" >&6; }
27269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27274 else
27275 { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
27276 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
27277 pgac_save_LDFLAGS=$LDFLAGS
27278 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
27279 if test "$cross_compiling" = yes; then
27280 LDFLAGS="$pgac_save_LDFLAGS"
27281 { echo "$as_me:$LINENO: result: assuming no" >&5
27282 echo "${ECHO_T}assuming no" >&6; }
27283 else
27284 cat >conftest.$ac_ext <<_ACEOF
27285 /* confdefs.h. */
27286 _ACEOF
27287 cat confdefs.h >>conftest.$ac_ext
27288 cat >>conftest.$ac_ext <<_ACEOF
27289 /* end confdefs.h. */
27290 extern void $link_test_func (); void (*fptr) () = $link_test_func;
27292 main ()
27296 return 0;
27298 _ACEOF
27299 rm -f conftest$ac_exeext
27300 if { (ac_try="$ac_link"
27301 case "(($ac_try" in
27302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303 *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306 (eval "$ac_link") 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27310 { (case "(($ac_try" in
27311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312 *) ac_try_echo=$ac_try;;
27313 esac
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315 (eval "$ac_try") 2>&5
27316 ac_status=$?
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27319 { echo "$as_me:$LINENO: result: yes" >&5
27320 echo "${ECHO_T}yes" >&6; }
27321 else
27322 echo "$as_me: program exited with status $ac_status" >&5
27323 echo "$as_me: failed program was:" >&5
27324 sed 's/^/| /' conftest.$ac_ext >&5
27326 ( exit $ac_status )
27327 LDFLAGS="$pgac_save_LDFLAGS"
27328 { echo "$as_me:$LINENO: result: no" >&5
27329 echo "${ECHO_T}no" >&6; }
27331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27339 # Begin output steps
27341 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
27342 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
27343 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
27344 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
27345 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
27346 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
27348 # Create compiler version string
27349 if test x"$GCC" = x"yes" ; then
27350 cc_string="GCC `${CC} --version | sed q`"
27351 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
27352 cc_string=`${CC} -V 2>&1 | sed q`
27353 else
27354 cc_string=$CC
27358 cat >>confdefs.h <<_ACEOF
27359 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
27360 _ACEOF
27363 # Supply a numeric version string for use by 3rd party add-ons
27364 # awk -F is a regex on some platforms, and not on others, so make "." a tab
27365 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
27366 tr '.' ' ' |
27367 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
27369 cat >>confdefs.h <<_ACEOF
27370 #define PG_VERSION_NUM $PG_VERSION_NUM
27371 _ACEOF
27375 # prepare build tree if outside source tree
27376 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
27377 # Note 2: /bin/pwd might be better than shell's built-in at getting
27378 # a symlink-free name.
27379 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
27380 vpath_build=no
27381 else
27382 vpath_build=yes
27383 if test "$no_create" != yes; then
27384 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
27385 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
27386 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
27387 || { { echo "$as_me:$LINENO: error: failed" >&5
27388 echo "$as_me: error: failed" >&2;}
27389 { (exit 1); exit 1; }; }
27390 { echo "$as_me:$LINENO: result: done" >&5
27391 echo "${ECHO_T}done" >&6; }
27397 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
27400 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}"
27403 if test "$PORTNAME" = "win32"; then
27404 ac_config_commands="$ac_config_commands check_win32_symlinks"
27408 ac_config_headers="$ac_config_headers src/include/pg_config.h"
27411 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
27414 cat >confcache <<\_ACEOF
27415 # This file is a shell script that caches the results of configure
27416 # tests run on this system so they can be shared between configure
27417 # scripts and configure runs, see configure's option --config-cache.
27418 # It is not useful on other systems. If it contains results you don't
27419 # want to keep, you may remove or edit it.
27421 # config.status only pays attention to the cache file if you give it
27422 # the --recheck option to rerun configure.
27424 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27425 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27426 # following values.
27428 _ACEOF
27430 # The following way of writing the cache mishandles newlines in values,
27431 # but we know of no workaround that is simple, portable, and efficient.
27432 # So, we kill variables containing newlines.
27433 # Ultrix sh set writes to stderr and can't be redirected directly,
27434 # and sets the high bit in the cache file unless we assign to the vars.
27436 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27437 eval ac_val=\$$ac_var
27438 case $ac_val in #(
27439 *${as_nl}*)
27440 case $ac_var in #(
27441 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27442 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27443 esac
27444 case $ac_var in #(
27445 _ | IFS | as_nl) ;; #(
27446 *) $as_unset $ac_var ;;
27447 esac ;;
27448 esac
27449 done
27451 (set) 2>&1 |
27452 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27453 *${as_nl}ac_space=\ *)
27454 # `set' does not quote correctly, so add quotes (double-quote
27455 # substitution turns \\\\ into \\, and sed turns \\ into \).
27456 sed -n \
27457 "s/'/'\\\\''/g;
27458 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27459 ;; #(
27461 # `set' quotes correctly as required by POSIX, so do not add quotes.
27462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27464 esac |
27465 sort
27467 sed '
27468 /^ac_cv_env_/b end
27469 t clear
27470 :clear
27471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27472 t end
27473 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27474 :end' >>confcache
27475 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27476 if test -w "$cache_file"; then
27477 test "x$cache_file" != "x/dev/null" &&
27478 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27479 echo "$as_me: updating cache $cache_file" >&6;}
27480 cat confcache >$cache_file
27481 else
27482 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27483 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27486 rm -f confcache
27488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27489 # Let make expand exec_prefix.
27490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27492 DEFS=-DHAVE_CONFIG_H
27494 ac_libobjs=
27495 ac_ltlibobjs=
27496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27497 # 1. Remove the extension, and $U if already installed.
27498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27499 ac_i=`echo "$ac_i" | sed "$ac_script"`
27500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27501 # will be set to the directory where LIBOBJS objects are built.
27502 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27503 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27504 done
27505 LIBOBJS=$ac_libobjs
27507 LTLIBOBJS=$ac_ltlibobjs
27511 : ${CONFIG_STATUS=./config.status}
27512 ac_clean_files_save=$ac_clean_files
27513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27514 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27515 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27516 cat >$CONFIG_STATUS <<_ACEOF
27517 #! $SHELL
27518 # Generated by $as_me.
27519 # Run this file to recreate the current configuration.
27520 # Compiler output produced by configure, useful for debugging
27521 # configure, is in config.log if it exists.
27523 debug=false
27524 ac_cs_recheck=false
27525 ac_cs_silent=false
27526 SHELL=\${CONFIG_SHELL-$SHELL}
27527 _ACEOF
27529 cat >>$CONFIG_STATUS <<\_ACEOF
27530 ## --------------------- ##
27531 ## M4sh Initialization. ##
27532 ## --------------------- ##
27534 # Be more Bourne compatible
27535 DUALCASE=1; export DUALCASE # for MKS sh
27536 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27537 emulate sh
27538 NULLCMD=:
27539 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27540 # is contrary to our usage. Disable this feature.
27541 alias -g '${1+"$@"}'='"$@"'
27542 setopt NO_GLOB_SUBST
27543 else
27544 case `(set -o) 2>/dev/null` in
27545 *posix*) set -o posix ;;
27546 esac
27553 # PATH needs CR
27554 # Avoid depending upon Character Ranges.
27555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27558 as_cr_digits='0123456789'
27559 as_cr_alnum=$as_cr_Letters$as_cr_digits
27561 # The user is always right.
27562 if test "${PATH_SEPARATOR+set}" != set; then
27563 echo "#! /bin/sh" >conf$$.sh
27564 echo "exit 0" >>conf$$.sh
27565 chmod +x conf$$.sh
27566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27567 PATH_SEPARATOR=';'
27568 else
27569 PATH_SEPARATOR=:
27571 rm -f conf$$.sh
27574 # Support unset when possible.
27575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27576 as_unset=unset
27577 else
27578 as_unset=false
27582 # IFS
27583 # We need space, tab and new line, in precisely that order. Quoting is
27584 # there to prevent editors from complaining about space-tab.
27585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27586 # splitting by setting IFS to empty value.)
27587 as_nl='
27589 IFS=" "" $as_nl"
27591 # Find who we are. Look in the path if we contain no directory separator.
27592 case $0 in
27593 *[\\/]* ) as_myself=$0 ;;
27594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27595 for as_dir in $PATH
27597 IFS=$as_save_IFS
27598 test -z "$as_dir" && as_dir=.
27599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27600 done
27601 IFS=$as_save_IFS
27604 esac
27605 # We did not find ourselves, most probably we were run as `sh COMMAND'
27606 # in which case we are not to be found in the path.
27607 if test "x$as_myself" = x; then
27608 as_myself=$0
27610 if test ! -f "$as_myself"; then
27611 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27612 { (exit 1); exit 1; }
27615 # Work around bugs in pre-3.0 UWIN ksh.
27616 for as_var in ENV MAIL MAILPATH
27617 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27618 done
27619 PS1='$ '
27620 PS2='> '
27621 PS4='+ '
27623 # NLS nuisances.
27624 for as_var in \
27625 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27626 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27627 LC_TELEPHONE LC_TIME
27629 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27630 eval $as_var=C; export $as_var
27631 else
27632 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27634 done
27636 # Required to use basename.
27637 if expr a : '\(a\)' >/dev/null 2>&1 &&
27638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27639 as_expr=expr
27640 else
27641 as_expr=false
27644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27645 as_basename=basename
27646 else
27647 as_basename=false
27651 # Name of the executable.
27652 as_me=`$as_basename -- "$0" ||
27653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27654 X"$0" : 'X\(//\)$' \| \
27655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27656 echo X/"$0" |
27657 sed '/^.*\/\([^/][^/]*\)\/*$/{
27658 s//\1/
27661 /^X\/\(\/\/\)$/{
27662 s//\1/
27665 /^X\/\(\/\).*/{
27666 s//\1/
27669 s/.*/./; q'`
27671 # CDPATH.
27672 $as_unset CDPATH
27676 as_lineno_1=$LINENO
27677 as_lineno_2=$LINENO
27678 test "x$as_lineno_1" != "x$as_lineno_2" &&
27679 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27682 # uniformly replaced by the line number. The first 'sed' inserts a
27683 # line-number line after each line using $LINENO; the second 'sed'
27684 # does the real work. The second script uses 'N' to pair each
27685 # line-number line with the line containing $LINENO, and appends
27686 # trailing '-' during substitution so that $LINENO is not a special
27687 # case at line end.
27688 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27689 # scripts with optimization help from Paolo Bonzini. Blame Lee
27690 # E. McMahon (1931-1989) for sed's syntax. :-)
27691 sed -n '
27693 /[$]LINENO/=
27694 ' <$as_myself |
27695 sed '
27696 s/[$]LINENO.*/&-/
27697 t lineno
27699 :lineno
27701 :loop
27702 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27703 t loop
27704 s/-\n.*//
27705 ' >$as_me.lineno &&
27706 chmod +x "$as_me.lineno" ||
27707 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27708 { (exit 1); exit 1; }; }
27710 # Don't try to exec as it changes $[0], causing all sort of problems
27711 # (the dirname of $[0] is not the place where we might find the
27712 # original and so on. Autoconf is especially sensitive to this).
27713 . "./$as_me.lineno"
27714 # Exit status is that of the last command.
27715 exit
27719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27720 as_dirname=dirname
27721 else
27722 as_dirname=false
27725 ECHO_C= ECHO_N= ECHO_T=
27726 case `echo -n x` in
27727 -n*)
27728 case `echo 'x\c'` in
27729 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27730 *) ECHO_C='\c';;
27731 esac;;
27733 ECHO_N='-n';;
27734 esac
27736 if expr a : '\(a\)' >/dev/null 2>&1 &&
27737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27738 as_expr=expr
27739 else
27740 as_expr=false
27743 rm -f conf$$ conf$$.exe conf$$.file
27744 if test -d conf$$.dir; then
27745 rm -f conf$$.dir/conf$$.file
27746 else
27747 rm -f conf$$.dir
27748 mkdir conf$$.dir
27750 echo >conf$$.file
27751 if ln -s conf$$.file conf$$ 2>/dev/null; then
27752 as_ln_s='ln -s'
27753 # ... but there are two gotchas:
27754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27756 # In both cases, we have to default to `cp -p'.
27757 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27758 as_ln_s='cp -p'
27759 elif ln conf$$.file conf$$ 2>/dev/null; then
27760 as_ln_s=ln
27761 else
27762 as_ln_s='cp -p'
27764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27765 rmdir conf$$.dir 2>/dev/null
27767 if mkdir -p . 2>/dev/null; then
27768 as_mkdir_p=:
27769 else
27770 test -d ./-p && rmdir ./-p
27771 as_mkdir_p=false
27774 if test -x / >/dev/null 2>&1; then
27775 as_test_x='test -x'
27776 else
27777 if ls -dL / >/dev/null 2>&1; then
27778 as_ls_L_option=L
27779 else
27780 as_ls_L_option=
27782 as_test_x='
27783 eval sh -c '\''
27784 if test -d "$1"; then
27785 test -d "$1/.";
27786 else
27787 case $1 in
27788 -*)set "./$1";;
27789 esac;
27790 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27791 ???[sx]*):;;*)false;;esac;fi
27792 '\'' sh
27795 as_executable_p=$as_test_x
27797 # Sed expression to map a string onto a valid CPP name.
27798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27800 # Sed expression to map a string onto a valid variable name.
27801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27804 exec 6>&1
27806 # Save the log message, to keep $[0] and so on meaningful, and to
27807 # report actual input values of CONFIG_FILES etc. instead of their
27808 # values after options handling.
27809 ac_log="
27810 This file was extended by PostgreSQL $as_me 8.4beta2, which was
27811 generated by GNU Autoconf 2.61. Invocation command line was
27813 CONFIG_FILES = $CONFIG_FILES
27814 CONFIG_HEADERS = $CONFIG_HEADERS
27815 CONFIG_LINKS = $CONFIG_LINKS
27816 CONFIG_COMMANDS = $CONFIG_COMMANDS
27817 $ $0 $@
27819 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27822 _ACEOF
27824 cat >>$CONFIG_STATUS <<_ACEOF
27825 # Files that config.status was made for.
27826 config_files="$ac_config_files"
27827 config_headers="$ac_config_headers"
27828 config_links="$ac_config_links"
27829 config_commands="$ac_config_commands"
27831 _ACEOF
27833 cat >>$CONFIG_STATUS <<\_ACEOF
27834 ac_cs_usage="\
27835 \`$as_me' instantiates files from templates according to the
27836 current configuration.
27838 Usage: $0 [OPTIONS] [FILE]...
27840 -h, --help print this help, then exit
27841 -V, --version print version number and configuration settings, then exit
27842 -q, --quiet do not print progress messages
27843 -d, --debug don't remove temporary files
27844 --recheck update $as_me by reconfiguring in the same conditions
27845 --file=FILE[:TEMPLATE]
27846 instantiate the configuration file FILE
27847 --header=FILE[:TEMPLATE]
27848 instantiate the configuration header FILE
27850 Configuration files:
27851 $config_files
27853 Configuration headers:
27854 $config_headers
27856 Configuration links:
27857 $config_links
27859 Configuration commands:
27860 $config_commands
27862 Report bugs to <bug-autoconf@gnu.org>."
27864 _ACEOF
27865 cat >>$CONFIG_STATUS <<_ACEOF
27866 ac_cs_version="\\
27867 PostgreSQL config.status 8.4beta2
27868 configured by $0, generated by GNU Autoconf 2.61,
27869 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27871 Copyright (C) 2006 Free Software Foundation, Inc.
27872 This config.status script is free software; the Free Software Foundation
27873 gives unlimited permission to copy, distribute and modify it."
27875 ac_pwd='$ac_pwd'
27876 srcdir='$srcdir'
27877 _ACEOF
27879 cat >>$CONFIG_STATUS <<\_ACEOF
27880 # If no file are specified by the user, then we need to provide default
27881 # value. By we need to know if files were specified by the user.
27882 ac_need_defaults=:
27883 while test $# != 0
27885 case $1 in
27886 --*=*)
27887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27889 ac_shift=:
27892 ac_option=$1
27893 ac_optarg=$2
27894 ac_shift=shift
27896 esac
27898 case $ac_option in
27899 # Handling of the options.
27900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27901 ac_cs_recheck=: ;;
27902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27903 echo "$ac_cs_version"; exit ;;
27904 --debug | --debu | --deb | --de | --d | -d )
27905 debug=: ;;
27906 --file | --fil | --fi | --f )
27907 $ac_shift
27908 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27909 ac_need_defaults=false;;
27910 --header | --heade | --head | --hea )
27911 $ac_shift
27912 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27913 ac_need_defaults=false;;
27914 --he | --h)
27915 # Conflict between --help and --header
27916 { echo "$as_me: error: ambiguous option: $1
27917 Try \`$0 --help' for more information." >&2
27918 { (exit 1); exit 1; }; };;
27919 --help | --hel | -h )
27920 echo "$ac_cs_usage"; exit ;;
27921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27922 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27923 ac_cs_silent=: ;;
27925 # This is an error.
27926 -*) { echo "$as_me: error: unrecognized option: $1
27927 Try \`$0 --help' for more information." >&2
27928 { (exit 1); exit 1; }; } ;;
27930 *) ac_config_targets="$ac_config_targets $1"
27931 ac_need_defaults=false ;;
27933 esac
27934 shift
27935 done
27937 ac_configure_extra_args=
27939 if $ac_cs_silent; then
27940 exec 6>/dev/null
27941 ac_configure_extra_args="$ac_configure_extra_args --silent"
27944 _ACEOF
27945 cat >>$CONFIG_STATUS <<_ACEOF
27946 if \$ac_cs_recheck; then
27947 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27948 CONFIG_SHELL=$SHELL
27949 export CONFIG_SHELL
27950 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27953 _ACEOF
27954 cat >>$CONFIG_STATUS <<\_ACEOF
27955 exec 5>>config.log
27957 echo
27958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27959 ## Running $as_me. ##
27960 _ASBOX
27961 echo "$ac_log"
27962 } >&5
27964 _ACEOF
27965 cat >>$CONFIG_STATUS <<_ACEOF
27966 _ACEOF
27968 cat >>$CONFIG_STATUS <<\_ACEOF
27970 # Handling of arguments.
27971 for ac_config_target in $ac_config_targets
27973 case $ac_config_target in
27974 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27975 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27976 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27977 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27978 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27979 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27980 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27981 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27982 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27983 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27984 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27985 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27989 { (exit 1); exit 1; }; };;
27990 esac
27991 done
27994 # If the user did not use the arguments to specify the items to instantiate,
27995 # then the envvar interface is used. Set only those that are not.
27996 # We use the long form for the default assignment because of an extremely
27997 # bizarre bug on SunOS 4.1.3.
27998 if $ac_need_defaults; then
27999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28001 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28005 # Have a temporary directory for convenience. Make it in the build tree
28006 # simply because there is no reason against having it here, and in addition,
28007 # creating and moving files from /tmp can sometimes cause problems.
28008 # Hook for its removal unless debugging.
28009 # Note that there is a small window in which the directory will not be cleaned:
28010 # after its creation but before its name has been assigned to `$tmp'.
28011 $debug ||
28013 tmp=
28014 trap 'exit_status=$?
28015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28017 trap '{ (exit 1); exit 1; }' 1 2 13 15
28019 # Create a (secure) tmp directory for tmp files.
28022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28023 test -n "$tmp" && test -d "$tmp"
28024 } ||
28026 tmp=./conf$$-$RANDOM
28027 (umask 077 && mkdir "$tmp")
28028 } ||
28030 echo "$me: cannot create a temporary directory in ." >&2
28031 { (exit 1); exit 1; }
28035 # Set up the sed scripts for CONFIG_FILES section.
28038 # No need to generate the scripts if there are no CONFIG_FILES.
28039 # This happens for instance when ./config.status config.h
28040 if test -n "$CONFIG_FILES"; then
28042 _ACEOF
28046 ac_delim='%!_!# '
28047 for ac_last_try in false false false false false :; do
28048 cat >conf$$subs.sed <<_ACEOF
28049 SHELL!$SHELL$ac_delim
28050 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28051 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28052 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28053 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28054 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28055 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28056 exec_prefix!$exec_prefix$ac_delim
28057 prefix!$prefix$ac_delim
28058 program_transform_name!$program_transform_name$ac_delim
28059 bindir!$bindir$ac_delim
28060 sbindir!$sbindir$ac_delim
28061 libexecdir!$libexecdir$ac_delim
28062 datarootdir!$datarootdir$ac_delim
28063 datadir!$datadir$ac_delim
28064 sysconfdir!$sysconfdir$ac_delim
28065 sharedstatedir!$sharedstatedir$ac_delim
28066 localstatedir!$localstatedir$ac_delim
28067 includedir!$includedir$ac_delim
28068 oldincludedir!$oldincludedir$ac_delim
28069 docdir!$docdir$ac_delim
28070 infodir!$infodir$ac_delim
28071 htmldir!$htmldir$ac_delim
28072 dvidir!$dvidir$ac_delim
28073 pdfdir!$pdfdir$ac_delim
28074 psdir!$psdir$ac_delim
28075 libdir!$libdir$ac_delim
28076 localedir!$localedir$ac_delim
28077 mandir!$mandir$ac_delim
28078 DEFS!$DEFS$ac_delim
28079 ECHO_C!$ECHO_C$ac_delim
28080 ECHO_N!$ECHO_N$ac_delim
28081 ECHO_T!$ECHO_T$ac_delim
28082 LIBS!$LIBS$ac_delim
28083 build_alias!$build_alias$ac_delim
28084 host_alias!$host_alias$ac_delim
28085 target_alias!$target_alias$ac_delim
28086 configure_args!$configure_args$ac_delim
28087 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
28088 build!$build$ac_delim
28089 build_cpu!$build_cpu$ac_delim
28090 build_vendor!$build_vendor$ac_delim
28091 build_os!$build_os$ac_delim
28092 host!$host$ac_delim
28093 host_cpu!$host_cpu$ac_delim
28094 host_vendor!$host_vendor$ac_delim
28095 host_os!$host_os$ac_delim
28096 PORTNAME!$PORTNAME$ac_delim
28097 enable_nls!$enable_nls$ac_delim
28098 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
28099 default_port!$default_port$ac_delim
28100 enable_shared!$enable_shared$ac_delim
28101 enable_rpath!$enable_rpath$ac_delim
28102 enable_debug!$enable_debug$ac_delim
28103 enable_profiling!$enable_profiling$ac_delim
28104 GCOV!$GCOV$ac_delim
28105 LCOV!$LCOV$ac_delim
28106 GENHTML!$GENHTML$ac_delim
28107 enable_coverage!$enable_coverage$ac_delim
28108 DTRACE!$DTRACE$ac_delim
28109 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
28110 enable_dtrace!$enable_dtrace$ac_delim
28111 CC!$CC$ac_delim
28112 CFLAGS!$CFLAGS$ac_delim
28113 LDFLAGS!$LDFLAGS$ac_delim
28114 CPPFLAGS!$CPPFLAGS$ac_delim
28115 ac_ct_CC!$ac_ct_CC$ac_delim
28116 EXEEXT!$EXEEXT$ac_delim
28117 OBJEXT!$OBJEXT$ac_delim
28118 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
28119 CPP!$CPP$ac_delim
28120 GCC!$GCC$ac_delim
28121 TAS!$TAS$ac_delim
28122 autodepend!$autodepend$ac_delim
28123 INCLUDES!$INCLUDES$ac_delim
28124 enable_thread_safety!$enable_thread_safety$ac_delim
28125 with_tcl!$with_tcl$ac_delim
28126 with_perl!$with_perl$ac_delim
28127 with_python!$with_python$ac_delim
28128 with_gssapi!$with_gssapi$ac_delim
28129 with_krb5!$with_krb5$ac_delim
28130 krb_srvtab!$krb_srvtab$ac_delim
28131 with_pam!$with_pam$ac_delim
28132 with_ldap!$with_ldap$ac_delim
28133 with_bonjour!$with_bonjour$ac_delim
28134 with_openssl!$with_openssl$ac_delim
28135 with_ossp_uuid!$with_ossp_uuid$ac_delim
28136 XML2_CONFIG!$XML2_CONFIG$ac_delim
28137 with_libxml!$with_libxml$ac_delim
28138 with_libxslt!$with_libxslt$ac_delim
28139 with_system_tzdata!$with_system_tzdata$ac_delim
28140 with_zlib!$with_zlib$ac_delim
28141 GREP!$GREP$ac_delim
28142 EGREP!$EGREP$ac_delim
28143 ELF_SYS!$ELF_SYS$ac_delim
28144 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
28145 LD!$LD$ac_delim
28146 _ACEOF
28148 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28149 break
28150 elif $ac_last_try; then
28151 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28152 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28153 { (exit 1); exit 1; }; }
28154 else
28155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28157 done
28159 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28160 if test -n "$ac_eof"; then
28161 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28162 ac_eof=`expr $ac_eof + 1`
28165 cat >>$CONFIG_STATUS <<_ACEOF
28166 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28168 _ACEOF
28169 sed '
28170 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28171 s/^/s,@/; s/!/@,|#_!!_#|/
28174 s/'"$ac_delim"'$/,g/; t
28175 s/$/\\/; p
28176 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28177 ' >>$CONFIG_STATUS <conf$$subs.sed
28178 rm -f conf$$subs.sed
28179 cat >>$CONFIG_STATUS <<_ACEOF
28180 CEOF$ac_eof
28181 _ACEOF
28184 ac_delim='%!_!# '
28185 for ac_last_try in false false false false false :; do
28186 cat >conf$$subs.sed <<_ACEOF
28187 with_gnu_ld!$with_gnu_ld$ac_delim
28188 ld_R_works!$ld_R_works$ac_delim
28189 RANLIB!$RANLIB$ac_delim
28190 STRIP!$STRIP$ac_delim
28191 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
28192 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
28193 AR!$AR$ac_delim
28194 DLLTOOL!$DLLTOOL$ac_delim
28195 DLLWRAP!$DLLWRAP$ac_delim
28196 WINDRES!$WINDRES$ac_delim
28197 TAR!$TAR$ac_delim
28198 LN_S!$LN_S$ac_delim
28199 AWK!$AWK$ac_delim
28200 BISON!$BISON$ac_delim
28201 BISONFLAGS!$BISONFLAGS$ac_delim
28202 FLEX!$FLEX$ac_delim
28203 FLEXFLAGS!$FLEXFLAGS$ac_delim
28204 PERL!$PERL$ac_delim
28205 perl_archlibexp!$perl_archlibexp$ac_delim
28206 perl_privlibexp!$perl_privlibexp$ac_delim
28207 perl_useshrplib!$perl_useshrplib$ac_delim
28208 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
28209 PYTHON!$PYTHON$ac_delim
28210 python_version!$python_version$ac_delim
28211 python_configdir!$python_configdir$ac_delim
28212 python_includespec!$python_includespec$ac_delim
28213 python_libdir!$python_libdir$ac_delim
28214 python_libspec!$python_libspec$ac_delim
28215 python_additional_libs!$python_additional_libs$ac_delim
28216 ZIC!$ZIC$ac_delim
28217 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
28218 HAVE_IPV6!$HAVE_IPV6$ac_delim
28219 LIBOBJS!$LIBOBJS$ac_delim
28220 acx_pthread_config!$acx_pthread_config$ac_delim
28221 PTHREAD_CC!$PTHREAD_CC$ac_delim
28222 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28223 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28224 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
28225 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
28226 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
28227 MSGFMT!$MSGFMT$ac_delim
28228 MSGMERGE!$MSGMERGE$ac_delim
28229 XGETTEXT!$XGETTEXT$ac_delim
28230 TCLSH!$TCLSH$ac_delim
28231 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
28232 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
28233 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
28234 TCL_LIBS!$TCL_LIBS$ac_delim
28235 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
28236 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
28237 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
28238 NSGMLS!$NSGMLS$ac_delim
28239 JADE!$JADE$ac_delim
28240 have_docbook!$have_docbook$ac_delim
28241 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
28242 COLLATEINDEX!$COLLATEINDEX$ac_delim
28243 SGMLSPL!$SGMLSPL$ac_delim
28244 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
28245 vpath_build!$vpath_build$ac_delim
28246 LTLIBOBJS!$LTLIBOBJS$ac_delim
28247 _ACEOF
28249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
28250 break
28251 elif $ac_last_try; then
28252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28254 { (exit 1); exit 1; }; }
28255 else
28256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28258 done
28260 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28261 if test -n "$ac_eof"; then
28262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28263 ac_eof=`expr $ac_eof + 1`
28266 cat >>$CONFIG_STATUS <<_ACEOF
28267 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28269 _ACEOF
28270 sed '
28271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28272 s/^/s,@/; s/!/@,|#_!!_#|/
28275 s/'"$ac_delim"'$/,g/; t
28276 s/$/\\/; p
28277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28278 ' >>$CONFIG_STATUS <conf$$subs.sed
28279 rm -f conf$$subs.sed
28280 cat >>$CONFIG_STATUS <<_ACEOF
28281 :end
28282 s/|#_!!_#|//g
28283 CEOF$ac_eof
28284 _ACEOF
28287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28289 # trailing colons and then remove the whole line if VPATH becomes empty
28290 # (actually we leave an empty line to preserve line numbers).
28291 if test "x$srcdir" = x.; then
28292 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28293 s/:*\$(srcdir):*/:/
28294 s/:*\${srcdir}:*/:/
28295 s/:*@srcdir@:*/:/
28296 s/^\([^=]*=[ ]*\):*/\1/
28297 s/:*$//
28298 s/^[^=]*=[ ]*$//
28302 cat >>$CONFIG_STATUS <<\_ACEOF
28303 fi # test -n "$CONFIG_FILES"
28306 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
28308 case $ac_tag in
28309 :[FHLC]) ac_mode=$ac_tag; continue;;
28310 esac
28311 case $ac_mode$ac_tag in
28312 :[FHL]*:*);;
28313 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28314 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28315 { (exit 1); exit 1; }; };;
28316 :[FH]-) ac_tag=-:-;;
28317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28318 esac
28319 ac_save_IFS=$IFS
28320 IFS=:
28321 set x $ac_tag
28322 IFS=$ac_save_IFS
28323 shift
28324 ac_file=$1
28325 shift
28327 case $ac_mode in
28328 :L) ac_source=$1;;
28329 :[FH])
28330 ac_file_inputs=
28331 for ac_f
28333 case $ac_f in
28334 -) ac_f="$tmp/stdin";;
28335 *) # Look for the file first in the build tree, then in the source tree
28336 # (if the path is not absolute). The absolute path cannot be DOS-style,
28337 # because $ac_f cannot contain `:'.
28338 test -f "$ac_f" ||
28339 case $ac_f in
28340 [\\/$]*) false;;
28341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28342 esac ||
28343 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28344 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28345 { (exit 1); exit 1; }; };;
28346 esac
28347 ac_file_inputs="$ac_file_inputs $ac_f"
28348 done
28350 # Let's still pretend it is `configure' which instantiates (i.e., don't
28351 # use $as_me), people would be surprised to read:
28352 # /* config.h. Generated by config.status. */
28353 configure_input="Generated from "`IFS=:
28354 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28355 if test x"$ac_file" != x-; then
28356 configure_input="$ac_file. $configure_input"
28357 { echo "$as_me:$LINENO: creating $ac_file" >&5
28358 echo "$as_me: creating $ac_file" >&6;}
28361 case $ac_tag in
28362 *:-:* | *:-) cat >"$tmp/stdin";;
28363 esac
28365 esac
28367 ac_dir=`$as_dirname -- "$ac_file" ||
28368 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28369 X"$ac_file" : 'X\(//\)[^/]' \| \
28370 X"$ac_file" : 'X\(//\)$' \| \
28371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28372 echo X"$ac_file" |
28373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28374 s//\1/
28377 /^X\(\/\/\)[^/].*/{
28378 s//\1/
28381 /^X\(\/\/\)$/{
28382 s//\1/
28385 /^X\(\/\).*/{
28386 s//\1/
28389 s/.*/./; q'`
28390 { as_dir="$ac_dir"
28391 case $as_dir in #(
28392 -*) as_dir=./$as_dir;;
28393 esac
28394 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28395 as_dirs=
28396 while :; do
28397 case $as_dir in #(
28398 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28399 *) as_qdir=$as_dir;;
28400 esac
28401 as_dirs="'$as_qdir' $as_dirs"
28402 as_dir=`$as_dirname -- "$as_dir" ||
28403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28404 X"$as_dir" : 'X\(//\)[^/]' \| \
28405 X"$as_dir" : 'X\(//\)$' \| \
28406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28407 echo X"$as_dir" |
28408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28409 s//\1/
28412 /^X\(\/\/\)[^/].*/{
28413 s//\1/
28416 /^X\(\/\/\)$/{
28417 s//\1/
28420 /^X\(\/\).*/{
28421 s//\1/
28424 s/.*/./; q'`
28425 test -d "$as_dir" && break
28426 done
28427 test -z "$as_dirs" || eval "mkdir $as_dirs"
28428 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28429 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28430 { (exit 1); exit 1; }; }; }
28431 ac_builddir=.
28433 case "$ac_dir" in
28434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28437 # A ".." for each directory in $ac_dir_suffix.
28438 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28439 case $ac_top_builddir_sub in
28440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28442 esac ;;
28443 esac
28444 ac_abs_top_builddir=$ac_pwd
28445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28446 # for backward compatibility:
28447 ac_top_builddir=$ac_top_build_prefix
28449 case $srcdir in
28450 .) # We are building in place.
28451 ac_srcdir=.
28452 ac_top_srcdir=$ac_top_builddir_sub
28453 ac_abs_top_srcdir=$ac_pwd ;;
28454 [\\/]* | ?:[\\/]* ) # Absolute name.
28455 ac_srcdir=$srcdir$ac_dir_suffix;
28456 ac_top_srcdir=$srcdir
28457 ac_abs_top_srcdir=$srcdir ;;
28458 *) # Relative name.
28459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28460 ac_top_srcdir=$ac_top_build_prefix$srcdir
28461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28462 esac
28463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28466 case $ac_mode in
28469 # CONFIG_FILE
28472 _ACEOF
28474 cat >>$CONFIG_STATUS <<\_ACEOF
28475 # If the template does not know about datarootdir, expand it.
28476 # FIXME: This hack should be removed a few years after 2.60.
28477 ac_datarootdir_hack=; ac_datarootdir_seen=
28479 case `sed -n '/datarootdir/ {
28483 /@datadir@/p
28484 /@docdir@/p
28485 /@infodir@/p
28486 /@localedir@/p
28487 /@mandir@/p
28488 ' $ac_file_inputs` in
28489 *datarootdir*) ac_datarootdir_seen=yes;;
28490 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28491 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28492 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28493 _ACEOF
28494 cat >>$CONFIG_STATUS <<_ACEOF
28495 ac_datarootdir_hack='
28496 s&@datadir@&$datadir&g
28497 s&@docdir@&$docdir&g
28498 s&@infodir@&$infodir&g
28499 s&@localedir@&$localedir&g
28500 s&@mandir@&$mandir&g
28501 s&\\\${datarootdir}&$datarootdir&g' ;;
28502 esac
28503 _ACEOF
28505 # Neutralize VPATH when `$srcdir' = `.'.
28506 # Shell code in configure.ac might set extrasub.
28507 # FIXME: do we really want to maintain this feature?
28508 cat >>$CONFIG_STATUS <<_ACEOF
28509 sed "$ac_vpsub
28510 $extrasub
28511 _ACEOF
28512 cat >>$CONFIG_STATUS <<\_ACEOF
28514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28515 s&@configure_input@&$configure_input&;t t
28516 s&@top_builddir@&$ac_top_builddir_sub&;t t
28517 s&@srcdir@&$ac_srcdir&;t t
28518 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28519 s&@top_srcdir@&$ac_top_srcdir&;t t
28520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28521 s&@builddir@&$ac_builddir&;t t
28522 s&@abs_builddir@&$ac_abs_builddir&;t t
28523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28524 $ac_datarootdir_hack
28525 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28527 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28528 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28529 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28530 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28531 which seems to be undefined. Please make sure it is defined." >&5
28532 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28533 which seems to be undefined. Please make sure it is defined." >&2;}
28535 rm -f "$tmp/stdin"
28536 case $ac_file in
28537 -) cat "$tmp/out"; rm -f "$tmp/out";;
28538 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28539 esac
28543 # CONFIG_HEADER
28545 _ACEOF
28547 # Transform confdefs.h into a sed script `conftest.defines', that
28548 # substitutes the proper values into config.h.in to produce config.h.
28549 rm -f conftest.defines conftest.tail
28550 # First, append a space to every undef/define line, to ease matching.
28551 echo 's/$/ /' >conftest.defines
28552 # Then, protect against being on the right side of a sed subst, or in
28553 # an unquoted here document, in config.status. If some macros were
28554 # called several times there might be several #defines for the same
28555 # symbol, which is useless. But do not sort them, since the last
28556 # AC_DEFINE must be honored.
28557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28558 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28559 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28560 # PARAMS is the parameter list in the macro definition--in most cases, it's
28561 # just an empty string.
28562 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28563 ac_dB='\\)[ (].*,\\1define\\2'
28564 ac_dC=' '
28565 ac_dD=' ,'
28567 uniq confdefs.h |
28568 sed -n '
28569 t rset
28570 :rset
28571 s/^[ ]*#[ ]*define[ ][ ]*//
28572 t ok
28575 s/[\\&,]/\\&/g
28576 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28577 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28578 ' >>conftest.defines
28580 # Remove the space that was appended to ease matching.
28581 # Then replace #undef with comments. This is necessary, for
28582 # example, in the case of _POSIX_SOURCE, which is predefined and required
28583 # on some systems where configure will not decide to define it.
28584 # (The regexp can be short, since the line contains either #define or #undef.)
28585 echo 's/ $//
28586 s,^[ #]*u.*,/* & */,' >>conftest.defines
28588 # Break up conftest.defines:
28589 ac_max_sed_lines=50
28591 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28592 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28593 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28594 # et cetera.
28595 ac_in='$ac_file_inputs'
28596 ac_out='"$tmp/out1"'
28597 ac_nxt='"$tmp/out2"'
28599 while :
28601 # Write a here document:
28602 cat >>$CONFIG_STATUS <<_ACEOF
28603 # First, check the format of the line:
28604 cat >"\$tmp/defines.sed" <<\\CEOF
28605 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28606 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28608 :def
28609 _ACEOF
28610 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28611 echo 'CEOF
28612 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28613 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28614 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28615 grep . conftest.tail >/dev/null || break
28616 rm -f conftest.defines
28617 mv conftest.tail conftest.defines
28618 done
28619 rm -f conftest.defines conftest.tail
28621 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28622 cat >>$CONFIG_STATUS <<\_ACEOF
28623 if test x"$ac_file" != x-; then
28624 echo "/* $configure_input */" >"$tmp/config.h"
28625 cat "$ac_result" >>"$tmp/config.h"
28626 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28627 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28628 echo "$as_me: $ac_file is unchanged" >&6;}
28629 else
28630 rm -f $ac_file
28631 mv "$tmp/config.h" $ac_file
28633 else
28634 echo "/* $configure_input */"
28635 cat "$ac_result"
28637 rm -f "$tmp/out12"
28641 # CONFIG_LINK
28644 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28645 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28647 if test ! -r "$srcdir/$ac_source"; then
28648 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28649 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28650 { (exit 1); exit 1; }; }
28652 rm -f "$ac_file"
28654 # Try a relative symlink, then a hard link, then a copy.
28655 case $srcdir in
28656 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28657 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28658 esac
28659 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28660 ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28661 cp -p "$srcdir/$ac_source" "$ac_file" ||
28662 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28663 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28664 { (exit 1); exit 1; }; }
28666 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28667 echo "$as_me: executing $ac_file commands" >&6;}
28669 esac
28672 case $ac_file$ac_mode in
28673 "check_win32_symlinks":C)
28674 # Links sometimes fail undetected on Mingw -
28675 # so here we detect it and warn the user
28676 for FILE in $CONFIG_LINKS
28678 # test -e works for symlinks in the MinGW console
28679 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28680 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28681 done
28683 "src/include/pg_config.h":H)
28684 # Update timestamp for pg_config.h (see Makefile.global)
28685 echo >src/include/stamp-h
28687 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
28689 esac
28690 done # for ac_tag
28693 { (exit 0); exit 0; }
28694 _ACEOF
28695 chmod +x $CONFIG_STATUS
28696 ac_clean_files=$ac_clean_files_save
28699 # configure is writing to config.log, and then calls config.status.
28700 # config.status does its own redirection, appending to config.log.
28701 # Unfortunately, on DOS this fails, as config.log is still kept open
28702 # by configure, so config.status won't be able to write to it; its
28703 # output is simply discarded. So we exec the FD to /dev/null,
28704 # effectively closing config.log, so it can be properly (re)opened and
28705 # appended to by config.status. When coming back to configure, we
28706 # need to make the FD available again.
28707 if test "$no_create" != yes; then
28708 ac_cs_success=:
28709 ac_config_status_args=
28710 test "$silent" = yes &&
28711 ac_config_status_args="$ac_config_status_args --quiet"
28712 exec 5>/dev/null
28713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28714 exec 5>>config.log
28715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28716 # would make configure fail if this is the last instruction.
28717 $ac_cs_success || { (exit 1); exit 1; }
28721 # Warn about unknown options
28722 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28723 for pgac_arg in $pgac_args with_gnu_ld; do
28724 if test "$pgac_var" = "$pgac_arg"; then
28725 continue 2
28727 done
28728 pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28729 { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28730 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28731 done